/* ═══════════════════════════════════════════════════════════════════════════
   RODAMIENTOS CARRILLO — Landing corporativa
   Sistema de diseño derivado del logotipo:
     Azul de marca #004179 · Rojo señal #EE2B39 · Acero #A8BBCA · Gris #F5F5F5
   Estrategia: mobile-first · tema claro con secciones oscuras · movimiento ligado al scroll
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────── 1. TOKENS ─────────────── */
:root {
    --navy-950: #00122a;
    --navy-900: #001a38;
    --navy-850: #00204a;
    --navy-800: #00254d;
    --navy-700: #003160;
    --brand:    #004179;
    --blue-500: #0b5cad;
    --blue-400: #2f86e0;
    --blue-300: #7db4f0;
    --blue-200: #bcd9f7;
    --steel-300: #a8bbca;
    --steel-500: #516b8e;
    --red:      #ee2b39;
    --red-600:  #d11f2e;
    --paper:    #f5f5f5;
    --paper-2:  #e9eef4;
    --white:    #ffffff;
    --ink:      #0a1c33;
    --ink-2:    #44566e;
    --ink-3:    #5f7089;
    --line:     rgba(0, 65, 121, .14);

    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --ease:    cubic-bezier(.22, 1, .36, 1);
    --ease-io: cubic-bezier(.65, 0, .35, 1);

    --gutter: clamp(20px, 5vw, 56px);
    --maxw: 1280px;
    --nav-h: 68px;
    --r-lg: 28px;
    --r-md: 18px;
    --shadow-1: 0 1px 2px rgba(0, 26, 56, .06), 0 10px 28px -10px rgba(0, 26, 56, .16);
    --shadow-2: 0 2px 4px rgba(0, 26, 56, .08), 0 34px 70px -24px rgba(0, 26, 56, .34);
}

/* ─────────────── 2. RESET + BASE ─────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-loading, html.menu-open { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: fixed; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 10px;
    background: #fff; color: var(--navy-900); font-weight: 700; transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ─────────────── 3. TIPOGRAFÍA ─────────────── */
.h2 {
    font-size: clamp(2.05rem, 7.6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -.028em;
    font-weight: 800;
    font-variation-settings: "wdth" 108;
    color: var(--navy-900);
    text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--brand); }
.h2--light { color: #fff; }
.h2--light em { color: var(--blue-300); }

.lead { font-size: clamp(1.04rem, 2.6vw, 1.24rem); line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.lead--light { color: rgba(255, 255, 255, .76); }

.kicker {
    display: inline-flex; align-items: center; gap: .7em;
    font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
    margin-bottom: 20px;
}
.kicker span { color: var(--red); font-weight: 700; }
.kicker::after { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .4; }
.kicker--light { color: var(--blue-200); }

.section-head { margin-bottom: clamp(36px, 6vw, 72px); max-width: 920px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: .55em;
    font-weight: 700; font-size: .98rem; color: var(--brand); position: relative; padding-bottom: 4px;
}
.link-arrow::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
    transform: scaleX(.3); transform-origin: left; transition: transform .5s var(--ease);
}
.link-arrow .ico { width: 1.15em; height: 1.15em; transition: transform .5s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow--light { color: #fff; }

.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ─────────────── 4. BOTONES ─────────────── */
.btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .7em;
    padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent;
    font: 700 .95rem/1.1 var(--font); letter-spacing: .005em; text-align: center; color: #fff;
    background: var(--brand); cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s, border-color .3s;
    will-change: transform;
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
    transform: translateX(-130%); transition: transform .9s var(--ease);
}
.btn:hover::before { transform: translateX(130%); }
.btn:active { transform: scale(.97); }
.btn .ico { width: 1.3em; height: 1.3em; }
.btn--sm { padding: .72em 1.15em; font-size: .86rem; }
.btn--lg { padding: 1.05em 1.55em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--red {
    background: linear-gradient(180deg, #f23846 0%, #d11f2e 100%);
    box-shadow: 0 12px 32px -10px rgba(238, 43, 57, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--red:hover { box-shadow: 0 18px 44px -10px rgba(238, 43, 57, .9), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn--navy { background: var(--brand); box-shadow: 0 12px 30px -12px rgba(0, 65, 121, .8); }
.btn--navy:hover { background: var(--blue-500); }
.btn--white { background: #fff; color: var(--navy-900); box-shadow: 0 14px 40px -14px rgba(0, 0, 0, .5); }
.btn--white .ico--wa { color: #1fa855; }
.btn--ghost {
    background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); }
.btn__arrow {
    display: grid; place-items: center; width: 1.95em; height: 1.95em; margin: -.35em -.8em -.35em .15em;
    border-radius: 50%; background: rgba(255, 255, 255, .2); transition: transform .5s var(--ease), background .3s;
}
.btn__arrow svg { width: 1.05em; height: 1.05em; }
.btn:hover .btn__arrow { transform: translateX(5px); background: rgba(255, 255, 255, .32); }
.btn--white .btn__arrow { background: rgba(0, 26, 56, .08); }

/* ─────────────── 5. LOADER ─────────────── */
.no-js .loader { display: none; }
.loader {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; color: #fff;
    visibility: visible;
}
.loader__half {
    position: absolute; left: 0; right: 0; height: 50.4%;
    background: var(--navy-950); transition: transform 1.05s var(--ease-io);
}
.loader__half--top { top: 0; background: radial-gradient(120% 140% at 50% 100%, #00356b 0%, var(--navy-950) 70%); }
.loader__half--bot { bottom: 0; background: radial-gradient(120% 140% at 50% 0%, #00356b 0%, var(--navy-950) 70%); }
.loader__half::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(125, 180, 240, .6), transparent);
}
.loader__half--top::after { bottom: 0; }
.loader__half--bot::after { top: 0; }
.loader__core {
    position: relative; z-index: 2; width: min(84vw, 340px);
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    transition: opacity .5s ease, transform .8s var(--ease);
}
.loader__stage { --s: min(56vw, 210px); position: relative; width: var(--s); aspect-ratio: 1; }
.loader__orbit { position: absolute; inset: 0; animation: spin 3.4s linear infinite; }
.loader__orbit i {
    position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%;
    background: var(--blue-300); opacity: calc(.18 + var(--i) * .07);
    transform: rotate(calc(var(--i) * 30deg)) translateY(calc(var(--s) / -2));
    box-shadow: 0 0 10px rgba(125, 180, 240, .8);
}
.loader__orbit i:first-child { background: var(--red); opacity: 1; box-shadow: 0 0 14px rgba(238, 43, 57, .9); }
.loader__ring {
    position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(125, 180, 240, .38);
    animation: spin 16s linear infinite reverse;
}
.loader__gear {
    position: absolute; left: 50%; top: 50%; width: 44%; height: auto; overflow: visible;
    translate: -69.25% -49.53%; transform-origin: 69.25% 49.53%; animation: rot 5.5s linear infinite;
}
.loader__gear-stroke {
    fill: none; stroke: #fff; stroke-width: 1.1; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 2s var(--ease-io) .15s forwards;
}
.loader__gear-fill { fill: #fff; opacity: 0; animation: fade-in .9s ease 1.55s forwards; }
.loader__brand {
    font: 800 .95rem/1 var(--font); font-variation-settings: "wdth" 125; letter-spacing: .34em; text-transform: uppercase;
    text-align: center; padding-left: .34em;
}
.loader__brand span { display: block; margin-top: .7em; font-weight: 500; font-size: .68rem; letter-spacing: .5em; color: var(--blue-300); }
.loader__meta {
    width: 100%; display: flex; justify-content: space-between; align-items: baseline;
    font: 500 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.loader__pct { color: #fff; font-size: .82rem; }
.loader__pct b { font-weight: 700; font-variant-numeric: tabular-nums; }
.loader__bar { width: 100%; height: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; border-radius: 2px; margin-top: -6px; }
.loader__bar i {
    display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
    background: linear-gradient(90deg, var(--blue-400), #fff 70%, var(--red));
}
.loader.is-done .loader__half--top { transform: translateY(-101%); }
.loader.is-done .loader__half--bot { transform: translateY(101%); }
.loader.is-done .loader__core { opacity: 0; transform: scale(1.12); }
.loader.is-gone { display: none; }

/* ─────────────── 6. PROGRESO / CURSOR / RAIL ─────────────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress i {
    display: block; height: 100%; transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, var(--blue-400), var(--red));
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
    .cursor { display: block; position: fixed; inset: 0; z-index: 1500; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .4s; }
    .has-cursor .cursor { opacity: 1; }
    .cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
    .cursor__dot { width: 6px; height: 6px; margin: -3px; background: #fff; }
    .cursor__ring { width: 38px; height: 38px; margin: -19px; border: 1.5px solid #fff; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s; }
    .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px; background: rgba(255, 255, 255, .9); }
}

.rail { display: none; }
@media (min-width: 1200px) {
    .rail {
        display: flex; flex-direction: column; gap: 0; position: fixed; right: 22px; top: 50%; translate: 0 -50%; z-index: 80;
        mix-blend-mode: difference; opacity: 0; transition: opacity .6s;
    }
    .is-ready .rail { opacity: 1; }
    .rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; height: 26px; width: 30px; color: #fff; }
    .rail a::after {
        content: ""; width: 10px; height: 1.5px; background: currentColor; opacity: .5;
        transition: width .5s var(--ease), opacity .3s;
    }
    .rail a span {
        position: absolute; right: 38px; font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
        opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--ease); white-space: nowrap; pointer-events: none;
    }
    .rail a:hover span, .rail a.is-active span { opacity: 1; transform: none; }
    .rail a:hover::after, .rail a.is-active::after { width: 28px; opacity: 1; }
}

/* ─────────────── 7. NAVBAR + MENÚ MÓVIL ─────────────── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 90; pointer-events: none;
    padding: max(12px, env(safe-area-inset-top)) var(--gutter) 0;
    transition: transform .7s var(--ease);
}
.nav.is-hidden { transform: translateY(-130%); }
.nav:focus-within { transform: none; }
.nav__bar {
    pointer-events: auto; max-width: 1180px; margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 8px 8px 18px; border-radius: 999px;
    background: rgba(0, 26, 56, .5); border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 14px 44px -14px rgba(0, 8, 24, .65);
    transition: background .4s, border-color .4s;
}
.nav.is-scrolled .nav__bar { background: rgba(0, 20, 44, .82); border-color: rgba(125, 180, 240, .2); }
.nav__brand img { height: 27px; width: auto; }
.nav__links { display: none; }
.nav__cta { margin-left: auto; }
.nav__burger { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); flex: none; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu {
    position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(var(--nav-h) + 48px) var(--gutter) max(24px, env(safe-area-inset-bottom));
    background: radial-gradient(120% 90% at 100% 0%, #003a73 0%, var(--navy-950) 60%);
    color: #fff; clip-path: circle(0 at calc(100% - 42px) 38px); transition: clip-path .9s var(--ease-io);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: circle(150% at calc(100% - 42px) 38px); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
    display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
    font: 800 clamp(1.7rem, 8vw, 2.5rem)/1.1 var(--font); letter-spacing: -.02em; font-variation-settings: "wdth" 112;
    opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu__nav a span { font: 500 .72rem/1 var(--mono); color: var(--red); letter-spacing: .1em; }
.menu.is-open .menu__nav a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .06s); }

@media (min-width: 980px) {
    .nav__bar { padding-left: 22px; }
    .nav__brand img { height: 30px; }
    .nav__links { display: flex; gap: 4px; margin-inline: auto; }
    .nav__links a {
        position: relative; padding: 10px 14px; font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .78);
        transition: color .3s;
    }
    .nav__links a::after {
        content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px; background: var(--red);
        transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
    }
    .nav__links a:hover { color: #fff; }
    .nav__links a:hover::after { transform: scaleX(1); }
    .nav__cta { margin-left: 0; }
    .nav__burger { display: none; }
}

/* ─────────────── 8. HERO ─────────────── */
.hero {
    /* El JS recalcula estas variables para alinear dial, HUD y modelo 3D */
    --cx: 50%; --cy: 30svh; --D: min(92vw, 44svh);
    position: relative; isolation: isolate; overflow: clip; color: #fff; background: var(--navy-950);
    min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
    padding: var(--hero-pad, calc(var(--nav-h) + 46svh)) 0 clamp(96px, 16vw, 150px);
}
.hero__bg { position: absolute; inset: 0; z-index: -3; background: radial-gradient(90% 70% at 72% 28%, #00386f 0%, #001d3f 48%, var(--navy-950) 100%); }
.hero__grid {
    position: absolute; left: -60%; right: -60%; bottom: -4%; height: 60%;
    transform-origin: 50% 100%; transform: perspective(520px) rotateX(64deg);
    background-image:
        linear-gradient(rgba(125, 180, 240, .3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 180, 240, .3) 1px, transparent 1px);
    background-size: 64px 64px; animation: grid-fly 4.5s linear infinite;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 88%); mask-image: linear-gradient(to top, #000 0%, transparent 88%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.hero__glow--a { width: 70vmax; height: 70vmax; right: -24vmax; top: -26vmax; background: radial-gradient(circle, rgba(47, 134, 224, .5), transparent 66%); animation: drift 16s ease-in-out infinite alternate; }
.hero__glow--b { width: 50vmax; height: 50vmax; left: -22vmax; bottom: -26vmax; background: radial-gradient(circle, rgba(238, 43, 57, .2), transparent 66%); animation: drift 19s ease-in-out infinite alternate-reverse; }
.hero__gear {
    position: absolute; width: 130vmin; max-width: 1100px; height: auto; right: -34vmin; top: -16vmin; overflow: visible;
    fill: rgba(0, 65, 121, .2); stroke: rgba(125, 180, 240, .2); stroke-width: .4;
    transform-origin: 70.9% 49.5%; animation: rot 110s linear infinite;
}
.hero__scan {
    position: absolute; left: 0; right: 0; top: -160px; height: 160px; pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(125, 180, 240, .09), transparent); animation: scan 8s linear infinite;
}

.hero__dial {
    position: absolute; z-index: 0; left: var(--cx); top: var(--cy); width: var(--D); aspect-ratio: 1;
    translate: -50% -50%; pointer-events: none; opacity: 0; transition: opacity 1.8s var(--ease) .5s;
}
.is-ready .hero__dial { opacity: var(--fade, 1); }
.hero__dial svg { width: 100%; height: 100%; overflow: visible; }
.dial-line { fill: none; stroke: rgba(125, 180, 240, .36); stroke-width: 1; }
.dial-dash { stroke-dasharray: 3 9; }
.dial-ticks { fill: none; stroke: rgba(188, 217, 247, .5); stroke-width: 9; stroke-dasharray: 1.2 8.95; }
.dial-text { font: 500 14px/1 var(--mono); letter-spacing: .2em; fill: rgba(188, 217, 247, .72); }
.dial-a { animation: rot 140s linear infinite; }
.dial-b { animation: rot 100s linear infinite reverse; }

.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease .2s; }
.is-ready .hero__canvas { opacity: var(--fade, 1); }

.hero__fallback { display: none; position: absolute; z-index: 1; left: var(--cx); top: var(--cy); width: calc(var(--D) * .74); translate: -50% -50%; pointer-events: none; }
.no-webgl .hero__fallback { display: block; }
.fb-ring { fill: none; stroke: var(--steel-300); stroke-width: 3; opacity: .55; }
.fb-balls { animation: rot 16s linear infinite; }
.fb-balls circle { fill: #cfd9e6; stroke: #fff; stroke-width: 2; }

.hero__hud { display: none; }
.hero__inner { position: relative; z-index: 3; width: 100%; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .75em; padding: .62em 1.05em; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font: 500 .7rem/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--blue-200);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: ping 2.2s ease-out infinite; }

.hero__title {
    margin: 16px 0 0; font-size: clamp(2.3rem, 11.4vw, 6.4rem); line-height: .96; letter-spacing: -.038em; font-weight: 900;
    font-variation-settings: "wdth" 104;
}
.h1-vis { display: block; }
.line { display: block; overflow: hidden; padding: .02em 0 .14em; margin-bottom: -.14em; }
.line__in { display: inline-block; }
.rot { display: inline-grid; vertical-align: top; }
.rot__cur {
    grid-area: 1 / 1; position: relative; padding-bottom: .04em;
    background: linear-gradient(95deg, var(--blue-300) 0%, #fff 55%, var(--blue-200) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    transition: transform .9s var(--ease), opacity .6s ease;
}
.rot__cur::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .01em; height: .07em; border-radius: 2px; background: var(--red);
    transform-origin: left; animation: underline 2.8s var(--ease-io) infinite;
}
.rot__cur.is-out { transform: translateY(-105%); opacity: 0; }
.rot__cur.is-pre { transform: translateY(105%); opacity: 0; transition: none; }

.hero__lead { margin-top: 16px; max-width: 46ch; font-size: clamp(.95rem, 3.9vw, 1.2rem); line-height: 1.6; color: rgba(255, 255, 255, .8); }
.hero__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.hero__cta .btn { width: 100%; }
.hero__trust { display: none; }
.hero__scroll { display: none; }

/* entrada escalonada (se activa cuando termina el loader) */
.js-ready .hero [data-hero-in] {
    opacity: 0; transform: translateY(26px);
    transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * .1s + .15s);
}
.js-ready .hero .line__in[data-hero-in] { opacity: 1; transform: translateY(108%); }
.is-ready .hero [data-hero-in], .is-ready .hero .line__in[data-hero-in] { opacity: 1; transform: none; }

@media (min-width: 640px) {
    .hero__cta { flex-direction: row; flex-wrap: wrap; }
    .hero__cta .btn { width: auto; }
    .hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: .86rem; color: rgba(255, 255, 255, .7); }
    .hero__trust li { display: flex; align-items: center; gap: .55em; }
    .hero__trust .ico { color: var(--blue-300); width: 1.15em; height: 1.15em; }
}
@media (min-width: 960px) {
    .hero { align-items: center; padding: calc(var(--nav-h) + 40px) 0 clamp(110px, 12vw, 160px); }
    .hero__inner { max-width: var(--maxw); }
    .hero__inner > * { max-width: 56%; }
    .hero__title { font-size: clamp(3.6rem, 6.1vw, 6.6rem); }
    .hero__lead { font-size: 1.16rem; max-width: 40ch; }
    .hero__scroll {
        display: flex; flex-direction: column; align-items: center; gap: 12px; position: absolute; z-index: 4;
        right: var(--gutter); bottom: 112px; color: rgba(255, 255, 255, .6);
        font: 500 .66rem/1 var(--mono); letter-spacing: .24em; text-transform: uppercase;
    }
    .hero__scroll-txt { writing-mode: vertical-rl; }
    .hero__scroll-line { position: relative; width: 1px; height: 64px; background: rgba(255, 255, 255, .2); overflow: hidden; }
    .hero__scroll-line i { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: #fff; animation: cue 2.2s var(--ease-io) infinite; }

    .hero__hud { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
    .hud {
        position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 12px;
        border: 1px solid rgba(125, 180, 240, .3); background: rgba(0, 26, 56, .58);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        font: 500 .66rem/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: #cfe3fb;
        opacity: 0; transition: opacity 1s ease 1.4s; animation: floaty 7s ease-in-out infinite alternate;
    }
    .is-ready .hud { opacity: 1; }
    .hud i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(238, 43, 57, .22); flex: none; }
    .hud b { font-weight: 700; color: #fff; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .2); }
    .hud--a { left: calc(var(--cx) + var(--D) * .04); top: calc(var(--cy) - var(--D) * .53); }
    .hud--b { left: calc(var(--cx) + var(--D) * .02); top: calc(var(--cy) + var(--D) * .43); animation-delay: -2s; }
    .hud--c { left: calc(var(--cx) - var(--D) * .26); top: calc(var(--cy) - var(--D) * .36); animation-delay: -4s; }
    .hud--rpm { right: var(--gutter); top: calc(var(--cy) - var(--D) * .36); animation-delay: -1s; }
    .hud--rpm span { color: var(--blue-300); }
    .hud--rpm b { font-size: 1rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; min-width: 4.4ch; }
    .hud--rpm em { width: 44px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); position: relative; overflow: hidden; }
    .hud--rpm em::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue-400), var(--red)); transform-origin: left; animation: meter 3.2s ease-in-out infinite alternate; }
}

/* ─────────────── 9. CINTA INCLINADA (marquee) ─────────────── */
.marquee {
    position: relative; z-index: 6; overflow: hidden; margin: -42px -3% -42px; transform: rotate(-1.7deg);
    background: linear-gradient(90deg, var(--brand), #00528f 50%, var(--brand));
    border-block: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 24px 60px -24px rgba(0, 18, 42, .7); color: #fff;
}
.marquee__track { display: flex; width: max-content; align-items: center; padding: 15px 0; animation: marquee 46s linear infinite; will-change: transform; }
.marquee__track > * { margin-right: clamp(22px, 3.4vw, 46px); flex: none; }
.marquee span {
    font: 800 clamp(1.25rem, 4.2vw, 2.5rem)/1 var(--font); font-variation-settings: "wdth" 120; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap;
}
.marquee span.o { color: transparent; -webkit-text-stroke: 1.2px #fff; }
.marquee i { width: .75rem; height: .75rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(238, 43, 57, .28); }

/* ─────────────── 10. MANIFIESTO ─────────────── */
.manifesto { position: relative; background: var(--paper); padding: clamp(120px, 21vw, 240px) 0 clamp(90px, 14vw, 180px); }
.manifesto__text {
    max-width: 21em; margin-bottom: clamp(30px, 5vw, 56px);
    font-size: clamp(1.72rem, 6.4vw, 4rem); line-height: 1.13; font-weight: 700; letter-spacing: -.028em; font-variation-settings: "wdth" 104;
    color: var(--navy-900); text-wrap: pretty;
}
.manifesto__text strong { color: var(--brand); font-weight: 800; }
.mw { opacity: calc(.13 + var(--on, 1) * .87); transition: opacity .15s linear; }
.manifesto__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.manifesto__tags li {
    padding: .65em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff;
    font: 500 .76rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}

/* ─────────────── 11. ESCENARIO (imagen que se expande al hacer scroll) ─────────────── */
.stage { position: relative; height: 330vh; background: var(--paper); }
.stage__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.stage__hint {
    position: absolute; z-index: 1; left: 50%; bottom: 7svh; translate: -50% 0; display: flex; align-items: center; gap: .7em;
    font: 500 .72rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.stage__hint .ico { animation: nudge 1.8s var(--ease-io) infinite; color: var(--red); }
.stage__frame {
    position: absolute; inset: 0; color: #fff; overflow: hidden; will-change: clip-path;
    background: radial-gradient(90% 80% at 75% 40%, #004a8a 0%, var(--navy-850) 45%, var(--navy-950) 100%);
}
.stage__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; mix-blend-mode: luminosity; }
.stage__art { position: absolute; inset: 0; display: grid; place-items: center; opacity: .55; will-change: transform; }
.stage__svg { width: min(150vmin, 1300px); height: auto; overflow: visible; }
.st-line { fill: none; stroke: rgba(125, 180, 240, .4); stroke-width: 1; }
.st-dash { stroke-dasharray: 3 9; }
.st-ticks { fill: none; stroke: rgba(188, 217, 247, .5); stroke-width: 14; stroke-dasharray: 1.4 12.6; }
.st-ring { fill: rgba(0, 65, 121, .34); stroke: var(--steel-300); stroke-width: 2.2; }
.st-ring--in { fill: rgba(0, 30, 66, .7); stroke: rgba(168, 187, 202, .7); }
.st-bore { fill: var(--navy-950); stroke: var(--steel-300); stroke-width: 2.2; }
.st-cage { fill: none; stroke: rgba(168, 187, 202, .5); stroke-width: 3; stroke-dasharray: 2 10; }
.st-ball { fill: rgba(201, 214, 230, .5); stroke: rgba(255, 255, 255, .85); stroke-width: 1.5; }
.st-ball--red { fill: var(--red); stroke: #ff8a93; }
.st-hl { fill: rgba(255, 255, 255, .85); }
.st-spin-a { animation: rot 80s linear infinite; }
.st-spin-b { animation: rot 36s linear infinite; }
.stage__words { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; pointer-events: none; }
.stage__words span {
    display: block; font: 900 clamp(5rem, 25vw, 22rem)/.82 var(--font); font-variation-settings: "wdth" 125; text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 1px rgba(125, 180, 240, .22); white-space: nowrap; will-change: transform;
}
.stage__content {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
    padding-top: calc(var(--nav-h) + 8px); padding-bottom: 20px;
}
.stage__content > * {
    --k: 0;
    opacity: clamp(0, calc(var(--c, 1) * 2.4 - var(--k)), 1);
    transform: translateY(calc((1 - clamp(0, calc(var(--c, 1) * 2.4 - var(--k)), 1)) * 34px));
}
.stage__content > :nth-child(2) { --k: .35; }
.stage__content > :nth-child(3) { --k: .8; }
.stage__content .h2 { font-size: clamp(1.9rem, 8.2vw, 4.4rem); max-width: 11em; margin-bottom: 22px; }
.stage__cards { display: grid; gap: 12px; }
.s-card {
    padding: 18px 20px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.s-card__n { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--red); }
.s-card h3 { margin: 8px 0 6px; font-size: clamp(1.3rem, 5vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; font-variation-settings: "wdth" 108; }
.s-card p { font-size: .94rem; line-height: 1.5; color: rgba(255, 255, 255, .74); margin-bottom: 12px; }

@media (min-width: 720px) {
    .stage__cards { grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
    .s-card { padding: 24px 26px; }
}
@media (min-width: 960px) {
    .stage__art { opacity: 1; justify-items: end; }
    .stage__svg { width: min(112vmin, 1010px); margin-right: -15vw; }
}
@media (max-height: 700px) {
    .stage__content .h2 { font-size: clamp(1.6rem, 6.6vw, 2.4rem); margin-bottom: 14px; }
    .s-card { padding: 14px 16px; }
    .s-card p { font-size: .86rem; margin-bottom: 8px; }
}

/* ─────────────── 12. PRODUCTOS · 3D ligado al scroll ─────────────── */
.showcase { position: relative; height: 560vh; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 50%, var(--paper) 100%); }
.showcase__sticky {
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip;
    display: grid; grid-template-rows: minmax(0, 45%) minmax(0, 55%);
}
.showcase__visual { position: relative; min-height: 0; }
.showcase__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.showcase__ring {
    position: absolute; left: 50%; top: 52%; width: min(92vw, 78svh); aspect-ratio: 1; translate: -50% -50%;
    border-radius: 50%; border: 1px dashed rgba(0, 65, 121, .22); animation: rot 90s linear infinite;
}
.showcase__ring--2 { width: min(66vw, 56svh); border-style: solid; border-color: rgba(0, 65, 121, .1); animation-direction: reverse; animation-duration: 60s; }
.showcase__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.showcase__labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.anchor {
    position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 0; opacity: 0; will-change: transform, opacity;
    font: 500 .62rem/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--brand);
}
.anchor i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(238, 43, 57, .22); flex: none; }
.anchor b { position: relative; margin-left: 24px; padding: 6px 9px; border-radius: 8px; background: #fff; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-1); }
.anchor b::before { content: ""; position: absolute; right: 100%; top: 50%; width: 24px; height: 1px; background: var(--brand); }
.anchor--left { flex-direction: row-reverse; }
.anchor--left b { margin-left: 0; margin-right: 24px; }
.anchor--left b::before { right: auto; left: 100%; }
.showcase__tag { position: absolute; left: var(--gutter); bottom: 4px; }
.showcase__tag span {
    display: inline-flex; align-items: center; gap: .6em; padding: .55em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    font: 500 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); box-shadow: var(--shadow-1);
}
.showcase__tag span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: ping 2.2s ease-out infinite; }

.showcase__panels { position: relative; min-height: 0; padding: 0 var(--gutter); }
.showcase__dots { position: absolute; left: var(--gutter); top: -6px; display: flex; gap: 6px; }
.showcase__dots li { width: 20px; height: 3px; border-radius: 3px; background: rgba(0, 65, 121, .18); transition: width .5s var(--ease), background .4s; }
.showcase__dots li.is-on { width: 44px; background: var(--red); }

.panel {
    position: absolute; left: var(--gutter); right: var(--gutter); top: 14px;
    opacity: 0; transform: translateY(26px); pointer-events: none;
    transition: opacity .55s var(--ease), transform .9s var(--ease);
}
.panel.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.panel__label { margin-bottom: 10px; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.panel__label span { color: var(--red); font-weight: 700; margin-right: .6em; }
.panel__title { margin-bottom: 10px; font-size: clamp(1.6rem, 6.4vw, 3.3rem); line-height: 1.03; font-weight: 800; letter-spacing: -.028em; font-variation-settings: "wdth" 108; color: var(--navy-900); }
.panel__text { font-size: clamp(.92rem, 3.5vw, 1.08rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chips li { padding: .55em .9em; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 .66rem/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--brand); }
.parts { margin: 10px 0 14px; counter-reset: p; }
.parts li { display: grid; grid-template-columns: 26px 1fr; padding: 7px 0; border-top: 1px solid var(--line); counter-increment: p; }
.parts li::before { content: counter(p, decimal-leading-zero); grid-row: 1 / 3; font: 500 .68rem/1.6 var(--mono); color: var(--red); }
.parts b { font-weight: 700; font-size: .93rem; color: var(--navy-900); line-height: 1.3; }
.parts span { font-size: .82rem; line-height: 1.35; color: var(--ink-2); }

.no-js .showcase { height: auto; }
.no-js .showcase__sticky { position: static; height: auto; display: block; }
.no-js .panel { position: static; opacity: 1; transform: none; margin-bottom: 40px; }

@media (min-width: 960px) {
    .showcase__sticky { grid-template-rows: none; grid-template-columns: 1.08fr .92fr; }
    .showcase__ring { width: min(60vw, 92svh); }
    .showcase__ring--2 { width: min(44vw, 66svh); }
    .showcase__panels { padding: 0 max(var(--gutter), 5vw) 0 0; }
    .showcase__dots { left: auto; right: max(var(--gutter), 4vw); top: 50%; translate: 0 -50%; flex-direction: column; }
    .showcase__dots li { width: 3px; height: 22px; }
    .showcase__dots li.is-on { width: 3px; height: 48px; }
    .panel { left: 0; right: max(48px, 7vw); top: 50%; translate: 0 -50%; }
    .panel__title { font-size: clamp(2.4rem, 3.8vw, 3.8rem); margin-bottom: 16px; }
    .panel__text { font-size: 1.1rem; }
    .panel__label { margin-bottom: 18px; font-size: .74rem; }
    .parts li { padding: 11px 0; grid-template-columns: 34px 1fr; }
    .parts b { font-size: 1.02rem; }
    .parts span { font-size: .92rem; }
    .chips { margin-top: 22px; }
    .anchor { font-size: .68rem; }
    .showcase__tag { bottom: 28px; }
}
@media (max-height: 720px) and (max-width: 959px) {
    .panel__title { font-size: clamp(1.4rem, 5.6vw, 1.9rem); margin-bottom: 6px; }
    .panel__text { font-size: .88rem; line-height: 1.45; }
    .chips { margin-top: 8px; }
    .parts li { padding: 4px 0; }
    .parts span { display: none; }
}

/* ─────────────── 12b. GALERÍA · fotos + visor ─────────────── */
.gallery { position: relative; background: var(--white); padding: clamp(80px, 12vw, 160px) 0; }
.gallery .section-head { margin-bottom: clamp(28px, 5vw, 56px); }
.gallery .lead { margin-top: 18px; }
.gal__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal__item { min-width: 0; }
.gal__btn {
    position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--paper-2);
    border: 1px solid var(--line); box-shadow: var(--shadow-1); cursor: zoom-in; -webkit-tap-highlight-color: transparent;
    transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .4s;
}
.gal__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gal__btn::after {
    content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; pointer-events: none;
    background: linear-gradient(var(--brand), var(--brand)) center / 14px 2px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 2px 14px no-repeat, #fff;
    box-shadow: 0 8px 20px -6px rgba(0, 26, 56, .5); opacity: 0; transform: scale(.7); transition: opacity .4s, transform .6s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
    .gal__btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(0, 65, 121, .3); }
    .gal__btn:hover img { transform: scale(1.05); }
    .gal__btn:hover::after { opacity: 1; transform: none; }
}
.gal__btn:focus-visible::after { opacity: 1; transform: none; }
.gal__grid.is-collapsed .gal__item:nth-child(n+13) { display: none; }
.gal__more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 48px); }
.gal__more[hidden] { display: none; }
.gal__more .btn:hover .btn__arrow { transform: translateY(4px); }
@media (min-width: 720px) {
    .gal__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .gal__btn { border-radius: 16px; }
}
@media (min-width: 1040px) {
    .gal__grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .gal__btn { border-radius: 18px; }
}

html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 64px 12px 24px; opacity: 0; transition: opacity .4s var(--ease); }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(0, 12, 26, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb__fig { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.lb__img { width: auto; height: auto; max-width: min(100%, 1100px); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); object-fit: contain; border-radius: 12px; background: var(--navy-900); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); transition: opacity .3s ease; }
.lb__img.is-swap { opacity: 0; }
.lb__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; max-width: 60ch; text-align: center; font-size: .92rem; line-height: 1.4; color: rgba(255, 255, 255, .84); }
.lb__cap b { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; color: var(--blue-200); white-space: nowrap; }
.lb__btn {
    position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background .3s, border-color .3s;
}
.lb__btn:hover { background: var(--red); border-color: var(--red); }
.lb__btn .ico { width: 1.35em; height: 1.35em; }
.lb__close { top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); }
.lb__prev, .lb__next { top: 50%; translate: 0 -50%; }
.lb__prev { left: max(8px, env(safe-area-inset-left)); }
.lb__next { right: max(8px, env(safe-area-inset-right)); }
@media (min-width: 720px) {
    .lb { padding: 56px 96px 32px; }
    .lb__btn { width: 56px; height: 56px; }
    .lb__prev { left: 24px; }
    .lb__next { right: 24px; }
    .lb__close { top: 20px; right: 24px; }
}

/* ─────────────── 13. MEDIDAS · plano técnico ─────────────── */
.blueprint { position: relative; height: 440vh; background: var(--navy-950); color: #fff; }
.blueprint__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; display: flex; align-items: stretch; }
.blueprint__grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(125, 180, 240, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 180, 240, .1) 1px, transparent 1px),
        linear-gradient(rgba(125, 180, 240, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 180, 240, .045) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
    -webkit-mask-image: radial-gradient(85% 75% at 62% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(85% 75% at 62% 50%, #000 30%, transparent 100%);
}
.blueprint__sticky::before {
    content: ""; position: absolute; width: 90vmax; height: 90vmax; left: 40%; top: 10%; translate: -50% -50%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(0, 90, 170, .35), transparent 62%);
}
.blueprint__inner {
    position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px;
    padding-top: calc(var(--nav-h) + 14px); padding-bottom: 88px; height: 100%;
}
.blueprint__copy { display: contents; }
.blueprint__copy > .kicker { display: none; order: 0; }
.blueprint__copy > .h2 { order: 1; font-size: clamp(1.55rem, 6.6vw, 2.4rem); }
.blueprint__copy > .lead { display: none; order: 2; }
.blueprint__figure { order: 3; flex: 0 0 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.bp-steps { order: 4; }
.bp-cta { order: 5; }

.bp { width: 100%; height: auto; max-height: 40svh; overflow: visible; color: var(--blue-300); }
.bp-body * { fill: none; stroke: rgba(255, 255, 255, .88); stroke-width: 1.5; stroke-linejoin: round; }
.bp-body .bp-pitch { stroke: rgba(125, 180, 240, .55); stroke-dasharray: 3 6; }
.bp-body .bp-ball { fill: rgba(125, 180, 240, .12); stroke: rgba(255, 255, 255, .85); }
.bp-body .bp-hidden { stroke: rgba(255, 255, 255, .42); stroke-dasharray: 6 5; }
.bp-guide path { fill: none; stroke: rgba(238, 43, 57, .6); stroke-width: 1; stroke-dasharray: 16 4 2 4; }
.bp-dim { color: var(--blue-300); transition: color .4s; }
.bp-dim path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.bp-dim .bp-ext { stroke-width: 1; opacity: .7; stroke-dasharray: 1; }
.bp-dim text { fill: currentColor; stroke: none; font: 500 16px/1 var(--mono); letter-spacing: .05em; paint-order: stroke; }
.bp-dim.is-active { color: #ff5a67; }
.bp-dim.is-active path { stroke-width: 2.2; filter: drop-shadow(0 0 6px rgba(238, 43, 57, .8)); }
.bp-dim.is-active text { font-weight: 700; }
.bp-tag text { fill: rgba(188, 217, 247, .55); stroke: none; font: 500 11px/1 var(--mono); letter-spacing: .2em; }
.bp-caption {
    margin-top: 6px; padding: .6em 1em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
    font: 400 .7rem/1.3 var(--mono); letter-spacing: .04em; color: rgba(255, 255, 255, .78); text-align: center;
    opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.bp-caption.is-on { opacity: 1; transform: none; }
.bp-caption span { color: var(--red); font-weight: 700; margin-right: .5em; text-transform: uppercase; letter-spacing: .1em; }
.bp-caption b { color: #fff; }

.bp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bp-steps li {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 11px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); opacity: .5;
    transition: opacity .4s, background .4s, border-color .4s, transform .6s var(--ease);
}
.bp-steps li.is-active { opacity: 1; border-color: rgba(238, 43, 57, .8); background: rgba(238, 43, 57, .12); transform: translateY(-2px); }
.bp-steps__n { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; border: 1px solid currentColor; font: 700 .85rem/1 var(--mono); }
.bp-steps li.is-active .bp-steps__n { background: var(--red); border-color: var(--red); color: #fff; }
.bp-steps b { display: block; font-size: .78rem; line-height: 1.2; font-weight: 700; }
.bp-steps small { display: none; font-size: .88rem; line-height: 1.4; color: rgba(255, 255, 255, .68); }
.bp-cta { margin-top: 4px; }
.bp-note { display: none; margin-top: 14px; max-width: 42ch; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.bp-cta .btn { width: 100%; }
.js-ready .bp-cta { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.js-ready .bp-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }

.no-js .blueprint { height: auto; }
.no-js .blueprint__sticky { position: static; height: auto; }

@media (min-width: 960px) {
    .blueprint__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(30px, 5vw, 80px); padding-top: calc(var(--nav-h) + 24px); padding-bottom: 28px; }
    .blueprint__copy { display: block; }
    .blueprint__copy > .kicker { display: inline-flex; }
    .blueprint__copy > .h2 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); margin-bottom: 18px; }
    .blueprint__copy > .lead { display: block; margin-bottom: 26px; }
    .blueprint__inner { padding-bottom: 28px; }
    .blueprint__figure { flex: initial; height: 100%; max-height: 78svh; }
    .bp { flex: 1 1 0; height: 100%; max-height: none; min-height: 0; }
    .bp-steps { grid-template-columns: 1fr; gap: 10px; margin-bottom: 4px; }
    .bp-steps li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
    .bp-steps__n { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; flex: none; }
    .bp-steps b { font-size: 1rem; display: block; }
    .bp-steps small { display: block; }
    .bp-cta { margin-top: 22px; }
    .bp-cta .btn { width: auto; }
    .bp-note { display: block; }
    .bp-caption { font-size: .8rem; margin-top: 10px; }
}
@media (max-height: 740px) and (max-width: 959px) {
    .blueprint__copy > .h2 { font-size: clamp(1.3rem, 5.4vw, 1.8rem); }
    .bp-steps li { padding: 7px 9px; }
    .bp-steps b { font-size: .72rem; }
    .bp-caption { display: none; }
}

/* ─────────────── 14. VENTAJAS · bento ─────────────── */
.bento { position: relative; background: var(--paper); padding: clamp(80px, 12vw, 160px) 0; }
.bento__grid { display: grid; gap: 14px; }
.b-card {
    position: relative; isolation: isolate; overflow: hidden; padding: 24px; border-radius: var(--r-lg);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
    transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .4s;
}
.b-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 90, 170, .13), transparent 62%);
}
.b-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: rgba(0, 65, 121, .3); }
.b-card:hover::before { opacity: 1; }
.b-ico { width: 48px; height: 48px; padding: 12px; margin-bottom: 20px; border-radius: 15px; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 65, 121, .8); }
.b-card h3 { font-size: clamp(1.2rem, 4.6vw, 1.55rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; font-variation-settings: "wdth" 106; color: var(--navy-900); margin-bottom: 10px; }
.b-card p { font-size: .98rem; line-height: 1.55; color: var(--ink-2); }
.b-card--chat, .b-card--sectors { color: #fff; border-color: transparent; }
.b-card--chat { background: linear-gradient(155deg, #00305e, var(--navy-950)); }
.b-card--sectors { background: linear-gradient(155deg, var(--brand), #002d57); }
.b-card--chat h3, .b-card--sectors h3 { color: #fff; }
.b-card--chat p, .b-card--sectors p { color: rgba(255, 255, 255, .74); }
.b-card--chat .b-ico, .b-card--sectors .b-ico { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }
.b-card--chat::before, .b-card--sectors::before { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(125, 180, 240, .2), transparent 62%); }

.b-card:nth-child(2) { display: flex; flex-direction: column; }
.meter { margin-top: auto; padding-top: 22px; display: grid; gap: 14px; }
.meter__row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.meter__row i { position: relative; height: 8px; border-radius: 8px; background: rgba(0, 65, 121, .1); overflow: hidden; }
.meter__row i::after { content: ""; position: absolute; inset: 0; border-radius: 8px; transform-origin: left; background: linear-gradient(90deg, var(--blue-400), var(--brand)); animation: meter-fill 5s var(--ease-io) var(--d) infinite alternate; }
@keyframes meter-fill { 0% { transform: scaleX(.28); } 100% { transform: scaleX(var(--w)); } }
.chat { display: grid; gap: 9px; margin-top: 22px; max-width: 420px; }
.chat__msg {
    width: fit-content; max-width: 88%; padding: .75em 1em; border-radius: 16px; font-size: .9rem; line-height: 1.35;
    opacity: 0; animation: chat-in 13s ease infinite;
}
.chat__msg--in { background: rgba(255, 255, 255, .1); border-bottom-left-radius: 4px; }
.chat__msg--out { margin-left: auto; background: #1b9a52; border-bottom-right-radius: 4px; animation-delay: 2.4s; }
.chat__msg--in + .chat__msg--out + .chat__msg--in { animation-delay: 4.8s; }
.chat__typing { display: flex; gap: 5px; width: fit-content; margin-left: auto; padding: .8em 1em; border-radius: 16px; background: #1b9a52; opacity: 0; animation: chat-in 13s ease 7s infinite; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: typing 1.1s ease-in-out infinite; }
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }
.sectors { margin: 24px -24px -24px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .16); overflow: hidden; }
.sectors__track { display: flex; width: max-content; gap: 10px; padding-left: 10px; animation: marquee 30s linear infinite; }
.sectors span { padding: .55em 1em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .26); font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.bento__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
.bento__cta p { font-weight: 700; font-size: 1.15rem; color: var(--navy-900); }

@media (min-width: 720px) {
    .bento__grid { grid-template-columns: repeat(2, 1fr); }
    .b-card--chat { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
    .b-card--chat .chat { margin-top: 0; justify-self: end; width: 100%; }
    .bento__cta { flex-direction: row; align-items: center; gap: 24px; }
}
@media (min-width: 1040px) {
    .bento__grid { grid-template-columns: repeat(12, 1fr); gap: 18px; }
    .b-card { padding: 30px; }
    .b-card--chat { grid-column: span 7; display: block; }
    .b-card--chat .chat { margin-top: 26px; justify-self: auto; }
    .b-card:nth-child(2) { grid-column: span 5; }
    .b-card:nth-child(3) { grid-column: span 4; }
    .b-card:nth-child(4) { grid-column: span 4; }
    .b-card--sectors { grid-column: span 4; }
    .sectors { margin: 28px -30px -30px; }
}

/* ─────────────── 15. PROCESO ─────────────── */
.process { position: relative; isolation: isolate; overflow: clip; background: var(--navy-900); color: #fff; padding: clamp(90px, 13vw, 170px) 0 clamp(130px, 17vw, 230px); }
.process::before {
    content: ""; position: absolute; z-index: -2; inset: 0;
    background: radial-gradient(70% 60% at 85% 40%, rgba(0, 90, 170, .45), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(238, 43, 57, .12), transparent 70%);
}
.process__gear {
    position: absolute; z-index: -1; right: -34vw; top: 52%; width: 96vw; max-width: 900px; translate: 0 -50%;
    rotate: calc(var(--rot, 0) * 1deg); transform-origin: 70.9% 49.5%; pointer-events: none;
}
.process__gear svg { width: 100%; height: auto; overflow: visible; fill: rgba(0, 65, 121, .3); stroke: rgba(125, 180, 240, .32); stroke-width: .4; }
.process__wrap { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 18px; --p: 0; }
.process__rail { position: relative; width: 34px; }
.process__line { position: absolute; left: 50%; top: 12.5%; bottom: 12.5%; width: 2px; translate: -50% 0; background: rgba(255, 255, 255, .16); }
.process__fill { position: absolute; left: 50%; top: 12.5%; width: 2px; height: calc(var(--p) * 75%); translate: -50% 0; background: linear-gradient(to bottom, var(--blue-400), var(--red)); box-shadow: 0 0 14px rgba(238, 43, 57, .5); }
.process__ball {
    position: absolute; left: 50%; top: calc(12.5% + var(--p) * 75%); width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff 0%, var(--steel-300) 40%, var(--steel-500) 88%);
    box-shadow: 0 0 0 6px rgba(125, 180, 240, .18), 0 10px 22px rgba(0, 0, 0, .5); rotate: calc(var(--p) * 1800deg);
}
.process__ball::after { content: ""; position: absolute; left: 50%; top: 14%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red); }
.step { padding: 4px 0 clamp(30px, 7vw, 52px); opacity: .34; transition: opacity .6s var(--ease); }
.step.is-on { opacity: 1; }
.step__n {
    display: block; margin-bottom: 8px; font: 900 clamp(2.4rem, 9vw, 3.6rem)/1 var(--font); font-variation-settings: "wdth" 120; letter-spacing: -.03em;
    color: transparent; -webkit-text-stroke: 1.2px rgba(188, 217, 247, .8); transition: color .6s, -webkit-text-stroke-color .6s;
}
.step.is-on .step__n { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step h3 { font-size: clamp(1.25rem, 4.6vw, 1.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; font-variation-settings: "wdth" 106; }
.step p { font-size: .98rem; line-height: 1.55; color: rgba(255, 255, 255, .72); max-width: 32ch; }
.process__cta { margin-top: clamp(26px, 4vw, 48px); }
.process__cta .btn { width: 100%; }
.diag { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(34px, 6vw, 96px); pointer-events: none; z-index: 2; }
.diag--paper { background: var(--paper); clip-path: polygon(0 100%, 100% 0, 100% 100%); }

@media (min-width: 640px) { .process__cta .btn { width: auto; } }
@media (min-width: 960px) {
    .process__wrap { grid-template-columns: 1fr; gap: 34px; }
    .process__rail { width: 100%; height: 34px; order: -1; }
    .process__line { left: 12.5%; right: 12.5%; top: 50%; bottom: auto; width: auto; height: 2px; translate: 0 -50%; }
    .process__fill { left: 12.5%; top: 50%; width: calc(var(--p) * 75%); height: 2px; translate: 0 -50%; background: linear-gradient(to right, var(--blue-400), var(--red)); }
    .process__ball { left: calc(12.5% + var(--p) * 75%); top: 50%; }
    .process__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
    .step { padding-bottom: 0; }
    .step p { max-width: 26ch; }
}

/* ─────────────── 16. FAQ ─────────────── */
.faq { background: var(--paper); padding: clamp(90px, 13vw, 170px) 0; }
.faq__inner { display: grid; gap: 10px; }
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary {
    display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 0; cursor: pointer;
    font-size: clamp(1.05rem, 4vw, 1.3rem); font-weight: 700; line-height: 1.3; letter-spacing: -.012em; color: var(--navy-900);
}
.qa summary span { transition: color .3s; }
.qa summary:hover span { color: var(--brand); }
.qa summary i {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--brand);
    transition: transform .6s var(--ease), background .3s, color .3s, border-color .3s;
}
.qa summary i svg { width: 18px; height: 18px; }
.qa[open] summary i { transform: rotate(135deg); background: var(--red); border-color: var(--red); color: #fff; }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 0 26px; max-width: 62ch; color: var(--ink-2); line-height: 1.65; }
.qa__body b { color: var(--navy-900); }
@media (min-width: 960px) {
    .faq__inner { grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
    .faq .section-head { position: sticky; top: 120px; margin-bottom: 0; }
    .faq .h2, .contact .h2 { font-size: clamp(2.1rem, 3.7vw, 3.5rem); }
}

/* ─────────────── 17. CTA FINAL ─────────────── */
.finale {
    position: relative; isolation: isolate; overflow: clip; color: #fff; padding: clamp(110px, 18vw, 250px) 0;
    background: linear-gradient(135deg, #00539a 0%, var(--brand) 32%, var(--navy-800) 72%, var(--navy-950) 100%);
}
.finale__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.finale__gear { position: absolute; width: 120vmin; max-width: 1000px; right: -30vmin; top: 50%; translate: 0 -50%; overflow: visible; fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .2); stroke-width: .4; transform-origin: 70.9% 49.5%; animation: rot 100s linear infinite reverse; }
.finale__ring { position: absolute; right: -14vmin; top: 50%; translate: 0 -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.finale__ring--1 { width: 70vmin; aspect-ratio: 1; border-style: dashed; animation: rot 60s linear infinite; }
.finale__ring--2 { width: 98vmin; aspect-ratio: 1; animation: rot 90s linear infinite reverse; }
.finale__ring--3 { width: 130vmin; aspect-ratio: 1; border-color: rgba(255, 255, 255, .08); }
.finale__ring--1::after { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(238, 43, 57, .3), 0 0 24px rgba(238, 43, 57, .9); }
.finale__title { max-width: 11em; margin-bottom: 24px; font-size: clamp(2.5rem, 10.6vw, 7.2rem); line-height: .96; letter-spacing: -.038em; font-weight: 900; font-variation-settings: "wdth" 106; text-wrap: balance; }
.finale__title em { font-style: normal; color: var(--blue-200); }
.finale__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.finale__cta .btn { width: 100%; }
@media (min-width: 640px) { .finale__cta { flex-direction: row; flex-wrap: wrap; } .finale__cta .btn { width: auto; } }

/* ─────────────── 18. CONTACTO ─────────────── */
.contact { background: var(--paper); padding: clamp(80px, 12vw, 160px) 0 clamp(90px, 12vw, 170px); }
.contact__grid { display: grid; gap: 44px; }
.contact__list { margin: 28px 0 0; }
.contact__list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact__list li[hidden] { display: none; }
.contact__list .ico { width: 24px; height: 24px; margin-top: 2px; color: var(--brand); }
.contact__list b { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); color: var(--ink-3); margin-bottom: 4px; font-weight: 500; }
.contact__list a, .contact__list span { font-weight: 700; color: var(--navy-900); }
.qr {
    display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; max-width: 480px; margin-top: 26px; padding: 14px; border-radius: 22px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.qr:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.qr img { width: 112px; border-radius: 12px; border: 1px solid var(--line); }
.qr__txt b { display: block; font-size: 1.15rem; color: var(--navy-900); font-weight: 800; letter-spacing: -.01em; }
.qr__txt small { display: block; margin: 4px 0 10px; font-size: .88rem; line-height: 1.4; color: var(--ink-2); }
.qr__txt em { display: inline-flex; align-items: center; gap: .45em; font-style: normal; font-weight: 700; font-size: .92rem; color: var(--brand); }
.qr__txt em .ico { width: 1.1em; height: 1.1em; transition: transform .5s var(--ease); }
.qr:hover .qr__txt em .ico { transform: translateX(5px); }

.contact__card { position: relative; padding: clamp(22px, 4vw, 42px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.contact__card::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--brand), var(--red)); }
.form { display: grid; gap: 18px; }
.form__title { font-size: clamp(1.3rem, 4.6vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; color: var(--navy-900); font-variation-settings: "wdth" 106; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-size: .84rem; font-weight: 700; color: var(--navy-900); }
.field label i, .field legend i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field input[type="text"], .field textarea {
    width: 100%; padding: .95em 1.05em; border-radius: 14px; border: 1.5px solid rgba(0, 65, 121, .2); background: var(--paper);
    font: 500 1rem/1.4 var(--font); color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #8a99ad; }
.field input:hover, .field textarea:hover { border-color: rgba(0, 65, 121, .4); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 65, 121, .14); }
.field.has-err input, .field.has-err textarea { border-color: var(--red); }
.field__err { min-height: 0; font-size: .8rem; font-weight: 600; color: #c4182a; }
.field-row { display: grid; gap: 18px; }
.field--chips legend { margin-bottom: 9px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span {
    display: inline-block; padding: .7em 1.05em; border-radius: 999px; border: 1.5px solid rgba(0, 65, 121, .22); background: var(--paper);
    font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.pick label:hover span { border-color: var(--brand); color: var(--brand); }
.pick input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0, 65, 121, .8); }
.pick input:focus-visible + span { outline: 2px solid var(--blue-400); outline-offset: 3px; }
.form__note { font-size: .8rem; line-height: 1.5; color: var(--ink-3); text-align: center; }
.form__status { min-height: 0; text-align: center; font-size: .9rem; font-weight: 700; color: var(--brand); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .contact__grid { grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; } .contact__info { position: sticky; top: 110px; } }

/* Ubicación y foto del local (dentro de Contacto) */
.visit { margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.visit .section-head { margin-bottom: clamp(28px, 5vw, 48px); }
.visit__grid { display: grid; gap: 16px; }
.visit__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); background: #fff; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.visit__map { position: relative; min-height: 340px; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); background: #e9edf2; }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.visit__map-link { position: absolute; inset: 0; transition: box-shadow .5s var(--ease); }
.visit__map-link:hover { box-shadow: inset 0 0 0 3px var(--brand); }
.visit__cta { display: flex; margin-top: clamp(24px, 4vw, 36px); }
@media (min-width: 800px) { .visit__grid { grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); gap: 20px; } }

/* ─────────────── 19. FOOTER ─────────────── */
.footer { position: relative; overflow: clip; background: var(--navy-950); color: #fff; padding-top: clamp(60px, 9vw, 120px); }
.footer__big {
    padding-inline: var(--gutter); margin-bottom: clamp(34px, 6vw, 76px); text-align: center; user-select: none;
    font: 900 clamp(3.2rem, 12.2vw, 14rem)/.8 var(--font); font-variation-settings: "wdth" 125; letter-spacing: -.045em; text-transform: uppercase;
}
.footer__big span {
    display: inline-block; padding-bottom: .06em;
    background: linear-gradient(90deg, #fff var(--f, 0%), rgba(255, 255, 255, .1) var(--f, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; }
.footer__brand { grid-column: 1 / -1; max-width: 420px; }
.footer__brand img { width: 190px; margin-bottom: 18px; }
.footer__brand p { color: rgba(255, 255, 255, .66); line-height: 1.55; }
.footer__col h3 { margin-bottom: 14px; font: 500 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); }
.footer__col a:not(.btn) { display: block; padding: 6px 0; color: rgba(255, 255, 255, .78); transition: color .3s, transform .4s var(--ease); }
.footer__col a:not(.btn):hover { color: #fff; transform: translateX(4px); }
.footer__col .btn { margin-bottom: 10px; white-space: nowrap; }
.footer__col:last-child { grid-column: 1 / -1; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 54px; padding-block: 26px calc(26px + 70px); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; color: rgba(255, 255, 255, .55); }
.footer__bottom a { display: inline-flex; align-items: center; gap: .5em; color: rgba(255, 255, 255, .8); }
.footer__bottom a:hover { color: #fff; }
@media (min-width: 880px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .footer__brand, .footer__col:last-child { grid-column: auto; } .footer__bottom { padding-bottom: 26px; } }

/* ─────────────── 20. WHATSAPP FLOTANTE ─────────────── */
.wa-float {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 95;
    display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(34px) scale(.8); pointer-events: none;
    transition: opacity .6s var(--ease), transform .9s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float__btn {
    position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff;
    background: linear-gradient(160deg, #35e57f, #19a64e); box-shadow: 0 16px 36px -10px rgba(37, 211, 102, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .5s var(--ease);
}
.wa-float:hover .wa-float__btn { transform: scale(1.08) rotate(-6deg); }
.wa-float__btn svg { width: 31px; height: 31px; }
.wa-float__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: rgba(37, 211, 102, .55); animation: wa-ping 2.4s ease-out infinite; }
.wa-float__tip {
    padding: .7em 1.05em; border-radius: 999px; background: #fff; color: var(--navy-900); font-weight: 700; font-size: .86rem; white-space: nowrap;
    box-shadow: var(--shadow-2); opacity: 0; transform: translateX(14px); pointer-events: none; transition: opacity .4s ease, transform .6s var(--ease);
}
.wa-float:hover .wa-float__tip, .wa-float.show-tip .wa-float__tip { opacity: 1; transform: none; }

/* ─────────────── 21. REVEAL (solo se oculta si el JS está activo) ─────────────── */
.js-ready [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js-ready [data-reveal].is-in { opacity: 1; transform: none; }
.js-ready [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.js-ready [data-split] .wi { display: inline-block; transform: translateY(114%); transition: transform 1.25s var(--ease); transition-delay: calc(var(--wi, 0) * 42ms); }
.js-ready [data-split].is-in .wi { transform: none; }

/* ─────────────── 22. KEYFRAMES ─────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rot { to { rotate: 360deg; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes grid-fly { to { background-position: 0 64px; } }
@keyframes drift { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.12); } }
@keyframes scan { to { transform: translateY(calc(100vh + 320px)); } }
@keyframes floaty { to { transform: translateY(-10px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(238, 43, 57, .65); } 80%, 100% { box-shadow: 0 0 0 10px rgba(238, 43, 57, 0); } }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes meter { 0% { transform: scaleX(.35); } 100% { transform: scaleX(1); } }
@keyframes cue { 0% { transform: translateY(-110%); } 100% { transform: translateY(260%); } }
@keyframes underline {
    0% { transform: scaleX(0); transform-origin: left; }
    35%, 65% { transform: scaleX(1); transform-origin: left; }
    66% { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
@keyframes chat-in {
    0%, 3% { opacity: 0; transform: translateY(12px) scale(.96); }
    8%, 86% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ─────────────── 23. MOVIMIENTO REDUCIDO ─────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .marquee__track, .sectors__track, .hero__grid, .hero__scan { animation: none !important; }
}
