@font-face { font-family: "Space Grotesk"; src: url("/sistema/fuentes/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/sistema/fuentes/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url("/sistema/fuentes/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/sistema/fuentes/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* La piel de la Agencia (lima y magenta) + el neón de Arcane (rosa, cian, azul eléctrico, violeta). */
:root { --barra-inf: 0px;
  --lima: #D1FE17; --magenta: #FF1F7A; --rosa: #FF4FD8; --cian: #00E5FF; --azul: #2F6BFF; --violeta: #8B3DFF;
  --noche: #030304; --hueso: #F7F7F4; --tinta: #0B0C0E;
  --tono: none; /* 6-oct: las imágenes ya vienen con el color final */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--noche); color: #f2f3ef; font: 16px/1.45 Inter, system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
em { font-style: normal; background: linear-gradient(90deg, var(--lima), var(--cian) 45%, var(--rosa)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Barra fija y avance */
.barra { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(.8rem + env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) .8rem max(1.2rem, env(safe-area-inset-left)); pointer-events: none; }
.barra a { pointer-events: auto; text-decoration: none; }
.barra__marca { min-height: 44px; display: inline-flex; transition: color .3s ease; align-items: center; gap: .55rem; font: 700 1.15rem "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.barra__marca img { width: 28px; height: 28px; padding: 5px; border-radius: 9px; background: var(--tinta); }
.barra__cta { min-height: 44px; display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: 99px; background: var(--lima); color: var(--tinta); font-weight: 600; font-size: .9rem; }
.avance { position: fixed; z-index: 21; inset: 0 0 auto; height: 3px; }
.avance i { display: block; height: 100%; width: calc(var(--avance, 0) * 100%); background: linear-gradient(90deg, var(--lima), var(--magenta)); }

/* Escenas: en pantallas sin toque se fijan y avanzan con el scroll (--p de 0 a 1);
   con toque van apiladas y se animan una vez al entrar (regla 15 de paginas-agencia-multiplataforma). */
.escena { position: relative; height: 240vh; --p: 0; }
.escena__fija { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; isolation: isolate; }
html.toque .escena { height: auto; }
html.toque .escena__fija { position: relative; }

.fondo, .fondo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.fondo img { filter: var(--tono); object-fit: cover; transform: scale(calc(1.14 - var(--p) * .1)) translateX(calc(var(--p) * -1.5%)); will-change: transform; }

/* Las frases cambian a la mitad de la escena */
/* Las dos frases ocupan la misma celda: la caja mide lo que la más larga (no se enciman con los botones) */
.fase { display: block; grid-area: 1 / 1; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), filter .5s ease; }
.fase--b { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.escena.b .fase--a { opacity: 0; transform: translateY(-24px); filter: blur(6px); }
.escena.b .fase--b { opacity: 1; transform: none; filter: none; }
h1, h2, .gigante p { display: grid; margin: 0; position: relative; font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: -.055em; line-height: .95; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.6vw, 6.2rem); }
h2 { font-size: clamp(2.2rem, 5.2vw, 5rem); }

.texto { position: absolute; z-index: 5; max-width: min(40rem, 88vw); display: grid; gap: 1.1rem; }
.texto--derecha { right: 6vw; top: 50%; transform: translateY(-50%); }
.texto--izquierda { left: 6vw; top: 50%; transform: translateY(-50%); }
.texto--abajo { left: 6vw; bottom: calc(9svh + var(--barra-inf)); }
.texto--oscuro { color: var(--tinta); }
.texto--oscuro em { background: linear-gradient(90deg, var(--magenta), var(--violeta) 55%, var(--azul)); -webkit-background-clip: text; background-clip: text; }
.etiqueta { margin: 0; font: 600 .78rem Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--lima); }
.texto--oscuro .etiqueta { color: var(--magenta); }
.bajada { margin: 0; max-width: 34ch; color: rgb(242 243 239 / .8); font-size: 1.05rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.boton { min-height: 50px; display: inline-flex; align-items: center; padding: .8rem 1.35rem; border-radius: 99px; border: 1.5px solid rgb(255 255 255 / .5); font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); transition: transform .2s ease; }
.boton--lima { background: var(--lima); border-color: var(--lima); color: var(--tinta); }
.boton--negro { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.boton--borde { border-color: var(--tinta); color: var(--tinta); }
@media (hover: hover) { .boton:hover { transform: translateY(-2px); } }

/* Etiqueta de prototipo: dónde irá video IA en la versión final */
.aviso-video { position: absolute; z-index: 6; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); padding: .35rem .7rem; border-radius: 99px;
  background: rgb(3 3 4 / .7); border: 1px dashed rgb(209 254 23 / .6); color: var(--lima); font: 600 .72rem Inter, sans-serif; }

/* Humo de primer plano: gradientes suaves (sin filter: más ligero en iPad) que derivan */
.humo { position: absolute; inset: -20%; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: radial-gradient(28% 22% at 22% 70%, rgb(255 31 122 / .55), transparent 70%),
              radial-gradient(24% 20% at 70% 20%, rgb(0 229 255 / .35), transparent 70%),
              radial-gradient(20% 18% at 45% 95%, rgb(209 254 23 / .35), transparent 70%);
  animation: derivar 18s ease-in-out infinite alternate; transform: translateY(calc(var(--p) * -8%)); }
@keyframes derivar { to { background-position: 4% -3%, -5% 4%, 3% -4%; translate: 3% -2%; } }

/* Esferas en capas: las crea escenas.js; cada capa sube a distinta velocidad con el scroll */
.capa-esferas { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.esfera { position: absolute; left: var(--x); top: var(--y); width: var(--t); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .95) 0 6%, color-mix(in srgb, var(--c) 85%, white) 14%, var(--c) 45%, color-mix(in srgb, var(--c) 40%, black) 100%);
  box-shadow: 0 0 calc(var(--t) * .5) color-mix(in srgb, var(--c) 55%, transparent);
  transform: translateY(calc(var(--p) * var(--prof) * -42vh)); opacity: .9; filter: blur(var(--desenfoque, 0px));
  background: radial-gradient(circle at 30% 26%, rgb(255 255 255 / .95) 0 7%, rgb(255 255 255 / .35) 16%, color-mix(in srgb, var(--c) 55%, transparent) 46%, color-mix(in srgb, var(--c) 85%, black 10%) 100%);
  box-shadow: inset 0 0 calc(var(--t) * .25) rgb(255 255 255 / .5), 0 calc(var(--t) * .15) calc(var(--t) * .4) color-mix(in srgb, var(--c) 30%, transparent); }
.esfera { animation: flotar var(--dur) ease-in-out infinite alternate; }
@keyframes flotar { to { translate: var(--dx) var(--dy); } }

/* 2 · Las plumas se deshacen en letras */
.fondo--deshace img { transform: scale(calc(1 + var(--p) * .2)) translateX(calc(var(--p) * -8%)); filter: saturate(calc(1 - var(--p) * .45)) brightness(calc(1 - var(--p) * .5)); }
/* Palabras que salen de las plumas (ajuste de Paul: las letras gigantes no se entendían) */
.vuelan { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.vuelan li { position: absolute; left: var(--x); top: var(--y); padding: .35rem .8rem; border-radius: 99px; white-space: nowrap;
  font: 600 clamp(.85rem, 1.3vw, 1.15rem) "Space Grotesk", sans-serif; letter-spacing: -.01em; color: #f2f3ef;
  background: rgb(3 3 4 / .55); border: 1px solid rgb(209 254 23 / .45); backdrop-filter: blur(4px);
  opacity: clamp(0, calc(var(--p) * 2.2 - var(--i) * .18), 1);
  transform: translateX(calc((1 - var(--p)) * -14vw)) translateY(calc((1 - var(--p)) * 4vh)) scale(calc(.85 + var(--p) * .15)); }
.vuelan li:nth-child(3n) { border-color: rgb(255 31 122 / .55); }
.vuelan li:nth-child(3n + 1) { border-color: rgb(0 229 255 / .45); }
.salpicaduras { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: calc(var(--p) * 1.3);
  background: radial-gradient(circle at 18% 30%, var(--magenta) 0 1.2%, transparent 1.4%), radial-gradient(circle at 34% 62%, var(--lima) 0 .8%, transparent 1%),
              radial-gradient(circle at 26% 78%, var(--cian) 0 1.6%, transparent 1.8%), radial-gradient(circle at 46% 20%, var(--rosa) 0 .6%, transparent .8%),
              radial-gradient(circle at 10% 50%, var(--violeta) 0 2%, transparent 2.2%), radial-gradient(circle at 40% 88%, var(--magenta) 0 .9%, transparent 1.1%); }

/* 3 · Tú: tipografía gigante */
.gigante { position: absolute; z-index: 5; left: 5vw; bottom: calc(9svh + var(--barra-inf)); max-width: 92vw; }
.gigante__chico { font-size: clamp(1.4rem, 3.4vw, 3.1rem) !important; color: #fff; text-transform: uppercase; letter-spacing: -.02em !important; }
.gigante__grande { font-size: clamp(3.4rem, 13vw, 12.5rem) !important; color: #fff; mix-blend-mode: overlay; text-shadow: 0 0 40px rgb(255 31 122 / .35); }
.escena--paul .gigante__grande .fase--b { color: var(--lima); mix-blend-mode: normal; }

/* 4 · Rayos + DIGITAL */
.rayos { position: absolute; inset: 0; width: 100%; height: 100%; }
.digital { position: absolute; left: 0; right: 0; bottom: calc(6svh + var(--barra-inf)); z-index: 2; margin: 0; text-align: center; font: 700 clamp(1.6rem, 4vw, 3.4rem)/1 "Space Grotesk", sans-serif; letter-spacing: .5em;
  color: #fff; opacity: clamp(0, calc(var(--p) * 6 - 5.2), 1); text-shadow: 0 0 24px rgb(209 254 23 / .6); }

/* 5 · Ojo: zoom hacia la pupila */
.fondo--zoom img { transform-origin: 50% 46%; transform: scale(calc(1 + var(--p) * 1.6)); }
.escena--ojo .texto h2 { font-size: clamp(2.8rem, 8vw, 7.5rem); text-shadow: 0 6px 40px rgb(0 0 0 / .6); }

/* 6 · Retrato en mosaico */
.escena--mosaico { background: var(--noche); }
.mosaico { position: absolute; right: 0; top: 0; width: min(62vw, 100%); height: 100%; }
.nombre { font-size: clamp(3.2rem, 10vw, 9rem) !important; }
html.angosto .mosaico { width: 100%; opacity: .55; }

/* 7 · Lo que hacemos, flotando */
.escena--palabras-flotan { background: var(--noche); }
.flotan { list-style: none; margin: 0; padding: 0; position: absolute; inset: 8svh 4vw calc(8svh + var(--barra-inf)); }
.flotan li { position: absolute; left: var(--x); top: var(--y); font: 700 clamp(1.1rem, 2.6vw, 2.6rem) "Space Grotesk", sans-serif; letter-spacing: -.03em;
  color: rgb(242 243 239 / calc(.35 + var(--p) * .65)); transform: translateY(calc((1 - var(--p)) * var(--t) * 18vh)); white-space: nowrap; }
.flotan li:nth-child(3n) { color: var(--lima); }
.flotan li:nth-child(4n) { color: var(--rosa); }
.logo-glitch { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: 700 clamp(2.6rem, 9vw, 8rem) "Space Grotesk", sans-serif; letter-spacing: -.06em; }
.logo-glitch::before, .logo-glitch::after { content: attr(data-texto); position: absolute; inset: 0; display: grid; place-items: center; mix-blend-mode: screen; animation: glitch 2.6s steps(1) infinite; }
.logo-glitch::before { color: var(--magenta); }
.logo-glitch::after { color: var(--cian); animation-delay: -1.3s; }
@keyframes glitch { 0%, 86%, 100% { transform: none; clip-path: none; } 88% { transform: translate(-6px, 2px); clip-path: inset(20% 0 55% 0); } 92% { transform: translate(5px, -3px); clip-path: inset(60% 0 12% 0); } 95% { transform: translate(-3px, 1px); clip-path: inset(40% 0 35% 0); } }

/* 8 · Cierre sobre hueso */
.escena--cierre .escena__fija { background: var(--hueso); }
.cierre { font-size: clamp(2.6rem, 6vw, 6rem) !important; color: var(--tinta); }

/* Celular: texto abajo, sobre un velo para que se lea */
@media (max-width: 699px) {
  .texto--derecha, .texto--izquierda { left: 1.2rem; right: 1.2rem; top: auto; bottom: calc(5.5rem + env(safe-area-inset-bottom)); transform: none; }
  .escena--guardiana .escena__fija::after, .escena--palabras .escena__fija::after, .escena--mosaico .escena__fija::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 4; background: linear-gradient(transparent, rgb(3 3 4 / .9)); }
  .escena--cierre .escena__fija::after { content: ""; position: absolute; inset: 40% 0 0; z-index: 4; background: linear-gradient(transparent, rgb(247 247 244 / .95)); }
  .fondo img { object-position: 30% 50%; }
  .escena--paul .fondo img { object-position: 62% 50%; }
  .escena--cierre .fondo img { object-position: 72% 50%; }
  .flotan li { font-size: 1rem; }
  .esfera { width: calc(var(--t) * .6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Escenas claras (6-oct, pedido de Paul: fondos blancos como base, oscuros solo para contrastar) ──
   Texto en tinta; los degradados del texto van en magenta → violeta → azul (nunca lima sobre blanco). */
.escena--clara { color: var(--tinta); }
.escena--clara .escena__fija { background: var(--hueso); }
.escena--clara em, .escena--clara .fase em { background: linear-gradient(90deg, var(--magenta), var(--violeta) 55%, var(--azul)); -webkit-background-clip: text; background-clip: text; }
.escena--clara .etiqueta { color: var(--magenta); }
.escena--clara .boton:not(.boton--lima):not(.boton--negro) { border-color: var(--tinta); color: var(--tinta); }
.escena--clara .humo { mix-blend-mode: multiply; opacity: .18; }
.escena--clara .aviso-video { background: rgb(255 255 255 / .85); color: var(--tinta); border-color: var(--magenta); }
.escena--clara .fondo--deshace img { filter: saturate(calc(1 - var(--p) * .25)); opacity: calc(1 - var(--p) * .5); }
.escena--clara .vuelan li { background: rgb(255 255 255 / .85); color: var(--tinta); }
.escena--mosaico { --velo: 247,247,244; }
.escena--mosaico .nombre { color: var(--tinta); }
.escena--palabras-flotan .flotan li { color: rgb(11 12 14 / calc(.3 + var(--p) * .7)); }
.escena--palabras-flotan .flotan li:nth-child(3n) { color: var(--magenta); }
.escena--palabras-flotan .flotan li:nth-child(4n) { color: var(--violeta); }
.escena--palabras-flotan .logo-glitch { color: var(--tinta); }
.escena--palabras-flotan .logo-glitch::before, .escena--palabras-flotan .logo-glitch::after { mix-blend-mode: multiply; }
@media (max-width: 699px) {
  .escena--clara .escena__fija::after { background: linear-gradient(transparent, rgb(247 247 244 / .95)) !important; }
}

/* La barra cambia de color según la escena que está detrás (clara u oscura) */
html.arriba-claro .barra__marca { color: var(--tinta); }

/* Campo de partículas y burbujas (particulas.js): encima de las escenas, debajo de la barra, sin atrapar clics */
.particulas { position: fixed; inset: 0; z-index: 15; width: 100%; height: 100%; pointer-events: none; }
/* Escena 2: Xochipilli ya de frente (sin apagarse); las palabras salen a su lado */
.escena--clara .fondo--deshace img { opacity: 1; filter: none; transform: scale(calc(1.06 - var(--p) * .06)); }

/* Tercera fase (escena de Paul): «Hola, soy PAUL MANILLA» después de «responden» */
.fase--c { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.escena.c .fase--a, .escena.c .fase--b { opacity: 0; transform: translateY(-24px); filter: blur(6px); }
.escena.c .fase--c { opacity: 1; transform: none; filter: none; }
.escena--paul { height: 320vh; }
.nombre-paul { color: #fff; mix-blend-mode: normal; font-size: clamp(3rem, 10vw, 10rem); white-space: nowrap; }

/* Zoom de salida de la escena 2: entramos a su mirada y todo se apaga hacia el mundo de las velas */
.escena--palabras .fondo--deshace img { transform-origin: 32% 40%; transform: scale(calc(1.06 + max(0, var(--p) - .68) * 9)); }
.escena--palabras .escena__fija::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: #05040a; opacity: calc(max(0, var(--p) - .8) * 5); }
.escena--palabras .texto, .escena--palabras .vuelan { opacity: calc(1 - max(0, var(--p) - .7) * 5); }

/* El mundo de las velas: entra desde la oscuridad y se acerca despacio */
.escena--velas .escena__fija { background: #05040a; }
.fondo--velas img { opacity: clamp(0, calc(var(--p) * 4), 1); transform: scale(calc(1.18 - var(--p) * .14)); }
.texto--claro-sobre-oscuro { color: #fff; text-shadow: 0 4px 30px rgb(0 0 0 / .55); }
.texto--claro-sobre-oscuro em { background: linear-gradient(90deg, #FFC21A, var(--rosa) 55%, var(--violeta)); -webkit-background-clip: text; background-clip: text; }
.texto--claro-sobre-oscuro .etiqueta { color: #FFC21A; }

/* Final: logo y botones */
.escena--final { height: 140vh; }
.escena--final .escena__fija { background: var(--noche); display: grid; place-items: center; }
.final { display: grid; justify-items: center; gap: 1.1rem; text-align: center; padding: 0 1.2rem; }
.final__icono { width: 96px; height: 96px; padding: 18px; border-radius: 28px; background: var(--tinta); box-shadow: 0 0 0 1px rgb(209 254 23 / .35), 0 0 60px rgb(209 254 23 / .25); }
.final__marca { margin: 0; font: 700 clamp(3.4rem, 11vw, 9rem)/.9 "Space Grotesk", sans-serif; letter-spacing: -.07em; }
.final__bajada { margin: 0; color: rgb(242 243 239 / .75); font-size: clamp(1rem, 1.6vw, 1.25rem); }
.final__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: .8rem; }
.boton--grande { min-height: 58px; padding: 1rem 1.8rem; font-size: 1.05rem; }
.boton--red { border-color: rgb(255 255 255 / .35); }
.boton--pendiente { opacity: .55; }

/* ── Entrada (6-oct): logo solo → llega Xochipilli → «Hacemos páginas» ── */
.escena--intro { height: 380vh; }
/* Xochipilli llega: de grande, desenfocado e invisible a nítido, con un empujón final */
.escena--intro .fondo img { opacity: clamp(0, calc((var(--p) - .16) * 4.5), 1);
  transform: scale(calc(1.06 + max(0, .46 - var(--p)) * .9)) translateX(calc(max(0, .46 - var(--p)) * 6%));
  filter: blur(calc(max(0, .4 - var(--p)) * 70px)) saturate(calc(1 + max(0, .46 - var(--p)) * 1.2)); }
/* Estallido de color detrás de él cuando aparece */
.estallido { position: absolute; left: 30%; top: 45%; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, transparent 38%, rgb(255 31 122 / .55) 46%, rgb(0 184 230 / .45) 54%, rgb(209 254 23 / .4) 60%, transparent 68%);
  transform: scale(calc(max(0, var(--p) - .18) * 6)); opacity: calc(1 - max(0, var(--p) - .2) * 4.5); }
/* El logo solo, al centro; al bajar sube, se encoge y se va */
.intro-logo { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 1rem; pointer-events: none;
  opacity: 1; }
.intro-logo__marca { width: clamp(88px, 12vw, 150px); height: auto; filter: drop-shadow(0 18px 40px rgb(209 254 23 / .45)); animation: respirar 3s ease-in-out infinite; }
.intro-logo__palabra { margin: 0; font: 700 clamp(3rem, 9vw, 7.5rem)/.9 "Space Grotesk", sans-serif; letter-spacing: -.07em; color: var(--tinta); }
.intro-logo__baja { margin: 1.5rem 0 0; font: 600 .8rem Inter, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--magenta); animation: bajar 1.8s ease-in-out infinite; }
@keyframes respirar { 50% { transform: scale(1.06); } }
@keyframes bajar { 50% { transform: translateY(8px); } }
/* El texto del hero entra hasta que Xochipilli ya llegó */
.escena--intro .texto { opacity: clamp(0, calc((var(--p) - .44) * 6), 1); }
.escena--intro .aviso-video { opacity: clamp(0, calc((var(--p) - .44) * 6), 1); }
/* Mientras el logo grande está al centro, la barra no repite la marca */
html.en-intro .barra__marca { opacity: 0; }
.barra__marca { transition: opacity .3s ease, color .3s ease; }

/* ── Portal desde el círculo del logo (6-oct, pedido de Paul) ── */
.escena--intro { --radio: clamp(0px, calc((var(--p) - .1) * 320vmax), 160vmax); }
.escena--intro .fondo { clip-path: circle(var(--radio) at var(--portal-x, 50%) var(--portal-y, 40%)); }
.escena--intro .fondo img { filter: blur(calc(max(0, .32 - var(--p)) * 40px)); opacity: 1;
  transform: scale(calc(1.06 + max(0, .46 - var(--p)) * .5)); }
.portal-anillo { position: absolute; z-index: 6; pointer-events: none; left: var(--portal-x, 50%); top: var(--portal-y, 40%);
  width: calc(var(--radio) * 2); height: calc(var(--radio) * 2); translate: -50% -50%; border-radius: 50%;
  border: 6px solid var(--lima); box-shadow: 0 0 40px rgb(209 254 23 / .8), inset 0 0 40px rgb(255 31 122 / .5);
  opacity: clamp(0, calc(1 - (var(--p) - .3) * 6), 1); }
.estallido { left: var(--portal-x, 30%); top: var(--portal-y, 45%); }
/* Lo demás del logo se desvanece rápido; la marca se queda hasta que el portal la rebasa */
.intro-logo__palabra, .intro-logo__baja { opacity: clamp(0, calc(1 - (var(--p) - .05) * 10), 1); }
.intro-logo__marca { opacity: clamp(0, calc(1 - (var(--p) - .14) * 8), 1); }

/* Botón de música */
.barra__derecha { display: flex; align-items: center; gap: .6rem; }
.musica { pointer-events: auto; min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 99px;
  border: 1px solid rgb(11 12 14 / .2); background: rgb(255 255 255 / .75); color: var(--tinta); font: 600 .85rem Inter, sans-serif; cursor: pointer; backdrop-filter: blur(8px); }
.musica__barras { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.musica__barras i { width: 3px; height: 4px; border-radius: 2px; background: var(--magenta); }
.musica[aria-pressed="true"] .musica__barras i { animation: ecualizador .9s ease-in-out infinite; }
.musica__barras i:nth-child(2) { animation-delay: -.3s !important; } .musica__barras i:nth-child(3) { animation-delay: -.6s !important; } .musica__barras i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes ecualizador { 50% { height: 14px; } }
@media (max-width: 699px) { .musica__texto { display: none; } }

/* ── Escena 2 con video (6-oct): giro (p 0–0.34) → palabras (0.32–0.6) → boca hacia las velas (0.6–1) ── */
.escena--palabras { height: 400vh; }
.secuencia { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.secuencia--boca { z-index: 2; opacity: clamp(0, calc((var(--p) - .6) * 40), 1); }
.escena--palabras .escena__fija::before { display: none; }
.escena--palabras .texto, .escena--palabras .vuelan { opacity: calc(clamp(0, (var(--p) - .32) * 7, 1) * clamp(0, 1 - (var(--p) - .56) * 10, 1)); }
.escena--palabras .texto { z-index: 5; }
/* Las velas ya llegan por el video de la boca: sin fundido desde negro */
.fondo--velas img { opacity: 1; }

/* Tláloc (6-oct): el video corre en la primera mitad; el texto entra cuando ya se reveló */
.escena--cierre { height: 340vh; }
.escena--cierre .texto { opacity: clamp(0, calc((var(--p) - .5) * 6), 1); }
.escena--palabras .escena__fija { background: #f8f7fc; }

/* ── Relevo continuo (6-oct): la escena siguiente se monta en el mismo cuadro donde termina la anterior, sin
   volver a entrar desde abajo. Funciona porque su primer cuadro es igual al último de la anterior. ── */
.escena--continua { margin-top: -100vh; margin-top: -100lvh; }
html.toque .escena--continua { margin-top: 0; }
/* La portada suelta su texto al final para que el relevo con el giro sea limpio */
.escena--intro .texto { opacity: calc(clamp(0, (var(--p) - .44) * 6, 1) * clamp(0, 1 - (var(--p) - .9) * 12, 1)); }
.escena--palabras { height: 480vh; }
.secuencia--boca { opacity: clamp(0, calc((var(--p) - .52) * 40), 1); }
.escena--palabras .texto, .escena--palabras .vuelan { opacity: calc(clamp(0, (var(--p) - .32) * 7, 1) * clamp(0, 1 - (var(--p) - .48) * 12, 1)); }
/* Rayos: el haz ocupa toda la escena; DIGITAL al final, al centro */
.digital { inset: 0; bottom: auto; top: 50%; translate: 0 -50%; font-size: clamp(2.4rem, 8vw, 7rem); letter-spacing: .35em; opacity: clamp(0, calc((var(--p) - .55) * 4), 1); }
.escena--intro .fondo img { transform: scale(calc(1 + max(0, .46 - var(--p)) * .56)); }

/* ── Cempasúchil al frente en el mundo de velas: grandes en las esquinas, se mecen y suben con el scroll ── */
.capa-flor { position: absolute; z-index: 6; bottom: -6vh; width: min(52vw, 900px); height: auto; pointer-events: none;
  filter: drop-shadow(0 10px 30px rgb(0 0 0 / .45)); will-change: transform; }
.capa-flor--izq { left: -6vw; transform-origin: 10% 100%;
  translate: 0 calc((1 - var(--p)) * 14vh); animation: brisa-izq 6s ease-in-out infinite alternate; }
.capa-flor--der { right: -8vw; width: min(44vw, 760px); transform-origin: 90% 100%; scale: -1 1;
  translate: 0 calc((1 - var(--p)) * 20vh); animation: brisa-der 7s ease-in-out infinite alternate; }
@keyframes brisa-izq { from { rotate: -1.6deg; } to { rotate: 1.4deg; } }
@keyframes brisa-der { from { rotate: 1.8deg; } to { rotate: -1.2deg; } }
@media (max-width: 699px) { .capa-flor--izq { width: 92vw; } .capa-flor--der { width: 70vw; } }
/* Ajuste: las flores bajan y se achican para no tapar el texto; el texto queda por encima */
.escena--velas .texto { z-index: 8; }
.capa-flor--izq { width: min(40vw, 700px); bottom: -14vh; left: -8vw; }
.capa-flor--der { width: min(36vw, 640px); bottom: -12vh; right: -6vw; }
.capa-flor--der { transform-origin: 50% 100%; } /* con espejo (scale -1), un origen fuera del centro la sacaba de la pantalla */
.escena--continua.espera .escena__fija { visibility: hidden; }

/* ── Cempasúchil gigante (6-oct, pedido de Paul): más flores, más cerca, solo las cabezas; los tallos quedan
   fuera de la pantalla. Cuatro capas a distinta profundidad: la de «cerca» desenfocada, como foco de cámara ── */
.capa-flor { filter: saturate(1.25) contrast(1.05) drop-shadow(0 18px 40px rgb(0 0 0 / .55)); }
.capa-flor--izq { width: min(78vw, 1400px); left: -22vw; bottom: -46vh; translate: 0 calc((1 - var(--p)) * 16vh); }
.capa-flor--der { width: min(70vw, 1260px); right: -22vw; bottom: -40vh; translate: 0 calc((1 - var(--p)) * 22vh); }
.capa-flor--cerca { position: absolute; z-index: 9; pointer-events: none; width: min(60vw, 1100px); left: 18vw; bottom: -58vh;
  filter: blur(6px) saturate(1.3) brightness(1.08); opacity: .95; transform-origin: 50% 100%;
  translate: 0 calc((1 - var(--p)) * 34vh); animation: brisa-izq 5s ease-in-out infinite alternate; }
.capa-flor--fondo { position: absolute; z-index: 4; pointer-events: none; width: min(46vw, 820px); right: 18vw; bottom: -30vh;
  filter: saturate(1.15) brightness(.85) blur(1px); transform-origin: 50% 100%; scale: -1 1;
  translate: 0 calc((1 - var(--p)) * 10vh); animation: brisa-der 8s ease-in-out infinite alternate; }
@media (max-width: 699px) {
  .capa-flor--izq { width: 130vw; left: -45vw; bottom: -28vh; } .capa-flor--der { width: 110vw; right: -50vw; bottom: -24vh; }
  .capa-flor--cerca { width: 100vw; left: 10vw; bottom: -40vh; } .capa-flor--fondo { display: none; }
}
.esferas-paul { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.escena--paul .gigante { z-index: 6; }

/* ── Disolvencia boca → velas: el último cuadro se desenfoca, se agranda y se desvanece en el primer tramo ── */
.disuelve { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; pointer-events: none;
  opacity: clamp(0, calc(1 - var(--p) / .22), 1); filter: blur(calc(var(--p) * 90px)) saturate(calc(1 + var(--p) * 1.5));
  transform: scale(calc(1 + var(--p) * .6)); }
.fondo--velas img { filter: brightness(calc(.75 + min(var(--p), .22) / .22 * .25)); }
/* Lo que hacemos: palabras más grandes */
.flotan li { font-size: clamp(1.5rem, 3.4vw, 3.2rem) !important; }
.logo-glitch { font-size: clamp(4rem, 13vw, 12rem) !important; }

/* ── La O de WecoLabs se abre hacia el ojo de Tláloc (p 0.55 → 1) ── */
.escena--palabras-flotan { height: 300vh; }
.portal-tlaloc { position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: #fff url("medios/sec/tlaloc/0001.webp") center / cover no-repeat;
  --abre: clamp(0, calc((var(--p) - .55) / .45), 1);
  clip-path: circle(calc(var(--o-r, 30px) + var(--abre) * var(--abre) * 150vmax) at var(--o-x, 50%) var(--o-y, 50%));
  opacity: clamp(0, calc((var(--p) - .5) * 20), 1); }
.o-portal { display: inline-block; color: var(--lima); -webkit-text-stroke: 3px var(--tinta); }
/* Mientras se abre el portal, las palabras se alejan */
.escena--palabras-flotan .flotan { opacity: clamp(0, calc(1 - (var(--p) - .5) * 4), 1); }

/* ── Humo en capas en la escena de Paul: grandes en los laterales, respiran y se desplazan a distinta velocidad ── */
.nube { position: absolute; z-index: 3; pointer-events: none; height: auto; will-change: transform; }
.nube--azul { width: min(48vw, 860px); right: -16vw; top: -8vh; translate: 0 calc(var(--p) * -14vh); animation: respira-nube 9s ease-in-out infinite alternate; }
.nube--verde { width: min(42vw, 760px); left: -14vw; top: 2vh; translate: 0 calc(var(--p) * -24vh); animation: respira-nube 7s ease-in-out -2s infinite alternate; }
.nube--rosa { width: min(56vw, 1000px); left: -18vw; bottom: -22vh; translate: 0 calc(var(--p) * -36vh); animation: respira-nube 8s ease-in-out -4s infinite alternate; z-index: 5; }
@keyframes respira-nube { from { scale: 1; rotate: -1deg; } to { scale: 1.07; rotate: 1.5deg; } }
@media (max-width: 699px) { .nube--azul { width: 90vw; right: -40vw; } .nube--verde { width: 80vw; left: -40vw; } .nube--rosa { width: 100vw; left: -40vw; } }
.burbujas-tlaloc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.escena--cierre .texto { z-index: 6; }

/* ── Final: la red viva detrás del logo; el logo manda ── */
.red-final { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.escena--final .final { position: relative; z-index: 2; }
.escena--final { height: 200vh; }
.final__marca { text-shadow: 0 0 40px rgb(3 3 4 / .9), 0 0 80px rgb(3 3 4 / .9); }

/* ── Lo que hacemos: íconos 3D estilo pop flotando alrededor del logo (6-oct) ── */
.flotan .icono-pop { display: grid; justify-items: center; gap: .3rem; white-space: normal; text-align: center; width: clamp(130px, 15vw, 230px); }
.icono-pop img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgb(139 61 255 / .28)); animation: flota-pop 5s ease-in-out infinite alternate; }
.icono-pop:nth-child(2n) img { animation-duration: 6.5s; animation-delay: -2s; }
.icono-pop:nth-child(3n) img { animation-duration: 4.2s; animation-delay: -1s; }
.icono-pop span { font-size: clamp(.9rem, 1.3vw, 1.2rem) !important; line-height: 1.15; }
@keyframes flota-pop { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-16px) rotate(4deg); } }
@media (max-width: 699px) { .flotan .icono-pop { width: 96px; } }

/* ── Sin brinco de tono portada → video: el video sale ~3 % más oscuro y ~10 % menos saturado (medido con
   ffmpeg signalstats); se corrige con un filtro y la portada se disuelve encima en el primer tramo ── */
.secuencia--giro { filter: brightness(1.03) saturate(1.11) contrast(1.02); }
.relevo-hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; pointer-events: none;
  opacity: clamp(0, calc(1 - var(--p) / .06), 1); }

/* ── Logo nuevo (6-oct): la O como orbe de vidrio lima con una galaxia dentro y su anillo magenta ── */
.intro-logo__marca--orbe { width: clamp(150px, 20vw, 280px); filter: drop-shadow(0 20px 50px rgb(255 31 122 / .35)); }
.barra__marca .barra__orbe { width: 34px; height: 34px; padding: 0; background: none; border-radius: 0; }
.final__icono--orbe { width: clamp(140px, 16vw, 220px); height: auto; padding: 0; background: none; box-shadow: none;
  filter: drop-shadow(0 0 40px rgb(209 254 23 / .35)); animation: respirar 4s ease-in-out infinite; }
.flotan .icono-pop { width: clamp(120px, 13vw, 200px); }
.escena--palabras-flotan .flotan { inset: 10svh 3vw calc(6svh + var(--barra-inf)); }
.escena--palabras-flotan .flotan li { transform: translateY(calc((1 - var(--p)) * var(--t) * 5vh)); }

/* ── Empalme de humo giro → boca: entran por los lados (p .36→.52), se quedan respirando mientras abre la boca
   y se abren hacia afuera antes del túnel (.74→.86). Capas a distinta profundidad. ── */
.empalme { position: absolute; z-index: 4; pointer-events: none; height: auto;
  --entra: clamp(0, calc((var(--p) - .36) / .16), 1); --sale: clamp(0, calc((var(--p) - .56) / .12), 1); /* 7-oct, Paul: «las nubes invaden demasiado»: tapan el corte (.52) y se retiran ya */
  opacity: calc(var(--entra) * (1 - var(--sale))); animation: respira-nube 7s ease-in-out infinite alternate; }
.empalme--d1 { width: min(60vw, 1100px); right: -20vw; bottom: -18vh; translate: calc((1 - var(--entra)) * 45vw + var(--sale) * 40vw) 0; }
.empalme--d2 { width: min(46vw, 820px); right: -14vw; top: -10vh; translate: calc((1 - var(--entra)) * 40vw + var(--sale) * 35vw) 0; animation-delay: -3s; }
.empalme--d3 { width: min(40vw, 720px); right: 14vw; bottom: -26vh; translate: calc((1 - var(--entra)) * 60vw + var(--sale) * 50vw) calc(var(--sale) * 20vh); animation-delay: -1.5s; z-index: 5; }
.empalme--i1 { width: min(44vw, 800px); left: -20vw; top: 6vh; translate: calc((var(--entra) - 1) * 40vw - var(--sale) * 35vw) 0; animation-delay: -4s; }
.empalme--i2 { width: min(50vw, 900px); left: -24vw; bottom: -24vh; translate: calc((var(--entra) - 1) * 45vw - var(--sale) * 40vw) 0; animation-delay: -2s; z-index: 5; }
@media (max-width: 699px) { .empalme { width: 90vw !important; } }
.escena--palabras .texto, .escena--palabras .vuelan { z-index: 7; }

/* ── Lo que hacemos con íconos de puntos (6-oct): dos a la vez, palabras sólidas ── */
.iconos-puntos { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.puntos-nombre { position: absolute; z-index: 3; top: 70%; width: 30vw; margin: 0; text-align: center; color: var(--tinta);
  font: 700 clamp(1.4rem, 2.6vw, 2.4rem)/1.05 "Space Grotesk", sans-serif; letter-spacing: -.04em;
  opacity: clamp(0, calc(1 - (var(--p) - .5) * 8), 1); }
.puntos-nombre--izq { left: 5vw; } .puntos-nombre--der { right: 5vw; }
.puntos-nombre.entra { animation: nombre-entra .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes nombre-entra { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.escena--palabras-flotan .logo-glitch { font-size: clamp(3.4rem, 9vw, 8.5rem) !important; }
@media (max-width: 699px) { .puntos-nombre { width: 42vw; font-size: 1.05rem; top: 66%; } }
/* Logo v2 (6-oct): el punto, sólido; ya no el orbe */
.intro-logo__marca--orbe { width: clamp(110px, 12vw, 170px); filter: drop-shadow(0 18px 40px rgb(209 254 23 / .35)); }
.final__icono--orbe { width: clamp(100px, 10vw, 150px); filter: drop-shadow(0 0 36px rgb(209 254 23 / .35)); }
.barra__marca .barra__orbe { width: 30px; height: 30px; }
/* Lo que hacemos en noche (6-oct): las partículas brillan como en la referencia */
.escena--palabras-flotan .escena__fija { background: radial-gradient(ellipse at 50% 45%, #0d0b1f, #030304 70%); }
.escena--palabras-flotan .logo-glitch { color: #f2f3ef; }
.escena--palabras-flotan .logo-glitch::before, .escena--palabras-flotan .logo-glitch::after { mix-blend-mode: screen; }
.puntos-nombre { color: #f2f3ef; }
.o-portal { -webkit-text-stroke: 0; text-shadow: 0 0 30px rgb(209 254 23 / .6); }

/* ── Relevos exactos (6-oct): sin disolvencias. En cada corte, la imagen fija ES el cuadro del video, y todo lo que
   está encima entra DESPUÉS del corte (nada aparece de golpe en el cuadro del relevo). Se mide con qa/relevos.mjs. ── */
.secuencia--giro { filter: none; }
.fondo--velas img { filter: none !important; opacity: 1; transform: scale(calc(1 + var(--p) * .05)) !important; }
.escena--intro .humo { opacity: calc(.18 * clamp(0, (.85 - var(--p)) * 8, 1)); }
.escena--velas .texto, .escena--velas .capa-flor { opacity: clamp(0, calc((var(--p) - .04) * 8), 1); }
.escena--cierre { height: 420vh; }
.secuencia--ola { z-index: 5; opacity: clamp(0, calc((var(--p) - .62) * 400), 1); }
.escena--cierre .texto { opacity: calc(clamp(0, (var(--p) - .34) * 8, 1) * clamp(0, 1 - (var(--p) - .56) * 16, 1)); }
.burbujas-tlaloc { opacity: calc(clamp(0, (var(--p) - .04) * 8, 1) * clamp(0, 1 - (var(--p) - .56) * 16, 1)); }
.final__fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.red-final { z-index: 1; opacity: clamp(0, calc((var(--p) - .04) * 6), 1); }
.escena--final .final { opacity: clamp(0, calc((var(--p) - .08) * 6), 1); transform: translateY(calc(max(0, .25 - var(--p)) * 60px)); }
.escena--final { height: 240vh; }
.escena--final .escena__fija { background: #000; }

/* Empalme v2: en el corte (p .52) las nubes de la izquierda tapan TODO el humo del último cuadro del giro
   (la boca arranca sin humo: Seedance lo quitó). Después se abren y queda el blanco limpio, como humo que se va. */
.empalme { --entra: clamp(0, calc((var(--p) - .34) / .16), 1); }
.empalme--i1 { width: min(56vw, 1000px); left: -16vw; top: -14vh; translate: calc((var(--entra) - 1) * 40vw - var(--sale) * 55vw) calc(var(--sale) * -22vh); }
.empalme--i2 { width: min(62vw, 1120px); left: -18vw; bottom: -30vh; translate: calc((var(--entra) - 1) * 40vw - var(--sale) * 50vw) calc(var(--sale) * 20vh); }
.empalme--i3 { width: min(44vw, 800px); left: 6vw; bottom: -20vh; z-index: 5; translate: calc((var(--entra) - 1) * 50vw - var(--sale) * 45vw) calc(var(--sale) * 18vh); animation-delay: -5s; }
.empalme--i4 { width: min(40vw, 720px); left: -10vw; top: 22vh; translate: calc((var(--entra) - 1) * 45vw - var(--sale) * 40vw) 0; animation-delay: -6s; }
.empalme--c1 { width: min(38vw, 680px); left: 24vw; bottom: -16vh; z-index: 4; translate: 0 calc((1 - var(--entra)) * 60vh + var(--sale) * 60vh); animation-delay: -2.5s; }
.secuencia--boca { opacity: clamp(0, calc((var(--p) - .52) * 400), 1); } /* corte en un solo cuadro, escondido tras las nubes */

/* ── Oscuridad agua → galaxia. Cuadro f del video de la ola ↔ p = .62 + .38·f/192:
   f138 = .893 empieza a oscurecer desde las orillas · f154 = .925 negro total (tapa el corte del 150→158)
   · f158 = .933 empieza a abrir · f185 = .986 ya solo galaxia. A p = 1 no queda nada (relevo exacto con el final). ── */
.oscuridad { position: absolute; inset: 0; z-index: 6; pointer-events: none;
  --cierra: clamp(0, calc((var(--p) - .893) / .032), 1);
  --abre: clamp(0, calc((var(--p) - .933) / .053), 1);
  background: radial-gradient(circle at 50% 55%, rgb(0 0 0 / calc(var(--cierra) * var(--cierra))) 0%, #000 calc(20% + (1 - var(--cierra)) * 70%));
  opacity: calc(min(1, var(--cierra) * 1.6) * (1 - var(--abre) * var(--abre))); }
.escena--cierre { height: 760vh; } /* 6-oct: más recorrido para que Tláloc y la ola no pasen de golpe */

/* La «o» de WecoLabs es el logo (6-oct): la marca sin cuadro, alineada a la x-height; por encima del glitch */
.o-portal { position: relative; z-index: 2; display: inline-block; width: .74em; height: .74em; margin: 0 .02em; vertical-align: -.02em; color: transparent; text-shadow: none; }
.o-portal img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 .12em rgb(209 254 23 / .55)); animation: respirar 3.2s ease-in-out infinite; }

/* ── Íconos con rayo (6-oct): círculos de vidrio oscuro; un rayo de luz (lima → cian → magenta) recorre el
   contorno sin parar, y acelera y brilla al pasar el mouse. El principal lleva relleno lima y su palabra. ── */
@property --giro { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.icono-rayo { --tam: 64px; position: relative; isolation: isolate; display: inline-grid; grid-auto-flow: column; place-items: center; gap: .5rem;
  min-width: var(--tam); height: var(--tam); padding: 0 calc(var(--tam) * .3); border-radius: 99px; color: #f2f3ef; text-decoration: none;
  background: rgb(255 255 255 / .06); backdrop-filter: blur(8px); font: 600 1rem Inter, sans-serif; cursor: pointer; border: 0;
  transition: transform .25s ease, background-color .25s ease; animation: rayo-gira 3.2s linear infinite; }
.icono-rayo:not(.icono-rayo--principal) { padding: 0; width: var(--tam); }
.icono-rayo::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.6px;
  background: conic-gradient(from var(--giro), transparent 0deg, transparent 250deg, #D1FE17 300deg, #00E5FF 330deg, #FF1F7A 355deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.icono-rayo::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; border: 1px solid rgb(255 255 255 / .14); }
.icono-rayo svg { width: 26px; height: 26px; }
.icono-rayo--principal { background: var(--lima); color: var(--tinta); font-weight: 700; }
.icono-rayo--principal::before { background: conic-gradient(from var(--giro), transparent 0deg, transparent 240deg, #fff 300deg, #FF1F7A 340deg, transparent 360deg); }
.icono-rayo--chico { --tam: 44px; font-size: .9rem; }
.icono-rayo--chico svg { width: 18px; height: 18px; }
.icono-rayo--pendiente { opacity: .5; }
@keyframes rayo-gira { to { --giro: 360deg; } }
@media (hover: hover) {
  .icono-rayo:hover { transform: translateY(-2px) scale(1.06); animation-duration: .9s; background: rgb(255 255 255 / .12); }
  .icono-rayo--principal:hover { background: #e2ff5c; }
  .icono-rayo:hover::before { filter: drop-shadow(0 0 6px #D1FE17); }
}
.final__botones { gap: 1rem; align-items: center; }
@media (prefers-reduced-motion: reduce) { .icono-rayo { animation: none; } }

/* Palabra-logo (6-oct): «Wec[marca]Labs» sin glitch (el glitch repetía el texto con una o normal y se duplicaba) */
.logo-marca::before, .logo-marca::after { content: none !important; }
.o-portal, .o-marca { display: inline-block; width: .7em; height: .7em; margin: 0 .07em 0 .05em; vertical-align: -.03em; }
.o-marca img, .o-portal img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 .12em rgb(209 254 23 / .5)); animation: respirar 3.2s ease-in-out infinite; }
/* Marca centrada entre «Wec» y «Labs» (medido con qa/marca.mjs: antes 10 px vs 27 px) */
.o-portal, .o-marca { margin: 0 0 0 .13em; }

/* ── Nombres de los servicios con brochazo lima (6-oct): pincelada irregular detrás, letra tinta en grueso ── */
.puntos-nombre { width: auto; max-width: 30vw; padding: .32em .75em .38em; color: var(--tinta) !important;
  font: 700 clamp(1.25rem, 2.2vw, 2.1rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.035em; text-transform: none;
  background: none;
  transform: rotate(-2deg); filter: drop-shadow(0 4px 14px rgb(209 254 23 / .16)); }
.puntos-nombre--der { transform: rotate(1.5deg); }
.puntos-nombre--izq { left: 7vw; } .puntos-nombre--der { right: 7vw; }
.o-portal, .o-marca { margin-left: .105em; }

/* ── Entrada con clic + header de vidrio (6-oct) ── */
/* Sin overflow:hidden en la raíz: en WebKit rompe el sticky de las escenas. El bloqueo del scroll es de JS (escenas.js) + touch-action. */
html.sin-entrar body, html.entrando body { touch-action: none; }
.barra, .avance { transition: opacity .9s ease; }
html.sin-entrar .barra, html.sin-entrar .avance { opacity: 0; pointer-events: none; }

.intro-logo { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: default; }
html.sin-entrar .intro-logo { pointer-events: auto; cursor: pointer; }
.intro-logo__palabra, .intro-logo__baja { display: block; }
html:not(.sin-entrar) .intro-logo__baja { visibility: hidden; }
.intro-logo__marca--orbe { width: clamp(96px, 11vw, 150px); }


/* Mancha de tinta (6-oct, v2): SIN recuadro ni borde; la galaxia aparece solo donde hay tinta (tinta.js) */
.puntos-nombre.tinta { position: absolute; top: 66%; display: block; width: min(36vw, 600px); max-width: none; padding: 0; margin: 0;
  transform: none; filter: none; background: none; pointer-events: auto; }
.puntos-nombre.tinta::before, .puntos-nombre.tinta::after { content: none; }
.puntos-nombre--izq.tinta { left: 5vw; } .puntos-nombre--der.tinta { right: 5vw; }
.tinta__mancha { position: absolute; inset: -110px -120px; width: calc(100% + 240px); height: calc(100% + 220px); z-index: 0; pointer-events: none; }
.tinta__texto { position: relative; z-index: 1; display: block; text-align: center; text-transform: none; color: #fff;
  font: 700 clamp(1.6rem, 3.4vw, 3.4rem)/1.02 "Space Grotesk", sans-serif; letter-spacing: -.04em;
  text-shadow: 0 2px 14px rgb(5 4 12 / .55), 0 0 30px rgb(139 61 255 / .35); }
@media (max-width: 699px) { .puntos-nombre.tinta { width: 44vw; top: 62%; } .tinta__texto { font-size: 1.25rem; } }

/* ── La entrada (6-oct, v2): el aro con rayo se fue; el ícono rebota desde su esquina inferior izquierda cuando aterriza el punto rosa ── */
.llegada { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }
.intro-logo__aro { position: relative; display: block; transform-origin: 0 100%; transition: scale .35s cubic-bezier(.2, .8, .2, 1);
  opacity: clamp(0, calc(1 - (var(--p) - .14) * 8), 1); }
.intro-logo__cuerpo { position: relative; display: block; line-height: 0; animation: respirar 3s ease-in-out infinite; }
.intro-logo__marca { display: block; animation: none; }
.intro-logo__satelite { position: absolute; left: 74.575%; top: 32.79%; width: 11.67%; aspect-ratio: 1; margin: -5.835% 0 0 -5.835%; border-radius: 50%; background: #FF1F7A; }
html.llegando:not(.sat-listo) .intro-logo__satelite { opacity: 0; }
html.llegando .intro-logo__palabra { opacity: 0 !important; }
html.revela-palabra .intro-logo__palabra { animation: revela-palabra .8s ease both; }
@keyframes revela-palabra { from { opacity: 0; filter: blur(10px); } }
@media (hover: hover) { html.sin-entrar .intro-logo:hover .intro-logo__aro { scale: 1.05; } }

/* ── Header v2 (6-oct): sin cápsula negra ni rayo; un círculo de color por app, suelto ── */
.barra { padding-top: calc(.7rem + env(safe-area-inset-top)); }
.barra__derecha { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.barra__sitio { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; border: 1px solid rgb(255 255 255 / .35); border-radius: 99px; background: rgb(3 3 4 / .62); color: #f7f7f4; font: 600 12px/1.2 Inter, sans-serif; white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.barra__sitio span { color: var(--lima); font-size: 17px; }
.app { --d: 44px; appearance: none; border: 0; padding: 0; margin: 0; width: var(--d); height: var(--d); min-height: 0; border-radius: 50%; display: inline-grid; place-items: center;
  color: #fff; cursor: pointer; text-decoration: none; box-shadow: 0 6px 16px rgb(11 12 14 / .22), inset 0 0 0 1px rgb(255 255 255 / .25);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.app svg { width: 19px; height: 19px; }
.app--wa { background: #25D366; }
.app--ig { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.app--tt { background: #0b0c0e; }
.app--tt svg { filter: drop-shadow(-1.2px -1px 0 #25F4EE) drop-shadow(1.2px 1px 0 #FE2C55); }
.app--musica { background: linear-gradient(135deg, #FF1F7A, #8B3DFF); }
.app--musica .musica__barras { gap: 2.5px; height: 16px; }
.app--musica .musica__barras i { width: 3px; background: #fff; }
.app--musica .musica__barras i:nth-child(1) { height: 7px; } .app--musica .musica__barras i:nth-child(2) { height: 12px; }
.app--musica .musica__barras i:nth-child(3) { height: 9px; } .app--musica .musica__barras i:nth-child(4) { height: 5px; }
.app--cta { width: auto; padding: 0 1.05rem 0 1.2rem; gap: .45rem; grid-auto-flow: column; background: var(--lima); color: var(--tinta); font: 700 .9rem Inter, sans-serif;
  box-shadow: 0 6px 16px rgb(209 254 23 / .38), inset 0 0 0 1px rgb(11 12 14 / .08); }
.app--cta svg { width: 16px; height: 16px; }
.app--pendiente { opacity: .6; filter: saturate(.75); }
@media (hover: hover) { .app:hover { transform: translateY(-2px) scale(1.08); box-shadow: 0 10px 22px rgb(11 12 14 / .3), inset 0 0 0 1px rgb(255 255 255 / .35); } }
@media (max-width: 559px) { .barra__nombre { display: none; } .app { --d: 44px; gap: 0; } .barra__derecha { gap: 6px; } .app--cta { padding: 0 .85rem 0 1rem; font-size: .84rem; } }
@media (max-width: 559px) { .barra__sitio { padding: 0 9px; font-size: 0; } .barra__sitio span { font-size: 18px; } }

/* Botones v3 (6-oct): colores SÓLIDOS; «Hablemos» vuelve a ser pastilla (heredaba el círculo y se veía ovalado) */
.app--wa { background: #25D366; } .app--ig { background: #E1306C; } .app--tt { background: #0b0c0e; } .app--musica { background: #FF1F7A; }
.app--tt svg { filter: none; }
.app { box-shadow: 0 5px 14px rgb(11 12 14 / .2); }
.app--cta, .app--cta.app--grande { border-radius: 99px; background: var(--lima); box-shadow: 0 5px 14px rgb(209 254 23 / .3); }
.app--pendiente { opacity: .7; filter: none; }

/* Entrada v3 (6-oct): la palabra de puntos se funde en la SÓLIDA y, cuando aterriza el punto rosa, cambia de color (sólido) */
html.llegando .intro-logo__palabra { transition: opacity .45s ease; }
html.llegando.palabra-solida .intro-logo__palabra { opacity: 1 !important; }
html.palabra-color .intro-logo__palabra { animation: palabra-entra-color .9s ease forwards, palabra-tono 7s ease-in-out .9s infinite; }
@keyframes palabra-entra-color { from { color: var(--tinta); } to { color: #FF1F7A; } }
@keyframes palabra-tono { 0%, 100% { color: #FF1F7A; } 33% { color: #8B3DFF; } 66% { color: #00B8E6; } }
@media (prefers-reduced-motion: reduce) { html.palabra-color .intro-logo__palabra { animation: none; } }

/* Versión ?sin-paul (7-oct): la frase del ojo ocupa el lugar del nombre, en blanco sólido como lo era el nombre */
.frase-ojo { color: #fff; mix-blend-mode: normal; font-size: clamp(3rem, 10vw, 10rem); white-space: nowrap; }

/* Nubes de la izquierda (6-oct, Paul: «que no tapen tanto a Xochipilli»): en el instante del corte giro → boca siguen grandes
   (esconden el relevo, medido con qa/relevos.mjs), y en cuanto pasa el corte se encogen hacia la orilla izquierda. */
.empalme--i1, .empalme--i2, .empalme--i3, .empalme--i4 { --retira: clamp(0, calc((var(--p) - .54) * 6), 1);
  transform-origin: 0% 50%; scale: calc(1 - var(--retira) * .42); }
.empalme--i3 { transform-origin: -40% 60%; }
/* En celular las nubes iban a 90vw y tapaban toda la cara: ahí van chicas y pegadas a las orillas */
@media (max-width: 699px) {
  .empalme { width: 52vw !important; }
  .empalme--i1 { left: -26vw; top: -8vh; } .empalme--i2 { left: -28vw; bottom: -10vh; }
  .empalme--i3 { left: -14vw; bottom: -16vh; } .empalme--i4 { display: none; }
  [class*="empalme--d"] { right: -26vw !important; left: auto !important; }
}

/* Rayos que nacen del ojo (6-oct): salen de la pupila y el ojo se desvanece hasta quedar en negro con los rayos */
.escena--ojo .escena__fija { background: #030304; }
.rayos--ojo { z-index: 2; pointer-events: none; }
.escena--ojo .fondo { opacity: clamp(0, calc(1 - (var(--p) - .66) * 3.4), 1); }
.escena--ojo .texto { z-index: 3; }
/* El texto del ojo se va antes del relevo a la escena de rayos (6-oct: al pasar de una a otra no debe verse doble) */
.escena--ojo .texto { opacity: clamp(0, calc(1 - (var(--p) - .82) * 7), 1); }
/* Rayos → «Lo que hacemos» es un relevo (6-oct): al final de los rayos todo se apaga a negro y la escena siguiente entra en el mismo cuadro */
.escena--rayos .rayos { opacity: clamp(0, calc((1 - var(--p)) * 9), 1); }
.escena--rayos .digital { opacity: calc(clamp(0, calc((var(--p) - .55) * 4), 1) * clamp(0, calc((1 - var(--p)) * 9), 1)); }
.escena--palabras-flotan .logo-glitch { opacity: clamp(0, calc(var(--p) * 22), 1); }
/* Un relevo NO puede tener fondo propio en la sección: con el margen −100vh su fondo tapa la escena anterior mientras espera
   (6-oct: la mitad de abajo de los rayos se veía negra). El fondo va en .escena__fija. */
.escena--continua { background: transparent !important; }
.escena--palabras-flotan .escena__fija { background-color: var(--noche); }

/* «IA para Empresas» (6-oct): tras los tres pares, la esfera de puntos con IA arriba y esto abajo de WecoLabs; el portal abre después */
.escena--palabras-flotan { height: 380vh; }
.puntos-nombre.tinta { opacity: clamp(0, calc(1 - (var(--p) - .36) * 14), 1); }
.para-empresas { position: absolute; left: 0; right: 0; top: 62%; z-index: 6; margin: 0; text-align: center; color: #f2f3ef;
  font: 500 clamp(1.4rem, 3.2vw, 2.8rem)/1 "Space Grotesk", sans-serif; letter-spacing: .02em;
  opacity: calc(clamp(0, calc((var(--p) - .47) * 14), 1) * clamp(0, calc(1 - (var(--p) - .62) * 14), 1));
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - .47) * 14), 1)) * 18px)); }
.para-empresas em { font-style: normal; font-weight: 700; color: var(--lima); text-shadow: 0 0 24px rgb(209 254 23 / .45); }
.escena--palabras-flotan .portal-tlaloc { --abre: clamp(0, calc((var(--p) - .66) / .34), 1); opacity: clamp(0, calc((var(--p) - .63) * 20), 1); }
.escena--palabras-flotan .iconos-puntos { opacity: clamp(0, calc(1 - (var(--p) - .66) * 8), 1); }

/* ── Diagnóstico: el diagrama de flujo que se dibuja con el scroll (6-oct) ── */
.diagrama { --pd: clamp(0, calc((var(--p) - .38) / .24), 1); position: absolute; left: 50%; top: 50%; z-index: 3; translate: -50% -50%; width: min(94vw, 1240px); text-align: center; color: #f2f3ef; pointer-events: none;
  opacity: calc(clamp(0, calc((var(--p) - .37) * 30), 1) * clamp(0, calc(1 - (var(--p) - .64) * 25), 1)); }
.diagrama__etiqueta { margin: 0; font: 700 .85rem Inter, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: #f2f3ef; }
.diagrama__titulo { margin: .4rem 0 .7rem; font: 700 clamp(2rem, 4.4vw, 4rem)/1 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.diagrama__titulo em { font-style: normal; color: var(--lima); text-shadow: 0 0 30px rgb(209 254 23 / .35); }
.diagrama__pastilla { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1.2rem; padding: .4rem 1rem; border: 1.5px solid var(--lima); border-radius: 99px;
  color: var(--lima); font: 700 .85rem Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 0 22px rgb(209 254 23 / .25); }
.diagrama__pastilla svg { width: 16px; height: 16px; flex: none; }
.diagrama__lienzo { overflow: hidden; }
.diagrama__lienzo svg { display: block; width: 100%; height: auto; max-height: 60svh; margin: 0 auto; overflow: visible; }
.diagrama .carril rect { fill: none; stroke: rgb(242 243 239 / .55); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.diagrama .carril text { fill: #f2f3ef; font: 700 15px Inter, sans-serif; letter-spacing: .14em; text-anchor: start; }
.diagrama text { fill: #f2f3ef; font: 600 15px "Space Grotesk", sans-serif; text-anchor: middle; }
.diagrama .nodo rect, .diagrama .rombo { fill: #121316; stroke: #f2f3ef; stroke-width: 2; }
.diagrama .nodo rect ~ text { font: 700 18px "Space Grotesk", sans-serif; }
.diagrama .nodo circle { fill: #121316; stroke: #f2f3ef; stroke-width: 2.4; }
.diagrama .manecilla { fill: none; stroke: #f2f3ef; stroke-width: 2.4; stroke-linecap: round; }
.diagrama .nodo--fin circle { stroke: var(--lima); stroke-width: 3; filter: drop-shadow(0 0 8px rgb(209 254 23 / .7)); }
.diagrama .nodo--tu circle { stroke: var(--magenta); stroke-width: 3; filter: drop-shadow(0 0 8px rgb(255 31 122 / .6)); }
.diagrama .trazo { fill: none; stroke: #f2f3ef; stroke-width: 2; stroke-dasharray: 1; marker-end: url(#flecha);
  stroke-dashoffset: calc((1 - clamp(0, calc((var(--pd) - var(--t)) * 9), 1)) * 1px); opacity: clamp(0, calc((var(--pd) - var(--t)) * 60), 1); }
.diagrama .trazo--si { stroke: var(--lima); }
.diagrama .rotulo { font: 700 15px Inter, sans-serif; text-anchor: start; }
.diagrama .rotulo--si { fill: var(--lima); }
.diagrama .carril, .diagrama .nodo, .diagrama .rotulo { opacity: clamp(0, calc((var(--pd) - var(--t)) * 14), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--pd) - var(--t)) * 14), 1)) * 8px)); }
.diagrama__pie { margin: 1rem 0 0; font: 500 clamp(.95rem, 1.4vw, 1.15rem) Inter, sans-serif; color: rgb(242 243 239 / .75); opacity: clamp(0, calc((var(--pd) - .8) * 12), 1); }
@media (max-width: 699px) {
  .diagrama__lienzo { margin: 0 -3vw; }
  .diagrama__lienzo svg { width: 200%; max-height: none; transform: translateX(calc(clamp(0, calc((var(--pd) - .1) / .7), 1) * -50%)); }
}

/* Orden de la escena «Lo que hacemos» (6-oct): servicios (0–.36) → diagrama (.38–.64) → se deshace en puntos → esfera → «IA» → portal */
.escena--palabras-flotan { height: 640vh; }
.puntos-nombre.tinta { opacity: clamp(0, calc(1 - (var(--p) - .32) * 18), 1); }
.escena--palabras-flotan .logo-glitch { opacity: calc(clamp(0, calc(var(--p) * 40), 1) * (1 - clamp(0, calc((var(--p) - .34) * 25), 1) + clamp(0, calc((var(--p) - .72) * 20), 1))); }
.para-empresas { opacity: calc(clamp(0, calc((var(--p) - .84) * 20), 1) * clamp(0, calc(1 - (var(--p) - .92) * 20), 1));
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - .84) * 20), 1)) * 18px)); }
.para-empresas__giro { display: inline-block; min-width: 6.6em; text-align: left; }
.para-empresas__giro em { display: inline-block; }
.escena--palabras-flotan .portal-tlaloc { --abre: clamp(0, calc((var(--p) - .9) / .1), 1); opacity: clamp(0, calc((var(--p) - .88) * 50), 1); }
.escena--palabras-flotan .iconos-puntos { opacity: clamp(0, calc(1 - (var(--p) - .9) * 12), 1); }

/* Diagrama v2 (6-oct): circuito alrededor de «WecoLabs», a pantalla completa; la marca se queda visible al centro */
.diagrama { inset: 0; left: 0; top: 0; translate: none; width: auto; z-index: 3; }
.diagrama__lienzo { position: absolute; inset: 0; overflow: visible; }
.diagrama__lienzo svg { width: 100%; height: 100%; max-height: none; }
.diagrama__etiqueta { position: absolute; left: 0; right: 0; top: 11svh; z-index: 1; font: 600 .78rem "JetBrains Mono", monospace; letter-spacing: .28em; color: rgb(242 243 239 / .7); }
.diagrama__pie { position: absolute; left: 0; right: 0; bottom: 5svh; }
.diagrama .nodo--centro rect { fill: rgb(209 254 23 / .035); stroke: rgb(242 243 239 / .35); stroke-width: 1.5; filter: drop-shadow(0 0 30px rgb(209 254 23 / .18)); }
.diagrama .trazo { stroke: rgb(242 243 239 / .8); stroke-width: 1.6; marker-end: none; }
.diagrama .borne { fill: #f2f3ef; stroke: none; }
.diagrama .nodo text { font: 600 13px "JetBrains Mono", monospace; letter-spacing: .12em; fill: #f2f3ef; text-anchor: middle; }
.diagrama .nodo text.izq { text-anchor: start; } .diagrama .nodo text.der { text-anchor: end; }
.diagrama .nodo text .marca { fill: var(--lima); font-weight: 700; }
.diagrama .pulsos circle { fill: var(--lima); filter: drop-shadow(0 0 6px #D1FE17); }
.diagrama .pulsos { opacity: clamp(0, calc((var(--pd) - .55) * 8), 1); }
.escena--palabras-flotan .logo-glitch { opacity: clamp(0, calc(var(--p) * 40), 1); }

/* Diagrama v3 (6-oct): flujo de verdad (inicio, procesos, decisiones Sí/No, regreso) con líneas de circuito y flujo animado */
.diagrama .trazo { stroke: rgb(209 254 23 / .75); stroke-width: 1.8; marker-end: url(#flecha); filter: url(#neon); }
.diagrama .flujo { fill: none; stroke: #f8ffd0; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 3 22; animation: flujo 1.1s linear infinite;
  opacity: calc(clamp(0, calc((var(--pd) - var(--t) - .08) * 10), 1) * .85); }
@keyframes flujo { to { stroke-dashoffset: -25; } }
.diagrama .nodo rect { fill: #0f1012; stroke: rgb(242 243 239 / .85); stroke-width: 1.6; }
.diagrama .nodo--centro rect { fill: rgb(209 254 23 / .035); stroke: rgb(209 254 23 / .5); filter: drop-shadow(0 0 30px rgb(209 254 23 / .18)); }
.diagrama .rombo { fill: #0f1012; stroke: var(--lima); stroke-width: 1.8; filter: drop-shadow(0 0 8px rgb(209 254 23 / .45)); }
.diagrama .nodo circle { fill: #0f1012; stroke: #f2f3ef; stroke-width: 2.2; }
.diagrama .nodo--inicio circle { stroke: #25D366; filter: drop-shadow(0 0 8px rgb(37 211 102 / .7)); }
.diagrama .nodo--fin circle { stroke: var(--lima); stroke-width: 3; filter: drop-shadow(0 0 10px rgb(209 254 23 / .8)); }
.diagrama text.caja { font: 600 16px "Space Grotesk", sans-serif; fill: #f2f3ef; text-anchor: middle; letter-spacing: 0; }
.diagrama text.tag { font: 600 12px "JetBrains Mono", monospace; letter-spacing: .12em; fill: #f2f3ef; text-anchor: middle; }
.diagrama .tag .marca, .diagrama text .marca { fill: var(--lima); font-weight: 700; }
.diagrama .rotulo { font: 700 14px "JetBrains Mono", monospace; fill: #ff7aa8; }
.diagrama .rotulo--si { fill: var(--lima); }
@media (prefers-reduced-motion: reduce) { .diagrama .flujo { animation: none; } }
.diagrama .trazo--vuelta { stroke-dasharray: none; stroke: rgb(255 31 122 / .7); }
.diagrama .rotulo--vuelta { font: 700 12px "JetBrains Mono", monospace; letter-spacing: .2em; fill: #ff7aa8; text-anchor: middle; }

/* ── Análisis exprés: botón y ventana con el cuestionario y el cobro (6-oct) ── */
.cta-analisis { position: absolute; left: 50%; top: 71%; z-index: 7; translate: -50% 0; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.15rem; border-radius: 99px; background: var(--lima); color: var(--tinta); text-decoration: none; font: 700 .9rem Inter, sans-serif;
  box-shadow: 0 6px 18px rgb(209 254 23 / .22);
  opacity: calc(clamp(0, calc((var(--p) - .86) * 20), 1) * clamp(0, calc(1 - (var(--p) - .93) * 20), 1)); pointer-events: none; }
.cta-analisis small { font-weight: 600; opacity: .7; }
@keyframes cta-late { 70% { box-shadow: 0 0 0 16px rgb(209 254 23 / 0), 0 10px 30px rgb(209 254 23 / .3); } 100% { box-shadow: 0 0 0 0 rgb(209 254 23 / 0), 0 10px 30px rgb(209 254 23 / .3); } }
.analisis { width: min(560px, 94vw); max-height: 92svh; padding: 0; border: 1px solid rgb(255 255 255 / .12); border-radius: 24px; background: #0c0d10; color: #f2f3ef;
  box-shadow: 0 30px 80px rgb(0 0 0 / .6), 0 0 60px rgb(209 254 23 / .08); overflow: auto; }
.analisis::backdrop { background: rgb(3 3 4 / .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.analisis__marco { padding: 1.6rem 1.6rem 1.4rem; }
.analisis__arriba { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.analisis__titulo { margin: 0; font: 700 .8rem "JetBrains Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--lima); }
.analisis__cerrar { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .08); color: #f2f3ef; font-size: 1.3rem; cursor: pointer; }
.analisis__avance { height: 4px; border-radius: 4px; background: rgb(255 255 255 / .08); overflow: hidden; margin-bottom: 1.4rem; }
.analisis__avance i { display: block; height: 100%; width: 0; background: var(--lima); transition: width .4s ease; }
.analisis h3 { margin: .2rem 0 1rem; font: 700 clamp(1.4rem, 3.4vw, 1.9rem)/1.1 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.analisis p { color: rgb(242 243 239 / .78); line-height: 1.5; }
.analisis__num { margin: 0; font: 600 .78rem "JetBrains Mono", monospace; letter-spacing: .14em; color: rgb(242 243 239 / .55) !important; text-transform: uppercase; }
.analisis__chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.analisis .chip { min-height: 48px; padding: .6rem 1.05rem; border: 1px solid rgb(255 255 255 / .18); border-radius: 99px; background: rgb(255 255 255 / .04); color: #f2f3ef; font: 600 1rem Inter, sans-serif; cursor: pointer; transition: border-color .2s, background .2s; }
.analisis .chip:hover, .analisis .chip:focus-visible { border-color: var(--lima); background: rgb(209 254 23 / .1); outline: none; }
.analisis__form { display: grid; gap: .9rem; }
.analisis__form label { display: grid; gap: .35rem; font: 600 .9rem Inter, sans-serif; }
.analisis__form input { min-height: 48px; padding: .6rem .9rem; border: 1px solid rgb(255 255 255 / .18); border-radius: 12px; background: #15161a; color: #f2f3ef; font: 500 16px Inter, sans-serif; }
.analisis__form input:focus { outline: 2px solid var(--lima); outline-offset: 1px; }
.analisis__pagar { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: .8rem 1.4rem; border: 0; border-radius: 99px; background: var(--lima); color: var(--tinta);
  font: 700 1.05rem Inter, sans-serif; text-decoration: none; cursor: pointer; }
.analisis__pagar:disabled { opacity: .6; cursor: progress; }
.analisis__letra { margin: 0; font-size: .82rem; }
.analisis__error { margin: 0; color: #ff7aa8 !important; font-weight: 600; }
.analisis__agenda { width: 100%; height: 600px; border: 0; border-radius: 14px; background: #fff; }
/* Un relevo que espera (oculto) no puede quedarse con los clics de la escena de abajo (6-oct: «Empieza tu análisis» no abría) */
.escena--continua.espera { pointer-events: none; }
/* Cuestionario profundo (7-oct) */
.analisis { width: min(640px, 94vw); }
.analisis .chip.activo { border-color: var(--lima); background: rgb(209 254 23 / .16); color: #fff; }
.analisis .chip.activo::before { content: "✓ "; color: var(--lima); }
.analisis__ayuda { margin: -.4rem 0 1rem; font-size: .95rem; }
.analisis__campo { display: grid; gap: .35rem; margin-bottom: .9rem; font: 600 .9rem Inter, sans-serif; }
.analisis__campo input, .analisis__agregar input { min-height: 48px; padding: .6rem .9rem; border: 1px solid rgb(255 255 255 / .18); border-radius: 12px; background: #15161a; color: #f2f3ef; font: 500 16px Inter, sans-serif; }
.analisis__campo input:focus, .analisis__agregar input:focus { outline: 2px solid var(--lima); outline-offset: 1px; }
.analisis__fila { display: grid; grid-template-columns: 1fr 1.6fr; gap: .8rem; margin-top: 1rem; }
.analisis__color input { width: 72px; min-height: 44px; padding: 4px; }
.analisis__mapa { display: block; width: 100%; height: 220px; margin: .8rem 0 0; border: 0; border-radius: 14px; background: #15161a; }
.analisis__mapa--vacio { display: grid; place-items: center; color: rgb(242 243 239 / .5); font: 500 .9rem Inter, sans-serif; border: 1px dashed rgb(255 255 255 / .18); }
.analisis__mini { min-height: 44px; padding: .5rem 1rem; border: 1px solid rgb(255 255 255 / .25); border-radius: 99px; background: none; color: #f2f3ef; font: 600 .9rem Inter, sans-serif; cursor: pointer; }
.analisis__agregar { display: flex; gap: .5rem; margin-top: .8rem; } .analisis__agregar input { flex: 1; }
.analisis__capas { display: grid; gap: .55rem; margin-bottom: 1rem; }
.analisis .capa { display: grid; gap: .2rem; text-align: left; padding: .8rem 1rem; border: 1px solid rgb(255 255 255 / .16); border-radius: 14px; background: rgb(255 255 255 / .03); color: #f2f3ef; cursor: pointer; font: 500 .92rem Inter, sans-serif; }
.analisis .capa b { font: 700 1.02rem "Space Grotesk", sans-serif; }
.analisis .capa span { color: rgb(242 243 239 / .72); }
.analisis .capa.activo { border-color: var(--lima); background: rgb(209 254 23 / .1); }
.analisis__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.3rem; }
.analisis__sig { min-height: 50px; padding: .7rem 1.6rem; border: 0; border-radius: 99px; background: var(--lima); color: var(--tinta); font: 700 1rem Inter, sans-serif; cursor: pointer; }
.analisis__sig:disabled { opacity: .35; cursor: not-allowed; }
.analisis__atras { min-height: 44px; border: 0; background: none; color: rgb(242 243 239 / .7); font: 600 .95rem Inter, sans-serif; cursor: pointer; }
@media (max-width: 560px) { .analisis__fila { grid-template-columns: 1fr; } }

/* Safari/iOS: la barra de direcciones se esconde al deslizar. Las escenas miden la pantalla GRANDE (lvh) y lo que va pegado abajo se sube lo que ocupa la barra. */
@supports (height: 100lvh) { :root { --barra-inf: calc(100lvh - 100svh); } }

/* Táctiles (2-nov-2026, «brincos» en el primer personaje): en celular/iPad las nubes que tapan los cortes entre escenas no alcanzan
   y el corte se ve. Aquí la escena que entra se mezcla en un tramo corto (~4 % de su recorrido) y la boca entra igual de suave. */
@media (hover: none) and (pointer: coarse) {
  .escena--continua .escena__fija { opacity: clamp(0, calc(var(--p) * 28), 1); }
  .secuencia--boca { opacity: clamp(0, calc((var(--p) - .52) * 30), 1); }
}
html.angosto .escena--continua .escena__fija { opacity: clamp(0, calc(var(--p) * 28), 1); }
html.angosto .secuencia--boca { opacity: clamp(0, calc((var(--p) - .52) * 30), 1); }

/* Diagrama en táctiles y pantallas angostas (2-nov-2026, Paul: «no es entendible»): el dibujo de 1440 px encogido deja letras de 4 px y lo tapa el logo.
   Ahí se cuenta el mismo flujo en 5 pasos grandes que van apareciendo con el scroll (misma --pd del diagrama). */
.flujo-movil { display: none; }
@media (hover: none) and (pointer: coarse), (max-width: 699px) {
  .diagrama__lienzo { display: none; }
  .flujo-movil { display: grid; gap: .55rem; position: absolute; left: 50%; translate: -50% 0; top: calc(11svh + 2.6rem); width: min(86vw, 30rem); margin: 0; padding: 0; list-style: none; text-align: left; }
  .flujo-movil li { display: flex; align-items: center; gap: .8rem; position: relative; opacity: clamp(0, calc((var(--pd) - var(--k)) * 9), 1);
    transform: translateY(calc((1 - clamp(0, calc((var(--pd) - var(--k)) * 9), 1)) * 10px)); font: 600 clamp(.98rem, 3.9vw, 1.3rem)/1.2 "Space Grotesk", Inter, sans-serif; color: #f2f3ef; }
  .flujo-movil li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; width: 1.5px; height: .6rem; background: rgb(209 254 23 / .55); }
  .flujo-movil b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--lima); color: var(--lima); font: 700 .9rem "JetBrains Mono", monospace; background: rgb(209 254 23 / .08); }
  .flujo-movil em { font-style: normal; color: var(--lima); }
}
