/* ================================================================
   XTREMETECS — CINEMATIC EXPERIENCE
   Paleta: --bg #1f242d · --second #323946 · --main #0ef
   Tipografía: Archivo (display) + Poppins (texto)
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; border: none; outline: none; text-decoration: none; }

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
    --deep: #0a0e14;
    --deep-2: #0d1420;
    --line: rgba(0, 238, 255, 0.14);
    --glass: rgba(23, 30, 40, 0.55);
    --glass-strong: rgba(18, 24, 33, 0.78);
    --muted: rgba(214, 226, 235, 0.62);
    --font-display: 'Archivo', 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* auth.css está dimensionado en rem contra esta raíz */
html { font-size: 72.5%; scroll-behavior: smooth; }

html, body { overflow-x: clip; }

/* Menú móvil abierto: congela el scroll del fondo para que el mundo 3D (guiado por
   el scroll) no se mueva detrás del panel. */
html.nav-open, html.nav-open body { overflow: hidden; }

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

::selection { background: rgba(0, 238, 255, 0.25); color: #fff; }

/* ---------------- Canvas 3D ---------------- */
#cine-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.no-webgl #cine-canvas { display: none; }
.no-webgl body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(0, 238, 255, 0.10), transparent 60%),
        radial-gradient(900px 600px at 50% 110%, rgba(0, 160, 255, 0.06), transparent 60%),
        linear-gradient(180deg, #0a0e14, #0d1420);
}

/* ---------------- Contenido sobre el canvas ---------------- */
.cine-content { position: relative; z-index: 2; }

section { position: relative; }

.shell { width: min(124rem, 92vw); margin-inline: auto; }

/* ---------------- Header ---------------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 4vw;
    transition: background .45s ease, backdrop-filter .45s ease, border-color .45s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(10, 14, 20, 0.62);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.logo {
    font-size: 2.6rem;
    color: var(--text-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    letter-spacing: .02em;
    font-family: var(--font-display);
}

.logo-x { height: 3.6rem; width: auto; margin-right: .2rem; }
.color-logo { color: #fff; }
.logo-blue { color: var(--main-color); }

.navbar { display: flex; align-items: center; gap: 2.6rem; }

.navbar > a {
    position: relative;
    font-size: 1.45rem;
    letter-spacing: .04em;
    color: rgba(230, 240, 246, .78);
    transition: color .3s;
    padding: .4rem 0;
    white-space: nowrap;
}

.navbar > a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--main-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s cubic-bezier(.65,.05,.36,1);
}

.navbar > a:hover, .navbar > a.active { color: var(--main-color); }
.navbar > a:hover::after, .navbar > a.active::after { transform: scaleX(1); transform-origin: left; }
.navbar > a:has(.check)::after { display: none; }

#menu-icon {
    font-size: 2.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
    z-index: 210;
}

/* ---------------- Dots de navegación lateral ---------------- */
.cine-dots {
    position: fixed;
    right: 2.2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.cine-dots a {
    width: .8rem; height: .8rem;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    transition: background .3s, box-shadow .3s, transform .3s;
}

.cine-dots a.on {
    background: var(--main-color);
    box-shadow: 0 0 12px rgba(0,238,255,.8);
    transform: scale(1.25);
}

/* ---------------- Tipografía display ---------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--main-color);
}

.eyebrow::before {
    content: '';
    width: 3.4rem; height: 1px;
    background: linear-gradient(90deg, transparent, var(--main-color));
}

.display {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: .96;
    letter-spacing: -0.015em;
}

.display .alt {
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0;
    color: rgba(233, 244, 250, .95);
}

.display .accent { color: var(--main-color); }

.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line .word { display: inline-block; white-space: nowrap; }
.split-line .char { display: inline-block; white-space: pre; will-change: transform; }

.lead { color: var(--muted); font-weight: 300; max-width: 52ch; }

/* ---------------- HERO ---------------- */
.hero {
    min-height: 175vh;
}

.hero-stage {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 4vw 8.5rem;
}

/* Scrim cinematográfico: oscurece muy sutilmente la banda donde vive el texto
   para que el título blanco lea perfecto sobre cualquier zona del mundo 3D
   (el haz brillante, la nebulosa, etc.) sin apagar la escena. */
.hero-stage::before {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 70%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 7, 11, .28) 55%, rgba(4, 7, 11, .62) 100%);
}

.hero-inner { position: relative; }

.hero-title {
    font-size: clamp(3.4rem, 7.2vw, 9.6rem);
    text-shadow: 0 2px 24px rgba(2, 6, 12, .55), 0 1px 3px rgba(2, 6, 12, .55);
    text-wrap: balance;
}

/* línea cinética: "AGENTES DE IA QUE [palabra rotatoria]" */
.hero-kinetic {
    margin-top: 2.2rem;
    display: flex;
    align-items: baseline;
    gap: 1.4rem;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.8rem, 2.6vw, 3.4rem);
    text-transform: uppercase;
    letter-spacing: .01em;
}

.hk-fixed { color: rgba(233, 244, 250, .9); }

.hk-rotator {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    min-width: 12ch;
}

.hk-word {
    display: inline-block;
    color: var(--main-color);
    font-weight: 700;
    text-shadow: 0 0 30px rgba(0, 238, 255, .45);
    will-change: transform, opacity, filter;
    white-space: nowrap;
}

.hk-rotator::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--main-color), transparent);
}

.hero-sub {
    margin-top: 2.4rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-sub .lead { font-size: clamp(1.4rem, 1.4vw, 1.8rem); }

.hero-ctas { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.btn-cine {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 2.9rem;
    border-radius: 100rem;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: .05em;
    color: #041318;
    background: var(--main-color);
    box-shadow: 0 0 22px rgba(0, 238, 255, .35), inset 0 0 0 1px rgba(255,255,255,.25);
    transition: transform .35s cubic-bezier(.2,.9,.3,1.4), box-shadow .35s;
    cursor: pointer;
    overflow: hidden;
}

.btn-cine:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 38px rgba(0, 238, 255, .55), inset 0 0 0 1px rgba(255,255,255,.3); }

.btn-ghost {
    background: transparent;
    color: #dff6fb;
    box-shadow: inset 0 0 0 1px rgba(0, 238, 255, .35);
}

.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(0, 238, 255, .8), 0 0 24px rgba(0,238,255,.2); }

.hero-eyebrow-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-social { display: flex; gap: 1.1rem; }

.hero-social a {
    width: 3.8rem; height: 3.8rem;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--main-color);
    font-size: 1.7rem;
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.3);
    transition: .35s;
}

.hero-social a:hover { background: var(--main-color); color: #041318; box-shadow: 0 0 22px rgba(0,238,255,.5); transform: translateY(-3px); }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 2.6rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    color: rgba(220, 240, 248, .55);
    font-size: 1.05rem;
    letter-spacing: .34em;
    text-transform: uppercase;
}

.scroll-cue .wheel {
    width: 2.2rem; height: 3.6rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(0, 238, 255, .45);
    position: relative;
}

.scroll-cue .wheel::after {
    content: '';
    position: absolute;
    left: 50%; top: .6rem;
    width: .3rem; height: .8rem;
    margin-left: -.15rem;
    border-radius: .3rem;
    background: var(--main-color);
    animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(1.3rem); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------------- MANIFIESTO (scrub palabra a palabra) ---------------- */
.manifesto { min-height: 320vh; }

.manifesto-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    place-items: center;
    overflow: clip;
    padding: 0 4vw;
}

.mani-frame { max-width: 100rem; text-align: center; }
.mani-frame .eyebrow { justify-content: center; margin-bottom: 3rem; }
.mani-frame .eyebrow::before { display: none; }

.mani-flow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 4.6rem);
    line-height: 1.32;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.mani-flow .mw {
    display: inline-block;
    opacity: 0.1;
    transition: none;
    will-change: opacity;
}

.mani-flow .mw.acc {
    color: var(--main-color);
    position: relative;
}

.mani-flow .mw.acc.lit { text-shadow: 0 0 26px rgba(0, 238, 255, .55); }

.mani-sign {
    margin-top: 3.4rem;
    color: var(--muted);
    font-size: 1.35rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: 0;
}

/* ---------------- AGENTE (robot close-up) ---------------- */
.agent { min-height: 300vh; }

.agent-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4vw;
    pointer-events: none;
}

.agent-stage > * { pointer-events: auto; }

/* columna izquierda: título + rail secuencial; el robot vive a la derecha */
.agent-left {
    width: min(48rem, 90vw);
    display: flex;
    flex-direction: column;
    gap: 3.6rem;
}

.agent-head h2 { font-size: clamp(2.6rem, 4vw, 5.2rem); }

.agent-rail { position: relative; min-height: 24rem; }

.agent-slide {
    position: absolute;
    inset: 0 0 auto 0;
    padding: 2.6rem 2.8rem;
    border-radius: 2rem;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(0, 238, 255, .16), 0 24px 60px rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
    overflow: hidden;
}

.agent-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 2rem; right: 55%;
    height: 1px;
    background: linear-gradient(90deg, var(--main-color), transparent);
}

.agent-slide i {
    font-size: 2.1rem;
    color: var(--main-color);
    margin-bottom: 1.4rem;
    display: inline-grid;
    place-items: center;
    width: 4.8rem; height: 4.8rem;
    border-radius: 1.3rem;
    background: rgba(0, 238, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(0, 238, 255, .22), 0 0 24px rgba(0,238,255,.1);
}

.agent-slide h3 { font-size: 2.3rem; font-weight: 700; font-family: var(--font-display); }
.agent-slide p { color: var(--muted); font-size: 1.5rem; margin-top: .8rem; font-weight: 300; }

.agent-railfoot {
    position: absolute;
    left: 0.4rem;
    bottom: -4.6rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.agent-count {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: .3em;
    color: var(--main-color);
}

.agent-ticks { display: flex; gap: .7rem; }

.agent-ticks span {
    width: 3.6rem; height: .3rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.14);
    position: relative;
    overflow: hidden;
}

.agent-ticks span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--main-color);
    box-shadow: 0 0 8px rgba(0,238,255,.7);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

/* ---------------- SERVICIOS ---------------- */
.services { min-height: 620vh; }

.services-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: clip;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10rem 4vw 4rem;
}

.services-head { margin-bottom: 4rem; }
.services-head h2 { font-size: clamp(2.6rem, 4.4vw, 5.6rem); }

.services-body {
    display: grid;
    grid-template-columns: minmax(30rem, 46rem) 1fr;
    gap: clamp(2rem, 6vw, 9rem);
    align-items: center;
    flex: 1;
    min-height: 0;
}

.service-slides { position: relative; min-height: 30rem; }

.service-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.service-slide .num {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: .35em;
    color: var(--main-color);
    margin-bottom: 1.6rem;
}

.service-slide h3 { font-size: clamp(2.2rem, 2.6vw, 3.4rem); font-family: var(--font-display); font-weight: 700; line-height: 1.1; }
.service-slide p { color: var(--muted); margin-top: 1.4rem; font-weight: 300; max-width: 44ch; }

.service-slide ul { list-style: none; margin-top: 2rem; display: grid; gap: .9rem; }
.service-slide li { display: flex; gap: 1.1rem; align-items: baseline; font-size: 1.4rem; color: rgba(226, 240, 246, .85); }
.service-slide li i { color: var(--main-color); font-size: 1.2rem; }

.service-visuals {
    position: relative;
    height: min(52vh, 50rem);
    perspective: 1200px;
}

.service-visual {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.holo-panel {
    width: min(46rem, 100%);
    border-radius: 2rem;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.18), 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(0,238,255,.06);
    padding: 2.6rem;
    position: relative;
    overflow: hidden;
}

.holo-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(0,238,255,.06) 45%, transparent 60%);
    animation: holo-sheen 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes holo-sheen { 0%,100% { transform: translateX(-60%);} 50% { transform: translateX(60%);} }

.holo-bar {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 2rem;
    color: rgba(210, 235, 244, .6);
    font-size: 1.2rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.holo-bar .dots { display: flex; gap: .5rem; margin-right: .6rem; }
.holo-bar .dots span { width: .9rem; height: .9rem; border-radius: 50%; background: rgba(255,255,255,.14); }
.holo-bar .dots span:first-child { background: rgba(0,238,255,.7); }

/* micro-escenas dentro de los paneles */
.mini-chat { display: grid; gap: 1rem; }
.mini-bubble {
    max-width: 78%;
    padding: 1rem 1.4rem;
    border-radius: 1.4rem;
    font-size: 1.3rem;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(8px);
    animation: bubble-in .5s forwards;
}
.mini-bubble.u { justify-self: end; background: rgba(255,255,255,.08); border-bottom-right-radius: .4rem; }
.mini-bubble.a { justify-self: start; background: rgba(0,238,255,.12); box-shadow: inset 0 0 0 1px rgba(0,238,255,.25); border-bottom-left-radius: .4rem; }
.service-visual.on .mini-bubble:nth-child(1) { animation-delay: .15s; }
.service-visual.on .mini-bubble:nth-child(2) { animation-delay: .55s; }
.service-visual.on .mini-bubble:nth-child(3) { animation-delay: 1.0s; }
.service-visual.on .mini-bubble:nth-child(4) { animation-delay: 1.5s; }

@keyframes bubble-in { to { opacity: 1; transform: none; } }

.mini-wave { display: flex; align-items: center; justify-content: center; gap: .55rem; height: 9rem; }
.mini-wave span {
    width: .55rem;
    height: 1.6rem;
    border-radius: .5rem;
    background: var(--main-color);
    box-shadow: 0 0 10px rgba(0,238,255,.6);
    animation: wave 1s ease-in-out infinite;
}
.mini-wave span:nth-child(2n) { animation-delay: .15s; }
.mini-wave span:nth-child(3n) { animation-delay: .3s; }
.mini-wave span:nth-child(5n) { animation-delay: .45s; }

@keyframes wave { 0%,100% { transform: scaleY(.5);} 50% { transform: scaleY(2.4);} }

.mini-flow { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.mini-node {
    width: 6.4rem; height: 6.4rem;
    border-radius: 1.6rem;
    display: grid; place-items: center;
    font-size: 2.2rem;
    color: var(--main-color);
    background: rgba(0,238,255,.07);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.28);
}
.mini-node.core { border-radius: 50%; background: rgba(0,238,255,.14); animation: pulse-core 2.2s ease-in-out infinite; }
@keyframes pulse-core { 0%,100% { box-shadow: inset 0 0 0 1px rgba(0,238,255,.4), 0 0 0 0 rgba(0,238,255,.35);} 50% { box-shadow: inset 0 0 0 1px rgba(0,238,255,.6), 0 0 0 14px rgba(0,238,255,0);} }
.mini-link { flex: 1; height: 1px; margin: 0 1rem; background: linear-gradient(90deg, rgba(0,238,255,.5), rgba(0,238,255,.1)); position: relative; overflow: visible; }
.mini-link::after {
    content: '';
    position: absolute;
    top: -.25rem;
    width: .6rem; height: .6rem;
    border-radius: 50%;
    background: var(--main-color);
    box-shadow: 0 0 8px var(--main-color);
    animation: packet 1.6s linear infinite;
}
@keyframes packet { from { left: 0; opacity: 0;} 15% { opacity: 1;} 85% { opacity: 1;} to { left: 100%; opacity: 0;} }

.mini-doc { display: flex; gap: 2rem; align-items: center; }
.mini-doc .page {
    width: 11rem; height: 14rem;
    border-radius: .8rem;
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
    padding: 1.4rem 1.2rem;
    display: grid;
    gap: .8rem;
    align-content: start;
    position: relative;
    overflow: hidden;
}
.mini-doc .page i { height: .5rem; border-radius: .3rem; background: rgba(255,255,255,.16); display: block; }
.mini-doc .page i.hl { background: rgba(0,238,255,.5); }
.mini-doc .page::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--main-color);
    box-shadow: 0 0 14px 3px rgba(0,238,255,.55);
    animation: scanline 2.2s ease-in-out infinite;
}
@keyframes scanline { 0% { top: 8%; } 50% { top: 88%; } 100% { top: 8%; } }
.mini-doc .out { display: grid; gap: 1rem; flex: 1; }
.mini-tag {
    padding: .9rem 1.3rem;
    border-radius: .9rem;
    background: rgba(0,238,255,.09);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.25);
    color: #bdf4fc;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: .8rem;
    opacity: 0;
    transform: translateX(10px);
    animation: bubble-in .5s forwards;
}
.service-visual.on .mini-tag:nth-child(1) { animation-delay: .4s; }
.service-visual.on .mini-tag:nth-child(2) { animation-delay: .8s; }
.service-visual.on .mini-tag:nth-child(3) { animation-delay: 1.2s; }

.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.mini-cell {
    height: 3.2rem;
    border-radius: .5rem;
    background: rgba(255,255,255,.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: rgba(220,240,248,.7);
}
.mini-cell.head { background: rgba(0,238,255,.10); color: #aef2fb; font-weight: 600; }
.mini-cell.val { color: #7df0d0; }

.service-progress {
    display: flex;
    gap: .8rem;
    margin-top: 3rem;
}

.service-progress span {
    height: .35rem;
    flex: 1;
    max-width: 5.4rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.12);
    position: relative;
    overflow: hidden;
}

.service-progress span::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--main-color);
    box-shadow: 0 0 10px rgba(0,238,255,.7);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

/* ---------------- PLATAFORMA ---------------- */
.platform { min-height: 300vh; }

.platform-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4.5rem;
    padding: 11rem 4vw 5rem;
}

.platform-head { max-width: 86rem; }
.platform-head h2 { font-size: clamp(2.8rem, 4.6vw, 6rem); }
.platform-head .lead { margin-top: 1.6rem; }

.platform-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-line {
    position: absolute;
    top: 4.2rem;
    left: 8%;
    right: 8%;
    height: 1px;
    background: rgba(0, 238, 255, .12);
    overflow: hidden;
}

.step-line span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--main-color), rgba(0,238,255,.2));
    box-shadow: 0 0 12px rgba(0,238,255,.6);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

.plat-step {
    position: relative;
    padding: 2.8rem 2.4rem 2.6rem;
    border-radius: 2rem;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(0, 238, 255, .14), 0 24px 60px rgba(0, 0, 0, .45);
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
    overflow: hidden;
}

.plat-step::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(0,238,255,.05) 45%, transparent 60%);
    animation: holo-sheen 6s ease-in-out infinite;
    pointer-events: none;
}

.step-num {
    position: absolute;
    top: 1.4rem;
    right: 2rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 4.6rem;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 238, 255, .35);
}

.plat-step i {
    font-size: 2.1rem;
    color: var(--main-color);
    display: inline-grid;
    place-items: center;
    width: 5rem; height: 5rem;
    border-radius: 1.4rem;
    background: rgba(0, 238, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(0, 238, 255, .25), 0 0 24px rgba(0,238,255,.12);
    margin-bottom: 1.8rem;
}

.plat-step h3 { font-size: 2rem; font-weight: 700; font-family: var(--font-display); }
.plat-step p { color: var(--muted); font-size: 1.4rem; font-weight: 300; margin-top: .8rem; }

.platform-cta {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    flex-wrap: wrap;
}

.platform-note { color: var(--muted); font-size: 1.3rem; }

/* ---------------- RESULTADOS ---------------- */
.results { min-height: 220vh; }

.results-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10rem 4vw 6rem;
}

.results-head { max-width: 78rem; }
.results-head h2 { font-size: clamp(2.8rem, 4.6vw, 6rem); }

.stats {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
}

.stat {
    padding: 2.6rem 2.4rem;
    border-radius: 1.8rem;
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.13), 0 20px 50px rgba(0,0,0,.4);
    opacity: 0;
    transform: translateY(30px);
}

.stat .val {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 3.6vw, 4.8rem);
    color: var(--main-color);
    text-shadow: 0 0 26px rgba(0,238,255,.4);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: .3rem;
}

.stat .val small { font-size: .45em; font-weight: 700; }
.stat h4 { margin-top: 1.2rem; font-size: 1.55rem; font-weight: 600; }
.stat p { color: var(--muted); font-size: 1.3rem; font-weight: 300; margin-top: .4rem; }

/* ---------------- DEMO (chat) ---------------- */
.demo-cine { min-height: 160vh; padding: 16vh 4vw; display: grid; place-items: center; }

.demo-wrap { width: min(78rem, 100%); }

.demo-head { text-align: center; margin-bottom: 3.6rem; }
.demo-head h2 { font-size: clamp(2.6rem, 4vw, 5.2rem); }
.demo-head p { color: var(--muted); margin-top: 1rem; font-weight: 300; }
.demo-head .eyebrow { justify-content: center; margin-bottom: 1.6rem; }
.demo-head .eyebrow::before { display: none; }

.console {
    border-radius: 2.4rem;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.16), 0 40px 100px rgba(0,0,0,.55), 0 0 80px rgba(0,238,255,.05);
    overflow: hidden;
}

.console-top {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 2rem 2.6rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.orb {
    position: relative;
    width: 4.6rem; height: 4.6rem;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #b8f6ff, #0ef 45%, #036a86 100%);
    box-shadow: 0 0 24px rgba(0,238,255,.55);
    animation: orb-breathe 3.2s ease-in-out infinite;
}

@keyframes orb-breathe { 0%,100% { box-shadow: 0 0 18px rgba(0,238,255,.45);} 50% { box-shadow: 0 0 34px rgba(0,238,255,.8);} }

.console-top h3 { font-size: 1.8rem; font-weight: 600; }

.console-status { display: flex; align-items: center; gap: .7rem; color: #7df0d0; font-size: 1.2rem; }
.console-status::before { content: ''; width: .8rem; height: .8rem; border-radius: 50%; background: #7df0d0; box-shadow: 0 0 8px #7df0d0; animation: orb-breathe 2s infinite; }

.dx-chat-area {
    height: 34rem;
    overflow-y: auto;
    padding: 2.4rem 2.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,238,255,.3) transparent;
}

.dx-message { display: flex; }
.dx-message.user { justify-content: flex-end; }
.dx-message.ai { justify-content: flex-start; }

.dx-bubble {
    max-width: 76%;
    padding: 1.3rem 1.7rem;
    border-radius: 1.6rem;
    font-size: 1.4rem;
    line-height: 1.5;
    background: rgba(255,255,255,.08);
    border-bottom-right-radius: .5rem;
}

.dx-bubble.ai-glow {
    background: rgba(0,238,255,.10);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.22);
    border-bottom-right-radius: 1.6rem;
    border-bottom-left-radius: .5rem;
}

.dx-time { display: block; margin-top: .6rem; font-size: 1.05rem; opacity: .45; }

.attached-image { max-width: 20rem; border-radius: 1rem; display: block; margin-bottom: .8rem; }

.dx-typing { display: inline-flex; gap: .5rem; padding: 1.4rem 1.8rem; background: rgba(0,238,255,.08); border-radius: 1.6rem; }
.dx-typing-dot {
    width: .7rem; height: .7rem;
    border-radius: 50%;
    background: var(--main-color);
    animation: typing 1.2s ease-in-out infinite;
}
.dx-typing-dot:nth-child(2) { animation-delay: .18s; }
.dx-typing-dot:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%,100% { transform: translateY(0); opacity: .5;} 50% { transform: translateY(-.5rem); opacity: 1;} }

.dx-file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 2.6rem;
    padding: 1rem 1.4rem;
    border-radius: 1rem;
    background: rgba(0,238,255,.08);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.2);
    font-size: 1.3rem;
}

.dx-badge { display: flex; align-items: center; gap: .8rem; color: #bdf4fc; }
.dx-remove { background: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1.5rem; }

.console-input {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.8rem 2.6rem 2.4rem;
}

.console-input .field {
    flex: 1;
    display: flex;
}

.console-input input[type="text"] {
    width: 100%;
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
    border-radius: 100rem;
    padding: 1.4rem 2rem;
    color: #fff;
    font-size: 1.4rem;
    font-family: var(--font-body);
    transition: box-shadow .3s;
}

.console-input input[type="text"]:focus { box-shadow: inset 0 0 0 1px rgba(0,238,255,.5), 0 0 18px rgba(0,238,255,.15); }
.console-input input::placeholder { color: rgba(255,255,255,.35); }

.dx-btn {
    width: 4.6rem; height: 4.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: .3s;
    flex-shrink: 0;
}

.dx-attach { background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.dx-attach:hover { color: var(--main-color); box-shadow: inset 0 0 0 1px rgba(0,238,255,.5); }

.dx-send { background: var(--main-color); color: #041318; box-shadow: 0 0 20px rgba(0,238,255,.4); }
.dx-send:hover { transform: scale(1.07); box-shadow: 0 0 32px rgba(0,238,255,.65); }
.dx-send:disabled { opacity: .5; }

/* ---------------- SALA DE SIMULACIÓN (demo) ---------------- */
.sim {
    border-radius: 2.4rem;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.16), 0 40px 100px rgba(0,0,0,.55), 0 0 80px rgba(0,238,255,.05);
    overflow: hidden;
}

.sim-tabs {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.8rem 2.2rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}

.sim-tab {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.9rem;
    border-radius: 100rem;
    background: rgba(255,255,255,.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
    color: rgba(230,242,248,.75);
    font-size: 1.3rem;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: .3s;
}

.sim-tab:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(0,238,255,.4); }

.sim-tab.on {
    background: rgba(0,238,255,.12);
    color: var(--main-color);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.5), 0 0 18px rgba(0,238,255,.15);
}

.sim-replay {
    margin-left: auto;
    width: 3.8rem; height: 3.8rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
    color: rgba(230,242,248,.75);
    font-size: 1.4rem;
    cursor: pointer;
    transition: .3s;
}

.sim-replay:hover { color: var(--main-color); box-shadow: inset 0 0 0 1px rgba(0,238,255,.5); transform: rotate(90deg); }

.sim-body {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    min-height: 34rem;
}

.sim-chat {
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    overflow-y: auto;
    max-height: 40rem;
    border-right: 1px solid rgba(255,255,255,.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,238,255,.3) transparent;
}

.sim-msg {
    max-width: 82%;
    padding: 1.2rem 1.6rem;
    border-radius: 1.5rem;
    font-size: 1.38rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(12px);
}

.sim-msg.u { align-self: flex-end; background: rgba(255,255,255,.08); border-bottom-right-radius: .4rem; }

.sim-msg.a {
    align-self: flex-start;
    background: rgba(0,238,255,.1);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.22);
    border-bottom-left-radius: .4rem;
}

.sim-msg .sim-who { display: block; font-size: 1.02rem; letter-spacing: .16em; text-transform: uppercase; opacity: .5; margin-bottom: .4rem; }

.sim-typing {
    align-self: flex-start;
    display: inline-flex;
    gap: .5rem;
    padding: 1.2rem 1.6rem;
    border-radius: 1.5rem;
    background: rgba(0,238,255,.08);
}

.sim-typing i {
    width: .65rem; height: .65rem;
    border-radius: 50%;
    background: var(--main-color);
    animation: typing 1.1s ease-in-out infinite;
}
.sim-typing i:nth-child(2) { animation-delay: .16s; }
.sim-typing i:nth-child(3) { animation-delay: .32s; }

.sim-brain {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    background:
        radial-gradient(60rem 30rem at 100% 0%, rgba(0, 238, 255, 0.05), transparent 60%);
}

.sim-brain-title {
    font-size: 1.1rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: rgba(200,232,242,.55);
}

.sim-flow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.sim-node {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1.3rem;
    border-radius: 100rem;
    background: rgba(255,255,255,.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
    color: rgba(225,240,247,.55);
    font-size: 1.22rem;
    transition: .35s;
    position: relative;
}

.sim-node i { color: rgba(0,238,255,.5); transition: .35s; }

.sim-node.on {
    background: rgba(0,238,255,.13);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.6), 0 0 20px rgba(0,238,255,.25);
    color: #dffaff;
}

.sim-node.on i { color: var(--main-color); }

.sim-actions {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    min-height: 12rem;
}

.sim-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
    border-radius: 1rem;
    background: rgba(0, 238, 255, .07);
    box-shadow: inset 0 0 0 1px rgba(0, 238, 255, .22);
    color: #bdf4fc;
    font-size: 1.28rem;
    opacity: 0;
    transform: translateX(16px);
}

.sim-action i { color: var(--main-color); font-size: 1.35rem; }

.sim-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.8rem 2.4rem;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-wrap: wrap;
}

.sim-result {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 1.7vw, 2rem);
    color: var(--main-color);
    text-shadow: 0 0 24px rgba(0,238,255,.4);
    opacity: 0;
    flex: 1;
    min-width: 22rem;
}

.sim-real { margin-top: 3rem; }
.sim-real[hidden] { display: none; }

/* ---------------- TESTIMONIOS ---------------- */
.testimonials { padding: 14vh 0; overflow: clip; }

.testi-head { text-align: center; margin-bottom: 5rem; padding: 0 4vw; }
.testi-head h2 { font-size: clamp(2.6rem, 4vw, 5.2rem); }
.testi-head .eyebrow { justify-content: center; margin-bottom: 1.6rem; }
.testi-head .eyebrow::before { display: none; }

.testi-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

.testi-track {
    display: flex;
    gap: 2.4rem;
    padding: 1rem 1.2rem;
    animation: marquee 46s linear infinite;
    will-change: transform;
}

.testi-marquee:hover .testi-track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

.testi-card {
    width: 38rem;
    flex-shrink: 0;
    padding: 2.6rem;
    border-radius: 2rem;
    background: var(--glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.12), 0 20px 50px rgba(0,0,0,.35);
}

.testi-card .stars { color: var(--main-color); font-size: 1.3rem; display: flex; gap: .4rem; margin-bottom: 1.6rem; }
.testi-card blockquote { color: rgba(228, 240, 246, .88); font-size: 1.4rem; font-weight: 300; line-height: 1.65; }

.testi-who { display: flex; align-items: center; gap: 1.3rem; margin-top: 2rem; }
.testi-who img { width: 4.4rem; height: 4.4rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(0,238,255,.35); }
.testi-who h4 { font-size: 1.45rem; font-weight: 600; }
.testi-who span { color: var(--muted); font-size: 1.2rem; }

/* ---------------- CONTACTO ---------------- */
.contact-cine { min-height: 150vh; padding: 18vh 4vw 12vh; display: grid; place-items: center; }

.contact-wrap { width: min(84rem, 100%); }

.contact-head { text-align: center; margin-bottom: 4rem; }
.contact-head h2 { font-size: clamp(3rem, 5.4vw, 7rem); }
.contact-head p { color: var(--muted); margin-top: 1.4rem; font-weight: 300; }
.contact-head .eyebrow { justify-content: center; margin-bottom: 1.8rem; }
.contact-head .eyebrow::before { display: none; }

.contact-form { padding: 3.4rem; display: grid; gap: 2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

.form-group { display: grid; gap: .8rem; position: relative; }

.form-group label {
    font-size: 1.2rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(200, 230, 240, .6);
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
    border-radius: 1.2rem;
    padding: 1.5rem 1.8rem;
    color: #fff;
    font-size: 1.45rem;
    font-family: var(--font-body);
    transition: box-shadow .3s, background .3s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.55), 0 0 22px rgba(0,238,255,.12);
    background: rgba(0,238,255,.04);
}

.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.3); }

.form-group input.has-error, .form-group textarea.has-error { box-shadow: inset 0 0 0 1px rgba(255, 92, 92, .7); }

.field-error { color: #ff8484; font-size: 1.2rem; }

.contact-submit {
    justify-self: center;
    width: auto;
    border-radius: 100rem;
    padding: 1.5rem 4.6rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--main-color);
    color: #041318;
    cursor: pointer;
    box-shadow: 0 0 26px rgba(0,238,255,.4);
    transition: transform .3s, box-shadow .3s;
}

.contact-submit:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,238,255,.6); }
.contact-submit:disabled { opacity: .6; }

.contact-status { text-align: center; font-size: 1.35rem; padding: 1rem; border-radius: 1rem; }
.contact-status.hidden { display: none; }
.contact-status.error { background: rgba(255, 92, 92, .12); color: #ff9c9c; }

/* modal de éxito (demo-chat.js) */
.success-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(4, 8, 12, .8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .4s;
    padding: 2rem;
}

.success-modal-overlay.active { opacity: 1; }

.success-modal-box {
    width: min(44rem, 100%);
    text-align: center;
    padding: 4rem 3.4rem;
    border-radius: 2.2rem;
    background: var(--glass-strong);
    box-shadow: inset 0 0 0 1px rgba(0,238,255,.2), 0 40px 100px rgba(0,0,0,.6);
    transform: translateY(16px);
    transition: transform .4s;
}

.success-modal-overlay.active .success-modal-box { transform: none; }

.success-icon { font-size: 4.6rem; color: var(--main-color); text-shadow: 0 0 30px rgba(0,238,255,.6); }
.success-title { font-size: 2.2rem; margin-top: 1.6rem; font-family: var(--font-display); }
.success-message { color: var(--muted); margin-top: 1rem; font-size: 1.4rem; }

.success-close-btn {
    margin-top: 2.4rem;
    padding: 1.2rem 3.6rem;
    border-radius: 100rem;
    background: var(--main-color);
    color: #041318;
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(0,238,255,.4);
}

/* ---------------- FOOTER ---------------- */
.footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 2.6rem 4vw;
    background: rgba(8, 12, 18, .8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.05);
}

.footer-text p { font-size: 1.3rem; color: var(--muted); }

.footer-iconTop a {
    display: grid;
    place-items: center;
    width: 4rem; height: 4rem;
    border-radius: 1rem;
    background: var(--main-color);
    color: #041318;
    font-size: 1.8rem;
    box-shadow: 0 0 18px rgba(0,238,255,.4);
    transition: transform .3s;
}

.footer-iconTop a:hover { transform: translateY(-3px); }

/* ---------------- Reveals genéricos ---------------- */
[data-reveal] { opacity: 0; }
html.no-js [data-reveal], html.no-webgl [data-reveal] { opacity: 1; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1100px) {
    .platform-steps { grid-template-columns: 1fr; gap: 1.4rem; }
    .step-line { display: none; }
    .plat-step { padding: 2rem 2rem 1.8rem; }
}

@media (max-width: 900px) {
    #menu-icon { display: block; }

    .navbar {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(32rem, 80vw);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 2.8rem;
        padding: 10rem 3.6rem 4rem;
        background: rgba(10, 15, 22, .92);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(0,238,255,.12);
        transform: translateX(100%);
        transition: transform .5s cubic-bezier(.7,0,.25,1);
        z-index: 205;
        overflow-y: auto;                 /* menús altos: scroll interno en pantallas cortas */
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;     /* el scroll del menú no arrastra el fondo */
    }

    .navbar.open { transform: none; }
    .navbar > a { font-size: 2rem; }

    /* Velo modal: oscurece el fondo mientras el menú está abierto. IMPORTANTE: el
       .header (z-index:200) crea su propio contexto de apilamiento, así que el panel
       .navbar vive dentro de él; el scrim debe ir DEBAJO del header (z<200) para no
       taparlo, y por encima del contenido/canvas. Tocarlo cierra el menú (lo gestiona
       cinema-ui.js con el click fuera del panel). */
    body::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(3, 6, 10, .55);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .45s ease, visibility .45s ease;
        z-index: 190;
    }
    html.nav-open body::after { opacity: 1; visibility: visible; }

    /* Servicios en móvil/tablet: el encabezado permanece visible mientras rota
       cada slide, así que compactamos y reservamos alto suficiente para el slide
       más alto (encabezado + texto + visual apilados deben caber en 100vh sin
       solaparse). El texto del slide se ancla arriba para no desbordar su caja. */
    .services-stage { justify-content: flex-start; padding: 8rem 4vw 2.5rem; }
    .services-head { margin-bottom: 1.8rem; }
    .services-head h2 { font-size: clamp(2rem, 5.6vw, 3.2rem); }
    .services-body { grid-template-columns: 1fr; gap: 1.6rem; align-content: start; }
    .service-slides { min-height: 32rem; }
    .service-slide { justify-content: flex-start; }
    .service-visuals { height: min(32vh, 24rem); min-height: 18rem; }
    /* Ancla el panel holográfico al borde superior de su caja: así nunca
       sobresale hacia arriba invadiendo el texto del slide (si sobra, se
       recorta abajo, que es aceptable). */
    .service-visual { align-items: start; }
    .service-slide p { max-width: none; }

    /* Plataforma en móvil/tablet: cabecera + 3 pasos + CTA apilados no caben en
       100vh con tarjetas verticales grandes. Pasamos a tarjetas compactas con
       el icono a la izquierda (layout en grid, sin tocar el HTML) para que todo
       entre holgado incluso en teléfonos pequeños. */
    .platform-stage { justify-content: flex-start; gap: 2rem; padding: 8rem 4vw 3rem; }
    .platform-head h2 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); }
    .platform-head .lead { font-size: 1.4rem; margin-top: 1rem; }
    .platform-steps { gap: 1.2rem; }
    .plat-step {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1.5rem;
        row-gap: .3rem;
        align-items: center;
        padding: 1.5rem 1.8rem;
    }
    .plat-step i { grid-row: 1 / 3; grid-column: 1; align-self: center; margin-bottom: 0; width: 4.4rem; height: 4.4rem; font-size: 1.9rem; }
    .plat-step h3 { grid-column: 2; align-self: end; font-size: 1.75rem; }
    .plat-step p { grid-column: 2; align-self: start; margin-top: 0; }
    .step-num { font-size: 3.2rem; top: 1rem; right: 1.4rem; }

    .cine-dots { display: none; }

    /* móvil/tablet: la columna del agente ocupa el ancho y baja al pie */
    .agent-stage { align-items: flex-end; padding-bottom: 12vh; }
    .agent-left { width: 100%; gap: 2.4rem; }
    .agent-slide { padding: 2rem 2.2rem; }

    .sim-body { grid-template-columns: 1fr; }
    .sim-chat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); max-height: 30rem; }
    .sim-actions { min-height: 9rem; }
}

@media (max-width: 640px) {
    html { font-size: 65%; }

    .hero-stage { padding-bottom: 9rem; }
    /* Tamaño que garantiza que "EN PILOTO AUTOMÁTICO" (la línea más larga,
       ≈12.5×font-size de ancho) entre en una sola línea en cualquier móvil
       (320–480px) y no la parta el overflow:hidden del split-line. */
    .hero-title { font-size: clamp(2rem, 6.8vw, 4.4rem); }
    .hero-kinetic { margin-top: 1.6rem; font-size: clamp(1.5rem, 4.6vw, 2.2rem); gap: .8rem; }
    .hk-rotator { min-width: 9ch; }
    .hero-sub { flex-direction: column; align-items: flex-start; gap: 1.8rem; margin-top: 1.8rem; }
    .hero-sub .lead { font-size: 1.5rem; }
    .hero-ctas { width: 100%; }
    .hero-ctas .btn-cine { flex: 1 1 auto; justify-content: center; }

    .form-row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
    .stat { padding: 1.8rem 1.6rem; }

    .dx-chat-area { height: 28rem; padding: 1.8rem; }
    .console-input { padding: 1.4rem 1.8rem 2rem; gap: .8rem; }
    .contact-form { padding: 2.2rem; }

    .agent-head h2 { font-size: clamp(2.4rem, 8vw, 3.4rem); }
    .agent-slide h3 { font-size: 1.8rem; }
    .agent-slide p { font-size: 1.3rem; }
    .agent-rail { min-height: 20rem; }

    .sim-tabs { padding: 1.4rem 1.6rem; gap: .7rem; }
    .sim-tab { padding: .8rem 1.3rem; font-size: 1.15rem; }
    .sim-chat { padding: 1.6rem; }
    .sim-brain { padding: 1.6rem; }
    .sim-foot { padding: 1.4rem 1.6rem; }
    .mani-flow { font-size: clamp(1.9rem, 6vw, 2.8rem); }

    .testi-card { width: 30rem; padding: 2rem; }

    .scroll-cue { display: none; }
}

/* ---- Teléfonos de poca altura (≤720px: iPhone SE/8, Android compactos) ----
   Las secciones fijadas a 100vh (servicios, plataforma) apretaban su contenido
   y se solapaba/recortaba. Aquí compactamos tipografías, altos reservados y
   visuales para que TODO entre sin solapes en pantallas cortas. */
@media (max-width: 900px) and (max-height: 720px) {
    .services-stage { padding-top: 7rem; padding-bottom: 2rem; }
    .services-head { margin-bottom: 1rem; }
    .services-head h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
    .service-slides { min-height: 25rem; }
    .service-slide h3 { font-size: 1.55rem; }
    .service-slide p { font-size: 1.25rem; margin-top: .8rem; }
    .service-slide ul { margin-top: 1rem; gap: .5rem; }
    .service-slide li { font-size: 1.25rem; }
    .service-visuals { height: min(26vh, 17rem); min-height: 14rem; }
    /* Escala el panel para que quepa completo (sin recortar la última burbuja)
       en pantallas de poca altura. Escalamos .holo-panel (no .service-visual,
       cuyo transform lo controla la coreografía GSAP). */
    .holo-panel { transform: scale(.74); transform-origin: top center; }

    .platform-stage { padding-top: 6.4rem; padding-bottom: 1.8rem; gap: 1.2rem; }
    .platform-head h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
    /* En pantallas muy cortas priorizamos los 3 pasos + CTA; el lead
       (complementario) se oculta para que todo entre sin recortes. */
    .platform-head .lead { display: none; }
    .platform-steps { gap: 1rem; }
    .plat-step { padding: 1.2rem 1.6rem; }
    .plat-step h3 { font-size: 1.6rem; }
    .plat-step p { font-size: 1.25rem; }
    .plat-step i { width: 4rem; height: 4rem; font-size: 1.7rem; }
}

/* En los teléfonos más bajos (≤650px: Android 360×640, etc.) la nota
   secundaria del CTA queda justo en el borde; se oculta para que el botón
   principal y los pasos queden 100% visibles sin recortes. */
@media (max-width: 900px) and (max-height: 650px) {
    .platform-note { display: none; }
}

/* ---- Pantallas muy bajas (móvil apaisado, ventanas cortas) ----
   El héroe se centra, se compacta y suelta los adornos verticales
   (eyebrow/social/scroll-cue) para que título + CTAs siempre entren. */
@media (max-height: 560px) and (min-width: 641px) {
    .hero-stage { justify-content: flex-start; padding-top: 8rem; padding-bottom: 2.4rem; }
    .hero-eyebrow-row { display: none; }
    .hero-title { font-size: clamp(1.9rem, 4.4vw, 3rem); }
    .hero-kinetic { margin-top: .8rem; font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
    .hero-sub { margin-top: 1.1rem; }
    .hero-sub .lead { font-size: 1.4rem; }
    .scroll-cue { display: none; }
}

@media (max-height: 560px) and (max-width: 640px) {
    .hero-stage { justify-content: flex-start; padding-top: 7.5rem; padding-bottom: 2.2rem; }
    .hero-eyebrow-row { display: none; }
    .hero-kinetic { margin-top: .8rem; }
    .hero-sub { margin-top: 1rem; gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}
