:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #27354f;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-glow: rgba(59, 130, 246, 0.5);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --nav-height: 80px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor Glow */
.cursor-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    position: fixed;
    top: -200px;
    left: -200px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(0, 0);
    transition: transform 0.1s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* Navigation */
#navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo .accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-sm:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--accent-glow);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.c1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: 10%;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

.c2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: 10%;
    right: 10%;
    animation: float 15s infinite reverse ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-30px, 40px);
    }
}

/* Grid & Cards (Services) */
.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
}

.grid {
    display: grid;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #60a5fa;
    font-size: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Why Us Section */
.alt-bg {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #131c31 100%);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-list {
    margin-top: 2rem;
}

.features-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.features-list i {
    color: #34d399;
    /* Green check */
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.features-list strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.split-visual {
    position: relative;
    height: 500px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent 70%);
}

.floating-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.floating-card i {
    font-size: 1.5rem;
    color: #60a5fa;
}

.floating-card.c1 {
    top: 10%;
    right: 10%;
    animation: float 6s infinite ease-in-out;
}

.floating-card.c2 {
    top: 40%;
    left: 0%;
    animation: float 7s infinite ease-in-out 1s;
}

.floating-card.c3 {
    bottom: 15%;
    right: 20%;
    animation: float 5s infinite ease-in-out 2s;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(59, 130, 246, 0.1) 0%,
            rgba(59, 130, 246, 0.5) 50%,
            rgba(59, 130, 246, 0.1) 100%);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    /* Mask line */
    padding: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px -5px var(--accent-glow);
}

/* Trust Section */
.trust-section {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.5);
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.badge-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-item i {
    color: #60a5fa;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand .logo {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }

    .process-steps::before {
        display: none;
    }

    .hero-bg-elements {
        width: 100%;
        opacity: 0.5;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for demo, ideally a hamburger */
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* Ads Container */
.ad-container {
    width: 100%;
    margin: 4rem auto;
    text-align: center;
    min-height: 280px;
    /* Tamaño estándar MPU o banner */
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    /* Temporal para visualizar */
}

.ad-container:empty {
    display: none;
}