/* Andrezia Digital · web 2026 (WEB-01)
   Dirección «estudio digital»: grafito / blanco cálido, cian para la acción, magenta como acento.
   Tipografía: Space Grotesk (titulares) + DM Sans (texto), autoalojadas (OFL). */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/SpaceGrotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/SpaceGrotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: optional; src: url("/fonts/DMSans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 600; font-display: optional; src: url("/fonts/DMSans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Reservas con la métrica ajustada (herramientas/metrica_fuentes.mjs): el cambio a la fuente web no recoloca el texto. */
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 108.8%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 101.7%; }
@font-face { font-family: "DM Sans Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 93%; }
@font-face { font-family: "DM Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 91.5%; }

:root {
  --graphite: #171717;
  --graphite-2: #1e1f1c;
  --graphite-3: #262723;
  --reel: #0f191d;
  --paper: #f5f3ed;
  --paper-2: #ebe8df;
  --ink: #f5f3ed;
  --ink-dim: #bdbdb6;
  --ink-soft: #94968d;
  --paper-ink: #1d1e1b;
  --paper-dim: #545850;
  --line: #393a35;
  --line-light: #cfccc1;
  --cyan: #00f0ff;
  --cyan-hover: #6af7ff;
  --cyan-ink: #006b77;
  --magenta: #bc00ff;
  --magenta-soft: #d394ff;
  --f-display: "Space Grotesk", "Space Grotesk Fallback", "Segoe UI", system-ui, sans-serif;
  --f-body: "DM Sans", "DM Sans Fallback", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 80px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--graphite); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 70px); }
h2 { font-size: clamp(32px, 4.3vw, 62px); max-width: 18ch; }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; line-height: 1.18; }
p { max-width: 64ch; text-wrap: pretty; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }
.light :focus-visible, dialog :focus-visible { outline-color: var(--cyan-ink); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--graphite); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ——— Iconos ——— */
.i-arrow { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.i-wa { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ——— Tipografía auxiliar ——— */
.eyebrow { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 28px; max-width: none; }
.eyebrow-n { display: inline-flex; align-items: center; gap: 14px; color: var(--ink-soft); }
.eyebrow-n::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }
.light .eyebrow { color: var(--cyan-ink); }
.light .eyebrow-n { color: var(--paper-dim); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }

/* ——— Botones ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; text-decoration: none; max-width: 100%; transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.btn-primary { background: var(--cyan); color: var(--graphite); }
.btn-primary:hover { background: var(--cyan-hover); box-shadow: 0 10px 34px rgba(0, 240, 255, .22); transform: translateY(-2px); }
.btn:hover .i-arrow { transform: translate(2px, -2px); }
.btn-lg { min-height: 58px; padding: 16px 28px; font-size: 16px; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #5b5d55; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost:hover .i-down { transform: translateY(2px); }
.text-button { background: none; border: 0; padding: 10px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.text-button:hover:not(:disabled) { color: var(--cyan); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--f-display); font-weight: 600; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.text-link:hover .i-arrow { transform: translate(2px, -2px); }
.light .text-link:hover { color: var(--cyan-ink); }

/* ——— Cabecera ——— */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--magenta), var(--cyan)); transform: scaleX(var(--progress, 0)); transform-origin: left; z-index: 60; pointer-events: none; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.site-header.is-solid, .site-header.menu-open { background: rgba(23, 23, 23, .94); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { flex-shrink: 0; display: block; border-radius: 6px; }
.logo { width: 210px; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 15px; }
.desktop-nav a { position: relative; padding: 12px 0; text-decoration: none; color: #d6d6cf; transition: color .2s; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.desktop-nav a:hover, .desktop-nav a[aria-current="true"] { color: var(--ink); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="true"]::after { transform: scaleX(1); }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; padding: 12px; border-radius: 50%; border: 1px solid #5b5d55; background: rgba(23, 23, 23, .5); }
.menu-toggle i { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-nav { display: grid; gap: 2px; padding: 8px var(--gutter) 24px; border-top: 1px solid var(--line); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav a:not(.btn) { padding: 14px 0; font-family: var(--f-display); font-size: 22px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 18px; }

/* ——— Portada «vuelo por la red» (WEB-01E) ———
   Fondo: el vídeo aprobado (anim_A2, 6 s) ligado al scroll de la portada fija (js/hero.js). Antes, y como reserva, su póster.
   El JS escribe la opacidad de cada escena, --veil (oscurecimiento del vídeo) en .hero y --m (formación 0→1) en cada titular.
   Sin JS o con movimiento reducido: portada estática (escena 1 en el primer pliegue y escena 4 debajo) sobre el póster. */
.hero { --veil: 1; position: relative; isolation: isolate; background: #07090b; }
.hero-sticky { position: relative; padding-top: var(--header-h); overflow: hidden; }
.hero-stage { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: #07090b; }
.hero-stage picture { display: contents; }
.hero-media { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; }
.hero-video { opacity: 0; transition: opacity 1.1s var(--ease); }
.video-ready .hero-video { opacity: 1; }
.video-failed .hero-video, .motion-off .hero-video { display: none; }
/* Velo: a la izquierda en escritorio (allí va el texto), abajo en móvil. Su intensidad baja entre escenas para que el vuelo respire */
.hero-veil { position: absolute; inset: 0; opacity: var(--veil); background:
  linear-gradient(90deg, rgba(7, 9, 11, .96) 0, rgba(7, 9, 11, .93) 36%, rgba(7, 9, 11, .8) 48%, rgba(7, 9, 11, .34) 64%, rgba(7, 9, 11, 0) 80%),
  linear-gradient(0deg, rgba(7, 9, 11, .75) 0, rgba(7, 9, 11, 0) 34%); }
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(7, 9, 11, .88) 0, rgba(7, 9, 11, 0) calc(var(--header-h) + 80px)),
  radial-gradient(125% 95% at 62% 46%, rgba(7, 9, 11, 0) 54%, rgba(7, 9, 11, .72) 100%); }
/* Textura de pantalla: líneas de escaneo muy finas sobre el vídeo */
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .5; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .32) 0 1px, rgba(0, 0, 0, 0) 1px 3px); }
.hero-veil, .hero-hud { z-index: 1; }
.hero-hud { position: absolute; inset: calc(var(--header-h) + 18px) max(18px, calc(var(--gutter) * .45)) 18px; opacity: calc(1.15 - var(--veil)); }
.hero-hud i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(0, 240, 255, .55); }
.hero-hud i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero-hud i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero-hud i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; border-color: rgba(188, 0, 255, .6); }
.hero-hud i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; border-color: rgba(188, 0, 255, .6); }
.scene { position: relative; z-index: 2; }
.scene-1 { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-inner { display: flex; justify-content: flex-start; padding-block: 24px clamp(64px, 10vh, 112px); }
.hero-copy, .neuro-cta { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hero-copy { max-width: 660px; }
.hero-copy::before, .neuro-cta::before { content: ""; position: absolute; z-index: -1; inset: -16% -14% -18% -18%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 9, 11, .72), rgba(7, 9, 11, .5) 60%, rgba(7, 9, 11, 0)); }
.hero .eyebrow { justify-content: flex-start; margin-bottom: clamp(16px, 2.4vh, 26px); text-shadow: 0 0 18px rgba(0, 240, 255, .35); }
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.hero h1 { color: #fbfaf6; max-width: 12em; /* em, no ch (ch cambia al llegar la fuente web), y con holgura: la 1.ª línea mide ~11,5em; si roza el límite, el redondeo la parte (CLS) */ font-size: clamp(34px, 3.7vw, 58px); text-shadow: 0 2px 28px rgba(0, 0, 0, .55); }
.hero h1 .w { display: inline-block; }
.hero-lead { margin-top: clamp(18px, 2.6vh, 26px); font-size: clamp(17px, 1.25vw, 19px); color: #dcdbd4; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 14px 28px; margin-top: clamp(22px, 3.2vh, 34px); }
.link-wa { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: rgba(245, 243, 237, .45); font-weight: 500; transition: color .2s, text-decoration-color .2s; }
.link-wa .i-wa { color: #25d366; }
.link-wa:hover { color: var(--cyan); text-decoration-color: currentColor; }
/* Entrada del titular palabra a palabra (solo CSS, sin JS). Con JS y movimiento activo la sustituye el descifrado de hero.js */
@keyframes word-in { from { opacity: .22; transform: translate3d(0, .42em, 0); filter: blur(9px); } to { opacity: 1; transform: none; filter: none; } }
.hero h1 .w { animation: word-in .95s var(--ease) both; }
.hero h1 .w:nth-child(2) { animation-delay: .06s; } .hero h1 .w:nth-child(3) { animation-delay: .12s; } .hero h1 .w:nth-child(4) { animation-delay: .18s; }
.hero h1 .w:nth-child(5) { animation-delay: .24s; } .hero h1 .w:nth-child(6) { animation-delay: .3s; } .hero h1 .w:nth-child(7) { animation-delay: .36s; }
.hero h1 .w:nth-child(8) { animation-delay: .42s; } .hero h1 .w:nth-child(9) { animation-delay: .48s; } .hero h1 .w:nth-child(10) { animation-delay: .54s; }
.hero h1 .w:nth-child(11) { animation-delay: .6s; } .hero h1 .w:nth-child(n+12) { animation-delay: .66s; }
.motion-off .hero h1 .w, .hero h1.tts .w { animation: none; }

/* Titulares de portada que se forman con el scroll: mismo lenguaje que los h2 de WEB-01D (descifrado + escaneo + brillo cian),
   pero reversible: --m sale del progreso, no del tiempo. Cada letra: oculta → glifo cian → letra real con destello */
.tts { position: relative; --m: 1; clip-path: inset(-.3em -.5em calc((1 - var(--m)) * 100%) -.5em); }
.tts .tt-c { position: relative; color: transparent; }
.tts .tt-c.gl::after { content: attr(data-g); position: absolute; left: 50%; top: 0; transform: translateX(-50%); color: var(--cyan); opacity: .85; text-shadow: 0 0 12px rgba(0, 240, 255, .7); }
.tts .tt-c.ok { color: inherit; animation: tt-glow .8s ease-out both; }
.tts::after { content: ""; position: absolute; left: -1%; right: -1%; top: 0; height: 100%; pointer-events: none; transform-origin: 50% 0; transform: scaleY(var(--m));
  background: linear-gradient(180deg, transparent 0, transparent 72%, rgba(0, 240, 255, .16) 95%, rgba(0, 240, 255, .9) 100%); transition: opacity .35s; }
.tts.tt-full::after, .tts.tt-zero::after { opacity: 0; }

/* Escena 4 (CTA). En la portada estática va debajo del primer pliegue */
.scene-4 .wrap { display: flex; justify-content: flex-start; padding-block: clamp(48px, 8vh, 96px); }
.neuro-cta { max-width: 760px; }
.neuro-cta .hero-support { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; color: #f5f3ed; max-width: 16.5em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.scene-2, .scene-3, .neuro-rail, .neuro-skip { display: none; }

/* Modo animado: portada fija durante el recorrido; scroll nativo, sin bloquearlo ni forzar saltos */
.motion-on .hero.has-scroll { height: 470svh; }
.motion-on .hero.has-scroll .hero-sticky { position: sticky; top: 0; height: 100svh; }
.motion-on .hero.has-scroll .hero-stage { animation: hero-breath 16s ease-in-out infinite alternate; }
@keyframes hero-breath { from { transform: scale(1.015); } to { transform: scale(1.07); } }
.motion-on .hero.has-scroll .scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding-top: var(--header-h); will-change: opacity, transform; }
.motion-on .hero.has-scroll .scene-1 { justify-content: flex-end; }
.motion-on .hero.has-scroll .scene-2, .motion-on .hero.has-scroll .scene-3, .motion-on .hero.has-scroll .scene-4 { opacity: 0; visibility: hidden; }
.motion-on .hero.has-scroll .scene-2, .motion-on .hero.has-scroll .scene-3 { pointer-events: none; }
.motion-on .hero.has-scroll .scene:focus-within { opacity: 1 !important; transform: none !important; visibility: visible !important; }
.motion-on .hero.has-scroll .neuro-rail, .motion-on .hero.has-scroll .neuro-skip { display: flex; }

/* Escena 2: las cuatro frases, una tras otra, y los tres ámbitos como chips que se encienden */
.motion-on .hero.has-scroll .scene-2 { flex-direction: row; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 10px 12px; padding: 0 var(--gutter) clamp(96px, 17vh, 170px); }
.neuro-steps { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + clamp(28px, 9vh, 110px)); display: grid; justify-items: center; }
.neuro-steps::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(92vw, 980px); height: 260%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 9, 11, .74), rgba(7, 9, 11, .45) 58%, rgba(7, 9, 11, 0)); }
.neuro-step { grid-area: 1 / 1; max-width: 22ch; margin: 0; text-align: center; font-family: var(--f-display); font-size: clamp(28px, 3.3vw, 50px); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; color: #fbfaf6; text-wrap: balance; text-shadow: 0 2px 26px rgba(0, 0, 0, .7); visibility: hidden; }
.neuro-step.on { visibility: visible; }
.neuro-label { padding: 7px 14px; border: 1px solid rgba(245, 243, 237, .18); border-radius: 999px; background: rgba(7, 9, 11, .8); font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: #b4b4ad; transition: color .5s, border-color .5s, box-shadow .5s; }
.neuro-label.on { color: var(--cyan); border-color: rgba(0, 240, 255, .5); box-shadow: 0 0 28px -8px rgba(0, 240, 255, .6), inset 0 0 14px -6px rgba(0, 240, 255, .5); }
/* Escena 3: el titular grande en el centro del vuelo */
.neuro-words { position: relative; margin: 0 auto; max-width: 16ch; text-align: center; font-family: var(--f-display); font-size: clamp(44px, 7.2vw, 118px); font-weight: 600; line-height: 1; letter-spacing: -.045em; color: #fbfaf6; text-wrap: balance; text-shadow: 0 4px 40px rgba(0, 0, 0, .75); }
.neuro-words::before { content: ""; position: absolute; z-index: -1; inset: -30% -18%; pointer-events: none; background: radial-gradient(closest-side, rgba(7, 9, 11, .7), rgba(7, 9, 11, .35) 60%, rgba(7, 9, 11, 0)); }
.neuro-words em { font-style: normal; background: linear-gradient(100deg, var(--cyan) 10%, var(--magenta-soft) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.neuro-words.tts em { background: none; color: var(--cyan); }
.neuro-words.tts.tt-full em .tt-w { background: linear-gradient(100deg, var(--cyan) 10%, var(--magenta-soft) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.neuro-words.tts.tt-full em .tt-c.ok { position: static; color: transparent; animation: none; } /* background-clip: text ignora el texto de hijos posicionados */
.neuro-rail { position: absolute; z-index: 3; right: max(18px, calc(var(--gutter) * .45)); top: 50%; flex-direction: column; gap: 26px; transform: translateY(-50%); }
.neuro-rail::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(var(--cyan), var(--magenta)); opacity: .35; }
.neuro-rail i { position: relative; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(245, 243, 237, .45); background: var(--graphite); transition: background-color .5s, border-color .5s, box-shadow .5s; }
.neuro-rail i.on { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(0, 240, 255, .8); }
.neuro-rail i.on:nth-child(even) { background: var(--magenta-soft); border-color: var(--magenta-soft); box-shadow: 0 0 14px rgba(188, 0, 255, .8); }
.neuro-skip { position: absolute; z-index: 3; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-size: 13px; letter-spacing: .02em; color: #b4b4ad; white-space: nowrap; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(169, 169, 162, .4); transition: color .2s; }
.neuro-skip:hover { color: var(--cyan); }

/* ——— Mesa de trabajo 3D con capturas reales de las demos (WEB-01B, ahora en «Muestras») ———
   main.js escribe --p (paso de la mesa por la pantalla 0→1) y --mx/--my (ratón, giroscopio o deriva lenta) en .mesa.
   Cada pantalla interpola entre su posición «flotando» (--f*) y su sitio en la mesa (--t*). Solo transform/opacity. */
.mesa { --p: 0; --mx: 0; --my: 0; position: relative; margin-top: clamp(40px, 6vw, 88px); }
.studio { --u: min(1cqw, 1.8cqh); --off: 0; --drop: 3; --rx0: 4; --rx1: 50; --ry0: -6; --rz1: -5;
  position: relative; height: min(44vw, 600px); z-index: 0; container-type: size; perspective: 1800px; perspective-origin: 50% 40%; }
.studio-glow { position: absolute; inset: -10% -20%; background:
  radial-gradient(38% 34% at 50% 44%, rgba(0, 240, 255, .11), transparent 70%),
  radial-gradient(30% 30% at 64% 78%, rgba(188, 0, 255, .13), transparent 70%); }
.studio-floor { position: absolute; left: -30%; right: -30%; top: 58%; height: 90%; transform-origin: 50% 0; transform: rotateX(78deg);
  background-image: linear-gradient(rgba(245, 243, 237, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 243, 237, .07) 1px, transparent 1px);
  background-size: 76px 76px; background-position: 50% 0;
  -webkit-mask-image: radial-gradient(55% 60% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(55% 60% at 50% 0%, #000 10%, transparent 75%);
  opacity: calc(.4 + var(--p) * .6); }
.rig { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: translate3d(calc((1 - var(--p)) * var(--off) * var(--u)), calc(var(--p) * var(--drop) * var(--u)), 0)
    rotateX(calc((var(--rx0) + (var(--rx1) - var(--rx0)) * var(--p)) * 1deg - var(--my) * 6deg))
    rotateY(calc(var(--ry0) * (1 - var(--p)) * 1deg + var(--mx) * 9deg))
    rotateZ(calc(var(--rz1) * var(--p) * 1deg)); }
.screen { position: absolute; left: 0; top: 0; display: block; width: calc(var(--sw) * var(--u)); transform-style: preserve-3d; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transform: translate(-50%, -50%)
    translate3d(calc((var(--fx) + (var(--tx) - var(--fx)) * var(--p)) * var(--u)), calc((var(--fy) + (var(--ty) - var(--fy)) * var(--p)) * var(--u)), calc(var(--fz) * (1 - var(--p)) * 1px))
    rotateY(calc(var(--fry) * (1 - var(--p)) * 1deg)) rotateX(calc(var(--frx) * (1 - var(--p)) * 1deg)) rotateZ(calc(var(--frz) * (1 - var(--p)) * 1deg))
    scale(calc(1 + (var(--ts) - 1) * var(--p))); }
.screen-body { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #0e0f10; box-shadow: 0 0 0 1px rgba(245, 243, 237, .1), 0 40px 70px -24px rgba(0, 0, 0, .85); transition: box-shadow .4s; }
.screen-body::before { content: ""; position: absolute; inset: 0; z-index: 3; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 240, 255, .8), rgba(0, 240, 255, 0) 32%, rgba(188, 0, 255, 0) 68%, rgba(188, 0, 255, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.screen-body::after { content: ""; position: absolute; inset: 0; z-index: 2; background: #0b0b0b; pointer-events: none; opacity: calc(var(--shade, 0) * (1 - var(--p))); }
.screen-body img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.screen:hover .screen-body { box-shadow: 0 0 0 1px rgba(0, 240, 255, .55), 0 0 46px -8px rgba(0, 240, 255, .4), 0 40px 70px -24px rgba(0, 0, 0, .85); }
.glare { position: absolute; inset: 0 -70%; z-index: 2; pointer-events: none; transform: translate3d(calc(var(--mx) * 20% - 6%), 0, 0);
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .09) 48%, rgba(0, 240, 255, .05) 52%, transparent 58%); }
.screen-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: #1a1b1c; border-bottom: 1px solid rgba(255, 255, 255, .06); font-family: var(--f-display); font-size: 10px; line-height: 1; color: #9d9e98; white-space: nowrap; overflow: hidden; }
.screen-bar i { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #45463f; }
.screen-bar i:first-child { background: rgba(188, 0, 255, .75); }
.screen-bar i:nth-child(2) { background: rgba(0, 240, 255, .7); }
.screen-bar b { margin-left: 8px; font-weight: 500; letter-spacing: .03em; }
/* posiciones: f = flotando, t = en la mesa; unidades --u (≈1 % del ancho de la mesa) */
/* WEB-01D: 5 pantallas, una por caso. Mesa en 2 + 3, con Diana y Milena separadas */
.s1 { --sw: 30; --fx: -1; --fy: -8; --fz: 40; --fry: -16; --frx: 5; --frz: -1.5; --tx: -13.5; --ty: -9.5; --ts: .8; }
.s2 { --sw: 26; --fx: 22; --fy: -14; --fz: -120; --fry: -20; --frx: 3; --frz: 1.5; --tx: 13.5; --ty: -9.5; --ts: .923; --shade: .3; }
.s3 { --sw: 22; --fx: -27; --fy: 12; --fz: 20; --fry: 12; --frx: 7; --frz: -2.5; --tx: -27; --ty: 9.5; --ts: 1.091; --shade: .12; }
.s4 { --sw: 23; --fx: 6; --fy: 20; --fz: 140; --fry: -18; --frx: 5; --frz: 2; --tx: 0; --ty: 9.5; --ts: 1.043; }
.s5 { --sw: 21; --fx: 30; --fy: 8; --fz: -220; --fry: -14; --frx: 6; --frz: -3; --tx: 27; --ty: 9.5; --ts: 1.143; --shade: .42; }

/* ——— Capítulos ——— */
.chapter { padding-block: clamp(72px, 10vw, 136px); }
.dark { background: var(--graphite); }
.light { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.light p { color: var(--paper-dim); }
.dark p, .work p, .closing p { color: var(--ink-dim); }
.chapter h2 + p, .chapter h2 + .lead { margin-top: 28px; }
.chapter p + p { margin-top: 18px; }

/* Problema */
.problem h2 { max-width: 20ch; }
.problem-text { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 7vw, 120px); margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line-light); }
.problem-text p { margin: 0 !important; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.5; }
.light .problem-text .problem-list { color: var(--paper-ink); font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em; }

/* Servicios */
.service-list { margin-top: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.service-row { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr) 52px; gap: 28px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.service-row::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service-row:hover::before, .service-row:focus-within::before { transform: scaleX(1); }
.number { font-family: var(--f-display); font-size: 15px; font-weight: 500; color: var(--cyan); line-height: 1.9; }
.service-row:nth-child(even) .number { color: var(--magenta-soft); }
.service-row p { font-size: 16px; }
.service-jump { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #55574f; background: transparent; display: grid; place-items: center; color: var(--ink); transition: border-color .25s, background-color .25s, color .25s; }
.service-jump .i-arrow { width: 18px; height: 18px; }
.service-jump:hover { background: var(--cyan); border-color: var(--cyan); color: var(--graphite); }
.scope { margin-top: 28px !important; font-size: 14px; }

/* Trabajo / reel (WEB-01B: justo después de la portada; mockups con capturas reales y casos) */
.work { position: relative; background: radial-gradient(900px 520px at 80% 22%, rgba(0, 240, 255, .07), transparent 70%), radial-gradient(700px 500px at 18% 78%, rgba(188, 0, 255, .08), transparent 70%), var(--graphite); overflow: hidden; }
.work::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 240, 255, .5), rgba(188, 0, 255, .5), transparent); }
.work-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.work-copy h2 { max-width: 12ch; }
.work-copy > p:not(.eyebrow) { color: #c8d3d5; max-width: 44ch; }
.work-copy .reel-note { font-size: 13px; line-height: 1.65; color: #a6babf; }
.work-copy .btn { margin-top: 32px; }
.reel-transcript { margin-top: 30px; padding-top: 14px; border-top: 1px solid rgba(115, 144, 152, .35); font-size: 14px; color: #d2dfe0; }
.reel-transcript summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; text-decoration: underline; text-underline-offset: 5px; }
.reel-transcript summary::-webkit-details-marker { display: none; }
.reel-transcript summary::before { content: "+"; color: var(--cyan); font-size: 18px; width: 14px; transition: transform .25s; }
.reel-transcript[open] summary::before { transform: rotate(45deg); }
.reel-transcript p { margin-top: 10px; line-height: 1.8; max-width: 58ch; color: #c8d3d5 !important; }
.showcase { position: relative; min-width: 0; display: grid; justify-items: center; align-items: center; padding-block: 24px; perspective: 1600px; }
.phone { position: relative; z-index: 2; width: min(300px, 64vw, calc(66svh * 9 / 19.5)); aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 46px;
  background: linear-gradient(150deg, #3a3d40, #121315 38%, #0a0b0c);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 5px #050505, 0 0 0 1px rgba(0, 240, 255, .32), 0 60px 90px -34px rgba(0, 0, 0, .9), 0 0 100px -34px rgba(0, 240, 255, .45);
  transform: rotateY(-12deg) rotateX(3deg); transition: transform .8s var(--ease); }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2c2e30; }
.phone::before { left: -3px; top: 22%; height: 9%; }
.phone::after { right: -3px; top: 28%; height: 13%; }
.showcase:hover .phone { transform: rotateY(-4deg) rotateX(1deg); }
.phone-island { position: absolute; z-index: 3; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #000; pointer-events: none; }
.phone-screen { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #10141a; }
.phone-screen video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #10141a; }
.reel-caption { position: relative; z-index: 3; justify-self: center; text-align: center; font-size: 12px; line-height: 1.5; color: #b9c9cd !important; margin: 18px 0 0 !important; width: min(300px, 64vw); }

/* Casos (WEB-01D): miniaturas holográficas. Al pasar el ratón (o con la tarjeta centrada en el móvil) las capturas
   del caso salen de la miniatura en capas flotantes 3D, con haz de proyección, escaneo y aberración cromática de entrada.
   main.js crea las capas (.holo-layer) a partir de #casos-datos. Solo se animan transform y opacity. */
.cases { list-style: none; margin: clamp(48px, 6vw, 88px) 0 0; padding: clamp(110px, 10vw, 150px) 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(130px, 12vw, 180px) clamp(20px, 2.6vw, 36px); }
.case { position: relative; grid-column: span 2; }
.case:nth-child(4) { grid-column: 2 / span 2; }
.case:nth-child(5) { grid-column: 4 / span 2; }
.case.is-holo { z-index: 3; }
.case-open { display: block; color: inherit; text-decoration: none; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.case-media { position: relative; display: block; container-type: inline-size; perspective: 1100px; perspective-origin: 50% 20%; }
.case-media::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -16%; height: 20%; pointer-events: none; background: radial-gradient(50% 50% at 50% 40%, rgba(0, 240, 255, .32), rgba(188, 0, 255, .12) 55%, transparent 75%); opacity: 0; transition: opacity .5s; }
.case-front { position: relative; z-index: 0; display: block; border-radius: 10px; overflow: hidden; background: #0e0f10; transform-origin: 50% 100%;
  box-shadow: 0 0 0 1px rgba(245, 243, 237, .12), 0 30px 60px -22px rgba(0, 0, 0, .85); transition: transform .7s var(--ease), opacity .5s, box-shadow .4s; }
.case-front img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case-front::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 240, 255, .09) 0 1px, transparent 1px 3px); opacity: 0; transition: opacity .4s; }
.case-open:hover .case-front, .case-open:focus-visible .case-front { box-shadow: 0 0 0 1px rgba(0, 240, 255, .6), 0 0 50px -10px rgba(0, 240, 255, .4), 0 40px 70px -26px rgba(0, 0, 0, .9); }
.is-holo .case-front { transform: translateZ(-70px) rotateX(10deg); opacity: .55; }
.is-holo .case-front::after, .is-holo .case-media::after { opacity: 1; }
/* Haz de proyección desde la miniatura hacia las capas */
.holo-beam { position: absolute; z-index: 1; left: 14%; right: 14%; top: -30cqw; height: 58cqw; pointer-events: none; transform-origin: 50% 100%; transform: scaleY(.15); opacity: 0;
  clip-path: polygon(0 0, 100% 0, 64% 100%, 36% 100%); background: linear-gradient(0deg, rgba(0, 240, 255, .34), rgba(0, 240, 255, .1) 55%, rgba(188, 0, 255, .05) 80%, transparent);
  transition: transform .6s var(--ease), opacity .4s; }
.is-holo .holo-beam { transform: none; opacity: 1; }
.holo { position: absolute; inset: 0; z-index: 2; pointer-events: none; transform-style: preserve-3d; }
.holo-layer { position: absolute; left: 50%; top: 50%; width: 52cqw; aspect-ratio: 16 / 10; opacity: 0; will-change: transform, opacity;
  transform: translate(-50%, -50%) translate3d(0, 8cqw, 0) scale(.4);
  transition: transform .8s cubic-bezier(.2, .9, .25, 1.1) calc(var(--i, 0) * 70ms), opacity .3s linear calc(var(--i, 0) * 70ms); }
.holo-layer.is-m { width: 19cqw; aspect-ratio: 390 / 844; }
.is-holo .holo-layer { opacity: 1; }
.is-holo .pos-l { transform: translate(-50%, -50%) translate3d(-34cqw, -38cqw, 40px) rotateY(16deg) rotateX(6deg); }
.is-holo .pos-r { transform: translate(-50%, -50%) translate3d(34cqw, -38cqw, 40px) rotateY(-16deg) rotateX(6deg); }
.is-holo .pos-c { transform: translate(-50%, -50%) translate3d(0, -50cqw, 110px) rotateX(4deg); }
.holo-face { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 8px; background: var(--src) center top / cover no-repeat, #0b1214;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, .8), 0 0 22px rgba(0, 240, 255, .45), 0 0 56px -12px rgba(188, 0, 255, .65); }
.holo-layer.is-m .holo-face { border-radius: 12px; }
.is-holo .pos-r.is-m { transform: translate(-50%, -50%) translate3d(26cqw, -46cqw, 90px) rotateY(-12deg) rotateX(4deg); }
.is-holo .holo-face { animation: holo-flicker .6s linear calc(var(--i, 0) * 70ms + 90ms) both, holo-bob 4.6s ease-in-out 1s infinite alternate; }
.holo-face .ca { position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(var(--tint), var(--tint)), var(--src) center top / cover no-repeat; background-blend-mode: multiply; }
.ca-c { --tint: #00f0ff; }
.ca-m { --tint: #ff1fd7; }
.is-holo .ca-c { animation: ca-c .75s var(--ease) calc(var(--i, 0) * 70ms + 90ms) both; }
.is-holo .ca-m { animation: ca-m .75s var(--ease) calc(var(--i, 0) * 70ms + 90ms) both; }
.holo-face .scan { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 240, 255, .11) 0 1px, transparent 1px 3px), linear-gradient(180deg, rgba(0, 240, 255, .14), transparent 45%, rgba(188, 0, 255, .14)); }
.holo-face .scan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16%; background: linear-gradient(180deg, transparent, rgba(0, 240, 255, .32), transparent); transform: translateY(-100%); }
.is-holo .holo-face .scan::after, .case-stage .holo-face .scan::after { animation: scan-sweep 2.8s linear infinite; }
@keyframes holo-flicker { 0% { opacity: 0; } 10% { opacity: .85; } 18% { opacity: .2; } 30% { opacity: 1; } 42% { opacity: .55; } 55%, 100% { opacity: .95; } }
@keyframes holo-bob { from { transform: translate3d(0, -2.5%, 0); } to { transform: translate3d(0, 2.5%, 0); } }
@keyframes ca-c { 0% { opacity: .95; transform: translate3d(-6%, 0, 0); } 55% { opacity: .5; transform: translate3d(1.5%, 0, 0); } 100% { opacity: 0; transform: none; } }
@keyframes ca-m { 0% { opacity: .95; transform: translate3d(6%, 0, 0); } 55% { opacity: .5; transform: translate3d(-1.5%, 0, 0); } 100% { opacity: 0; transform: none; } }
@keyframes scan-sweep { from { transform: translateY(-100%); } to { transform: translateY(640%); } }
.case-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-name { font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.case-sector { grid-column: 1; font-size: 14px; color: var(--ink-soft); }
.case-kind { grid-column: 1; margin-top: 6px; font-family: var(--f-display); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.case-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-display); font-size: 14px; font-weight: 600; color: var(--cyan); }
.case-open:hover .case-go .i-arrow { transform: translate(2px, -2px); }
.holo-hint { margin: clamp(44px, 5vw, 72px) auto 0 !important; max-width: none; text-align: center; font-family: var(--f-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8fa7ad !important; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hint-hover { display: none; } .hint-touch { display: inline; } }

/* Visor de caso (WEB-01D): galería holográfica en grande. Escenario con la captura en un marco de portátil o de móvil;
   ficha y CTA de Andrezia a la derecha (en móvil, apilado). Sin enlaces a las webs de los clientes. */
.case-dialog { width: min(1280px, calc(100% - 24px)); background: radial-gradient(900px 500px at 30% 0%, rgba(0, 240, 255, .07), transparent 70%), radial-gradient(700px 500px at 100% 100%, rgba(188, 0, 255, .08), transparent 70%), #111314; color: var(--ink); color-scheme: dark;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, .22), 0 40px 140px rgba(0, 0, 0, .75); }
.case-dialog :focus-visible { outline-color: var(--cyan); }
.case-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "stage head" "stage foot" "thumbs foot"; gap: 0 clamp(24px, 3vw, 44px); padding: clamp(20px, 2.6vw, 36px); }
.case-head { grid-area: head; padding-right: 44px; }
.case-head .eyebrow { justify-content: space-between; margin-bottom: 12px; }
.case-count { color: var(--ink-soft); letter-spacing: .12em; white-space: nowrap; }
.case-head h2 { font-size: clamp(28px, 2.8vw, 42px); max-width: none; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.case-tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(0, 240, 255, .38); font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: #c9f9fc; background: rgba(0, 240, 255, .06); }
.case-tags li:nth-child(n+2) { border-color: rgba(211, 148, 255, .4); color: #ead2ff; background: rgba(188, 0, 255, .07); }
.case-text { margin-top: 18px !important; font-size: 16px; line-height: 1.6; color: var(--ink-dim) !important; }
.case-dialog .dialog-close { top: 10px; right: 10px; color: var(--ink); z-index: 4; }
.case-dialog .dialog-close:hover { background: #2a2a28; }
.case-stage { grid-area: stage; position: relative; align-self: start; display: grid; place-items: center; aspect-ratio: 16 / 10.6; border-radius: 14px; overflow: hidden; touch-action: pan-y;
  background: radial-gradient(60% 55% at 50% 42%, rgba(0, 240, 255, .12), transparent 70%), radial-gradient(50% 40% at 50% 100%, rgba(188, 0, 255, .14), transparent 70%), #07090a;
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .3), 0 30px 80px -34px rgba(0, 240, 255, .3); }
.case-stage::before, .case-stage::after { content: ""; position: absolute; width: 22px; height: 22px; border: solid rgba(0, 240, 255, .7); pointer-events: none; }
.case-stage::before { left: 12px; top: 12px; border-width: 1px 0 0 1px; }
.case-stage::after { right: 12px; bottom: 12px; border-width: 0 1px 1px 0; }
.holo-room { position: absolute; left: -25%; right: -25%; bottom: -4%; height: 44%; pointer-events: none; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  background-image: linear-gradient(rgba(0, 240, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, .16) 1px, transparent 1px); background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%); }
.dev { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 80%; margin-top: -3%; }
.dev-screen { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px 14px 6px 6px; background: linear-gradient(160deg, #2c2f32, #0b0c0d 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 0 0 2px rgba(0, 240, 255, .18), 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 70px -18px rgba(0, 240, 255, .45); }
.dev-screen .holo-face { position: absolute; inset: 3.4% 2% 3%; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 240, 255, .35); }
.dev-screen .holo-face .scan { opacity: .55; }
.dev-base { position: relative; display: block; width: 114%; height: 0; padding-bottom: 2.6%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(#45484b, #17191b); box-shadow: 0 16px 28px -12px rgba(0, 0, 0, .9); }
.dev-base::before { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 40%; border-radius: 0 0 8px 8px; background: #1b1d1f; }
.dev.is-m { width: auto; height: 88%; margin-top: -2%; }
.dev.is-m .dev-screen { width: auto; height: 100%; aspect-ratio: 390 / 844; border-radius: 30px; background: linear-gradient(150deg, #3a3d40, #121315 38%, #0a0b0c); }
.dev.is-m .holo-face { inset: 2.2% 3.6%; border-radius: 22px; }
.dev.is-m .dev-base { display: none; }
.case-stage.is-in .dev { animation: dev-in .6s var(--ease) both; }
.case-stage.is-in .holo-face { animation: holo-flicker .55s linear both; }
.case-stage.is-in .ca-c { animation: ca-c .7s var(--ease) both; }
.case-stage.is-in .ca-m { animation: ca-m .7s var(--ease) both; }
@keyframes dev-in { from { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 5%), 2%, 0) scale(.95); } to { opacity: 1; transform: none; } }
.stage-cap { position: absolute; z-index: 2; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(7, 9, 10, .78); border: 1px solid rgba(0, 240, 255, .25); font-family: var(--f-display); font-size: 12px; letter-spacing: .03em; color: #d9fbfd; }
.stage-n { color: var(--cyan); letter-spacing: .1em; }
.stage-cap { max-width: calc(100% - 32px); white-space: nowrap; }
#caso-cap { overflow: hidden; text-overflow: ellipsis; }
.stage-n { flex-shrink: 0; }
.stage-nav { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(0, 240, 255, .4); border-radius: 50%; background: rgba(7, 9, 10, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); transition: background-color .25s, border-color .25s, color .25s; }
.stage-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stage-nav.prev { left: 14px; }
.stage-nav.next { right: 14px; }
.stage-nav:hover { background: var(--cyan); border-color: var(--cyan); color: var(--graphite); }
.case-thumbs { grid-area: thumbs; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 14px; }
.case-thumbs button { height: clamp(56px, 6.6vw, 80px); padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0b0c0d; opacity: .6; transition: opacity .25s, border-color .25s, box-shadow .25s; }
.case-thumbs button:hover { opacity: .9; }
.case-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--cyan); box-shadow: 0 0 18px -4px rgba(0, 240, 255, .6); }
.case-thumbs img { height: 100%; width: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.case-thumbs .is-m img { aspect-ratio: 390 / 844; }
.case-foot { grid-area: foot; align-self: end; display: grid; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.case-actions { display: grid; gap: 6px; }
.case-actions .btn { width: 100%; justify-content: space-between; }
.case-actions .link-wa { justify-content: center; }
.case-foot .reel-note { font-size: 12.5px; line-height: 1.6; color: #a9aaa3; }
.case-nav { display: flex; justify-content: space-between; gap: 24px; }
.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; }
@media (max-width: 960px) {
  .case-shell { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "head" "stage" "thumbs" "foot"; }
  .case-head { margin-bottom: 18px; }
  .case-text { display: none; }
  .case-actions { grid-template-columns: 1fr 1fr; align-items: center; }
}
@media (max-width: 600px) {
  .case-actions { grid-template-columns: 1fr; }
  .case-head h2 { font-size: 26px; }
  .case-tags { margin-top: 12px; }
  .case-tags li { font-size: 11px; padding: 4px 10px; }
  .case-stage { aspect-ratio: 16 / 12.5; }
  .dev { width: 90%; margin-top: -9%; }
  .dev.is-m { height: 90%; }
  .stage-nav { width: 40px; height: 40px; margin-top: -20px; }
  .stage-nav.prev { left: 8px; }
  .stage-nav.next { right: 8px; }
  .stage-cap { left: 10px; bottom: 10px; font-size: 11px; }
  .case-thumbs { flex-wrap: nowrap; }
  .case-thumbs button { height: 52px; }
}

/* Titulares con entrada tecnológica (WEB-01D): main.js descifra las letras; aquí, los glifos, la máscara de escaneo y el brillo */
.tt { position: relative; }
.js .motion-on .tt:not(.tt-run):not(.tt-done) { opacity: 0; }
.tt-w { white-space: nowrap; }
.tt-c { position: relative; }
.tt-run { animation: tt-mask .95s var(--ease) both; }
.tt-run .tt-c:not(.ok) { color: transparent; }
.tt-run .tt-c:not(.ok)::after { content: attr(data-g); position: absolute; left: 50%; top: 0; transform: translateX(-50%); color: var(--cyan); opacity: .8; text-shadow: 0 0 12px rgba(0, 240, 255, .6); }
.tt-run .tt-c.ok { animation: tt-glow .8s ease-out both; }
.tt-run::after { content: ""; position: absolute; left: -1%; right: -1%; top: 0; height: 100%; pointer-events: none; transform-origin: 50% 0;
  background: linear-gradient(180deg, transparent 0, transparent 72%, rgba(0, 240, 255, .18) 95%, rgba(0, 240, 255, .9) 100%); animation: tt-scan .95s var(--ease) both; }
.light .tt-run .tt-c:not(.ok)::after { color: var(--cyan-ink); text-shadow: none; }
.light .tt-run .tt-c.ok { animation-name: tt-glow-light; }
.light .tt-run::after { background: linear-gradient(180deg, transparent 0, transparent 72%, rgba(0, 107, 119, .14) 95%, rgba(0, 107, 119, .8) 100%); }
@keyframes tt-mask { from { clip-path: inset(-.2em -.3em 100% -.3em); } to { clip-path: inset(-.2em -.3em -.3em -.3em); } }
@keyframes tt-scan { from { transform: scaleY(0); opacity: 1; } 82% { transform: scaleY(1); opacity: 1; } to { transform: scaleY(1); opacity: 0; } }
@keyframes tt-glow { from { color: #c8fbff; text-shadow: 0 0 18px rgba(0, 240, 255, .95); } to { text-shadow: 0 0 0 rgba(0, 240, 255, 0); } }
@keyframes tt-glow-light { from { color: var(--cyan-ink); } }

/* Recorrido */
.example-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 96px); margin-top: 32px; align-items: start; }
.example-intro p { margin: 0 !important; }
.example-intro .lead { color: var(--ink); font-family: var(--f-display); font-weight: 500; letter-spacing: -.01em; }
.example-cta { margin-top: 36px; }
.journey { margin-top: 48px; padding: clamp(24px, 3.5vw, 44px); border-radius: 18px; background: linear-gradient(180deg, var(--graphite-2), #1a1b19); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.journey:focus { outline: none; }
.demo-label { font-family: var(--f-display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft) !important; margin-bottom: 28px; }
.journey-track { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.journey-track::before { content: ""; position: absolute; left: 24px; right: 12%; top: 24px; height: 1px; background: #4c4e47; }
.journey-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 0; border: 0; background: none; text-align: left; font-family: var(--f-display); font-size: 17px; font-weight: 500; line-height: 1.3; color: var(--ink-soft); transition: color .3s; }
.journey-step .circle { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #30322d; color: var(--ink); font-weight: 600; transition: background-color .35s, color .35s, transform .35s var(--ease), box-shadow .35s; }
.journey-step:hover { color: var(--ink); }
.journey-step[aria-pressed="true"] { color: var(--ink); }
.journey-step[aria-pressed="true"] .circle { background: var(--cyan); color: var(--graphite); transform: scale(1.06); box-shadow: 0 0 0 6px rgba(0, 240, 255, .12); }
.journey-state { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 104px; padding: 20px 24px; border-left: 3px solid var(--cyan); background: #20221e; border-radius: 0 10px 10px 0; }
.journey-state p { font-family: var(--f-display); font-size: clamp(19px, 1.8vw, 24px); font-weight: 500; letter-spacing: -.015em; color: var(--ink) !important; }
.journey-count { font-family: var(--f-display); font-size: 12px; letter-spacing: .1em; color: var(--cyan); white-space: nowrap; }
.journey-controls { display: flex; gap: 28px; margin-top: 12px; }
.journey-controls button:disabled { opacity: .4; cursor: default; }

/* Sectores */
.sector-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; margin-top: clamp(44px, 5vw, 72px); }
.sector-row + .sector-row { margin-top: clamp(48px, 6vw, 88px); }
.sector-row:nth-of-type(even) .sector-art { order: 2; }
.sector-copy h3 { font-size: clamp(25px, 2.4vw, 34px); color: var(--paper-ink); }
.sector-copy p { margin-top: 22px; font-size: 18px; }
.sector-copy .text-link { margin-top: 18px; color: var(--paper-ink); }
.sector-art { position: relative; aspect-ratio: 1.6; overflow: hidden; border-radius: 14px; min-width: 0; }
.graph-art { background: radial-gradient(circle at 75% 25%, #2f3a31, #1e2620); }
.paper { position: absolute; width: 40%; height: 55%; transform: skewY(-12deg) rotate(-17deg); transition: transform .9s var(--ease); box-shadow: 10px 16px 30px rgba(0, 0, 0, .25); }
.paper.p1 { background: #3a4035; left: 13%; top: 15%; }
.paper.p2 { background: var(--magenta); left: 28%; top: 23%; }
.paper.p3 { background: var(--cyan); left: 40%; top: 31%; }
.paper.p4 { background: var(--paper); left: 52%; top: 39%; }
.sector-row:hover .p1 { transform: translate(-10px, -10px) skewY(-12deg) rotate(-23deg); }
.sector-row:hover .p2 { transform: translate(-5px, -6px) skewY(-12deg) rotate(-19deg); }
.sector-row:hover .p4 { transform: translate(8px, 6px) skewY(-12deg) rotate(-11deg); }
.beauty-art { background: radial-gradient(circle at 30% 30%, #f3ebe8, #e3d6d6); }
.arch { position: absolute; left: 29%; top: 10%; width: 48%; height: 78%; border-radius: 50% 50% 44% 44%; background: #b8a8be; transition: transform .9s var(--ease); }
.arch.front { left: 18%; top: 25%; width: 44%; height: 71%; background: #f8f1e9; box-shadow: 0 20px 40px rgba(90, 60, 90, .15); }
.sector-row:hover .arch.front { transform: translateX(-12px) rotate(-5deg); }
.beauty-orb { position: absolute; left: 65%; top: 13%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: var(--magenta); transition: transform .9s var(--ease); }
.sector-row:hover .beauty-orb { transform: translateY(-14px); }
.beauty-line { position: absolute; left: 25%; top: 75%; width: 27%; height: 1px; background: #bea6bf; }
.beauty-line.two { top: 81%; width: 19%; }
.art-label { position: absolute; left: 24px; bottom: 20px; font-family: var(--f-display); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.graph-art .art-label { color: var(--paper); }
.beauty-art .art-label { color: var(--paper-ink); }
.sector-other { margin-top: clamp(44px, 5vw, 72px) !important; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: 18px; color: var(--paper-ink) !important; max-width: none; }

/* Método */
.method-steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.method-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: start; padding: 38px 0; border-top: 1px solid var(--line); }
.method-row .number { font-size: clamp(56px, 6vw, 84px); font-weight: 600; line-height: .9; letter-spacing: -.06em; color: var(--cyan); }
.method-row:nth-child(even) .number { color: var(--magenta-soft); }
.method-row p { font-size: 18px; }
/* WEB-01D: el método pasa a fondo claro para alternar con servicios y recorrido */
.light .method-steps, .light .method-row { border-color: var(--line-light); }
.light .method-row .number { color: var(--cyan-ink); }
.light .method-row:nth-child(even) .number { color: #7d1fa8; }

/* Confianza */
.trust h2 { max-width: 21ch; }
.trust .lead { max-width: 52ch; }
.signature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 6vw, 96px); align-items: center; margin-top: clamp(44px, 5vw, 72px); }
.signature { position: relative; padding: clamp(28px, 3vw, 44px); border-radius: 14px; background: var(--graphite); color: var(--ink); font-family: var(--f-display); font-size: clamp(44px, 5.4vw, 80px); font-weight: 600; line-height: 1.02; letter-spacing: -.05em; overflow: hidden; }
.signature span { display: block; }
.signature span:last-child { color: transparent; -webkit-text-stroke: 1px rgba(245, 243, 237, .75); }
.signature::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 32px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
.about { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--paper-ink) !important; }
.about-logo { display: inline-block; margin-top: 28px; padding: 14px 18px; border-radius: 10px; background: var(--graphite); }
.about-logo img { width: 230px; height: auto; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-title { max-width: 10ch; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 26px 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #55574f; background: linear-gradient(var(--cyan), var(--cyan)) center / 12px 1.5px no-repeat, linear-gradient(var(--cyan), var(--cyan)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease), border-color .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--cyan); }
.faq-item summary:hover { color: var(--cyan); }
.faq-item p { padding-bottom: 28px; font-size: 17px; max-width: 62ch; }

/* Cierre */
.closing { position: relative; background: radial-gradient(800px 420px at 90% 0%, rgba(188, 0, 255, .14), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(0, 240, 255, .08), transparent 70%), var(--graphite); border-top: 1px solid var(--line); }
.closing::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
.closing h2 { font-size: clamp(36px, 5.4vw, 80px); max-width: 17ch; }
.closing .lead { max-width: 52ch; }
.closing .btn { margin-top: 36px; }
.contact-line { margin-top: 26px !important; font-size: 17px; }
.contact-line a, .footer-contact a { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(245, 243, 237, .35); transition: color .2s; }
.contact-line a:hover, .footer-contact a:hover { color: var(--cyan); }

/* Pie */
.site-footer { background: #121212; border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 14px; color: var(--ink-soft); }
.site-footer p { color: #a3a49c; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; align-items: end; }
.site-footer .logo { width: 230px; margin-bottom: 18px; }
.footer-contact p + p { margin-top: 10px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 18px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: #c9c9c2; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(245, 243, 237, .3); }
.footer-legal a:hover { color: var(--cyan); }
.motion-control { margin-top: 12px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid #4e5049; background: transparent; color: #b3b3ac; font-size: 12px; }
.motion-control:hover { border-color: var(--cyan); color: var(--ink); }

/* Flotantes */
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #5b5d55; background: rgba(23, 23, 23, .9); color: var(--cyan); font-size: 20px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.back-top.visible { opacity: 1; visibility: visible; }
.mobile-cta { display: none; }

/* ——— Diálogo de diagnóstico ——— */
dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 30px 120px rgba(0, 0, 0, .6); overflow: auto; color-scheme: light; }
dialog::backdrop { background: rgba(8, 8, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog[open] { animation: dialog-in .35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.diag form { position: relative; padding: clamp(26px, 4vw, 40px); }
.diag .eyebrow { color: var(--cyan-ink); margin-bottom: 16px; }
.diag h2 { font-size: clamp(26px, 3.4vw, 36px); padding-right: 36px; }
.diag form > p { margin-top: 14px; color: var(--paper-dim); font-size: 16px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 28px; line-height: 1; color: var(--paper-ink); }
.dialog-close:hover { background: var(--paper-2); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 12px; font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.opt { font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--paper-dim); margin-left: 6px; }
.choice { position: relative; display: flex; align-items: center; min-height: 56px; padding: 12px 14px 12px 44px; border: 1px solid #bdb9ad; border-radius: 10px; background: #fbfaf6; font-size: 15px; line-height: 1.3; cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice input { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin: -9px 0 0; accent-color: var(--cyan-ink); }
.choice:hover { border-color: var(--cyan-ink); }
.choice:has(input:checked) { border-color: var(--cyan-ink); background: #dcf3f0; box-shadow: 0 0 0 1px var(--cyan-ink) inset; }
.choice:has(input:focus-visible) { outline: 3px solid var(--cyan-ink); outline-offset: 2px; }
.field { display: grid; gap: 8px; margin-top: 20px; font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.field textarea { width: 100%; min-height: 88px; padding: 12px 14px; border: 1px solid #bdb9ad; border-radius: 10px; background: #fbfaf6; font-family: var(--f-body); font-weight: 400; font-size: 16px; resize: vertical; }
.field textarea:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 1px; }
.dialog-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.diag .btn-primary { background: var(--graphite); color: var(--paper); }
.diag .btn-primary:hover { background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.diag .text-link { font-family: var(--f-body); font-weight: 500; font-size: 15px; color: var(--paper-ink); }
.dialog-note { margin-top: 18px !important; font-size: 13px !important; line-height: 1.55; }
.dialog-note a { color: var(--cyan-ink); text-underline-offset: 3px; }
html.dialog-open { overflow: hidden; }

/* ——— Movimiento ——— */
.js .motion-on .reveal { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.js .motion-on .reveal:not(.is-visible) { opacity: 0; transform: translateY(26px); }
.motion-off *, .page-hidden * { animation-play-state: paused !important; }
.motion-off .mesa { --p: 0 !important; --mx: 0 !important; --my: 0 !important; }
.motion-off .phone, .motion-off .case-front { transition: none; }
.motion-off .holo, .motion-off .holo-beam, .motion-off .case-media::after, .motion-off .holo-hint { display: none; }
.motion-off .case-front { transform: none !important; opacity: 1 !important; }
.motion-off .cases { row-gap: 64px; padding-top: 24px; }
.motion-off .tt { opacity: 1 !important; }
.motion-off .case-stage .scan::after { animation: none; }
.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.motion-off .paper, .motion-off .arch, .motion-off .beauty-orb { transition: none; }

/* ——— Páginas legales ——— */
.legal-page .site-header, .sub-page .site-header { position: sticky; background: rgba(23, 23, 23, .94); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.legal-page .header-row { justify-content: space-between; }
.legal-doc { padding-block: clamp(48px, 7vw, 96px); }
.legal-doc .wrap { max-width: 880px; }
.legal-doc h1 { font-size: clamp(34px, 5vw, 56px); }
.legal-doc .updated { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.legal-doc h2 { font-size: clamp(20px, 2vw, 24px); max-width: none; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); letter-spacing: -.015em; }
.legal-doc p { margin-top: 14px; color: var(--ink-dim); }
.legal-doc a { color: var(--cyan); text-underline-offset: 3px; }
.legal-doc table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.legal-doc th, .legal-doc td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-doc th { font-family: var(--f-display); font-weight: 600; background: var(--graphite-2); }
.legal-doc .pending { background: rgba(188, 0, 255, .16); color: #f1d9ff; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal-index { list-style: none; padding: 0; margin: 32px 0 0; border-bottom: 1px solid var(--line); }
.legal-index a { display: flex; justify-content: space-between; align-items: center; min-height: 64px; border-top: 1px solid var(--line); font-family: var(--f-display); font-size: 22px; color: var(--ink); text-decoration: none; }
.legal-index a:hover { color: var(--cyan); }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-dim); font-size: 14px; text-underline-offset: 5px; }
.back-link:hover { color: var(--cyan); }

/* ——— Responsive ——— */
@media (max-width: 1180px) {
  .desktop-nav { gap: 20px; font-size: 14px; }
  .logo { width: 186px; }
  .header-row { gap: 20px; }
  .service-row { grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.2fr) 48px; gap: 20px; }
  .method-row { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; }
  .nav-extra { display: none; }
}
@media (max-width: 960px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-copy h2 { max-width: none; }
  .showcase { padding-block: 40px 8px; justify-items: center; }
  .phone { margin-right: 0; }
  .reel-caption { justify-self: center; margin-right: 0 !important; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-title { max-width: none; }
}
@media (max-width: 800px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .header-row { height: var(--header-h); }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .logo { width: 176px; }
  /* Móvil y tableta: portada más corta (el recorrido se hace con el scroll nativo) y mesa de pantallas en 2×3 */
  .motion-on .hero.has-scroll { height: 400svh; }
  .neuro-rail { display: none !important; }
  .neuro-step { font-size: clamp(26px, 7.4vw, 40px); max-width: 16ch; }
  .neuro-steps { top: calc(var(--header-h) + 5vh); padding-inline: var(--gutter); }
  .neuro-label { font-size: 10px; padding: 5px 10px; letter-spacing: .1em; }
  .neuro-words { font-size: clamp(42px, 12.6vw, 76px); }
  .neuro-cta .hero-support { font-size: clamp(22px, 6.2vw, 28px); }
  .hero-inner { padding-block: 16px 62px; }
  /* Móvil: el texto va abajo, así que el velo sube desde abajo; arriba se ve el vuelo */
  .hero-veil { background: linear-gradient(0deg, rgba(7, 9, 11, .96) 0, rgba(7, 9, 11, .93) 58%, rgba(7, 9, 11, .72) 70%, rgba(7, 9, 11, 0) 88%); }
  .hero-hud { display: none; }
  .hero-copy::before, .neuro-cta::before { inset: -10% -8% -12%; }
  .mesa { margin-top: 32px; }
  .studio { --u: min(1cqw, .85cqh); --drop: 0; --rx0: 10; --rx1: 48; --ry0: 0; --rz1: -6; height: min(108vw, 600px); perspective: 1400px; }
  .studio-glow { inset: 0 -30%; }
  .studio-floor { top: 55%; }
  .rig { top: 50%; }
  .s1 { --sw: 56; --fx: -6; --fy: -14; --fz: 40; --fry: -10; --frx: 6; --frz: -3; --tx: -22; --ty: -30; --ts: .714; }
  .s2 { --sw: 50; --fx: -20; --fy: 30; --fz: -140; --fry: -14; --frx: 4; --frz: 3; --tx: -22; --ty: 30; --ts: .8; }
  .s3 { --sw: 46; --fx: 20; --fy: -30; --fz: 0; --fry: -8; --frx: 8; --frz: -2; --tx: 22; --ty: -30; --ts: .87; }
  .s4 { --sw: 44; --fx: 4; --fy: 4; --fz: 120; --fry: -16; --frx: 6; --frz: 2; --tx: 0; --ty: 0; --ts: .909; }
  .s5 { --sw: 42; --fx: 22; --fy: 36; --fz: -220; --fry: -8; --frx: 6; --frz: -3; --tx: 22; --ty: 30; --ts: .952; }
  .screen-bar { height: 16px; padding: 0 7px; font-size: 8px; gap: 4px; }
  .screen-bar i { width: 4px; height: 4px; }
  .screen-body { border-radius: 7px; }
  .hero h1 { font-size: clamp(30px, 8.2vw, 46px); line-height: 1.07; }
  .hero .eyebrow { margin-bottom: 14px; font-size: 11px; }
  .hero-lead { margin-top: 14px; font-size: 16px; line-height: 1.5; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 20px; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .link-wa { justify-content: center; }
  .hero .link-wa { justify-content: flex-start; }
  .chapter { padding-block: 64px 72px; }
  h2 { font-size: clamp(30px, 8.2vw, 44px); }
  .eyebrow { font-size: 11px; margin-bottom: 20px; }
  .problem-text, .example-intro { grid-template-columns: 1fr; gap: 20px; }
  .service-row { grid-template-columns: 34px minmax(0, 1fr) 44px; gap: 10px 12px; padding: 26px 0; }
  .service-row .number { font-size: 13px; line-height: 2.1; }
  .service-row h3 { font-size: 22px; grid-column: 2; }
  .service-row p { grid-column: 1 / -1; margin-top: 4px; }
  .service-jump { grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
  .showcase { padding-block: 12px 0; }
  .phone { width: min(270px, 68vw, calc(72svh * 9 / 19.5)); border-radius: 40px; transform: rotateY(-8deg); }
  .phone-screen { border-radius: 31px; }
  .phone-island { top: 18px; height: 18px; }
  .cases { grid-template-columns: 1fr; gap: clamp(150px, 38vw, 220px); max-width: 520px; margin-inline: auto; padding-top: clamp(120px, 30vw, 180px); }
  .case, .case:nth-child(4), .case:nth-child(5) { grid-column: auto; }
  .holo-layer { width: 50cqw; }
  .holo-layer.is-m { width: 18cqw; }
  .is-holo .pos-l { transform: translate(-50%, -50%) translate3d(-25cqw, -36cqw, 30px) rotateY(14deg) rotateX(6deg); }
  .is-holo .pos-r { transform: translate(-50%, -50%) translate3d(25cqw, -36cqw, 30px) rotateY(-14deg) rotateX(6deg); }
  .is-holo .pos-c { transform: translate(-50%, -50%) translate3d(0, -50cqw, 90px) rotateX(4deg); }
  .is-holo .pos-r.is-m { transform: translate(-50%, -50%) translate3d(24cqw, -46cqw, 70px) rotateY(-10deg) rotateX(4deg); }
  .case-dialog { width: calc(100% - 16px); }
  .case-foot .btn { width: 100%; }
  .journey { padding: 22px 18px; border-radius: 14px; }
  .journey-track { grid-template-columns: 1fr; gap: 16px; }
  .journey-track::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .journey-step { flex-direction: row; align-items: center; gap: 16px; min-height: 48px; font-size: 16px; }
  .journey-step .circle { width: 44px; height: 44px; flex-shrink: 0; }
  .journey-state { padding: 16px; min-height: 112px; }
  .journey-controls { justify-content: space-between; }
  .sector-row { grid-template-columns: 1fr; gap: 24px; }
  .sector-row:nth-of-type(even) .sector-art { order: 0; }
  .sector-row + .sector-row { padding-top: 40px; border-top: 1px solid var(--line-light); }
  .sector-art { aspect-ratio: 1.5; }
  .sector-copy p { font-size: 16px; }
  .sector-other { font-size: 16px; }
  .method-row { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 14px; padding: 28px 0; }
  .method-row .number { font-size: 38px; }
  .method-row h3 { font-size: 22px; align-self: center; }
  .method-row p { grid-column: 1 / -1; font-size: 16px; margin-top: 4px; }
  .signature-row { grid-template-columns: 1fr; }
  .signature { font-size: clamp(44px, 14vw, 64px); }
  .about { font-size: 18px; }
  .faq-item summary { font-size: 19px; padding: 22px 0; }
  .faq-item p { font-size: 16px; }
  .closing h2 { font-size: clamp(33px, 9vw, 48px); }
  .closing .btn { width: 100%; }
  .contact-line { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .site-footer { padding-bottom: 100px; }
  .back-top { display: none; }
  .mobile-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 45; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); transform: translateY(140%); transition: transform .4s var(--ease); }
  .mobile-cta.visible { transform: none; }
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 50px; }
}
@media (min-width: 601px) and (max-width: 800px) {
  .hero-copy { max-width: 640px; }
  .hero-actions { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px 28px; }
  .hero-actions .btn, .closing .btn { width: auto; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .logo { width: 158px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 15px; }
  .signature { font-size: 42px; }
}
@media (min-width: 801px) and (max-height: 760px) {
  .hero h1 { font-size: clamp(32px, 3.4vw, 50px); }
  .hero-lead { font-size: 17px; margin-top: 14px; }
  .hero-actions { margin-top: 18px; }
  .hero-inner { padding-bottom: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media (forced-colors: active) {
  .btn, .service-jump, .choice { border: 1px solid ButtonText; }
}

/* ═════════ WEB-01F: el resto de sus estilos (secciones bajo el pliegue) está en css/secciones-01f.css ═════════ */
/* Menú y rótulos de novedad */
.nav-pill { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px; font-family: var(--f-display); font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; vertical-align: 2px; color: var(--graphite); background: var(--magenta-soft); }
.mobile-nav .nav-pill { font-size: 11px; vertical-align: 5px; }
.new-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-family: var(--f-display); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; color: var(--graphite); background: var(--cyan); }
.new-tag.soon { background: var(--magenta-soft); }
@media (max-width: 1360px) { .nav-extra { display: none; } .desktop-nav { gap: 24px; } }
@media (max-width: 1180px) { .desktop-nav { gap: 18px; font-size: 14px; } .nav-pill { display: none; } }


/* ═════════ WEB-01F · Revisión DIR-001 (20/10, 18:20): nada de negro plano ═════════
   Material propio ya pagado (sin créditos): hero_wow/wow_{A,B,C} en WebP ≤ 150 KB y el vídeo de la portada reutilizado.
   --dither: grano muy fino (SVG feTurbulence) que rompe las bandas de los degradados oscuros. */
:root { --dither: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 1 · Cabecera: negro profundo de marca con cristal (no gris) */
.site-header.is-solid, .site-header.menu-open { background: linear-gradient(180deg, rgba(6, 7, 9, .985), rgba(9, 10, 12, .965)); border-bottom-color: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .9); }
.site-header.is-solid::after, .site-header.menu-open::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, .35) 30%, rgba(188, 0, 255, .35) 70%, transparent); }
.menu-toggle { background: rgba(6, 7, 9, .55); }

/* 2 · Portada: velos con más pasos + grano, sin bandas ni rayas visibles detrás del texto */
.hero-veil::after { content: ""; position: absolute; inset: 0; background: var(--dither); opacity: .32; mix-blend-mode: overlay; }
.hero-stage::after { opacity: .28; }
.neuro-steps::before { background: radial-gradient(closest-side, rgba(7, 9, 11, .74), rgba(7, 9, 11, .7) 18%, rgba(7, 9, 11, .62) 32%, rgba(7, 9, 11, .5) 46%, rgba(7, 9, 11, .37) 58%, rgba(7, 9, 11, .24) 70%, rgba(7, 9, 11, .13) 81%, rgba(7, 9, 11, .05) 91%, rgba(7, 9, 11, 0)); }
.neuro-words::before { background: radial-gradient(closest-side, rgba(7, 9, 11, .7), rgba(7, 9, 11, .62) 25%, rgba(7, 9, 11, .48) 45%, rgba(7, 9, 11, .32) 62%, rgba(7, 9, 11, .17) 78%, rgba(7, 9, 11, .06) 91%, rgba(7, 9, 11, 0)); }
.hero-copy::before, .neuro-cta::before { background: radial-gradient(closest-side, rgba(7, 9, 11, .72), rgba(7, 9, 11, .64) 30%, rgba(7, 9, 11, .5) 52%, rgba(7, 9, 11, .3) 72%, rgba(7, 9, 11, .12) 88%, rgba(7, 9, 11, 0)); }
@media (max-width: 800px) {
  /* Líneas de escaneo fuera en móvil: con densidades de 2-3x se ven como bandas negras */
  .hero-stage::after { display: none; }
  .hero-veil { background: linear-gradient(0deg, rgba(7, 9, 11, .96) 0, rgba(7, 9, 11, .95) 30%, rgba(7, 9, 11, .92) 44%, rgba(7, 9, 11, .86) 54%, rgba(7, 9, 11, .76) 62%, rgba(7, 9, 11, .62) 69%, rgba(7, 9, 11, .46) 75%, rgba(7, 9, 11, .3) 81%, rgba(7, 9, 11, .16) 87%, rgba(7, 9, 11, .06) 93%, rgba(7, 9, 11, 0) 98%); }
  /* Escenas 2 y 3: texto más abajo y centrado, lejos de la barra del navegador */
  .neuro-steps { top: auto; bottom: calc(clamp(96px, 17vh, 170px) + 96px); }
  .motion-on .hero.has-scroll .scene-3 { justify-content: flex-end; padding-bottom: calc(clamp(96px, 17vh, 170px) + 40px); }
  .neuro-step, .neuro-words { margin-inline: auto; text-align: center; }
}

/* 7 · Pie centrado (también en móvil) */
.site-footer { background: radial-gradient(60% 120% at 50% 0%, rgba(0, 240, 255, .06), transparent 70%), #08090b; }
.footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: center; }
.site-footer .logo { margin-inline: auto; }
.site-footer p { margin-inline: auto; }
.footer-legal { justify-content: center; }
.motion-control { margin-inline: auto; }
@media (max-width: 800px) { .footer-grid { align-items: center; } }

/* Hologramas precalentados (release_20261202_hologramas): con la tarjeta cerca (.holo-near, main.js) las capas se pintan con
   opacidad 0,001, invisible, para que la GPU las rasterice antes de proyectar; al proyectar solo se componen. Mismo aspecto. */
.holo-near:not(.is-holo) .holo-layer, .holo-near:not(.is-holo) .holo-face .ca { opacity: .001; }
