/* Páginas Tesla · CSS nativo (capas, variables y anidación). */

@layer reset, base, layout, components, pages;

@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    * { margin: 0; }
    html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
    img, svg, video, iframe { display: block; max-width: 100%; }
    img { height: auto; }
    input, button, select, textarea { font: inherit; color: inherit; }
    button { cursor: pointer; }
    fieldset { border: 0; padding: 0; min-width: 0; }
    [hidden] { display: none !important; }
    ul, ol { padding: 0; list-style: none; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
}

@layer base {

    :root {
        --ink: #0B1020;
        --ink-2: #141B34;
        --ink-3: #222B4D;
        --text: #171C2E;
        --muted: #5A6278;
        --line: #E3E6EF;
        --bg: #FFFFFF;
        --soft: #F4F6FB;
        --volt: #2E5BFF;
        --volt-d: #1C44DC;
        --volt-soft: #E9EEFF;
        --spark: #D7FF3F;
        --spark-d: #C2EE1C;
        --ok: #0F9D64;
        --bad: #D93B3B;
        --radius: 18px;
        --radius-sm: 12px;
        --shadow: 0 1px 2px rgb(11 16 32 / .06), 0 12px 32px -12px rgb(11 16 32 / .18);
        --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
        color-scheme: light;
    }

    body {
        font-family: var(--font);
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text);
        background: var(--bg);
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }

    h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
    h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); }
    h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
    h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
    p { text-wrap: pretty; }

    a { color: var(--volt); text-underline-offset: 3px; }
    a:hover { color: var(--volt-d); }

    :focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; border-radius: 6px; }

    .i { flex: none; }
    .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); }
    .muted { color: var(--muted); }
    .small { font-size: .9rem; }
    .fine { font-size: .82rem; color: var(--muted); }
    .center { text-align: center; }
    .eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--volt); margin-bottom: .75rem; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
    .skip:focus { left: 8px; }
}

@layer layout {

    .wrap { width: min(100% - 2rem, 1180px); margin-inline: auto; }
    .wrap.narrow { width: min(100% - 2rem, 820px); }

    .section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
    .section.tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
    .section.soft { background: var(--soft); }
    .section.dark { background: var(--ink); color: #fff; }
    .section.dark .lead { color: rgb(255 255 255 / .7); }

    .heading { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
    .heading.center { margin-inline: auto; text-align: center; }
    .heading h2 + .lead { margin-top: 1rem; }
    .heading.on-dark h2 { color: #fff; }
    .heading.on-dark .eyebrow { color: var(--spark); }
}

@layer components {

    /* Botones */
    .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
        padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
        font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
        transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
        &:hover { transform: translateY(-1px); }
        &:active { transform: none; }
        &:disabled { opacity: .6; pointer-events: none; }
    }
    .btn-sm { padding: .55rem 1rem; font-size: .9rem; }
    .btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
    .btn-block { width: 100%; }
    .btn-volt { background: var(--volt); color: #fff; box-shadow: 0 8px 20px -8px rgb(46 91 255 / .7); &:hover { background: var(--volt-d); color: #fff; } }
    .btn-ink { background: var(--ink); color: #fff; &:hover { background: var(--ink-3); color: #fff; } }
    .btn-spark { background: var(--spark); color: var(--ink); box-shadow: 0 8px 24px -10px rgb(215 255 63 / .8); &:hover { background: var(--spark-d); color: var(--ink); } }
    .btn-ghost { border-color: var(--line); color: var(--text); background: #fff; &:hover { border-color: var(--text); color: var(--text); } }
    .btn-ghost-light { border-color: rgb(255 255 255 / .25); color: #fff; &:hover { border-color: #fff; color: #fff; } }
    .link-quiet { color: inherit; text-decoration: none; font-weight: 500; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: .3rem; &:hover { color: var(--volt); } }
    .link-light { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; &:hover { color: var(--spark); } }

    /* Encabezado */
    .site-header {
        position: sticky; top: 0; z-index: 50;
        background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px);
        border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
        &.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(11 16 32 / .35); }
    }
    .header-row { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
    .brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-size: 1.12rem; font-weight: 500; letter-spacing: -.02em; flex: none; &:hover { color: var(--ink); } b { font-weight: 700; } }
    .brand-light, .brand-light:hover { color: #fff; }

    .nav { margin-left: 1.25rem; }
    .nav-list { display: flex; align-items: center; gap: .15rem; }
    .nav-item { position: relative; }
    .nav-link {
        display: inline-flex; align-items: center; gap: .35rem; height: 40px; padding: 0 .85rem;
        border: 0; border-radius: 10px; background: none; color: var(--text);
        font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s;
        .i { color: var(--muted); transition: transform .2s ease; }
        &:hover { background: var(--soft); color: var(--ink); }
        &.is-active { color: var(--volt); }
        &.is-active::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: -16px; height: 2px; border-radius: 2px; background: var(--volt); }
    }
    .nav-item:has(> .nav-link.is-active) { position: relative; }
    .nav-item[data-open] .nav-link { background: var(--soft); .i { transform: rotate(180deg); color: var(--ink); } }

    .dropdown {
        position: absolute; top: calc(100% + 14px); left: -.5rem; width: 360px; padding: .5rem;
        background: #fff; border: 1px solid var(--line); border-radius: 20px;
        box-shadow: 0 30px 60px -24px rgb(11 16 32 / .3), 0 4px 12px -4px rgb(11 16 32 / .08);
        opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
        &::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
        .nav-item[data-open] > & { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
    }
    .dropdown-wide { width: 640px; }
    .dropdown-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: .5rem; }

    .menu-list { display: grid; gap: .15rem; }
    .menu-item {
        display: flex; align-items: flex-start; gap: .85rem; padding: .75rem; border-radius: 14px;
        color: var(--text); text-decoration: none; transition: background-color .15s;
        strong { display: block; font-weight: 600; font-size: .96rem; line-height: 1.3; }
        small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: .15rem; }
        &:hover, &.is-current { background: var(--soft); color: var(--text); .menu-icon { background: var(--volt); color: #fff; } }
    }
    .menu-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--volt-soft); color: var(--volt); transition: background-color .15s, color .15s; }
    .menu-more { display: inline-flex; align-items: center; gap: .35rem; margin: .35rem .75rem .5rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
    .menu-promo {
        display: flex; flex-direction: column; gap: .45rem; padding: 1.25rem; border-radius: 14px; text-decoration: none; color: #fff;
        background: var(--ink); background-image: radial-gradient(90% 70% at 100% 0%, rgb(46 91 255 / .55), transparent 70%);
        .eyebrow { color: var(--spark); margin: 0; font-size: .72rem; }
        strong { font-size: 1.1rem; line-height: 1.25; letter-spacing: -.01em; }
        small { color: rgb(255 255 255 / .7); font-size: .86rem; line-height: 1.45; }
        &:hover { color: #fff; .menu-promo-link { gap: .55rem; } }
    }
    .menu-promo-link { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--spark); transition: gap .15s; }

    .header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

    .menu-toggle {
        display: none; margin-left: auto; place-items: center; width: 44px; height: 44px; border-radius: 12px;
        border: 1px solid var(--line); background: #fff; color: var(--ink);
        .menu-toggle-close { display: none; }
        &[aria-expanded="true"] { .menu-toggle-open { display: none; } .menu-toggle-close { display: block; } }
    }
    .mobile-nav {
        border-top: 1px solid var(--line); background: #fff; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; padding-block: .75rem 1.5rem;
        .menu-more { margin-inline: .75rem; }
        > .wrap > .btn { margin-top: 1rem; }
    }
    .mobile-title { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 1rem .75rem .4rem; }
    .mobile-links { display: grid; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line);
        a { padding: .8rem .75rem; border-radius: 12px; color: var(--text); font-weight: 600; text-decoration: none; &:hover { background: var(--soft); } }
    }
    .menu-open { overflow: hidden; }

    @media (max-width: 1040px) {
        .nav, .header-actions { display: none; }
        .menu-toggle { display: grid; }
    }
    @media (min-width: 1041px) { .mobile-nav { display: none !important; } }

    /* Píldoras y chips */
    .pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 500; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); color: var(--spark); }
    .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.4rem 1rem; }
    .chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 500; background: rgb(255 255 255 / .1); color: #fff; border: 1px solid rgb(255 255 255 / .15); }

    /* Precios */
    .price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .45rem; margin-block: 1.1rem; }
    .price-value { font-size: 2.3rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
    .price-suffix { color: var(--muted); font-size: .92rem; }
    .price-note { flex-basis: 100%; margin-top: .45rem; font-size: .82rem; color: var(--muted); s { opacity: .8; } }
    .price.on-dark { justify-content: center; .price-suffix { color: rgb(255 255 255 / .7); } }

    /* Tarjetas de plan */
    .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; align-items: stretch; margin-bottom: 2rem; }
    .plans.plans-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .plan {
        position: relative; display: flex; flex-direction: column; padding: 1.6rem 1.4rem 1.4rem;
        background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
        transition: transform .2s ease, box-shadow .2s ease;
        &:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
        h3 { font-size: 1.35rem; }
        .btn { margin-top: auto; }
        .feature-icon { margin-bottom: 1rem; }
    }
    .plan-desc { color: var(--muted); font-size: .93rem; margin-top: .4rem; }
    .plan.is-featured { border: 2px solid var(--volt); box-shadow: 0 24px 48px -24px rgb(46 91 255 / .45); }
    .plan-badge { position: absolute; top: -.85rem; left: 1.2rem; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--volt); color: #fff; font-size: .78rem; font-weight: 600; }
    .plan-dark { background: var(--ink-2); border-color: var(--ink-3); color: #fff;
        .plan-desc, .price-suffix, .price-note { color: rgb(255 255 255 / .65); }
        .checks li { color: rgb(255 255 255 / .85); }
        .checks .i { color: var(--spark); }
    }
    .checks { display: grid; gap: .55rem; margin-block: .4rem 1.6rem; font-size: .92rem;
        li { display: flex; gap: .55rem; align-items: flex-start; }
        .i { margin-top: .2rem; }
        .on .i { color: var(--ok); }
        .off { color: #A0A6B6; }
    }

    /* Funciones */
    .features { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
    .features.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .feature { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
        h3 { margin-block: 1rem .4rem; font-size: 1.08rem; }
        p { color: var(--muted); font-size: .94rem; }
    }
    .feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--volt-soft); color: var(--volt); }

    /* Pasos */
    .steps { display: grid; gap: 1rem; counter-reset: step;
        li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; padding: 1.3rem 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
        li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--ink); color: var(--spark); font-weight: 700; font-size: 1.15rem; }
        strong { font-size: 1.08rem; }
        span { color: var(--muted); font-size: .95rem; }
    }
    .steps.on-dark li { background: var(--ink-2); border-color: var(--ink-3); span { color: rgb(255 255 255 / .7); } &::before { background: var(--spark); color: var(--ink); } }

    /* Preguntas frecuentes */
    .faq { display: grid; gap: .7rem;
        details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; &[open] { border-color: var(--volt); } }
        summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; font-weight: 600; &::-webkit-details-marker { display: none; } .i { transition: transform .2s; color: var(--muted); } }
        details[open] summary .i { transform: rotate(180deg); color: var(--volt); }
        .faq-body { padding: 0 1.25rem 1.2rem; color: var(--muted); }
    }

    /* Logos de clientes (carrusel CSS) */
    .logos { overflow: hidden; padding-block: 2.2rem 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
    .logos-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 40s linear infinite;
        img { height: 40px; width: auto; filter: grayscale(1) brightness(1.9); opacity: .7; }
    }
    .section:not(.dark) .logos-track img, .logos-light img { filter: grayscale(1); opacity: .6; }
    @keyframes marquee { to { transform: translateX(-50%); } }

    /* Respaldo */
    .backing { background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); color: #fff;
        .lead { color: rgb(255 255 255 / .72); margin-block: 1rem 1.6rem; }
        .eyebrow { color: var(--spark); }
        .btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .3); &:hover { border-color: #fff; } }
    }
    .backing-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; @media (max-width: 860px) { grid-template-columns: 1fr; } }
    .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
        div { padding: 1.4rem; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
        dt { font-size: .85rem; color: rgb(255 255 255 / .6); }
        dd { margin: .2rem 0 0; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: var(--spark); }
    }

    /* Banda final */
    .cta-band { background: var(--volt); color: #fff; background-image: radial-gradient(60% 120% at 50% 0%, rgb(255 255 255 / .18), transparent 60%);
        h2 { color: #fff; }
        .lead { color: rgb(255 255 255 / .85); margin-block: 1rem 1.8rem; }
        .fine { color: rgb(255 255 255 / .75); margin-top: 1.2rem; }
        p:has(.link-light) { margin-block: .8rem 1.6rem; }
    }

    /* Pestañas */
    .tabs { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 1.6rem; flex-wrap: wrap; justify-content: center;
        a { padding: .5rem 1rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem; &:hover { color: var(--text); } &[aria-current] { background: var(--ink); color: #fff; } }
    }
    .dark .tabs, .page-hero.dark .tabs { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); a { color: rgb(255 255 255 / .7); &[aria-current] { background: var(--spark); color: var(--ink); } } }

    /* Encabezado de página interna */
    .page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) 1rem; background: radial-gradient(70% 100% at 50% 0%, var(--volt-soft), transparent 70%);
        h1 { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem); }
        .lead { margin-top: 1rem; }
        .btn { margin-top: 1.4rem; }
    }
    .page-hero.dark { background: var(--ink); color: #fff; padding-bottom: 2rem; .lead { color: rgb(255 255 255 / .7); } .eyebrow { color: var(--spark); } }

    /* Video y mapas */
    .video, .map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink);
        iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
    }
    .map { aspect-ratio: 4 / 3; }
    .narrow-video { max-width: 860px; margin-inline: auto; }

    /* Galería */
    .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
        a { display: block; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; &:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); } }
        img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; border-bottom: 1px solid var(--line); }
        span { display: grid; gap: .2rem; padding: 1rem 1.1rem; font-size: .9rem; color: var(--muted); strong { color: var(--text); font-size: 1rem; } }
    }
    .lightbox { border: 0; padding: 0; border-radius: var(--radius); max-width: min(1100px, 94vw); background: #fff; overflow: hidden;
        &::backdrop { background: rgb(11 16 32 / .8); backdrop-filter: blur(4px); }
        img { width: 100%; }
        p { padding: 1rem 1.2rem; color: var(--muted); }
        form { position: absolute; top: .6rem; right: .6rem; }
    }
    .lightbox-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); box-shadow: var(--shadow); }

    /* Botón de WhatsApp */
    .wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 12px 28px -10px rgb(37 211 102 / .8); transition: transform .2s; &:hover { color: #fff; transform: scale(1.06); } }

    /* Pie */
    .site-footer { background: var(--ink); color: rgb(255 255 255 / .7); padding-top: 4rem; font-size: .93rem;
        a { color: rgb(255 255 255 / .75); text-decoration: none; &:hover { color: var(--spark); } }
    }
    .footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3rem;
        @media (max-width: 860px) { grid-template-columns: 1fr 1fr; .footer-brand { grid-column: 1 / -1; } }
        > div:not(.footer-brand) { display: grid; gap: .55rem; align-content: start; }
    }
    .footer-brand { display: grid; gap: 1rem; align-content: start; max-width: 380px; }
    .footer-title { color: #fff; font-weight: 600; margin-bottom: .3rem; }
    .backed { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; .i { margin-top: .2rem; color: var(--spark); } a { color: #fff; text-decoration: underline; } }
    .footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .82rem; color: rgb(255 255 255 / .5); }
}

@layer pages {

    /* Home */
    .hero { background: var(--ink); color: #fff; padding-block: clamp(3rem, 2rem + 5vw, 6rem) 2.5rem; overflow: hidden;
        background-image: radial-gradient(60% 80% at 85% 20%, rgb(46 91 255 / .35), transparent 60%), radial-gradient(40% 50% at 10% 100%, rgb(215 255 63 / .08), transparent 70%);
    }
    .hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; @media (max-width: 900px) { grid-template-columns: 1fr; } }
    .hero-copy {
        h1 { margin-block: 1.3rem 1.2rem; }
        .lead { color: rgb(255 255 255 / .72); max-width: 560px; }
    }
    .spark { color: var(--spark); }
    .hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 2rem 1.6rem; }
    .hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .92rem; color: rgb(255 255 255 / .8);
        li { display: inline-flex; align-items: center; gap: .4rem; }
        .i { color: var(--spark); }
    }
    .hero-visual { position: relative;
        img { position: relative; filter: drop-shadow(0 30px 50px rgb(0 0 0 / .45)); }
    }
    .glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgb(46 91 255 / .6), transparent); filter: blur(40px); }

    .manifesto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; @media (max-width: 760px) { grid-template-columns: 1fr 1fr; }
        figure { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
        img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
        figure:hover img { transform: scale(1.04); }
        figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(11 16 32 / .85), transparent 60%); }
        figcaption { position: absolute; z-index: 1; inset: auto 0 0; padding: 1.1rem; font-size: .95rem; line-height: 1.4; }
    }

    .verticals { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
    .vertical, .card { display: flex; flex-direction: column; gap: .6rem; padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
        &:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
        h2, h3 { font-size: 1.3rem; margin-top: .4rem; }
        p { color: var(--muted); font-size: .95rem; }
    }
    .vertical-price { font-weight: 600; color: var(--text) !important; }
    .vertical-link { margin-top: auto; padding-top: .6rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--volt); }
    .pay-logos { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-block: .3rem; img { height: 22px; width: auto; } }

    /* Planes */
    .table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
    .compare { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px;
        th, td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); text-align: center; }
        th[scope="row"] { text-align: left; font-weight: 500; }
        thead th { font-size: 1rem; vertical-align: bottom; small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; } }
        thead th:first-child { text-align: left; }
        tr:last-child > * { border-bottom: 0; }
        .yes { display: inline-grid; justify-items: center; color: var(--ok); small { color: var(--muted); font-size: .75rem; } }
        .no { display: inline-grid; color: #B9BECB; }
    }
    .extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.4rem;
        > div { padding: 1.3rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
        h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin-bottom: .4rem; }
        p { color: var(--muted); font-size: .93rem; }
    }
    .shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; img { border-radius: var(--radius); box-shadow: var(--shadow); } }

    /* Checkout */
    .checkout-hero { background: var(--ink); color: #fff; padding-block: 2rem 2.6rem;
        background-image: radial-gradient(60% 90% at 90% 0%, rgb(46 91 255 / .35), transparent 60%);
        h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); }
        .lead { color: rgb(255 255 255 / .72); margin-top: 1rem; }
        .eyebrow { color: var(--spark); }
        .fine { color: rgb(255 255 255 / .6); }
    }
    .crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: .85rem; color: rgb(255 255 255 / .6); margin-bottom: 1.8rem;
        a { color: rgb(255 255 255 / .8); text-decoration: none; &:hover { color: #fff; } }
        .i { transform: rotate(-90deg); opacity: .6; }
    }
    .checkout-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; @media (max-width: 900px) { grid-template-columns: 1fr; .checkout-hero-img { display: none; } } }
    .checkout-hero-img { filter: drop-shadow(0 24px 40px rgb(0 0 0 / .45)); }
    .switcher { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 2rem; font-size: .9rem;
        > span:first-child { color: rgb(255 255 255 / .55); margin-right: .3rem; }
        a, .is-active { padding: .4rem .9rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .18); color: #fff; text-decoration: none; }
        a:hover { border-color: #fff; color: #fff; }
        .is-active { background: var(--spark); color: var(--ink); border-color: var(--spark); font-weight: 600; }
    }

    .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; @media (max-width: 991px) { grid-template-columns: 1fr; } }
    .checkout-steps { display: grid; gap: 1.2rem; }
    .step { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s;
        legend { float: left; width: 100%; display: flex; align-items: center; gap: .7rem; font-size: 1.12rem; font-weight: 700; margin-bottom: 1.2rem; }
        legend + * { clear: both; }
        &.is-done { border-color: rgb(15 157 100 / .45); }
    }
    .step-num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .9rem;
        .i { display: none; }
        .is-done & { background: var(--ok); b { display: none; } .i { display: block; } }
    }
    .fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; @media (max-width: 600px) { grid-template-columns: 1fr; } }
    .span-2 { grid-column: 1 / -1; }
    .field { display: grid; gap: .35rem; font-size: .88rem; font-weight: 500; color: var(--muted);
        input { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); color: var(--text); font-size: 1rem; transition: border-color .15s, background .15s, box-shadow .15s;
            &:focus { outline: 0; border-color: var(--volt); background: #fff; box-shadow: 0 0 0 4px var(--volt-soft); }
            &:user-invalid { border-color: var(--bad); }
        }
        small { font-weight: 400; font-size: .8rem; }
    }
    .site-fields { align-items: start; > div:first-child { display: grid; gap: .9rem; } }
    .switch { display: inline-flex; align-items: center; gap: .6rem; font-size: .92rem; cursor: pointer; user-select: none;
        input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s;
            &::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s; }
            &:checked { background: var(--volt); &::after { transform: translateX(18px); } }
        }
    }
    .preview { border-radius: var(--radius-sm); border: 1px solid var(--line); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
    .preview-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .75rem; background: var(--soft); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted);
        i { width: 9px; height: 9px; border-radius: 50%; background: #D5D9E3; }
        span { margin-left: .5rem; padding: .15rem .6rem; border-radius: 6px; background: #fff; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    }
    .preview-body { display: grid; place-items: center; min-height: 140px; padding: 1rem; background: linear-gradient(135deg, var(--ink), var(--volt)); color: #fff; font-weight: 700; font-size: 1.35rem; text-align: center; word-break: break-word; }

    .options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
    .options-2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
    .option { position: relative; display: grid; gap: .15rem; padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s;
        input { position: absolute; opacity: 0; pointer-events: none; }
        strong { font-size: .98rem; }
        small { color: var(--muted); font-size: .82rem; }
        em { font-style: normal; font-weight: 700; margin-top: .4rem; span { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: .2rem; } }
        &:hover { border-color: #B9C3E8; }
        &:has(input:checked) { border-color: var(--volt); background: var(--volt-soft); }
        &:has(input:focus-visible) { outline: 3px solid var(--volt); outline-offset: 2px; }
    }

    .summary { position: sticky; top: 88px; padding: 1.6rem; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 30px 60px -30px rgb(11 16 32 / .6);
        .fine { color: rgb(255 255 255 / .6); margin-top: .8rem; }
        .link-quiet { color: rgb(255 255 255 / .75); font-size: .85rem; margin-bottom: .8rem; &:hover { color: #fff; } }
        @media (max-width: 991px) { position: static; }
    }
    .summary-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
    .lines { display: grid; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid rgb(255 255 255 / .12); }
    .line { display: flex; justify-content: space-between; gap: 1rem; font-size: .93rem;
        > span:first-child { display: grid; small { color: rgb(255 255 255 / .55); font-size: .78rem; } }
        > span:last-child { font-weight: 600; white-space: nowrap; }
        &.is-discount { color: var(--spark); }
    }
    .promo { display: flex; gap: .5rem; margin-top: 1rem;
        input { flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 10px; border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .06); color: #fff; &::placeholder { color: rgb(255 255 255 / .45); } &:focus { outline: 0; border-color: var(--spark); } }
        button { padding: .7rem 1rem; border-radius: 10px; border: 0; background: #fff; color: var(--ink); font-weight: 600; }
    }
    .promo-text { font-size: .85rem; margin-block: .5rem; &:empty { display: none; } &[data-state="ok"] { color: var(--spark); } &[data-state="error"] { color: #FF9B9B; } }
    .total { display: flex; justify-content: space-between; align-items: baseline; margin-block: 1.2rem; span { color: rgb(255 255 255 / .7); } strong { font-size: 2rem; letter-spacing: -.03em; } }
    .form-error { margin-top: .8rem; padding: .7rem .9rem; border-radius: 10px; background: rgb(217 59 59 / .15); color: #FFB4B4; font-size: .88rem; }
    .pay-strip { margin-block: 1rem; border-radius: 10px; background: #fff; padding: .4rem; }
    .included { display: grid; gap: .5rem; font-size: .88rem; color: rgb(255 255 255 / .8);
        li { display: flex; gap: .5rem; align-items: flex-start; }
        .i { color: var(--spark); margin-top: .2rem; }
    }
    .included.big { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; font-size: 1rem; color: var(--text);
        li { padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
        .i { color: var(--ok); }
    }
    .shot { margin-top: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-inline: auto; }
    .pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
        div { display: grid; place-items: center; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
        img { max-height: 44px; width: auto; }
    }
    .mobile-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 45; display: flex; justify-content: space-between; align-items: center; padding: .7rem .7rem .7rem 1.2rem; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 20px 40px -14px rgb(11 16 32 / .7);
        &[hidden] { display: none; }
        &:hover { color: #fff; }
        > span:first-child { display: grid; line-height: 1.15; small { color: rgb(255 255 255 / .6); font-size: .75rem; } }
    }
    body:has(.mobile-bar:not([hidden])) .wa-float { bottom: 5.5rem; }

    /* Comprobante */
    .voucher { max-width: 620px; }
    .voucher-head { text-align: center; margin-bottom: 2rem; h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); margin-block: 1rem .6rem; } }
    .voucher-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; .ok & { background: rgb(15 157 100 / .12); color: var(--ok); } .fail & { background: rgb(217 59 59 / .12); color: var(--bad); } }
    .voucher-rows { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
        div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); &:last-child { border-bottom: 0; } &:nth-child(odd) { background: var(--soft); } }
        dt { color: var(--muted); }
        dd { margin: 0; font-weight: 600; text-align: right; }
    }
    .voucher-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

    /* Nosotros */
    .team { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem;
        figure { text-align: center; }
        img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--volt), var(--shadow); }
        figcaption { display: grid; gap: .2rem; span { color: var(--muted); font-size: .9rem; } }
    }
    .split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; @media (max-width: 860px) { grid-template-columns: 1fr; }
        h2 { margin-bottom: .6rem; }
        .btn { margin-top: 1.4rem; }
    }
    .facts { display: grid; gap: .7rem; margin-top: 1.4rem; li { display: flex; gap: .6rem; align-items: center; } .i { color: var(--volt); } }
    .office { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; @media (max-width: 700px) { grid-template-columns: 1fr; } img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); width: 100%; } }

    /* Soporte */
    .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }

    .notfound { padding-block: 3rem; h1 { margin-block: .5rem 1rem; } .btn { margin-top: 1.6rem; } }
}
