/* TakeHunt. Superficies en negro y gris neutro para no teñir el material.
   El ámbar significa una sola cosa, como en la app: lo elegido para Resolve (y el rectángulo del logo). Por eso los botones son hueso. */

@font-face { font-family: "Archivo"; src: url(../fuentes/archivo-latin-variable.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(../fuentes/dm-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(../fuentes/dm-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
/* Mismas proporciones que la fuente estrecha mientras carga, para que el título no salte al cambiarla. */
@font-face { font-family: "Archivo Respaldo"; src: local("Arial Narrow"), local("Helvetica Neue Condensed Bold"), local("Arial"); size-adjust: 92%; ascent-override: 88%; descent-override: 21%; }

:root {
  color-scheme: dark;
  --negro: #000; --pie: #0c0c0c; --elevado: #141414; --capsula: #1b1b1b; --marcado: #2c2c2c; --hueco: #101010;
  --hueso: #F4F1EA; --ambar: #FFA51F; --tinta: #10131A;
  --t1: rgba(255, 255, 255, .92); --t2: rgba(255, 255, 255, .68); --t3: rgba(255, 255, 255, .58);
  --l1: rgba(255, 255, 255, .08); --l2: rgba(255, 255, 255, .16);
  --sans: "Archivo", "Archivo Respaldo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --g: clamp(16px, 2.8vw, 44px);
  --curva: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--negro); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--negro); color: var(--t1); font-family: var(--sans); font-size: 17px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
kbd { font-family: var(--mono); font-size: .86em; }
code { font-family: var(--mono); }
mark { background: none; color: var(--hueso); box-shadow: inset 0 -.1em 0 currentColor; }
:focus-visible { outline: 2px solid var(--hueso); outline-offset: 2px; }
[hidden] { display: none !important; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.saltar { position: fixed; left: 8px; top: 8px; z-index: 40; padding: 10px 14px; background: var(--hueso); color: var(--tinta); border-radius: 8px; font-weight: 600; transform: translateY(-160%); }
.saltar:focus { transform: none; }

/* El único lienzo. Queda detrás de todo y las secciones negras lo tapan al pasar. */
#lienzo { position: fixed; left: 0; top: 0; width: 100vw; height: 100lvh; z-index: 0; display: none; }
.con-gl #lienzo { display: block; }
main { position: relative; z-index: 1; }

/* ─────────── Tipografía ─────────── */
.t1 { font-size: clamp(3.3rem, 12vw, 14rem); font-stretch: 62%; font-weight: 800; line-height: .88; letter-spacing: -.006em; color: var(--hueso); }
.t2 { font-size: clamp(2.5rem, 6.6vw, 7.4rem); font-stretch: 64%; font-weight: 750; line-height: .92; color: var(--hueso); }
.t3 { font-size: 14px; font-weight: 600; color: var(--t2); }
.entrada { font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.3; max-width: 34em; color: var(--t1); margin-top: clamp(20px, 3vw, 36px); }
.aparte { font-size: clamp(1rem, 1.35vw, 1.2rem); color: var(--t2); max-width: 44em; margin-top: clamp(24px, 3.4vw, 44px); }
.marca-tc { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 12.5px; color: var(--t2); margin-bottom: clamp(14px, 2vw, 26px); letter-spacing: .01em; }
.marca-cuadro { color: var(--t1); }
.mono-chico { font-family: var(--mono); font-size: 12.5px; color: var(--t2); }
.nota-demo { font-family: var(--mono); font-size: 11.5px; line-height: 1.45; color: var(--t3); }

.boton { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px; background: var(--hueso); color: var(--tinta); border: 0; border-radius: 9px; font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .25s var(--curva), background .2s; }
.boton:hover { background: #fff; }
.boton:active { transform: scale(.98); }
.boton-claro { min-height: 40px; padding: 0 14px; background: var(--capsula); color: var(--t1); border: 1px solid var(--l2); border-radius: 9px; font-size: 14px; font-weight: 550; white-space: nowrap; transition: background .2s; }
.boton-claro:hover { background: var(--marcado); }
.boton-claro:disabled { opacity: .45; cursor: default; }

/* ─────────── Banda superior ─────────── */
.banda { position: fixed; left: 0; right: 0; top: 0; z-index: 20; height: 48px; display: flex; align-items: center; gap: 16px; padding: 0 var(--g); background: linear-gradient(to bottom, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); }
.banda-logo { display: block; height: 28px; }
.banda-logo img { height: 28px; width: auto; }
.banda-tc { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--t2); font-variant-numeric: tabular-nums; }
.banda-aviso { padding: 7px 12px; font-size: 13.5px; font-weight: 550; text-decoration: none; border: 1px solid var(--l2); border-radius: 8px; background: rgba(0, 0, 0, .45); white-space: nowrap; transition: background .2s; }
.banda-aviso:hover { background: var(--capsula); }
html:not(.js) .banda-aviso { margin-left: auto; }
.hilo { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #fff; transform-origin: 0 0; transform: scaleX(0); }
.mov:not(.sin-intro) .banda-tc, .mov:not(.sin-intro) .banda-aviso, .mov:not(.sin-intro) .hilo { opacity: var(--banda, 0); }
.mov:not(.sin-intro) .banda-logo:not(.listo) img { opacity: 0; }
/* Si el JavaScript no llegara, nada se queda escondido. */
.mov:not(.sin-intro):not(.intro) .banda-aviso, .mov:not(.sin-intro):not(.intro) .banda-logo img, .mov:not(.sin-intro):not(.intro) .portada-pie { animation: aparece .3s 3.2s forwards; }
@keyframes aparece { to { opacity: 1; } }

/* Índice lateral: aparece solo mientras te mueves, como en la app. */
.indice { position: fixed; right: 8px; top: 50%; z-index: 19; transform: translateY(-50%); display: none; flex-direction: column; align-items: flex-end; gap: 1px; padding: 8px 10px; background: var(--elevado); border: 1px solid var(--l1); border-radius: 10px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.indice a { color: var(--t3); text-decoration: none; padding: 1px 0; }
.indice a:hover { color: var(--t1); }
.indice a[aria-current] { color: var(--t1); font-weight: 550; }
.indice.visible, .indice:focus-within { opacity: 1; pointer-events: auto; }
@media (min-width: 1000px) { .indice { display: flex; } }

/* ─────────── Escenas fijas ─────────── */
.escena { position: relative; }
.fijo { position: relative; }
.mov .fijo { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.mov .escena-pared { height: 420vh; }
.mov .escena-biblioteca { height: 340vh; }
.mov .escena-tomas { height: 260vh; }
.mov .escena-resolve { height: 340vh; }
.ancla { position: absolute; left: 0; top: 0; width: 1px; height: 1px; }
.mov .ancla { top: 218vh; }
.ancla:focus { outline: none; }
.negro { background: var(--negro); }

/* ─────────── Portada ─────────── */
.muro-css { position: absolute; inset: 0; background-image: url(../catalogo/atlas_0.jpg); background-repeat: repeat-x; background-position: 0 0; background-size: auto calc(100% * 25 / var(--filas, 10)); opacity: .34; transition: opacity .35s; }
.gl-activo .muro-css { opacity: 0; }
html:not(.mov) .muro-css, .sin-gl .muro-css { opacity: .5; }
html:not(.mov) .muro-css, html:not(.mov) .velo { bottom: auto; height: 100svh; }
.velo { position: absolute; inset: 0; z-index: 2; pointer-events: none; background:
    linear-gradient(to top, rgba(0, 0, 0, .94) 0, rgba(0, 0, 0, .6) 34%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(to right, rgba(0, 0, 0, .66) 0, rgba(0, 0, 0, 0) 58%); }
.mov:not(.sin-intro) .velo { opacity: 0; }

.portada { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--g) 100px; pointer-events: none; }
.portada a { pointer-events: auto; }
html:not(.mov) .portada { position: relative; min-height: 100svh; padding-top: 84px; }
h1 { font-size: min(19.5vw, 31vh); font-stretch: 62%; font-weight: 800; line-height: .84; letter-spacing: -.006em; color: var(--hueso); transform-origin: 0 100%; }
h1 span { display: block; }
.portada-pie { display: grid; grid-template-columns: minmax(0, 27em) auto 1fr; align-items: center; gap: 12px clamp(16px, 3vw, 40px); margin-top: clamp(16px, 2.6vh, 28px); }
.mov:not(.sin-intro) .portada-pie { opacity: 0; }
.bajada { font-size: clamp(1.1rem, 1.55vw, 1.42rem); line-height: 1.25; color: var(--t1); }
.micro { font-family: var(--mono); font-size: 12px; color: var(--t2); max-width: 22em; }

.captura { position: absolute; z-index: 3; margin: 0; overflow: hidden; background: var(--hueco); box-shadow: 0 30px 90px rgba(0, 0, 0, .8); transform-origin: 50% 50%; }
.mov .captura { opacity: 0; will-change: transform; }
.mov .captura.viendose { opacity: 1; }
html:not(.mov) .captura { right: var(--g); top: 72px; width: min(47vw, 90vh); aspect-ratio: 16 / 9; }
.captura img { width: 100%; height: 100%; object-fit: cover; }
.captura .esq, .captura .num, .captura .cap { opacity: 0; transition: opacity .3s; }
.captura.lista .esq, .captura.lista .num, .captura.lista .cap { opacity: 1; }

.mira { position: absolute; left: 0; top: 0; width: 512px; height: 512px; max-width: none; z-index: 7; transform-origin: 0 0; pointer-events: none; will-change: transform; display: none; overflow: visible; }
.mov.intro .mira { display: block; }

/* Esquinas de la mira: lo elegido. No es un borde, para no confundirlo con el foco. */
.esq { position: absolute; inset: clamp(5px, 6%, 12px); pointer-events: none; }
.esq i { position: absolute; width: clamp(10px, 14%, 22px); aspect-ratio: 1; border: 2.5px solid var(--ambar); }
.esq i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.esq i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.esq i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.esq i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.num { position: absolute; right: clamp(9px, 7%, 18px); top: clamp(9px, 7%, 18px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--ambar); color: var(--tinta); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }

.cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 8px; background: rgba(12, 12, 12, .86); font-size: 11.5px; color: var(--t2); white-space: nowrap; overflow: hidden; }
.cap b { font-weight: 500; color: var(--t1); font-family: var(--mono); font-size: 11px; }
.cap em { margin-left: auto; font-style: normal; }
.captura .cap { height: 26px; font-size: 12.5px; padding: 0 12px; gap: 12px; justify-content: flex-end; }
.captura .cap em { margin-left: 8px; color: var(--t3); }
.captura .esq { bottom: 36px; }
.captura .cap b { font-size: 12px; }

/* ─────────── La búsqueda ordena la pared ─────────── */
.orden { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
html:not(.mov) .orden { position: relative; padding-top: 24px; pointer-events: auto; }
.orden-textos { position: absolute; left: var(--g); right: var(--g); bottom: 118px; display: grid; }
.orden-textos > * { grid-area: 1 / 1; align-self: end; }
.mov .orden-textos > * { opacity: 0; will-change: transform, opacity; }
html:not(.mov) .orden-textos, html:not(.mov) .orden-velo, html:not(.mov) .gran-consulta { display: none; }
html:not(.mov) .orden-centro { padding: 0 var(--g) 24px; }
/* Lo que se escribe solo va en el centro y en grande: tiene que ganarle a la pared. */
.orden-velo { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse 75% 62% at 50% 50%, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .74) 58%, rgba(0, 0, 0, .46) 100%); }
.mov .orden-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px var(--g) 40px; text-align: center; }
.mov #titulo-orden { opacity: 0; font-size: clamp(1.35rem, 2.5vw, 2.5rem); line-height: 1.02; will-change: transform, opacity; }
.mov #titulo-orden .orden-sub { margin-top: .4em; font-size: clamp(.95rem, 1.2vw, 1.15rem); color: var(--t2); }
.mov .gran-consulta { max-width: 100%; margin-top: clamp(16px, 3vh, 34px); opacity: 0; font-size: clamp(2.7rem, 7.6vw, 8.4rem); line-height: .98; will-change: transform, opacity; }
.gran-resto { visibility: hidden; }
.gran-cursor { display: inline-block; position: relative; width: 0; height: .82em; vertical-align: -.08em; }
.gran-cursor::after { content: ""; position: absolute; left: .03em; top: 0; bottom: 0; width: max(3px, .045em); background: var(--ambar); animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.orden-sub { display: block; margin-top: .55em; font-family: var(--sans); font-size: clamp(1.05rem, 1.55vw, 1.42rem); font-stretch: 100%; font-weight: 450; line-height: 1.25; color: var(--t1); }
.mosaico { position: absolute; left: 0; top: 44px; width: 100%; opacity: 0; }
html:not(.mov) .mosaico { position: relative; top: 0; }
.mosaico-activo .mosaico { pointer-events: auto; }
.rotulo { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; font-size: 12px; color: var(--t3); white-space: nowrap; }
.rotulo b { font-weight: 600; color: var(--t2); }
.rotulo-ayuda { color: var(--t3); }

.plano { position: absolute; left: 0; top: 0; padding: 0; border: 0; background: var(--hueco); overflow: hidden; cursor: pointer; }
.plano img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--curva); }
.plano.recorre img { transform: scale(1.14) translateX(calc((.5 - var(--x, .5)) * 10%)); transition: none; }
.plano .linea { position: absolute; top: 0; bottom: 0; left: calc(var(--x, .5) * 100%); width: 1.5px; background: #fff; opacity: 0; pointer-events: none; }
.plano.recorre .linea { opacity: 1; }
.plano .esq, .plano .num { opacity: 0; }
.plano.elegido .esq, .plano.elegido .num { opacity: 1; }
.plano-seguras .esq, .plano-probables .esq { bottom: 28px; }
.plano-posibles .esq { inset: 4px; }
.plano-posibles .num { right: 5px; top: 5px; transform: scale(.9); }
.plano:focus-visible { outline-offset: -3px; z-index: 2; }
.mosaico.entra .plano img { animation: entraPlano .55s var(--curva) both; animation-delay: calc(var(--i, 0) * 16ms); }
@keyframes entraPlano { from { opacity: 0; transform: scale(1.1); } }

/* Toda demostración se ve como demostración: esta nota no se esconde nunca. */
.leyenda { position: absolute; right: var(--g); top: 60px; left: 120px; opacity: 0; text-align: right; }
.leyenda.al-lado { left: var(--leyenda-x); right: var(--g); top: 76px; text-align: left; }
.leyenda .nota-demo { color: var(--t2); }
html:not(.mov) .leyenda { position: static; display: block; opacity: 1; padding: 16px var(--g); }
.ficha { position: fixed; left: 118px; top: 48px; z-index: 6; font-family: var(--mono); font-size: 11.5px; color: var(--t1); background: rgba(0, 0, 0, .7); padding: 2px 6px; pointer-events: none; }
.ficha:empty { display: none; }

.capsula { display: flex; flex-direction: column; position: absolute; left: 50%; bottom: calc(14px + var(--teclado, 0px)); z-index: 8; width: min(780px, calc(100vw - 16px)); transform: translateX(-50%); background: var(--capsula); border: 1px solid var(--l2); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); clip-path: inset(-2px calc(var(--enrolla, 0) * (100% - 52px)) -2px -2px round 14px); }
.mov:not(.sin-intro) #capsula { opacity: 0; }
html:not(.mov) #capsula { position: relative; left: auto; bottom: auto; transform: none; margin: 8px auto 24px; }
.capsula-a { order: -1; display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 4px; padding: 0 8px; max-height: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; opacity: 0; border-bottom: 1px solid transparent; transition: max-height .4s var(--curva), opacity .25s, padding .4s var(--curva); }
.capsula-a::-webkit-scrollbar { display: none; }
.con-chips .capsula-a { max-height: 44px; opacity: 1; padding: 6px 8px; border-bottom-color: var(--l1); }
.chip { display: inline-flex; gap: 7px; align-items: center; height: 30px; padding: 0 10px; background: transparent; border: 0; border-radius: 7px; font-size: 12.5px; color: var(--t2); white-space: nowrap; transition: background .15s; }
.chip:hover { background: rgba(255, 255, 255, .06); }
.chip[aria-pressed="true"] { background: var(--marcado); color: var(--t1); }
.chip-q { font-family: var(--mono); font-size: 11.5px; color: var(--t3); }
.chip[aria-pressed="true"] .chip-q { color: var(--t2); }
.capsula-b { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 10px 0 15px; white-space: nowrap; }
.capsula-mira { width: 22px; height: 22px; flex: none; color: rgba(255, 255, 255, .62); }
.capsula-q { font-size: 16px; letter-spacing: -.005em; min-width: 0; }
input.capsula-q { flex: 1 1 0; min-width: 120px; height: 100%; padding: 0; background: none; border: 0; outline: 0; color: var(--t1); text-overflow: ellipsis; caret-color: var(--ambar); }
input.capsula-q::placeholder { color: var(--t3); opacity: 1; }
.capsula:focus-within { border-color: var(--ambar); }
.mosaico-nada { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 0 var(--g); text-align: center; pointer-events: none; }
.mosaico-nada b { font-size: clamp(1.35rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; overflow-wrap: anywhere; }
.mosaico-nada span { color: var(--t2); font-size: 15px; }
.capsula-der { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.rango { min-height: 28px; padding: 0 6px; background: none; border: 0; border-radius: 6px; font-size: 12px; color: var(--t2); white-space: nowrap; }
.rango:hover { background: rgba(255, 255, 255, .08); }
.rango b { font-weight: 550; color: var(--t1); }
.enviar { height: 34px; padding: 0 13px; background: var(--ambar); color: var(--tinta); border: 0; border-radius: 8px; font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.capsula-pista { flex: 0 10000 auto; min-width: 0; font-size: 12px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .3s; }
.con-chips .capsula-pista { opacity: 1; }
.capsula-mensaje { margin-left: auto; min-width: 0; font-size: 12px; line-height: 1.25; color: var(--t2); font-family: var(--mono); white-space: normal; text-align: right; }

/* ─────────── Bloques ─────────── */
.bloque { position: relative; padding: clamp(84px, 13vh, 170px) var(--g); }
.mov [data-entra] { opacity: 0; transform: scaleX(1.42); transform-origin: 0 50%; transition: transform 1s var(--curva), opacity .4s; }
.mov [data-entra].visto { opacity: 1; transform: none; }
.mov .forma-texto, .mov .niveles li, .mov .salidas > div, .mov .medidas > div, .mov .resolve-puntos li, .mov .indexar-lista li { opacity: 0; transform: translateY(16px); transition: opacity .55s, transform .8s var(--curva); }
.mov .forma-texto.visto, .mov .niveles li.visto, .mov .salidas > div.visto, .mov .medidas > div.visto, .mov .resolve-puntos li.visto, .mov .indexar-lista li.visto { opacity: 1; transform: none; }

/* Confianza: el tamaño también manda en los textos */
.umbral { position: relative; height: clamp(50px, 10.5vw, 260px); margin: clamp(46px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.u-plano { position: absolute; left: 0; top: 0; width: 100px; height: 56.25px; transform-origin: 0 0; background: var(--hueco); overflow: hidden; will-change: transform; }
.u-plano img { width: 100%; height: 100%; object-fit: cover; }
.u-minimo { position: absolute; left: 0; top: -14px; bottom: -6px; width: 1px; background: var(--hueso); opacity: 0; }
.u-minimo-et { position: absolute; left: 0; top: -18px; font-family: var(--mono); font-size: 11.5px; color: var(--t2); opacity: 0; }
.umbral-nota { margin-bottom: 18px; }
.niveles { display: grid; grid-template-columns: 5fr 4fr 3fr 3fr; gap: 24px clamp(16px, 2.4vw, 36px); border-top: 1px solid var(--l1); padding-top: 16px; }
.niveles h3 { font-stretch: 66%; font-weight: 750; line-height: .95; color: var(--hueso); margin-bottom: 8px; }
.niveles li:nth-child(1) h3 { font-size: clamp(2.5rem, 5.6vw, 6.2rem); }
.niveles li:nth-child(2) h3 { font-size: clamp(1.9rem, 3.5vw, 3.9rem); }
.niveles li:nth-child(3) h3 { font-size: clamp(1.45rem, 2.2vw, 2.5rem); }
.niveles li:nth-child(4) h3 { font-size: clamp(1.1rem, 1.5vw, 1.6rem); color: var(--t3); }
.niveles p { font-size: clamp(.95rem, 1.2vw, 1.1rem); color: var(--t2); max-width: 22em; }
@media (max-width: 760px) { .niveles { grid-template-columns: 1fr 1fr; } }

/* Otras búsquedas */
.forma { margin-top: clamp(70px, 11vw, 170px); display: grid; gap: clamp(20px, 3vw, 44px); align-items: center; }
.forma-texto p:not(.nota-demo) { font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.32; color: var(--t1); margin-top: 14px; max-width: 28em; }
.forma-texto .nota-demo { margin-top: 18px; }
.forma-escrito, .forma-archivo { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.forma-persona { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.forma-dice { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .forma-escrito, .forma-archivo, .forma-persona { grid-template-columns: minmax(0, 1fr); } .forma-persona .forma-texto { order: -1; } }

.dice-escena { position: relative; margin-inline: calc(var(--g) * -1); aspect-ratio: 21 / 9; min-height: 300px; overflow: hidden; background: var(--hueco); }
.dice-img { width: 100%; height: 100%; object-fit: cover; transition: opacity .16s; filter: brightness(.82); }
.dice-img.cambiando { opacity: 0; }
.quemado { position: absolute; right: 12px; top: 12px; padding: 3px 7px; background: rgba(0, 0, 0, .58); font-family: var(--mono); font-size: 12.5px; color: #fff; white-space: pre; font-variant-numeric: tabular-nums; z-index: 2; }
.subtitulo { position: absolute; left: var(--g); right: var(--g); bottom: clamp(82px, 11vw, 130px); text-align: center; font-size: clamp(1.2rem, 3.2vw, 3rem); font-weight: 550; line-height: 1.15; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .9); }
.onda { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(54px, 7vw, 86px); background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, .3)); color: rgba(255, 255, 255, .55); }
.onda svg { width: 100%; height: 100%; }
.onda-cabezal { position: absolute; top: 0; bottom: 0; left: 16%; width: 2px; background: #fff; transition: left .5s var(--curva); }
.onda-marca { position: absolute; top: 0; width: 1px; height: 8px; background: var(--hueso); }
.forma-dice .forma-texto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(20px, 3vw, 44px); align-items: start; }
.forma-dice .forma-texto > :is(h3, p) { grid-column: 1; }
.dice-frases { grid-column: 2; grid-row: 1 / span 3; display: grid; }
.frase { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; align-items: baseline; padding: 11px 0; background: none; border: 0; border-top: 1px solid var(--l1); text-align: left; color: var(--t2); transition: color .15s; }
.frase:hover { color: var(--t1); }
.frase[aria-pressed="true"] { color: var(--hueso); }
.frase-tc { font-family: var(--mono); font-size: 12px; }
.frase-t { font-size: clamp(1rem, 1.35vw, 1.2rem); }
@media (max-width: 760px) { .forma-dice .forma-texto { grid-template-columns: minmax(0, 1fr); } .forma-dice .forma-texto > :is(h3, p), .dice-frases { grid-column: 1; grid-row: auto; } .dice-frases { order: 3; } .forma-dice .forma-texto .nota-demo { order: 4; } .dice-escena { aspect-ratio: 4 / 3; } .frase { grid-template-columns: 1fr; gap: 2px; } }

.motivo { font-size: 14px !important; font-family: var(--mono); color: var(--t1) !important; }
.motivo-et { color: var(--t3); }
.escrito-escena { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hueco); }
.escrito-escena img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.rotulo-cartel { position: absolute; left: 7%; bottom: 13%; display: flex; flex-direction: column; padding: .45em .8em .5em; background: var(--hueso); color: var(--tinta); font-size: clamp(.95rem, 2.5vw, 2.3rem); line-height: 1.05; }
.rotulo-cartel b { font-stretch: 74%; font-weight: 750; }
.rotulo-cartel span { font-size: .55em; font-weight: 500; margin-top: .2em; }
.caja-texto { position: absolute; inset: -8px; pointer-events: none; }
.caja-texto i { position: absolute; width: 14px; height: 14px; border: 2px solid #fff; }
.caja-texto i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.caja-texto i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.caja-texto i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.caja-texto i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.barrido { position: absolute; left: 0; right: 0; top: 0; height: 26%; opacity: 0; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16)); border-bottom: 1px solid rgba(255, 255, 255, .8); pointer-events: none; }
.mov .en-vista .barrido { animation: barrido 5.2s cubic-bezier(.45, 0, .55, 1) infinite; }
.mov .en-vista .caja-texto { animation: caja 5.2s ease infinite; }
@keyframes barrido { 0% { top: -26%; opacity: 1; } 42% { top: 100%; opacity: 1; } 43%, 100% { opacity: 0; } }
@keyframes caja { 0%, 26% { opacity: 0; transform: scale(1.12); } 32%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.persona-escena { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; grid-auto-flow: dense; }
.p-plano { position: relative; overflow: hidden; background: var(--hueco); aspect-ratio: 16 / 9; grid-column: span 3; }
.p-plano[data-nivel="confirmada"] { grid-column: span 4; }
.p-plano[data-nivel="confirmada"][data-lugar="0"] { grid-column: span 8; grid-row: span 2; }
.p-plano[data-nivel="parece"] { grid-column: span 4; }
.p-fondo { position: absolute; inset: 0; }
.p-fondo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.74) saturate(.85); }
.p-silueta { position: absolute; inset: 0; }
.p-silueta svg { width: 100%; height: 100%; fill: #09090b; }
.p-plano .esq { display: none; }
.p-pie { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; min-height: 24px; padding: 2px 8px; background: rgba(12, 12, 12, .88); font-size: 12px; color: var(--t1); }
.p-si { min-height: 24px; padding: 0 8px; background: var(--hueso); color: var(--tinta); border: 0; border-radius: 5px; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.p-reinicio { grid-column: 1 / -1; order: 99; justify-self: start; margin-top: 8px; padding: 6px 0; background: none; border: 0; color: var(--t2); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .p-plano { grid-column: span 4; } .p-plano[data-nivel="parece"] { grid-column: span 6; } .p-plano[data-nivel="confirmada"] { grid-column: span 6; } .p-plano[data-nivel="confirmada"][data-lugar="0"] { grid-column: span 12; grid-row: auto; } .p-plano[data-nivel="quiza"] .p-pie { font-size: 10.5px; padding: 1px 5px; min-height: 20px; } }

.archivo-escena { background: var(--pie); border: 1px solid var(--l1); }
.archivo-campo { display: block; border-bottom: 1px solid var(--l1); }
.archivo-campo input { width: 100%; height: 56px; padding: 0 16px; background: var(--capsula); border: 0; font-size: 16px; }
.archivo-campo input::placeholder { color: var(--t3); }
.archivo-campo input:focus-visible { outline-offset: -2px; }
.archivo-lista { height: 300px; overflow: auto; padding: 8px 0; overscroll-behavior: contain; }
.archivo-lista li { padding: 4px 16px; font-family: var(--mono); font-size: 12.5px; color: var(--t2); white-space: nowrap; }
.archivo-vacio { color: var(--t3); }

.forma-filtros { grid-template-columns: minmax(0, 1fr); }
.filtros-mandos { display: flex; flex-wrap: wrap; gap: 4px; }
.filtro { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; background: var(--capsula); border: 1px solid var(--l1); border-radius: 9px; font-size: 14px; color: var(--t2); transition: background .15s, color .15s; }
.filtro-m { font-family: var(--mono); font-size: 11.5px; color: var(--t3); }
.filtro[data-modo="si"], .filtro[data-modo="no"] { background: var(--marcado); color: var(--t1); border-color: var(--l2); }
.filtro[data-modo="si"] .filtro-m, .filtro[data-modo="no"] .filtro-m { color: var(--hueso); }
.filtro[data-modo="no"] .filtro-n { text-decoration: line-through; }
.filtros-cuenta { display: block; margin: 12px 0 8px; font-family: var(--mono); font-size: 12.5px; color: var(--t2); }
.filtros-muro { display: grid; grid-template-columns: repeat(16, 1fr); gap: 1px; margin-inline: calc(var(--g) * -1); }
.filtros-muro span { aspect-ratio: 16 / 9; background-color: var(--hueco); background-repeat: no-repeat; transition: opacity .28s; }
.filtros-muro span.fuera { opacity: .07; }
.filtros-escena .nota-demo { margin-top: 12px; }
@media (max-width: 760px) { .filtros-muro { grid-template-columns: repeat(9, 1fr); } }

/* ─────────── Biblioteca ─────────── */
.biblio-pared { position: absolute; left: 0; right: 0; top: 0; z-index: 1; will-change: transform; }
.rotulo-biblio { height: 28px; }
.rotulo-disco { display: none; align-items: center; margin-left: 8px; color: var(--t2); }
.rotulo-disco::before { content: ""; width: 12px; height: 8px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; background: linear-gradient(to top right, transparent 46%, currentColor 46%, currentColor 56%, transparent 56%); }
.ausente .rotulo-disco { display: inline-flex; }
.mov .fijo#fijo-biblioteca::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(0, 0, 0, .94) 0, rgba(0, 0, 0, .55) 34%, rgba(0, 0, 0, 0) 62%); }
.biblio-texto { position: absolute; left: var(--g); right: var(--g); bottom: clamp(28px, 7vh, 72px); z-index: 3; pointer-events: none; display: grid; }
.biblio-texto > .marca-tc, .biblio-texto > h2 { grid-column: 1; }
.biblio-texto > p:not(.marca-tc) { grid-area: 3 / 1; margin-top: 10px; font-size: clamp(1.1rem, 1.8vw, 1.55rem); line-height: 1.28; max-width: 26em; color: var(--t1); }
.biblio-c small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--t2); overflow-wrap: anywhere; }
.biblio-c del { display: block; color: var(--t3); }
.mov .biblio-b, .mov .biblio-c { opacity: 0; }
.biblio-mando { position: absolute; right: var(--g); bottom: clamp(28px, 7vh, 72px); z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: min(380px, 44vw); text-align: right; }
.biblio-mensaje { font-size: 13.5px; line-height: 1.3; color: var(--t1); min-height: 2.6em; }
.biblio-nota { position: absolute; right: var(--g); top: 56px; z-index: 4; text-align: right; }
html:not(.mov) .biblio-pared, .biblio-pared.estatica { position: relative; }
html:not(.mov) .biblio-texto { display: block; }
html:not(.mov) .biblio-texto, html:not(.mov) .biblio-mando, html:not(.mov) .biblio-nota { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 16px var(--g); align-items: flex-start; text-align: left; max-width: none; }
.sin-gl.mov .escena-biblioteca { height: auto; }
.sin-gl.mov #fijo-biblioteca { position: relative; height: auto; overflow: visible; }
.sin-gl.mov #fijo-biblioteca::after { display: none; }
.sin-gl.mov .biblio-texto, .sin-gl.mov .biblio-mando, .sin-gl.mov .biblio-nota { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 16px var(--g); align-items: flex-start; text-align: left; max-width: none; }
.sin-gl.mov .biblio-texto { display: block; }
.sin-gl.mov .biblio-b, .sin-gl.mov .biblio-c { opacity: 1; }
.estatica .rotulo { position: static; }
.biblio-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 1px; }
.biblio-rejilla span { aspect-ratio: 16 / 9; background-color: var(--hueco); transition: opacity .3s; }
.ausente .de-disco span { filter: grayscale(1); opacity: .48; }
@media (max-width: 760px) {
  .biblio-mando { position: absolute; left: var(--g); right: var(--g); top: 58px; bottom: auto; align-items: flex-start; max-width: none; text-align: left; }
  .biblio-nota { top: auto; bottom: 8px; right: auto; left: var(--g); text-align: left; }
  .biblio-texto { bottom: 34px; }
}

/* ─────────── Ver sin abrir ─────────── */
.reproductor { position: relative; margin: clamp(30px, 5vw, 70px) calc(var(--g) * -1) 12px; aspect-ratio: 16 / 9; max-height: 88vh; width: 100vw; overflow: hidden; background: #000; cursor: ew-resize; touch-action: pan-y; }
.reproductor:focus-visible { outline-offset: -3px; }
.rep-img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.rep-linea { position: absolute; top: 0; bottom: 0; left: 50%; width: 1.5px; background: #fff; opacity: 0; transition: opacity .15s; pointer-events: none; }
.recorriendo .rep-linea { opacity: 1; }
.reproductor.sonando .rep-linea { opacity: 0; }
.rep-toma { position: absolute; left: 12px; top: 12px; padding: 3px 7px; background: rgba(0, 0, 0, .58); font-size: 12.5px; color: #fff; }
.rep-vel { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); font-family: var(--mono); font-size: 13px; color: #fff; text-shadow: 0 1px 6px #000; }
.rep-mandos { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 26px 12px 12px; background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0)); cursor: default; transition: opacity .3s; }
.sin-mandos .rep-mandos { opacity: 0; pointer-events: none; }
.reproductor:focus-within .rep-mandos, .reproductor:focus-visible .rep-mandos { opacity: 1; }
.rep-mandos button { min-width: 36px; height: 36px; padding: 0 9px; background: rgba(255, 255, 255, .1); border: 1px solid var(--l2); border-radius: 7px; transition: background .15s; }
.rep-mandos button:hover { background: rgba(255, 255, 255, .22); }
.rep-barra { position: relative; flex: 1; height: 3px; margin-left: 10px; background: rgba(255, 255, 255, .25); }
.rep-barra span { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; }
.rep-corte { position: absolute; top: -4px; width: 1px; height: 11px; background: var(--hueso); }
@media (max-width: 760px) {
  .reproductor { aspect-ratio: 4 / 3; }
  .rep-mandos { flex-wrap: wrap; padding: 26px 8px 8px; }
  .rep-barra { flex-basis: 100%; order: -1; margin: 0 0 8px; }
  .rep-mandos button { flex: 1; padding: 0; min-height: 40px; }
  .rep-mandos button[data-t="espacio"] { flex: 1.7; }
}
.zoom { margin-top: clamp(70px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 28px; }
.zoom-texto p { margin-top: 10px; font-size: clamp(1.05rem, 1.45vw, 1.28rem); }
.zoom-texto kbd { padding: 2px 6px; border: 1px solid var(--l2); border-radius: 5px; }
.zoom-mando { display: flex; align-items: center; gap: 8px; }
.zoom-mando button { width: 36px; height: 36px; background: var(--capsula); border: 1px solid var(--l2); border-radius: 8px; font-size: 18px; line-height: 1; }
.zoom-mando output { min-width: 7em; text-align: right; }
#zoom-barra { width: clamp(120px, 20vw, 280px); accent-color: var(--hueso); height: 24px; }
.zoom-muro { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cols, 8), 1fr); gap: 2px; align-content: start; height: clamp(240px, 42vw, 620px); overflow: hidden; margin-inline: calc(var(--g) * -1); touch-action: pan-y; }
.zoom-muro span { position: relative; aspect-ratio: 16 / 9; background-color: var(--hueco); }
.zoom-muro span img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom-muro:focus-visible { outline-offset: -3px; }
@media (max-width: 760px) { .zoom { grid-template-columns: minmax(0, 1fr); } .zoom-mando { flex-wrap: wrap; } }

/* ─────────── Tomas ─────────── */
.tomas-texto { padding: clamp(70px, 11vh, 120px) var(--g) 0; }
html:not(.mov) .tomas-pista { position: relative; margin: 40px var(--g) 60px; }
.mov .tomas-pista { position: absolute; left: var(--g); right: var(--g); bottom: clamp(56px, 12vh, 130px); }
.tomas-graf { position: relative; height: clamp(50px, 11vh, 110px); margin-bottom: 8px; transition: opacity .3s; }
.tomas-graf svg { width: 100%; height: 100%; overflow: visible; }
.tomas-graf polyline { stroke: rgba(255, 255, 255, .85); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.umbral-l { stroke: var(--hueso); stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; opacity: .5; }
.umbral-et { position: absolute; right: 0; bottom: 31%; font-family: var(--mono); font-size: 11px; color: var(--t2); }
.tomas-tira { position: relative; height: clamp(54px, 9.5vw, 136px); }
.toma-bloque { position: absolute; top: 0; height: 100%; display: flex; gap: 1px; transform-origin: 0 0; will-change: transform; }
.toma-celda { flex: 1; height: 100%; background-size: auto 100%; background-repeat: no-repeat; background-color: var(--hueco); }
.toma-et { position: absolute; left: 0; top: calc(100% + 8px); font-size: 12.5px; color: var(--t1); white-space: nowrap; transform-origin: 0 0; opacity: 0; }
.toma-corte { position: absolute; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; background: var(--hueso); opacity: 0; transform: scaleY(.4); transition: opacity .15s, transform .35s var(--curva); }
.toma-corte.activo { opacity: 1; transform: none; }
.tomas-cabeza { position: absolute; top: 0; bottom: 0; width: 1.5px; background: #fff; pointer-events: none; }
@media (max-width: 760px) { .toma-et { font-size: 10.5px; } .toma-bloque:nth-child(even) .toma-et { top: auto; bottom: calc(100% + 8px); } }

/* ─────────── Indexar ─────────── */
.indexar-rejilla { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 860px) { .indexar-rejilla { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .capsula-progreso { min-height: 118px; align-content: center; } }
.indexar-demo { position: relative; overflow: hidden; background: #000; outline: 1px solid var(--l1); outline-offset: -1px; padding-bottom: 10px; }
.indexar-hilo { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: #fff; z-index: 2; transition: width .2s linear; }
.indexar-muro { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
@media (max-width: 760px) { .indexar-muro { grid-template-columns: repeat(6, 1fr); } }
.hueco { position: relative; aspect-ratio: 16 / 9; background: var(--hueco); outline: 1px solid rgba(255, 255, 255, .06); outline-offset: -1px; overflow: hidden; }
.hueco i { display: block; width: 100%; height: 100%; background-repeat: no-repeat; opacity: 0; transform: scale(.9); transition: opacity .25s, transform .4s var(--curva); }
.hueco.llena i { opacity: 1; transform: none; }
.capsula-local { position: relative; left: auto; bottom: auto; width: auto; margin: 10px 10px 0; transform: none; clip-path: none; }
.capsula-progreso { display: flex !important; align-items: center; gap: 14px; max-height: none !important; min-height: 40px; padding: 6px 8px 6px 15px !important; opacity: 1 !important; overflow: visible !important; border-bottom-color: var(--l1) !important; font-size: 12px; color: var(--t2); flex-wrap: wrap; }
.fila-txt b { font-weight: 550; color: var(--t1); }
.canales { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.canal { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.canal i { display: block; width: 44px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); position: relative; overflow: hidden; }
.canal u { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; opacity: .85; }
.detener { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: #2f2f2f; color: var(--t1); font-size: 12px; font-weight: 550; }
.detener i { width: 8px; height: 8px; border-radius: 1.5px; background: var(--t1); }
.detener-seguir, .detener-otra { background: var(--hueso); color: var(--tinta); }
.problemas-b { background: none; border: 0; padding: 4px 0; color: var(--hueso); font-size: 12px; font-weight: 550; text-decoration: underline; text-underline-offset: 2px; }
.indexar-lista { font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.28; }
.indexar-lista li { padding: 13px 0; border-top: 1px solid var(--l1); }
.cache { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 24px; font-family: var(--mono); font-size: 13px; color: var(--t3); }
.cache span { text-decoration: line-through; }
.cache em { font-style: normal; color: var(--t1); font-family: var(--sans); font-size: 15px; }
.problemas { margin-top: 18px; padding: 16px; background: var(--elevado); border: 1px solid var(--l1); }
.problemas li { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--l1); font-size: 14px; }
.problemas ul { margin-top: 8px; }
.problemas code { font-size: 12.5px; color: var(--t2); overflow-wrap: anywhere; }
.indexar .nota-demo { margin-top: 14px; }

/* ─────────── Resolve ─────────── */
.resolve-texto { position: relative; padding: 62px var(--g) 0; z-index: 2; }
.resolve-texto .t1 { font-size: clamp(2.4rem, 5.2vw, 6rem); max-width: 80%; }
.resolve-texto .marca-tc { margin-bottom: 10px; }
html:not(.mov) .resolve-escena { position: relative; margin: 24px var(--g); }
html:not(.mov) .linea-tiempo { position: relative; height: 240px; }
html:not(.mov) .visor, html:not(.mov) .tarjeta { display: none; }
html:not(.mov) .leyenda-marcas { position: static; opacity: 1 !important; max-width: none; margin-bottom: 12px; }
.mov .resolve-escena { position: absolute; left: var(--g); right: var(--g); top: clamp(150px, 22vh, 230px); bottom: 40px; }
.linea-tiempo { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(160px, 31vh, 300px); background: var(--pie); outline: 1px solid var(--l1); overflow: hidden; }
.tarjeta { position: absolute; left: 0; top: 0; z-index: 3; transform-origin: 0 0; overflow: hidden; background: var(--hueco); will-change: transform; }
.tarjeta img { width: 100%; height: 100%; object-fit: cover; }
.lt-regla { position: relative; height: 26px; border-bottom: 1px solid var(--l1); }
.lt-tic { position: absolute; top: 0; height: 26px; padding: 3px 0 0 4px; border-left: 1px solid var(--l2); font-family: var(--mono); font-size: 10.5px; color: var(--t2); white-space: nowrap; }
.lt-marcas { position: absolute; left: 0; right: 0; top: 26px; height: 28px; z-index: 2; }
.lt-marca { position: absolute; bottom: 3px; display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--t1); white-space: nowrap; transform-origin: 0 100%; overflow: hidden; opacity: 0; }
.lt-marca span { overflow: hidden; text-overflow: ellipsis; }
.lt-marca::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px 2px 5px 5px; }
.lt-marca.roja::before { background: #e5484d; }
.lt-marca.azul::before { background: #4c8dff; }
.lt-pista { position: relative; }
.lt-v { height: clamp(52px, 11vh, 110px); margin-top: 28px; }
.lt-a { height: clamp(26px, 5vh, 44px); margin-top: 2px; }
.lt-nombre { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; color: var(--t3); }
.lt-clip { position: absolute; top: 0; bottom: 0; background: var(--capsula); overflow: hidden; opacity: 0; transition: left .5s var(--curva), width .5s var(--curva); }
.lt-clip.llego { opacity: 1; }
.lt-clip-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lt-clip-n { position: absolute; left: 6px; bottom: 3px; font-size: 10.5px; color: #fff; text-shadow: 0 1px 4px #000, 0 0 1px #000; white-space: nowrap; }
.lt-clip-num { position: absolute; right: 4px; top: 4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px; background: var(--ambar); color: var(--tinta); font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }
.lt-audio { position: absolute; top: 0; bottom: 0; opacity: 0; background: repeating-linear-gradient(90deg, #2c2c2c 0 2px, #1b1b1b 2px 5px); transition: left .5s var(--curva), width .5s var(--curva); }
.lt-audio.llego { opacity: 1; }
.visor { position: absolute; right: 0; top: 0; overflow: hidden; background: #000; opacity: 0; outline: 1px solid var(--l1); }
.visor img { width: 100%; height: 100%; object-fit: cover; }
.visor-n { position: absolute; left: 10px; top: 12px; padding: 3px 7px; background: rgba(0, 0, 0, .58); font-size: 12px; color: #fff; }
.leyenda-marcas { position: absolute; left: 0; top: 8px; display: grid; gap: 6px; font-size: 13.5px; color: var(--t2); opacity: 0; max-width: 18em; }
.leyenda-marcas p { display: flex; gap: 8px; align-items: baseline; }
.leyenda-marcas p::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px 2px 5px 5px; }
.lm-roja::before { background: #e5484d; }
.lm-azul::before { background: #4c8dff; }
@media (max-width: 760px) { .leyenda-marcas { display: none; } }
.lt-cabezal { position: absolute; left: 54px; top: 0; bottom: 0; width: 1.5px; background: #fff; z-index: 3; }
.resolve-mandos { position: absolute; right: var(--g); top: 56px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.segmentado { display: inline-flex; padding: 2px; background: var(--capsula); border: 1px solid var(--l2); border-radius: 9px; }
.segmentado button { min-height: 34px; padding: 0 12px; background: none; border: 0; border-radius: 7px; font-size: 13.5px; color: var(--t2); }
.segmentado button[aria-pressed="true"] { background: var(--marcado); color: var(--t1); }
.resolve-nota { position: absolute; left: var(--g); bottom: 16px; }
html:not(.mov) .resolve-mandos, html:not(.mov) .resolve-nota { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 8px var(--g); align-items: flex-start; }
.resolve-datos { padding-top: clamp(50px, 7vh, 90px); }
.resolve-puntos { font-size: clamp(1.5rem, 3.5vw, 3.6rem); font-stretch: 72%; font-weight: 650; line-height: 1.04; color: var(--hueso); }
.resolve-puntos li { padding: .34em 0; border-top: 1px solid var(--l1); }
.tabla-versiones { width: 100%; margin-top: clamp(30px, 4vw, 56px); border-collapse: collapse; font-size: clamp(.875rem, 1.1vw, 1rem); line-height: 1.3; }
.tabla-versiones caption { padding-bottom: 12px; text-align: left; font-family: var(--mono); font-size: 12.5px; color: var(--t2); }
.tabla-versiones th, .tabla-versiones td { padding: 12px 14px 12px 0; border-top: 1px solid var(--l1); text-align: left; vertical-align: top; font-weight: 400; }
.tabla-versiones thead th { color: var(--t2); }
.tabla-versiones tbody th { width: 38%; color: var(--t1); }
.tabla-versiones td { color: var(--t2); }
.video-demo { display: block; width: 100%; height: auto; margin-top: clamp(30px, 4vw, 56px); background: #000; }
.por-definir { color: var(--hueso); font-family: var(--mono); font-size: .86em; }
.dos-vias { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(20px, 3vw, 44px); margin-top: clamp(30px, 4vw, 56px); }
.dos-vias p { margin-top: 8px; font-size: clamp(1rem, 1.35vw, 1.2rem); max-width: 30em; }
@media (max-width: 760px) {
  .dos-vias { grid-template-columns: 1fr; }
  .resolve-mandos { top: auto; bottom: 46px; right: auto; left: var(--g); flex-direction: row; align-items: center; }
  .mov .resolve-escena { bottom: 98px; top: clamp(150px, 24vh, 200px); }
  .resolve-nota { bottom: 8px; right: var(--g); }
  .lt-marca span { display: none; }
  .resolve-texto { padding-top: 56px; }
}

/* ─────────── Panel ─────────── */
.sello { display: inline-block; margin-right: 6px; padding: 1px 8px 2px; border: 1px solid var(--hueso); border-radius: 20px; color: var(--hueso); font-family: var(--mono); font-size: .68em; vertical-align: .12em; white-space: nowrap; }
.panel-escena { position: relative; width: 100%; margin: clamp(28px, 4vw, 56px) 0 0; aspect-ratio: 16 / 7.4; overflow: hidden; background: #050505; outline: 1px solid var(--l1); outline-offset: -1px; }
@media (max-width: 760px) { .panel-escena { aspect-ratio: auto; height: 280px; } }
.ventana-editor { position: absolute; left: 8%; right: 8%; top: 9%; bottom: 9%; background: #1a1a1a; border: 1px solid #2c2c2c; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 26% 1fr 1fr; grid-template-rows: 22px 1fr 34%; gap: 3px; will-change: transform; }
.ve-barra { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; padding: 0 8px; background: #222; }
.ve-barra i { width: 8px; height: 8px; border-radius: 50%; background: #444; }
.ve-visor { grid-column: 2; background: #0a0a0a center / cover no-repeat; }
.ve-visor-b { grid-column: 3; }
.ve-linea { grid-column: 2 / -1; display: flex; gap: 2px; padding: 12px 6px; background: #111; align-items: stretch; overflow: hidden; }
.ve-linea span { flex: 1; min-width: 0; background: #2e2e2e center / cover no-repeat; }
.ve-linea .clip-nuevo { flex: 0; }
.vp-vuelo { position: absolute; left: 0; top: 0; width: 100px; height: 100px; z-index: 3; transform-origin: 0 0; background: var(--hueco) center / cover no-repeat; opacity: 0; pointer-events: none; }
.ventana-panel { position: absolute; left: 8%; top: calc(9% + 24px); width: calc(84% * .26 - 3px); bottom: 9%; z-index: 2; display: flex; flex-direction: column; background: var(--elevado); border: 1px solid var(--l2); border-radius: 0 0 0 8px; overflow: hidden; box-shadow: 8px 8px 30px rgba(0, 0, 0, .5); will-change: transform; }
.vp-q { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: clamp(10px, 1vw, 13px); background: var(--capsula); border-bottom: 1px solid var(--l1); }
.vp-q svg { width: 14px; height: 14px; }
.vp-rejilla { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; align-content: start; overflow: hidden; }
.vp-rejilla span { aspect-ratio: 16 / 9; background-color: var(--hueco); }
.panel .nota-demo { margin-top: 12px; }

/* ─────────── Formatos ─────────── */
.pistas { display: flex; flex-wrap: wrap; gap: 3px; margin-top: clamp(28px, 4vw, 56px); }
.pistas li { flex: 1 1 auto; padding: .1em .22em .12em; background: var(--elevado); border-left: 2px solid var(--l2); font-size: clamp(2.3rem, 8vw, 9rem); font-stretch: 62%; font-weight: 700; line-height: 1; color: var(--t1); transform-origin: 0 50%; }
.pistas .braw { flex: 1 1 100%; background: var(--hueso); color: var(--tinta); border-left-color: var(--tinta); }
.mov .pistas li { transform: scaleX(.02); opacity: 0; transition: transform .75s var(--curva), opacity .2s; }
.mov .pistas li.visto { transform: none; opacity: 1; }
.pistas li:nth-child(2n) { transition-delay: .05s; }
.pistas li:nth-child(3n) { transition-delay: .1s; }
.pistas li:nth-child(5n) { transition-delay: .15s; }
.frase-legal { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--t3); }
.formatos .aparte { margin-top: 10px; }

.requisitos .salidas { margin-top: clamp(30px, 5vw, 70px); max-width: 60em; }
.requisitos .salidas a { text-decoration: underline; }
.privacidad .salidas a { text-decoration: underline; }
.preguntas .salidas > div { grid-template-columns: minmax(9em, 15em) 1fr; }
@media (max-width: 640px) { .preguntas .salidas > div { grid-template-columns: 1fr; gap: 6px; } }

/* ─────────── Privacidad ─────────── */
.privacidad-rejilla { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 60px); margin-top: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 860px) { .privacidad-rejilla { grid-template-columns: minmax(0, 1fr); } }
.salidas > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--l1); align-items: baseline; }
.salidas dt { font-size: 14.5px; color: var(--t2); }
.salidas dd { font-size: clamp(1.05rem, 1.55vw, 1.36rem); line-height: 1.25; color: var(--t1); }
.borrar-muro { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1px; background: #050505; }
@media (max-width: 760px) { .borrar-muro { grid-template-columns: repeat(6, 1fr); } }
.borrar-muro span { aspect-ratio: 16 / 9; background-color: var(--hueco); transition: opacity .3s, transform .4s var(--curva); transition-delay: calc(var(--r, 0) * .45s); }
.borrar-muro span.borrada { opacity: 0; transform: scale(.82); }
.borrar-mandos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.borrar-mandos output { flex-basis: 100%; }
.borrar-demo .nota-demo { margin-top: 10px; }
.huella { margin-top: clamp(30px, 4vw, 50px); display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 12px; color: var(--t3); }
.huella code { overflow-wrap: anywhere; color: var(--t2); }

/* ─────────── Velocidad ─────────── */
.regla { margin-top: clamp(30px, 4vw, 56px); }
.regla-cuadro { width: 69.5%; min-width: fit-content; box-sizing: border-box; padding: 7px 10px; border: 1.5px solid var(--hueso); font-family: var(--mono); font-size: 12.5px; color: var(--hueso); }
.regla-fila { position: relative; height: clamp(38px, 5vw, 58px); margin-top: 3px; background: var(--pie); }
.regla-fila i { position: absolute; left: var(--de); width: var(--ancho); top: 0; bottom: 0; background: var(--hueso); transform-origin: 0 50%; }
.mov .regla-fila i { transform: scaleX(0); transition: transform 1.1s var(--curva); }
.mov .regla.visto .regla-fila i { transform: none; }
.mov .regla.visto .regla-fila:nth-child(3) i { transition-delay: .12s; }
.mov .regla.visto .regla-fila:nth-child(4) i { transition-delay: .24s; }
.regla-fila b { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-weight: 550; font-size: 13.5px; color: #fff; mix-blend-mode: difference; }
.medidas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 clamp(14px, 2vw, 28px); margin-top: clamp(30px, 4vw, 56px); }
.medidas > div { grid-column: span 2; padding: 12px 0 22px; border-top: 1px solid var(--l1); }
.medidas > div:nth-child(1) { grid-column: span 3; }
.medidas > div:nth-child(2) { grid-column: span 3; }
.medidas dt { font-size: 14.5px; color: var(--t2); }
.medidas dd { font-size: clamp(2.3rem, 5.2vw, 5.6rem); font-stretch: 62%; font-weight: 750; line-height: 1; color: var(--hueso); margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.medidas dd small { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--t2); margin-top: 6px; white-space: normal; }
.medidas > div:nth-child(1) dd { font-size: clamp(3rem, 8.5vw, 9.5rem); }
.medidas > div:nth-child(2) dd { font-size: clamp(3rem, 8.5vw, 9.5rem); }
@media (max-width: 760px) { .medidas > div, .medidas > div:nth-child(1), .medidas > div:nth-child(2) { grid-column: span 6; } }
.medido { font-family: var(--mono); font-size: 13px; color: var(--t1); margin-top: 8px; max-width: 46em; }

/* ─────────── Avísame ─────────── */
.final { overflow: hidden; background: var(--negro); min-height: 92svh; display: flex; align-items: flex-end; }
.final-muro { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(16, 1fr); grid-auto-rows: auto; align-content: start; opacity: .34; }
.final-muro span { aspect-ratio: 16 / 9; background-repeat: no-repeat; }
.final-muro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .1), rgba(0, 0, 0, .7) 32%, #000 52%); }
.final-contenido { position: relative; z-index: 1; width: 100%; }
.aviso { margin-top: clamp(22px, 3vw, 36px); max-width: 620px; }
.aviso label { display: block; font-size: 14.5px; color: var(--t2); margin-bottom: 7px; }
.aviso-fila { display: flex; gap: 8px; }
.aviso input { flex: 1; min-width: 0; height: 50px; padding: 0 15px; background: var(--capsula); border: 1px solid var(--l2); border-radius: 9px; font-size: 16px; }
.aviso input::placeholder { color: var(--t3); }
.aviso-estado { min-height: 1.4em; margin-top: 10px; font-size: 15px; color: var(--t1); }
.aviso-estado[data-tipo="aviso"] { color: var(--hueso); font-weight: 600; }
.aviso-estado[data-tipo="error"] { color: var(--hueso); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 460px) { .aviso-fila { flex-direction: column; } .aviso input { flex: none; width: 100%; } .aviso .boton { width: 100%; } }
.condiciones { margin-top: clamp(20px, 3vw, 34px); display: grid; gap: 4px; font-size: clamp(1rem, 1.35vw, 1.2rem); color: var(--t2); }
.condiciones b { color: var(--t1); font-weight: 600; }

/* ─────────── Pie ─────────── */
.pie { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; padding: 34px var(--g) 40px; background: var(--pie); border-top: 1px solid var(--l1); font-size: 13.5px; color: var(--t2); }
.pie-a { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pie-b { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.pie-b a { color: var(--t1); text-underline-offset: 3px; padding: 4px 0; }
.pie-c { grid-column: 1 / -1; font-size: 12.5px; color: var(--t3); max-width: 62em; }
@media (max-width: 560px) { .pie { grid-template-columns: 1fr; } }

@media (min-width: 761px) and (max-width: 1180px) {
  .portada-pie { grid-template-columns: minmax(0, 1fr) auto; }
  .micro { grid-column: 1 / -1; max-width: none; }
  .portada { padding-bottom: 88px; }
}

/* ─────────── Portada en teléfono ─────────── */
@media (max-width: 760px) {
  h1 { font-size: min(26vw, 19vh); }
  .captura .cap span { display: none; }
  .captura .cap { justify-content: space-between; height: 24px; font-size: 11.5px; }
  .captura .cap b { font-size: 11px; }
  .leyenda { left: var(--g); right: var(--g); top: auto; bottom: 112px; text-align: left; }
  .ficha { display: none; }
  .portada { padding-bottom: 80px; }
  .portada-pie { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bajada { font-size: 1.05rem; }
  .micro { max-width: none; font-size: 11.5px; }
  .capsula-b { height: 46px; padding: 0 8px 0 12px; gap: 9px; }
  .capsula-pista { display: none; }
  .capsula.preparando .capsula-pista { display: block; }
  .capsula-local .capsula-q { font-size: 14.5px; }
  .capsula-mira { width: 20px; height: 20px; }
  .rango-et { display: none; }
  .enviar { height: 32px; padding: 0 10px; font-size: 12.5px; }
  .banda-tc { font-size: 11.5px; }
  .banda-aviso { padding: 6px 10px; font-size: 12.5px; }
  .banda-logo, .banda-logo img { height: 24px; }
  .orden-textos { bottom: 96px; }
  html:not(.mov) .captura { position: relative; right: auto; top: auto; left: var(--g); width: calc(100vw - var(--g) * 2); margin-bottom: 12px; }
  html:not(.mov) .portada { min-height: 0; padding-top: 16px; padding-bottom: 32px; }
  html:not(.mov) .fijo { padding-top: 64px; }
}
@media (max-width: 360px) { .banda-tc { display: none; } .banda-aviso { margin-left: auto; } }

/* Pantalla apaisada y baja, como un teléfono de lado: los títulos ceden sitio a la demostración. */
@media (max-height: 520px) and (min-width: 480px) {
  h1 { font-size: min(13vw, 25vh); }
  .portada { padding-bottom: 70px; }
  .portada-pie { margin-top: 8px; gap: 6px 16px; }
  .bajada { font-size: .95rem; }
  .micro { display: none; }
  .boton { height: 40px; }
  .t1 { font-size: min(9vw, 18vh); }
  .tomas-texto, .resolve-texto { padding-top: 50px; }
  .resolve-texto .t1 { font-size: min(6vw, 13vh); max-width: 70%; }
  .tomas-texto .entrada { font-size: .95rem; margin-top: 6px; }
  .tomas-graf { display: none; }
  .mov .tomas-pista { bottom: 34px; }
  .mov .resolve-escena { top: 96px; bottom: 28px; }
  .linea-tiempo { height: 140px; }
  .lt-v { height: 40px; }
  .lt-a { height: 18px; }
  .leyenda-marcas, .visor { display: none; }
  .resolve-nota { bottom: 6px; }
  .biblio-texto > p:not(.marca-tc) { font-size: .95rem; }
  .capsula-b { height: 42px; }
}

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

/* Campo trampa del formulario: fuera de la vista para las personas, visible para los robots que rellenan todo. */
.aviso-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
