@layer reset, design, layout, components, utilities;

@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800;14..32,900&display=swap");

@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    :root {
        --navy-950: oklch(11% 0.015 255);
        --navy-900: oklch(15% 0.02 255);
        --navy-800: oklch(20% 0.025 255);
        --navy-700: oklch(26% 0.03 255);
        --navy-600: oklch(32% 0.035 255);

        --indigo: oklch(68% 0.28 255);
        --indigo-dim: oklch(55% 0.18 255);
        --indigo-glow: oklch(68% 0.28 255 / 0.25);

        --emerald: oklch(65% 0.29 345);
        --emerald-glow: oklch(45% 0.16 345);

        --accent: var(--indigo);
        --accent-dim: var(--indigo-dim);
        --accent-glow: var(--indigo-glow);

        --cinder: oklch(96% 0.005 255);
        --graphite: oklch(85% 0.008 255);
        --pewter: oklch(75% 0.01 255);
        --silver: oklch(50% 0.012 255);
        --cloud: oklch(12% 0.015 255);
        --paper: oklch(23% 0.025 255);

        --green-pulse: oklch(78% 0.22 210);
        --red-warn: oklch(80% 0.29 345);

        --font: "Inter", system-ui, -apple-system, sans-serif;
        --lh-tight: 1.15;
        --lh-body: 1.65;
        --lh-loose: 1.75;

        --text-xs: 0.75rem;
        --text-sm: 0.8125rem;
        --text-base: clamp(0.9375rem, 0.9vw + 0.7rem, 1.0625rem);
        --text-md: clamp(1.0625rem, 1vw + 0.75rem, 1.25rem);
        --text-lg: clamp(1.25rem, 1.5vw + 0.75rem, 1.75rem);
        --text-xl: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
        --text-2xl: clamp(1.75rem, 2.5vw + 0.75rem, 2.75rem);
        --text-3xl: clamp(2rem, 3.5vw + 0.5rem, 3.5rem);

        --sp-xs: 4px;
        --sp-sm: 8px;
        --sp-md: 12px;
        --sp-base: 16px;
        --sp-lg: 24px;
        --sp-xl: 32px;
        --sp-2xl: 40px;
        --sp-3xl: 56px;
        --sp-4xl: 80px;
        --sp-5xl: 120px;
        --sp-6xl: 160px;

        --r-sm: 6px;
        --r-md: 10px;
        --r-lg: 18px;
        --r-xl: 24px;
        --r-full: 9999px;

        --shadow-xs: 0 1px 2px oklch(0 0 0 / 0.04);
        --shadow-sm: 0 1px 4px oklch(0 0 0 / 0.06), 0 1px 2px oklch(0 0 0 / 0.04);
        --shadow-md: 0 4px 16px oklch(0 0 0 / 0.07), 0 2px 4px oklch(0 0 0 / 0.04);
        --shadow-lg: 0 8px 32px oklch(0 0 0 / 0.09), 0 4px 8px oklch(0 0 0 / 0.05);
        --shadow-xl: 0 16px 48px oklch(0 0 0 / 0.12), 0 6px 16px oklch(0 0 0 / 0.06);

        --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
        --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
        --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
        --dur-fast: 180ms;
        --dur-base: 300ms;
        --dur-slow: 500ms;

        --max-w: 1200px;
        --header-h: 72px;
    }

    @media (prefers-reduced-motion: reduce) {
        :root {
            --ease-out-expo: ease;
            --ease-in-out: ease;
            --ease-spring: ease;
            --dur-fast: 0ms;
            --dur-base: 0ms;
            --dur-slow: 0ms;
        }
    }

    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }
    body {
        font-family: var(--font);
        font-size: var(--text-base);
        line-height: var(--lh-body);
        color: var(--cinder);
        background: var(--navy-950);
    }
    img,
    video {
        max-width: 100%;
        height: auto;
        display: block;
    }
    a {
        color: inherit;
        text-decoration: none;
    }
    ul {
        list-style: none;
    }
    button {
        font: inherit;
        cursor: pointer;
        border: none;
        background: none;
    }
    input,
    textarea {
        font: inherit;
    }
    :focus-visible {
        outline: 2px solid var(--indigo);
        outline-offset: 2px;
        border-radius: var(--r-sm);
    }
}

@layer design {
    ::selection {
        background: var(--indigo);
        color: var(--cinder);
    }

    .container {
        width: 100%;
        max-width: var(--max-w);
        margin-inline: auto;
        padding-inline: clamp(1rem, 3vw, 2.5rem);
    }

    .section {
        padding-block: var(--sp-4xl);
    }

    .section--dark {
        background: var(--navy-800);
        color: var(--cinder);
        & .section__title {
            color: var(--cinder);
        }
        & .section__desc {
            color: var(--pewter);
        }
    }

    .section__title {
        font-size: var(--text-2xl);
        font-weight: 800;
        line-height: var(--lh-tight);
        letter-spacing: -0.02em;
        text-wrap: pretty;
        text-wrap-style: balance;
        margin-bottom: var(--sp-base);
        color: var(--indigo);
    }

    .section__desc {
        font-size: var(--text-md);
        color: var(--pewter);
        line-height: var(--lh-loose);
        max-width: 64ch;
        margin-inline: auto;
        margin-bottom: var(--sp-2xl);
        text-wrap: pretty;
    }

    .section__title,
    .section__desc {
        text-align: center;
        &[style] {
            text-align: revert;
        }
    }
}

@layer layout {
    .header {
        position: fixed;
        inset: 0 0 auto;
        z-index: 1000;
        height: var(--header-h);
        background: oklch(from var(--navy-900) l c h / 0.88);
        backdrop-filter: blur(14px) saturate(1.2);
        -webkit-backdrop-filter: blur(14px) saturate(1.2);
        border-bottom: 1px solid oklch(1 0 0 / 0.04);
        transition: box-shadow var(--dur-base) var(--ease-out-expo);
    }

    .header::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 60%, oklch(0 0 0 / 0.06));
        pointer-events: none;
    }

    .header--scrolled {
        box-shadow: 0 4px 24px oklch(0 0 0 / 0.2);
    }

    .header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        position: relative;
        z-index: 1;
    }

    .logo {
        display: inline-flex;
        align-items: center;
    }

    .logo__img {
        height: 48px; /* Aumentado un 20% (de 40px a 48px) */
        width: auto;
        display: block;
    }

    .footer__col .logo__img {
        height: 45px;
    }

    .nav__list {
        display: flex;
        align-items: center;
        gap: var(--sp-xl);
    }

    .nav__link {
        font-size: var(--text-xs);
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: oklch(1 0 0 / 0.7);
        padding-block: var(--sp-sm);
        position: relative;
        transition: color var(--dur-fast) var(--ease-out-expo);

        &::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 1.5px;
            background: linear-gradient(90deg, var(--indigo), var(--emerald));
            translate: -50% 0;
            transition: width var(--dur-base) var(--ease-out-expo);
        }

        &:hover {
            color: var(--indigo);
            &::after {
                width: 100%;
            }
        }
    }

    .hamburger {
        display: none;
        flex-direction: column;
        gap: 5px;
        width: 32px;
        padding: 4px;
        cursor: pointer;
    }

    .hamburger__bar {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--indigo);
        border-radius: 2px;
        transition:
            translate var(--dur-fast) var(--ease-out-expo),
            rotate var(--dur-fast) var(--ease-out-expo),
            opacity var(--dur-fast) var(--ease-out-expo);
        transform-origin: center;
    }

    .hamburger--active .hamburger__bar:nth-child(1) {
        translate: 0 7px;
        rotate: 45deg;
    }
    .hamburger--active .hamburger__bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger--active .hamburger__bar:nth-child(3) {
        translate: 0 -7px;
        rotate: -45deg;
    }

    .hero {
        min-height: 100svh;
        background: radial-gradient(ellipse 90% 60% at 20% 30%, oklch(from var(--indigo) l c h / 0.08) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 80% 70%, oklch(from var(--green-pulse) l c h / 0.05) 0%, transparent 60%), linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 30%, var(--navy-800) 70%, var(--navy-950) 100%);
        color: var(--paper);
        display: flex;
        align-items: center;
        padding-block: calc(var(--header-h) + var(--sp-4xl));
        overflow: hidden;
        position: relative;
    }

    .hero__canvas {
        position: absolute;
        inset: 0;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;

        &::before {
            content: "";
            position: absolute;
            top: -30%;
            right: -10%;
            width: 80vmax;
            height: 80vmax;
            background: radial-gradient(circle at 50% 50%, oklch(from var(--emerald) l c h / 0.06) 0%, transparent 50%);
            border-radius: 50%;
            animation: hero-drift 20s var(--ease-in-out) infinite alternate;
        }
    }

    @keyframes hero-drift {
        0% {
            translate: 0 0;
            scale: 1;
        }
        100% {
            translate: -8% 6%;
            scale: 1.1;
        }
    }

    .hero__inner {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--sp-3xl) var(--sp-2xl);
        align-items: center;
    }

    .hero__title {
        font-size: var(--text-3xl);
        font-weight: 900;
        line-height: 1.08;
        letter-spacing: -0.03em;
        text-wrap: pretty;
        text-wrap-style: balance;
        margin-bottom: var(--sp-lg);

        & em {
            font-style: normal;
            background: linear-gradient(135deg, var(--indigo), var(--green-pulse));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
    }

    .hero__subtitle {
        font-size: var(--text-md);
        font-weight: 400;
        color: oklch(0.75 0.015 20);
        line-height: var(--lh-loose);
        margin-bottom: var(--sp-xl);
        text-wrap: pretty;
        max-width: 58ch;
    }

    .hero__actions {
        display: flex;
        gap: var(--sp-base);
        flex-wrap: wrap;
    }

    .hero__visual {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .device-pod {
        position: relative;
        width: clamp(200px, 22vw, 280px);
        aspect-ratio: 3 / 2;
    }

    .device-pod__glow {
        position: absolute;
        inset: -35%;
        background: radial-gradient(circle, var(--indigo) 0%, transparent 50%);
        animation: glow-pulse 6s var(--ease-in-out) infinite;
    }

    @keyframes glow-pulse {
        0%,
        100% {
            scale: 1;
            opacity: 0.7;
        }
        50% {
            scale: 1.15;
            opacity: 1;
        }
    }

    .device-pod__box {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        background: linear-gradient(150deg, oklch(0.22 0.02 240) 0%, oklch(0.15 0.015 240) 100%);
        border-radius: var(--r-lg);
        border: 1px solid oklch(1 0 0 / 0.06);
        box-shadow:
            0 20px 60px oklch(0 0 0 / 0.4),
            inset 0 1px 0 oklch(1 0 0 / 0.06);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--sp-md);
        padding: var(--sp-base);
    }

    .device-pod__led {
        position: absolute;
        top: var(--sp-md);
        right: var(--sp-md);
        width: 7px;
        height: 7px;
        background: var(--paper);
        border-radius: 50%;
        box-shadow:
            0 0 6px var(--indigo),
            0 0 20px var(--green-pulse),
            0 0 40px oklch(from var(--indigo) l c h / 0.2);
        animation: blink 2.5s var(--ease-in-out) infinite;
    }

    @keyframes blink {
        0%,
        100% {
            opacity: 1;
        }
        50% {
            opacity: 0.35;
        }
    }

    .device-pod__label {
        font-size: var(--text-xs);
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        background: linear-gradient(135deg, var(--indigo), var(--emerald));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .device-pod__ports {
        display: flex;
        gap: var(--sp-sm);
        & span {
            display: block;
            width: 18px;
            height: 5px;
            background: oklch(0.4 0.01 240);
            border-radius: 2px;
        }
        & span:last-child {
            background: var(--emerald);
            box-shadow: 0 0 8px var(--emerald-glow);
        }
    }

    .pain {
        background: var(--navy-900);
    }

    .features {
        padding-top: 8%;
        background: var(--navy-950);
        position: relative;
        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(to right, transparent, oklch(from var(--indigo) l c h / 0.2), transparent);
        }
    }

    .pricing {
        background: var(--navy-800);
        position: relative;
        overflow: hidden;
        &::before {
            content: "";
            position: absolute;
            top: -40%;
            left: 50%;
            translate: -50% 0;
            width: 100vmax;
            aspect-ratio: 1;
            background: radial-gradient(circle, oklch(from var(--indigo) l c h / 0.06) 0%, transparent 50%);
            border-radius: 50%;
            pointer-events: none;
        }
    }

    .contact {
        background: var(--navy-900);
    }

    .footer {
        background: #0e1118;
        color: var(--pewter);
    }
}

@layer components {
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--sp-sm);
        font-size: var(--text-sm);
        font-weight: 600;
        padding: var(--sp-md) var(--sp-lg);
        border-radius: var(--r-md);
        border: 1.5px solid transparent;
        transition:
            background var(--dur-fast) var(--ease-out-expo),
            border-color var(--dur-fast) var(--ease-out-expo),
            box-shadow var(--dur-fast) var(--ease-out-expo),
            translate var(--dur-fast) var(--ease-out-expo);
        white-space: nowrap;
        text-align: center;
    }

    .btn--primary {
        background: linear-gradient(135deg, var(--indigo), oklch(from var(--green-pulse) l c h / 0.8));
        color: var(--cinder);
        border-color: var(--green-pulse);
        &:hover {
            background: linear-gradient(135deg, oklch(from var(--green-pulse) l 0.25 280), var(--indigo));
            box-shadow: 0 8px 28px var(--indigo-glow);
            border-color: var(--indigo-dim);
        }
        &:active {
            translate: 0 0;
            box-shadow: 0 4px 12px var(--indigo-glow);
        }
    }

    .btn--ghost {
        background: transparent;
        color: var(--cinder);
        border-color: rgba(99, 102, 241, 0.25);
        &:hover {
            background: rgba(99, 102, 241, 0.08);
            border-color: var(--emerald);
            box-shadow: 0 0 20px rgba(99, 102, 241, 0.06);
        }
    }

    .btn--large {
        padding: var(--sp-base) var(--sp-xl);
        font-size: var(--text-base);
    }
    .btn--full {
        width: 100%;
    }

    .cards-grid {
        display: grid;
        gap: var(--sp-lg);
    }
    .cards-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .cards-grid--4 {
        grid-template-columns: repeat(4, 1fr);
        margin-top: 10%;
        margin-bottom: 10%;
    }

    .card {
        background: var(--paper);
        border-radius: var(--r-lg);
        padding: 6% 4% 4% 6%;
        border: 1px solid rgba(99, 102, 241, 0.15);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: var(--shadow-xs);
        transition:
            translate var(--dur-base) var(--ease-out-expo),
            box-shadow var(--dur-base) var(--ease-out-expo),
            border-color var(--dur-base) var(--ease-out-expo);
    }

    .card__title-sce {
        font-size: var(--text-lg);
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -0.03em;
        text-wrap: pretty;
        text-wrap-style: balance;
        margin-bottom: var(--sp-lg);

        & em {
            margin-top: 4%;
            font-style: normal;
            background: linear-gradient(135deg, var(--indigo), var(--green-pulse));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
    }

    .card__icon {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--text-lg);
        margin-bottom: var(--sp-base);
        border-radius: var(--r-sm);
        background: oklch(from var(--indigo) l c h / 0.12);
        color: var(--indigo);
    }

    .card__title {
        font-size: var(--text-md);
        font-weight: 700;
        line-height: var(--lh-tight);
        margin-bottom: var(--sp-sm);
        letter-spacing: -0.01em;
        justify-content: flex-end;
    }

    .card__text {
        font-size: var(--text-base);
        color: var(--pewter);
        line-height: var(--lh-loose);
    }

    .gradient-sce {
        background: linear-gradient(135deg, var(--indigo), var(--green-pulse));
        -webkit-background-clip: text;
        -moz-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .blog_sce-card {
        margin-top: 6%;
        margin-bottom: 6%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--sp-base);
    }

    .blog-card {
        background: rgba(2 55, 255, 255, 0.05);
        margin: 10% 2%;
        display: flex;
        flex-direction: column;
        gap: var(--sp-sm);
        box-shadow:
            0 12px 30px oklch(0 0 0 / 0.2),
            0 0 20px var(--indigo-glow);
        border-color: var(--indigo);
    }

    .blog-badge {
        background: linear-gradient(135deg, var(--indigo-dim), var(--green-pulse));
        padding: 2% 2%;
        margin: -2% 0%;
        border-radius: 8px 8px 0px 0px;
        font-size: 0.8em;
        font-weight: 600;
        color: var(--cinder);
    }

    .blog-body {
        padding: 4%;
        font-size: var(--text-base);
        color: var(--graphite);
        line-height: 1.8;
    }

    .blog-body h3 {
        font-size: 1.2em;
        margin: 4% 0%;
        color: var(--indigo);
    }

    .blog-body p {
        padding: 5%;
    }

    .blog-body a:hover {
        color: var(--green-pulse);
    }

    .new_sce {
        background: linear-gradient(135deg, var(--indigo), var(--green-pulse));
        -webkit-background-clip: text;
        -moz-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 1.65em;
        font-weight: 700;
    }

    .card_sce {
        margin-top: 6%;
        margin-bottom: 6%;
    }

    .margin-sce {
        margin: 0% 5% 5% 0%;
    }

    .card--pain-highlight {
        border-color: var(--indigo);
        border-width: 1.5px;
        background: linear-gradient(135deg, oklch(from var(--indigo) l c h / 0.06), var(--paper));
        & .card__title {
            color: var(--indigo);
        }
        & .card__icon {
            background: oklch(from var(--indigo) l c h / 0.15);
            color: var(--indigo);
        }
    }

    .feature-sce {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 10% 0% 15% 0%;
    }

    .feature-sce img {
        width: 20%;
        height: auto;
    }

    .text-sce {
        margin-top: 2%;
        margin-bottom: 10%;
    }

    .card--feature .card__icon {
        background: linear-gradient(135deg, var(--indigo), var(--emerald));
        color: var(--cinder);
        font-size: var(--text-md);
    }

    .blog-hero {
        padding-top: calc(var(--header-h) + var(--sp-4xl));
        background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 100%);
        text-align: center;
    }
    .blog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: var(--sp-xl);
        padding-block: var(--sp-4xl);
    }
    .blog-post-full {
        background: var(--paper);
        border-radius: var(--r-xl);
        overflow: hidden;
        border: 1px solid rgba(99, 102, 241, 0.1);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
    }
    .blog-post-full:hover {
        transform: translateY(0px);
    }
    .blog-post-full img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    .blog-post-content {
        padding: var(--sp-xl);
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    .blog-post-tag {
        display: inline-block;
        padding: 4px 12px;
        background: var(--indigo-glow);
        color: var(--indigo);
        border-radius: var(--r-full);
        font-size: var(--text-xs);
        font-weight: 700;
        margin-bottom: var(--sp-md);
    }
    .blog-post-content h2 {
        font-size: var(--text-lg);
        margin-bottom: var(--sp-md);
        color: var(--cinder);
        line-height: 100%;
        margin-top: 5%;
        margin-bottom: 6%;
    }
    .blog-post-content p {
        font-size: var(--text-sm);
        color: var(--pewter);
        margin-bottom: var(--sp-lg);
        line-height: var(--lh-body);
    }
    .modal-blog {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 2000;
        overflow-y: auto;
        padding: var(--sp-xl);
        backdrop-filter: blur(10px);
    }
    .modal-content {
        max-width: 80%;
        margin: 40px auto;
        background: var(--navy-900);
        padding: var(--sp-4xl);
        border-radius: var(--r-xl);
        position: relative;
        color: var(--pewter);
        line-height: 1.8;
        border: 1px solid var(--indigo-glow);
    }
    .modal-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: var(--pewter);
        cursor: pointer;
    }
    .modal-content h1 {
        color: var(--indigo);
        margin-bottom: var(--sp-xl);
        font-size: var(--text-xl);
        line-height: 100%;
    }
    .modal-content h3 {
        color: var(--cinder);
        margin-block: var(--sp-lg);
        font-size: var(--text-lg);
    }
    .modal-content em {
        display: block;
        border-left: 4px solid var(--indigo);
        padding-left: var(--sp-lg);
        margin-bottom: var(--sp-xl);
        color: var(--graphite);
        font-style: italic;
    }
    .modal-content p {
        margin-bottom: var(--sp-lg);
    }

    .pricing__card-wrapper {
        padding-top: 5%;
        display: flex;
        justify-content: center;
    }

    .pricing__card img {
        width: 40%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .pricing__card {
        background: linear-gradient(150deg, oklch(0.22 0.04 260), oklch(0.17 0.035 260));
        border: 1px solid rgba(99, 102, 241, 0.15);
        border-radius: var(--r-xl);
        padding: var(--sp-xl);
        margin: 1%;
        max-width: 540px;
        width: 100%;
        text-align: center;
        position: relative;
        box-shadow: 0 20px 60px oklch(0 0 0 / 0.2);
        transition:
            translate var(--dur-base) var(--ease-out-expo),
            box-shadow var(--dur-base) var(--ease-out-expo),
            border-color var(--dur-base) var(--ease-out-expo);

        &:hover {
            translate: 0 -4px;
            box-shadow: 0 24px 80px rgba(99, 102, 241, 0.15);
            border-color: rgba(99, 102, 241, 0.35);
        }
    }

    .pricing__badge {
        display: inline-block;
        font-size: var(--text-xs);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: var(--sp-xs) var(--sp-base);
        border-radius: var(--r-full);
        background: linear-gradient(135deg, var(--indigo), var(--green-pulse));
        color: var(--paper);
        border: 1px solid oklch(from var(--indigo) l c h / 0.2);
        margin-bottom: var(--sp-lg);
    }

    .pricing__amount {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: var(--sp-lg);
        margin-bottom: var(--sp-lg);
        border-bottom: 1px solid oklch(1 0 0 / 0.06);
    }

    .pricing__value {
        font-size: clamp(2.2rem, 3.8vw, 3.2rem);
        font-weight: 800;
        color: var(--indigo);
        letter-spacing: -0.03em;
        line-height: 1;
        padding-top: 10%;
    }

    .pricing__label {
        font-size: var(--text-sm);
        color: oklch(0.6 0.01 20);
        margin-top: var(--sp-xs);
    }

    .pricing__features,
    .pricing__sub-features {
        text-align: left;
    }

    .pricing__features li {
        position: relative;
        padding-left: 24px;
        margin-bottom: var(--sp-sm);
        font-size: var(--text-sm);
        color: var(--cinder);
    }

    .pricing__sub-features li {
        position: relative;
        padding-left: 24px;
        margin-bottom: var(--sp-xs);
        font-size: var(--text-sm);
        color: var(--graphite);
    }

    .pricing__features li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.3em;
        width: 14px;
        height: 10px;
        background: var(--emerald);
        filter: drop-shadow(0 0 6px var(--emerald-glow));
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M13 1L5 9L1 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M13 1L5 9L1 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    }

    .pricing__sub-features li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.35em;
        width: 8px;
        height: 8px;
        background: var(--indigo);
        border-radius: 50%;
        opacity: 0.7;
        box-shadow: 0 0 6px var(--indigo-glow);
    }

    .pricing__subscription {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: var(--sp-sm);
        padding-block: var(--sp-base);
        border-top: 1px solid oklch(1 0 0 / 0.04);
        margin-bottom: var(--sp-lg);
    }

    .pricing__sub-value {
        font-size: var(--text-2xl);
        font-weight: 800;
        color: var(--emerald);
        line-height: 1;
        text-shadow: 0 0 20px var(--emerald-glow);
    }

    .pricing__sub-label {
        font-size: var(--text-sm);
        color: oklch(0.6 0.01 20);
    }

    .pricing__card .btn {
        margin-top: var(--sp-lg);
    }

    .pricing__guarantee {
        margin-top: var(--sp-lg);
        font-size: var(--text-xs);
        color: var(--pewter);
        font-style: italic;
        line-height: var(--lh-loose);
    }

    .contact__form {
        max-width: 720px;
        margin: 7% auto;
        background: var(--paper);
        padding: var(--sp-2xl);
        border-radius: var(--r-xl);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(99, 102, 241, 0.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .form__row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-base);
        margin-bottom: var(--sp-base);
    }

    .form__group {
        display: flex;
        flex-direction: column;
    }

    .form__label {
        font-size: var(--text-xs);
        font-weight: 600;
        color: var(--graphite);
        margin-bottom: var(--sp-xs);
        letter-spacing: 0.01em;
    }

    .form__input {
        font-size: var(--text-sm);
        padding: var(--sp-md) var(--sp-base);
        border: 1.5px solid rgba(99, 102, 241, 0.15);
        border-radius: var(--r-md);
        background: oklch(0.16 0.018 260);
        color: var(--cinder);
        outline: none;
        transition:
            border-color var(--dur-fast) var(--ease-out-expo),
            box-shadow var(--dur-fast) var(--ease-out-expo);
    }

    .form__input::placeholder {
        color: var(--silver);
    }
    .form__input:focus {
        border-color: var(--indigo);
        box-shadow: 0 0 0 3px var(--indigo-glow);
    }
    .form__input--error {
        border-color: var(--red-warn);
    }
    .form__input--error:focus {
        box-shadow: 0 0 0 3px oklch(from var(--red-warn) l c h / 0.15);
    }

    .contact__form .btn--full {
        margin-top: var(--sp-2xl);
    }

    .form__footnote {
        text-align: center;
        font-size: var(--text-xs);
        color: var(--pewter);
        margin-top: var(--sp-base);
        & a {
            color: var(--indigo);
            font-weight: 500;
            &:hover {
                text-decoration: underline;
            }
        }
    }

    .form__success {
        text-align: center;
        padding: var(--sp-2xl);
        & :first-child {
            font-size: 3rem;
            color: var(--emerald);
            margin-bottom: var(--sp-base);
            display: block;
            filter: drop-shadow(0 0 12px var(--emerald-glow));
        }
        & h3 {
            font-size: var(--text-lg);
            margin-bottom: var(--sp-sm);
            color: var(--cinder);
        }
        & p {
            font-size: var(--text-sm);
            color: var(--pewter);
            line-height: var(--lh-loose);
        }
    }

    .footer__inner {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: var(--sp-2xl);
        padding-block: var(--sp-2xl); /* Reducido para un ajuste más ceñido */
        border-bottom: 1px solid oklch(1 0 0 / 0.04);
    }

    .footer__col .logo {
        margin-bottom: var(--sp-md);
        display: flex;
        align-items: center;
        height: auto; /* Evita heredar alturas del header */
    }

    .footer__col .logo__img {
        height: 38px; /* Ajustado para un look más compacto y alineado */
        width: auto;
    }

    .footer__text {
        font-size: var(--text-sm);
        color: oklch(0.6 0.01 20);
        line-height: var(--lh-loose);
        max-width: 30ch;
    }

    .footer__heading {
        font-size: var(--text-xs);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        background: linear-gradient(135deg, var(--indigo), var(--emerald));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: var(--sp-base);
    }

    .footer__copyright {
        font-size: 1em;

        background: linear-gradient(27deg, var(--indigo), var(--green-pulse));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-align: center;
    }

    .footer__links li {
        margin-bottom: var(--sp-sm);
    }

    .footer__links a {
        font-size: var(--text-sm);
        color: var(--pewter);
        transition: color var(--dur-fast) var(--ease-out-expo);
        &:hover {
            color: var(--indigo);
        }
    }

    .footer__bottom {
        padding-block: var(--sp-lg);
        text-align: center;
        & p {
            font-size: var(--text-xs);
            color: oklch(0.45 0.01 20);
            margin-bottom: var(--sp-xs);
        }
    }

    .footer__disclaimer {
        max-width: 700px;
        margin: var(--sp-sm) auto 0;
        font-style: italic;
        line-height: var(--lh-loose);
    }
}

@layer utilities {
    .u-text-balance {
        text-wrap: pretty;
        text-wrap-style: balance;
    }
    .u-mx-auto {
        margin-inline: auto;
    }

    .gradient-text {
        background: linear-gradient(135deg, var(--indigo) 0%, var(--emerald) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .status-secure-glow {
        color: var(--emerald);
        text-shadow:
            0 0 10px var(--emerald-glow),
            0 0 20px oklch(from var(--emerald) l c h / 0.2);
    }

    .indigo-border-glow {
        border-color: rgba(99, 102, 241, 0.25);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.08);
    }
}

@media (width <= 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
        text-align: center;
    }

    .hero__subtitle {
        margin-inline: auto;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__visual {
        order: -1;
    }

    .cards-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-xl);
    }
}

@media (width <= 768px) {
    :root {
        --header-h: 64px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-900);
        border-bottom: 1px solid oklch(1 0 0 / 0.04);
        padding: var(--sp-lg);
        translate: 0 -8px;
        opacity: 0;
        visibility: hidden;
        transition:
            translate var(--dur-base) var(--ease-out-expo),
            opacity var(--dur-base) var(--ease-out-expo),
            visibility var(--dur-base) var(--ease-out-expo);

        &--open {
            translate: 0 0;
            opacity: 1;
            visibility: visible;
        }
    }

    .nav__list {
        flex-direction: column;
        gap: var(--sp-base);
    }

    .hero {
        min-height: auto;
        padding-block: calc(var(--header-h) + var(--sp-lg)) var(--sp-2xl);
    }

    .cards-grid--3,
    .cards-grid--4 {
        grid-template-columns: 1fr;
    }

    .contact__form {
        padding: var(--sp-lg);
    }
    .form__row {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__text {
        max-width: 100%;
    }
    .footer__col .logo {
        justify-content: center;
        margin-inline: auto;
    }

    .btn--large {
        width: 100%;
    }
}

/* --- NUEVAS SECCIONES: INSIGHTS, LEGAL Y DIAGRAMAS --- */

.insights {
    background: var(--navy-900);
}

.legal-compliance {
    background: var(--navy-800);
    position: relative;
    overflow: hidden;
}

.legal-compliance img {
    width: 40%;
    height: auto;
    margin: auto;
    padding-bottom: 10%;
}

.legal-compliance h4 {
    background: linear-gradient(135deg, var(--indigo), var(--green-pulse));
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.3em;
    padding-bottom: 4%;
}

.legal-compliance p {
    padding-bottom: 4%;
}

.card--legal {
    border-color: var(--emerald-glow);
    background: linear-gradient(135deg, oklch(from var(--emerald) l c h / 0.03), var(--paper));
}

.legal-actions {
    display: flex;
    gap: var(--sp-base);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-xl);
}

/* Diagrama de Despliegue */
.deployment-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-lg);
    padding: var(--sp-xl);
    background: oklch(from var(--navy-800) l c h / 0.5);
    border-radius: var(--r-xl);
    border: 1px dashed oklch(from var(--indigo) l c h / 0.3);
    margin-bottom: var(--sp-3xl);
}

.diagram-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-sm);
    text-align: center;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--graphite);
}

.diagram-step__icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--indigo-glow));
}

.diagram-connector {
    font-size: 1.5rem;
    color: var(--indigo);
    opacity: 0.5;
    animation: slide-right 2s linear infinite;
}

@keyframes slide-right {
    0% {
        transform: translateX(-5px);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(5px);
        opacity: 0;
    }
}

.btn-read-more {
    display: inline-block;
    margin-top: var(--sp-md);
    font-weight: 700;
    color: var(--green-pulse);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0% 2% 10% 5%;
    transition: color var(--dur-fast);
}

.btn-read-more:hover {
    color: var(--emerald);
}

@media (width <= 768px) {
    .deployment-diagram {
        flex-direction: column;
        gap: var(--sp-md);
    }
    .diagram-connector {
        transform: rotate(90deg);
        animation: slide-down 2s linear infinite;
    }
}

@keyframes slide-down {
    0% {
        transform: translateY(-5px) rotate(90deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(5px) rotate(90deg);
        opacity: 0;
    }
}

/* --- ELEMENTOS VISUALES PARA ARTÍCULOS --- */

.article-fact-box {
    background: oklch(from var(--indigo) l c h / 0.1);
    border-left: 4px solid var(--indigo);
    padding: var(--sp-lg);
    margin-block: var(--sp-xl);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.article-fact-box h4 {
    color: var(--indigo);
    margin-bottom: var(--sp-sm);
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.article-icon-list {
    list-style: none;
    padding: 0;
    margin-block: var(--sp-lg);
}

.article-icon-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-md);
    margin-bottom: var(--sp-sm);
}

.article-icon-list li span {
    color: var(--green-pulse);
    font-size: 1.2rem;
}

.article-warning-box {
    background: oklch(from var(--red-warn) l c h / 0.1);
    border: 1px solid oklch(from var(--red-warn) l c h / 0.3);
    padding: var(--sp-lg);
    margin-block: var(--sp-xl);
    border-radius: var(--r-md);
    color: var(--red-warn);
}

/* --- BANNER DE CONVERSIÓN (CTA OPTIMIZADO) --- */

.cta-banner {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border: 1px solid var(--indigo-glow);
    border-radius: var(--r-xl);
    padding: var(--sp-3xl);
    margin-block: var(--sp-6xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px oklch(0 0 0 / 0.3);
}

.cta-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, oklch(from var(--indigo) l c h / 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-inline: auto;
}

.cta-banner__badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: var(--sp-xs) var(--sp-base);
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--indigo), var(--green-pulse));
    color: var(--paper);
    border: 1px solid oklch(from var(--indigo) l c h / 0.2);
    margin-bottom: var(--sp-lg);
}

.cta-banner__title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--cinder);
    line-height: 1.2;
    margin-bottom: var(--sp-md);
}

.cta-banner__subtitle {
    font-size: var(--text-base);
    color: var(--pewter);
    margin-bottom: var(--sp-2xl);
    line-height: var(--lh-body);
}

.cta-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-md);
}

.cta-banner__footnote {
    font-size: var(--text-xs);
    color: var(--silver);
    margin-top: var(--sp-lg);
}

@media (width <= 768px) {
    .cta-banner {
        padding: var(--sp-xl) var(--sp-base);
    }
}

/* --- UI/UX REFINEMENTS & ANIMATIONS --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
}

.reveal--active {
    opacity: 1;
    transform: translateY(0);
}

/* Card Hover Enhancements */
.card,
.pricing__card {
    transition: all var(--dur-base) var(--ease-out-expo);
}

.card:hover,
.blog-post-full:hover {
    box-shadow:
        0 12px 30px oklch(0 0 0 / 0.2),
        0 0 20px var(--indigo-glow);
    border-color: var(--indigo);
}

/* Button Refinements */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:active {
    scale: 0.98;
}

/* Typographic Polish */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

.section__title {
    margin-bottom: var(--sp-lg);
}

/* Pricing Highlight (Most Popular) */
.pricing__card:nth-child(2) {
    border-color: var(--indigo);
    box-shadow: 0 0 30px var(--indigo-glow);
    transform: scale(1.05);
    z-index: 10;
}

@media (width <= 1024px) {
    .pricing__card:nth-child(2) {
        transform: scale(1);
    }
}

/* Form Interactivity */
.form__input:focus {
    background: oklch(from var(--navy-800) l c h / 0.8);
}

.form__group:focus-within .form__label {
    color: var(--indigo);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--indigo), var(--green-pulse));
    z-index: 2001;
    transition: width 0.1s ease;
}
