/* Meier Suite — portada. La página se ve a través del visor de la cámara Meier. */
:root {
  --negro: #0A0A0C;
  --panel: #121217;
  --texto: #F4F4F6;
  --texto-2: #C9C9D2;
  --niebla: #9C9CA8;
  --tenue: #6E6E7A;
  --linea: rgba(255, 255, 255, .09);
  --linea-2: rgba(255, 255, 255, .16);
  --rojo: #F2382F;
  --violeta: #8E6BFF;
  --brillo: rgba(108, 72, 230, .24);
  --f: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-he: "Heebo", "Inter", system-ui, sans-serif;
  --f-tc: "JetBrains Mono", ui-monospace, monospace;
  --ancho: 1200px;
  --margen: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; }
html { background: var(--negro); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--negro); color: var(--texto); font-family: var(--f);
  font-size: 17px; line-height: 1.55; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="he"] body { font-family: var(--f-he); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--texto); color: var(--negro); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.saltar:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--violeta); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Retícula y resplandor de la familia */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 78% 18%, var(--brillo), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px;
}

/* ---------- Visor ---------- */
.visor { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.esq { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(244,244,246,.55); }
.esq.a { left: 14px; top: 14px; border-left-width: 1.5px; border-top-width: 1.5px; }
.esq.b { right: 14px; top: 14px; border-right-width: 1.5px; border-top-width: 1.5px; }
.esq.c { left: 14px; bottom: 14px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.esq.d { right: 14px; bottom: 14px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.rec, .toma { position: absolute; bottom: 24px; text-shadow: 0 1px 6px rgba(0,0,0,.9); font-size: 12px; letter-spacing: .02em; color: rgba(244,244,246,.78); display: flex; align-items: center; gap: 8px; }
.rec { left: 50px; font-weight: 600; }
.rec .tc { font-family: var(--f-tc); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--texto); }
.rec .punto { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF8F84, var(--rojo) 55%, #B40E12); box-shadow: 0 0 10px rgba(242,56,47,.8); animation: parpadeo 1.6s steps(1) infinite; }
.toma { right: 50px; transition: color .3s; }
@keyframes parpadeo { 50% { opacity: .25; } }
.cinta { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60; pointer-events: none; }
.cinta span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #B40E12, var(--rojo), #FF8F84); }
html[dir="rtl"] .cinta span { transform-origin: 100% 50%; }

/* ---------- Barra ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: 68px; padding-inline: clamp(24px, 4vw, 52px);
  display: flex; align-items: center; gap: 28px; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.solida { background: rgba(10,10,12,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--linea); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.marca { font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; }
.marca b { font-weight: 650; }
.marca .i { position: relative; }
.marca .i::after { content: ""; position: absolute; left: 50%; top: .02em; width: .3em; height: .3em; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF8F84, var(--rojo) 55%, #B40E12); box-shadow: 0 0 8px rgba(242,56,47,.7); }
.marca .suite { color: var(--niebla); font-weight: 400; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--texto-2); font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--texto); background: rgba(255,255,255,.06); }
.nav-der { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.nav-der .anonimo { display: flex; align-items: center; gap: 10px; }
.idioma select {
  appearance: none; background: transparent; color: var(--texto-2); border: 1px solid var(--linea-2); border-radius: 10px;
  font: 600 13px var(--f); padding: 7px 10px; cursor: pointer;
}
.idioma select option { background: var(--panel); }

/* Botones */
.b-claro, .b-borde, .b-texto, .b-pastilla { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; border-radius: 12px; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s; }
.b-claro { background: var(--texto); color: #0A0A0C; padding: 10px 16px; font-size: 15px; }
.b-claro:hover { background: #fff; }
.b-borde { border: 1px solid var(--linea-2); color: var(--texto); padding: 10px 16px; }
.b-borde:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); }
.b-texto { color: var(--texto-2); padding: 10px 12px; font-size: 15px; }
.b-texto:hover { color: var(--texto); }
.grande { padding: 15px 22px; font-size: 16px; border-radius: 14px; }
.b-pastilla { margin-top: 26px; padding: 9px 14px; font-size: 14px; border-radius: 999px; color: var(--texto); border: 1px solid color-mix(in srgb, var(--a, var(--violeta)) 60%, transparent); background: color-mix(in srgb, var(--a, var(--violeta)) 14%, transparent); }
.b-pastilla:hover { background: color-mix(in srgb, var(--a, var(--violeta)) 26%, transparent); }

/* ---------- Portada: una sola toma larga ---------- */
.portada { position: relative; }
.escenario { --L: min(50vh, 34vw, 500px); position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; isolation: isolate; }
/* Rayos que giran detrás del lente, luz que sigue al ratón y la órbita de las doce apps */
.rayos { position: absolute; left: 50%; top: 38%; width: 190vmax; height: 190vmax; margin: -95vmax 0 0 -95vmax; z-index: 0; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgba(170,140,255,.09) 0deg 1.2deg, transparent 1.2deg 6deg);
  -webkit-mask: radial-gradient(circle, #000 3%, rgba(0,0,0,.55) 13%, transparent 34%); mask: radial-gradient(circle, #000 3%, rgba(0,0,0,.55) 13%, transparent 34%);
  animation: rayos 140s linear infinite; }
@keyframes rayos { to { rotate: 360deg; } }
.foco { position: absolute; left: 0; top: 0; width: 64vmax; height: 64vmax; margin: -32vmax 0 0 -32vmax; z-index: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(142,107,255,.20), rgba(255,79,139,.05) 35%, transparent 62%); }
.orbita { position: absolute; inset: 0; pointer-events: none; }
.anillo { position: absolute; left: 0; top: 0; border-radius: 50%; border: 1px solid rgba(196,178,255,.22); opacity: 0; will-change: transform, opacity;
  box-shadow: 0 0 24px rgba(142,107,255,.18), inset 0 0 24px rgba(142,107,255,.12); }
.anillo.atras { z-index: 1; clip-path: inset(0 0 50% 0); }
.anillo.delante { z-index: 5; clip-path: inset(50% 0 0 0); border-color: rgba(214,200,255,.38); }
.o-icono { position: absolute; left: 0; top: 0; width: calc(var(--L) * .2); height: calc(var(--L) * .2); margin: calc(var(--L) * -.1) 0 0 calc(var(--L) * -.1); opacity: 0; will-change: transform, opacity; }
.o-icono img { width: 100%; height: 100%; filter: drop-shadow(0 16px 26px rgba(0,0,0,.6)) drop-shadow(0 0 22px color-mix(in srgb, var(--a) 45%, transparent)); }
.escenario::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(42vmax 34vmax at 50% 38%, rgba(108,72,230,.30), transparent 70%); }
/* El lente: cuerpo atrás, túnel en medio (recortado al vidrio) y diafragma al frente */
.lente { position: absolute; left: 50%; top: 38%; width: var(--L); height: var(--L); margin: calc(var(--L) / -2) 0 0 calc(var(--L) / -2); z-index: 2; transform-origin: 50% 50%; will-change: transform, filter, opacity; }
.lente > img { width: 100%; height: 100%; filter: drop-shadow(0 40px 70px rgba(0,0,0,.7)) drop-shadow(0 0 90px rgba(108,72,230,.4)); }
.lente-frente { z-index: 4; pointer-events: none; }
.vidrio { position: absolute; left: 33.9%; top: 34.2%; width: 33.6%; height: 33.6%; border-radius: 50%; overflow: hidden; }
.vidrio .hojas { position: absolute; inset: 0; width: 100%; height: 100%; }
.reflejo { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 30% 27%, rgba(255,255,255,.75) 0 2.6%, transparent 4.2%),
    radial-gradient(circle at 37% 33%, rgba(255,255,255,.35) 0 1.3%, transparent 2.4%),
    radial-gradient(110% 80% at 28% 12%, rgba(150,170,255,.22), transparent 52%),
    radial-gradient(90% 70% at 70% 95%, rgba(200,90,255,.18), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 30px rgba(0,0,0,.7); }
.tunel { position: absolute; inset: 0; z-index: 3; perspective: 900px; perspective-origin: 50% 50%; clip-path: circle(0px at 50% 38%);
  background: radial-gradient(60vmax 50vmax at 50% 50%, color-mix(in srgb, var(--a, #6C48E6) 26%, #07060d), #040407 72%); }
.estrellas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tunel-mundo { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.t-icono { position: absolute; left: 0; top: 0; width: 24vmin; height: 24vmin; margin: -12vmin 0 0 -12vmin; opacity: 0; will-change: transform, opacity; }
.t-icono img { width: 100%; height: 100%; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--a) 70%, transparent)) drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.credito { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 6px; text-align: center; pointer-events: none; opacity: 0; z-index: 2; }
.credito-nombre { font-size: clamp(72px, 12vw, 210px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; color: #fff; text-shadow: 0 0 60px color-mix(in srgb, var(--a, #8E6BFF) 80%, transparent), 0 0 140px color-mix(in srgb, var(--a, #8E6BFF) 50%, transparent); }
.credito-sub { font-size: clamp(14px, 1.3vw, 20px); letter-spacing: .02em; color: rgba(255,255,255,.75); }
.destello { position: absolute; left: 0; top: 0; z-index: 5; width: 160vw; height: 2px; margin: -1px 0 0 -80vw; pointer-events: none; opacity: .35; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(110,140,255,.0) 20%, rgba(130,160,255,.9) 48%, rgba(255,255,255,1) 50%, rgba(130,160,255,.9) 52%, rgba(110,140,255,0) 80%, transparent);
  filter: drop-shadow(0 0 6px rgba(120,150,255,.9)) drop-shadow(0 0 18px rgba(120,150,255,.6)); }
.destello::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22vmin; height: 22vmin; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(170,190,255,.55), rgba(120,90,255,.15) 40%, transparent 70%); }
.muro { position: absolute; inset: 0; z-index: 6; perspective: 1400px; pointer-events: none; opacity: 0; }
.muro-plano { position: absolute; left: 50%; top: 50%; width: min(140vw, 2300px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6vw; transform-style: preserve-3d; will-change: transform; transform: translate(-50%, -50%); }
.muro-plano img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 70px rgba(0,0,0,.65); background: #111; }
.portada-titulo { position: absolute; left: 0; right: 0; top: calc(38% + var(--L) * .5 + 1vh); z-index: 7; text-align: center; padding-inline: 24px; pointer-events: none; }
.portada h1 { font-size: clamp(40px, min(6.2vw, 9.4vh), 104px); line-height: .9; letter-spacing: -0.055em; font-weight: 760; }
.portada h1 .l1, .portada h1 .l2 { display: block; will-change: transform, opacity, filter; }
.portada h1 .l2 .wi { color: transparent; background: linear-gradient(100deg, #9F86FF 0%, #E9E3FF 30%, #fff 42%, #C9B8FF 55%, #FF8F84 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; animation: brillo-l2 7s ease-in-out infinite alternate; }
@keyframes brillo-l2 { to { background-position: 100% 0; } }
html[lang="he"] .portada h1 { letter-spacing: -0.015em; line-height: 1.02; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }
.cartel { position: absolute; left: 0; right: 0; bottom: 62px; z-index: 7; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 28px; padding-inline: clamp(28px, 5vw, 72px); }
.cartel p { font-size: 15px; line-height: 1.5; color: var(--texto-2); max-width: 44ch; }
.sellos-caja { display: grid; justify-items: center; gap: 12px; }
.sellos { display: flex; gap: 8px; }
.sellos img { width: 30px; height: 30px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.senal { position: relative; font-size: 13px; color: var(--niebla); padding-bottom: 26px; }
.senal::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1.5px; height: 20px; background: linear-gradient(var(--texto), transparent); transform-origin: top; animation: baja 1.8s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes baja { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(10px); opacity: 0; } }
.acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.cartel .acciones { justify-content: flex-end; margin: 0; }
@media (min-width: 861px) { html.cine .sellos { display: none; } }
.franja { position: absolute; left: 0; right: 0; height: 12vh; z-index: 9; background: #000; transform: scaleY(0); pointer-events: none; }
.franja.arriba { top: 0; transform-origin: top; }
.franja.abajo { bottom: 0; transform-origin: bottom; }
/* Obturador de entrada: el diafragma se abre sobre toda la pantalla */
.obturador { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: transparent; }
.obturador svg { width: 100%; height: 100%; display: block; }
html:not(.cine) .obturador { display: none; }
html.cine-espera .obturador { background: #000; }
/* Grano de película */
.grano { position: fixed; inset: -50%; z-index: 45; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: 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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grano 1s steps(6) infinite; }
@keyframes grano { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

/* ---------- Carrete ---------- */
.carrete { position: relative; }
.carrete-fijo { position: relative; height: 100vh; height: 100svh; overflow: hidden; direction: ltr; }
/* La pista siempre corre de izquierda a derecha; cada escena recupera la dirección del idioma */
.carrete-pista { display: flex; height: 100%; width: max-content; direction: ltr; will-change: transform; }
.escena {
  position: relative; width: 100vw; height: 100%; flex: none; display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  align-items: center; gap: clamp(28px, 4vw, 64px); padding: 96px clamp(28px, 6vw, 96px) 120px; overflow: hidden;
}
html[dir="rtl"] .escena { direction: rtl; }
.escena::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55vw 60vh at 68% 52%, color-mix(in srgb, var(--a) 26%, transparent), transparent 70%);
}
.escena-texto .icono { width: 84px; height: 84px; margin-bottom: 26px; filter: drop-shadow(0 14px 24px rgba(0,0,0,.5)); }
.escena h2 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.04em; line-height: 1.02; }
.escena-texto > p { margin-top: 16px; color: var(--texto-2); font-size: 18px; max-width: 34ch; }
.escena ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.escena li { position: relative; padding-inline-start: 22px; color: var(--texto); font-size: 16px; line-height: 1.45; }
.escena li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--a); box-shadow: 0 0 10px color-mix(in srgb, var(--a) 70%, transparent); }
.pantalla { position: relative; margin: 0; justify-self: center; width: 100%; max-height: calc(100vh - 230px); display: grid; place-items: center; }
.pantalla > img:first-child {
  max-height: calc(100vh - 230px); width: auto; max-width: 100%; border-radius: 14px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.6), 0 0 120px color-mix(in srgb, var(--a) 22%, transparent);
}
.pantalla.papel > img:first-child { border-radius: 4px; transform: rotate(-2.2deg); max-height: calc(100vh - 210px); }
.pantalla.tarjeta-qr > img:first-child { border-radius: 22px; max-height: min(560px, calc(100vh - 240px)); transform: rotate(2deg); }
.pantalla .inserto {
  position: absolute; inset-inline-end: -14px; bottom: -22px; width: min(34%, 360px); border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 24px 50px rgba(0,0,0,.6);
}
.pantalla .inserto.ancho { width: min(38%, 420px); }
.carrete-nav {
  position: absolute; inset-inline: 0; bottom: 54px; display: flex; justify-content: center; align-items: center; gap: 22px; z-index: 5;
}
.miniaturas { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(10,10,12,.55); border: 1px solid var(--linea); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.miniaturas button { width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 11px; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.miniaturas button img { width: 100%; height: 100%; }
.miniaturas button:hover { opacity: .9; }
.miniaturas button[aria-current="true"] { opacity: 1; border-color: var(--a); transform: translateY(-3px); }
.contador { font-variant-numeric: tabular-nums; color: var(--niebla); font-size: 14px; min-width: 44px; }

.escena > :not(.nombre-fondo) { position: relative; z-index: 1; }
.nombre-fondo { position: absolute; left: 4vw; top: 50%; translate: 0 -50%; z-index: 0; font-size: 30vw; font-weight: 800; letter-spacing: -0.06em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--a) 22%, rgba(255,255,255,.06)); white-space: nowrap; pointer-events: none; }
html[dir="rtl"] .nombre-fondo { left: auto; right: 4vw; }
@media (max-width: 860px) { .nombre-fondo { display: none; } }

/* ---------- Tu IA ---------- */
.ia { position: relative; padding-bottom: 120px; }
.ia::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50vw 50vh at 72% 30%, rgba(63,224,184,.10), transparent 70%); pointer-events: none; }
.ia-fijo {
  min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(28px, 4vw, 64px); padding: 100px clamp(28px, 6vw, 96px) 80px;
}
.ia h2, .creditos h2, .familia h2, .final h2 { font-size: clamp(36px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
html[lang="he"] :is(.ia, .creditos, .familia, .final) h2 { letter-spacing: -0.015em; line-height: 1.1; }
.ia-texto > p { margin-top: 20px; color: var(--texto-2); font-size: 18px; max-width: 44ch; }
.chat { margin-top: 34px; display: grid; gap: 12px; max-width: 520px; }
.msg { padding: 13px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; max-width: 92%; }
.msg.tu { justify-self: end; background: #F4F4F6; color: #121217; border-end-end-radius: 6px; }
.msg.ella { justify-self: start; background: rgba(255,255,255,.07); border: 1px solid var(--linea-2); border-end-start-radius: 6px; }
.herramientas { list-style: none; margin: 0; padding: 4px 0; display: grid; gap: 6px; }
.herramientas li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--texto-2); }
.herramientas li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--tenue); transition: background .25s, border-color .25s;
}
.herramientas li.hecho::before { border-color: #3FE0B8; background: #3FE0B8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%230A0A0C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.herramientas code { font-family: var(--f-tc); font-size: 13px; color: var(--texto); background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 6px; }
.herramientas span { color: var(--niebla); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navegador { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #16161C; box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 120px rgba(63,224,184,.10); }
.nav-barra { height: 36px; display: flex; align-items: center; gap: 7px; padding-inline: 14px; border-bottom: 1px solid var(--linea); direction: ltr; }
.nav-barra i { width: 11px; height: 11px; border-radius: 50%; background: #3A3A44; }
.nav-barra span { margin-inline: auto; font-size: 12px; color: var(--niebla); padding: 3px 14px; border-radius: 8px; background: rgba(255,255,255,.05); }
.navegador img { width: 100%; }
.ia-pasos { max-width: var(--ancho); margin: 0 auto; padding-inline: var(--margen); }
.ia-pasos ol { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.ia-pasos li { counter-increment: paso; display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--linea-2); }
.ia-pasos li::before { content: counter(paso); font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: #3FE0B8; line-height: 1; margin-bottom: 8px; }
.ia-pasos b { font-size: 19px; font-weight: 650; }
.ia-pasos span { color: var(--niebla); font-size: 16px; }
.ia-mac { margin-top: 44px; color: var(--niebla); font-size: 16px; max-width: 64ch; }

/* ---------- Créditos ---------- */
.ancho { max-width: var(--ancho); margin: 0 auto; padding-inline: var(--margen); }
.creditos { padding: 120px 0; position: relative; }
.creditos::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(50vw 50vh at 30% 40%, rgba(142,107,255,.16), transparent 70%); }
.entrada-texto { margin-top: 20px; color: var(--texto-2); font-size: 19px; max-width: 54ch; }
.iris-foto { margin: 56px 0 0; }
.iris-foto img { width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 140px rgba(142,107,255,.18); }
.iris-foto figcaption { margin-top: 14px; color: var(--niebla); font-size: 14px; }
.dos { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); margin-top: 64px; border-top: 1px solid var(--linea-2); }
.lado { padding: 36px 0; }
.lado.gratis { padding-inline-end: clamp(20px, 4vw, 56px); }
.lado.pago { padding-inline-start: clamp(20px, 4vw, 56px); border-inline-start: 1px solid var(--linea-2); }
.lado h3 { font-size: 24px; letter-spacing: -0.025em; }
.lado.gratis ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.lado.gratis li { position: relative; padding-inline-start: 30px; font-size: 17px; }
.lado.gratis li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: #3FE0B8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%230A0A0C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.lado.pago > p { margin-top: 14px; color: var(--texto-2); max-width: 52ch; }
.precios { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: 16px; }
.precios th { text-align: start; font-weight: 500; color: var(--niebla); font-size: 13px; padding: 0 0 10px; border-bottom: 1px solid var(--linea-2); }
.precios td { padding: 12px 0; border-bottom: 1px solid var(--linea); }
.precios .num { text-align: end; font-variant-numeric: tabular-nums; padding-inline-start: 16px; white-space: nowrap; }
.precios td.num:last-child { color: var(--texto); font-weight: 600; }
.nota { margin-top: 18px; color: var(--niebla); font-size: 15px; }

/* ---------- Familia ---------- */
.familia { padding: 120px 0; }
.nuevos { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); }
.nuevos li { display: grid; align-content: start; gap: 10px; }
.nuevos img { width: 132px; height: 132px; margin-bottom: 10px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)) drop-shadow(0 0 40px color-mix(in srgb, var(--a) 30%, transparent)); }
.nuevos h3 { font-size: 24px; letter-spacing: -0.03em; }
.nuevos p { color: var(--texto-2); font-size: 16px; }
.estado { justify-self: start; margin-top: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--niebla); border: 1px solid var(--linea-2); }
.estado.listo { color: #0A0A0C; background: var(--a); border-color: transparent; }

/* ---------- Cierre ---------- */
.final { min-height: 80vh; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; padding: 120px var(--margen); position: relative; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40vw 40vh at 50% 45%, var(--brillo), transparent 70%); }
.final-lente { position: relative; width: 170px; height: 170px; margin-bottom: 18px; filter: drop-shadow(0 0 60px rgba(108,72,230,.45)); }
.final-lente > img { width: 100%; height: 100%; }
.final p { color: var(--texto-2); font-size: 19px; margin-bottom: 14px; }
.pie { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 32px clamp(24px, 4vw, 52px) 70px; border-top: 1px solid var(--linea); color: var(--niebla); font-size: 14px; }
.pie .marca { font-size: 16px; color: var(--texto); }
.pie nav { margin-inline-start: auto; display: flex; gap: 20px; }
.pie a { text-decoration: none; color: var(--texto-2); }
.pie a:hover { color: var(--texto); }

/* ---------- Pantallas medianas y teléfono ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .escena { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 28px; padding-top: 90px; }
  .escena-texto .icono { width: 64px; height: 64px; margin-bottom: 16px; }
  .escena ul { display: none; }
  .pantalla, .pantalla > img:first-child { max-height: 46vh; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .escenario { --L: min(72vw, 360px); height: auto; min-height: 0; display: grid; justify-items: center; gap: 26px; padding: 96px 20px 70px; }
  .lente { position: relative; left: auto; top: auto; margin: 0; }
  .tunel, .muro, .destello, .franja, .rayos, .foco, .orbita { display: none; }
  .lente-frente { position: absolute; left: 50%; top: 96px; margin-left: calc(var(--L) / -2); }
  .portada-titulo { position: relative; top: auto; padding: 0; }
  .cartel { position: relative; bottom: auto; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 0; gap: 22px; }
  .cartel p { order: 2; }
  .sellos-caja { order: 1; }
  .cartel .acciones { order: 3; justify-content: center; }
  .sellos { flex-wrap: wrap; justify-content: center; max-width: 260px; }
  .senal { display: none; }
  .carrete-fijo { height: auto; overflow: visible; }
  .carrete-pista { flex-direction: column; width: 100%; }
  .escena { width: 100%; height: auto; padding: 72px 22px; }
  .escena ul { display: grid; }
  .pantalla, .pantalla > img:first-child { max-height: none; }
  .pantalla .inserto { inset-inline-end: 8px; bottom: -18px; }
  .carrete-nav { display: none; }
  .ia-fijo { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 80px 22px 50px; }
  .ia-pasos ol { grid-template-columns: minmax(0, 1fr); }
  .dos { grid-template-columns: minmax(0, 1fr); }
  .lado.gratis { padding-inline-end: 0; }
  .lado.pago { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--linea-2); }
  .nuevos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nuevos img { width: 96px; height: 96px; }
  .nav { padding-inline: 18px; gap: 10px; height: 60px; }
  .nav .marca { display: none; }
  .nav-der .b-texto { padding-inline: 6px; }
  .visor .toma, .esq { display: none; }
  .rec { left: 18px; bottom: 16px; }
  .creditos, .familia { padding: 80px 0; }
}
@media (max-width: 420px) {
  .nav-der .anonimo .b-claro { display: none; }
  .nuevos { grid-template-columns: minmax(0, 1fr); }
}

/* Sin animaciones: todo se queda quieto y completo */
@media (prefers-reduced-motion: reduce) {
  .rec .punto, .grano, .senal::after, .rayos, .portada h1 .l2 .wi { animation: none; }
}

/* Estados iniciales solo cuando las animaciones están activas (sin JS todo se ve) */
html.animada .ia .msg.ella { opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
html.animada .ia.listo .msg.ella { opacity: 1; transform: none; }
html.animada .ia .navegador img { transition: filter .5s; filter: brightness(.45) saturate(.6); }
html.animada .ia.listo .navegador img { filter: none; }
