/* SISTEL · Presentación narrada. Tokens del Brandbook Editorial v2 («La claridad es el diseño»):
   negro, blanco, dos grises y una señal azul. 95 % monocromo, 5 % azul como máximo y solo cuando señala.
   Geist en peso 600 para todo lo que titula; la escala hace el énfasis, no la negrita. */
:root {
  --black: #000000;
  --soft: #171717;     /* cuerpo largo */
  --gray: #6E6E73;     /* eyebrows, notas, encabezados de tabla, folio */
  --surface: #F5F5F7;  /* único fondo permitido: separa un bloque de otro */
  --white: #FFFFFF;
  --blue: #374EF7;     /* señal: una palabra, un punto, una línea, una cifra */
  --line: #E5E5EA;     /* separadores tenues */
  --font: 'Geist', 'Inter', system-ui, sans-serif;
}
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

html, body { margin: 0; padding: 0; background: var(--black); }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.blue { color: var(--blue); }

.page { min-height: 100vh; background: var(--black); display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; font-family: var(--font); color: var(--white); }
.shell { width: 100%; max-width: min(1280px, calc((100dvh - 140px) * 16 / 9)); display: flex; flex-direction: column; gap: 12px; }

/* ---------- Escenario 1920×1080 escalado al ancho ---------- */
.stage-wrap { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; overflow: clip; background: var(--white); }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: clip; transform-origin: 0 0; background: var(--white); color: var(--black); font-family: var(--font); -webkit-font-smoothing: antialiased; }

/* Anatomía de página: cabecera, eyebrow, titular + contenido, pie */
.top { position: absolute; left: 112px; right: 112px; top: 64px; display: flex; justify-content: space-between; align-items: center; }
.top-logo { height: 34px; width: auto; display: block; }
.top-name { font-size: 20px; color: var(--gray); letter-spacing: .02em; }
.stage-eyebrow { position: absolute; left: 112px; top: 168px; font-size: 21px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.stage-eyebrow b { font-weight: 600; color: var(--blue); }
.block { position: absolute; left: 112px; right: 112px; top: 222px; bottom: 204px; display: flex; flex-direction: column; justify-content: center; }
.foot { position: absolute; left: 112px; right: 112px; bottom: 52px; display: flex; justify-content: space-between; font-size: 19px; color: var(--gray); letter-spacing: .02em; }
.folio { font-variant-numeric: tabular-nums; }
.stage.is-hero .stage-eyebrow { display: none; }
.fx { will-change: opacity, transform; }

/* Tipografía común */
.h { font-size: 60px; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; margin: 0 0 52px; max-width: 1480px; text-wrap: balance; }
.lbl { font-size: 19px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.txt { font-size: 28px; line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.ico { display: block; flex: none; color: var(--black); }

/* ---------- Hero / Statement ---------- */
.hero { display: flex; flex-direction: column; gap: 36px; max-width: 1560px; }
.hero-k { font-size: 22px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.hero-k b { font-weight: 600; color: var(--blue); }
.hero-t { font-size: 112px; line-height: 1.02; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.hero-t.long { font-size: 88px; }
.hero-b { font-size: 34px; line-height: 1.45; color: var(--gray); max-width: 1180px; text-wrap: pretty; }
.hero-f { font-size: 20px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); margin-top: 20px; }

/* ---------- Takeaway: frase + tres evidencias con línea superior negra ---------- */
.tk-t { font-size: 76px; line-height: 1.08; font-weight: 600; letter-spacing: -.03em; margin-bottom: 72px; max-width: 1500px; text-wrap: balance; }
.cols { display: grid; gap: 48px; }
.col { border-top: 2px solid var(--black); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.col.now .lbl { color: var(--blue); }

/* ---------- Términos: columnas con línea superior ---------- */
.terms { gap: 36px; }
.term { font-size: 34px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.terms .txt { font-size: 24px; color: var(--gray); }
.terms .col.now .term { color: var(--blue); }

/* ---------- Insight: cuatro columnas ---------- */
.ins .txt { font-size: 26px; }

/* ---------- Decisión: pregunta + opciones; la recomendada con línea azul ---------- */
.dec .col { border-top: 2px solid var(--line); }
.dec .col.rec { border-top: 6px solid var(--blue); padding-top: 20px; }
.dec .col.rec .lbl { color: var(--blue); }
.dec .opt { font-size: 30px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Cifras: la cifra es el gráfico ---------- */
.figs { display: grid; gap: 64px; align-items: end; }
.fig-v { font-size: 176px; line-height: .95; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fig-v small { font-size: 60px; font-weight: 600; letter-spacing: -.01em; color: var(--gray); margin-left: 12px; }
.fig.signal .fig-v { color: var(--blue); }
.fig-l { font-size: 26px; line-height: 1.4; color: var(--gray); margin-top: 20px; max-width: 460px; }

/* ---------- Cita: una frase que merece respirar ---------- */
.qt { max-width: 1480px; }
.qt-t { font-size: 64px; line-height: 1.22; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.qt-by { margin-top: 44px; }

/* ---------- Lista con línea / numerada ---------- */
.ls { display: grid; column-gap: 88px; }
.ls-i { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; border-top: 1px solid var(--line); padding: 20px 0 22px; }
.ls-i.ico-row { grid-template-columns: 64px 52px 1fr; }
.ls-m { font-size: 26px; font-weight: 600; color: var(--gray); font-variant-numeric: tabular-nums; padding-top: 3px; }
.ls-i.now .ls-m { color: var(--blue); }
.ls-t { font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.ls-x { font-size: 24px; line-height: 1.45; color: var(--gray); margin-top: 6px; text-wrap: pretty; }
.ls-i .ico { margin-top: 2px; }

/* ---------- Tabla mínima: encabezado gris con línea negra, sin zebra ni bordes verticales ---------- */
.tb-grid { display: grid; column-gap: 40px; line-height: 1.35; }
.tb-h { font-size: 19px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); padding-bottom: 16px; border-bottom: 2px solid var(--black); }
.tb-c { border-bottom: 1px solid var(--line); color: var(--soft); display: flex; align-items: center; gap: 16px; text-wrap: pretty; }
.tb-c.first { font-weight: 600; color: var(--black); }
.tb-c.first.now { color: var(--blue); }
.tb-c.num { justify-content: flex-end; font-variant-numeric: tabular-nums; }

/* ---------- De / A: la columna «A» lleva línea negra ---------- */
.ft { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; }
.ft-c { border-top: 2px solid var(--line); padding-top: 24px; }
.ft-c.to { border-top-color: var(--black); }
.ft-c.to .lbl { color: var(--black); }
.ft-l { font-size: 30px; line-height: 1.35; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ft-c.from .ft-l { color: var(--gray); }

/* ---------- Familias F01–F06 con tokens v2: superficie gris, esquinas rectas, sin color decorativo ---------- */
.fam { display: grid; gap: 28px; }
.card { background: var(--surface); padding: 40px 40px 44px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.card.topline { border-top: 6px solid var(--black); }
.card.now.topline { border-top-color: var(--blue); }
.c-n { font-size: 40px; font-weight: 600; letter-spacing: -.02em; color: var(--gray); font-variant-numeric: tabular-nums; }
.c-k { font-size: 20px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.card.now .c-n, .card.now .c-k { color: var(--blue); }
.c-d { font-size: 26px; color: var(--soft); }
.c-t { font-size: 36px; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
.c-x { font-size: 24px; line-height: 1.45; color: var(--gray); text-wrap: pretty; }
.chain { display: flex; align-items: stretch; }
.chain .card { flex: 1 1 0; min-width: 0; }
.c-arrow { flex: 0 0 44px; display: flex; align-items: center; justify-content: center; }
.c-arrow::before { content: ''; border-left: 13px solid var(--black); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.band { background: var(--black); color: var(--white); padding: 34px 44px; font-size: 32px; font-weight: 600; letter-spacing: -.01em; margin-top: 28px; }
.f03 .card { padding: 34px 36px 38px; }
.f03 .c-t { font-size: 32px; }

/* ---------- Calendario hábil: encabezado gris con línea negra; festivo en superficie ---------- */
.cal { display: grid; column-gap: 0; }
.cal-h { font-size: 17px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); padding: 0 16px 10px; border-bottom: 2px solid var(--black); }
.cal-c { min-height: 72px; padding: 9px 16px 9px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; box-sizing: border-box; }
.cal-c:nth-child(5n + 1) { border-left: 0; }
.cal-c.off { background: var(--surface); color: var(--gray); }
.cal-top { display: flex; justify-content: space-between; align-items: baseline; }
.cal-d { font-size: 24px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cal-k { font-size: 16px; font-weight: 600; letter-spacing: .06em; color: var(--gray); }
.cal-n { font-size: 18px; font-weight: 600; line-height: 1.2; }
.cal-c.muted .cal-n { font-weight: 400; color: var(--gray); }
.cal-t { font-size: 16px; color: var(--gray); font-variant-numeric: tabular-nums; }
.cal-c.now .cal-k, .cal-c.now .cal-d { color: var(--blue); }
.cal-legend { display: flex; gap: 36px; margin-top: 18px; flex-wrap: wrap; }
.cal-g { font-size: 20px; color: var(--soft); display: flex; gap: 12px; align-items: baseline; }
.cal-g.now .cal-k { color: var(--blue); }

/* ---------- Material de consulta ---------- */
.dl { display: inline-flex; align-items: center; gap: 16px; margin-top: 48px; background: var(--black); color: var(--white); text-decoration: none; font-size: 28px; font-weight: 600; padding: 22px 36px; border-radius: 999px; align-self: flex-start; }
.dl:hover { background: var(--soft); }
.dl-b { display: flex; flex-direction: column; }
.dl-b .ls-m { font-size: 19px; letter-spacing: .1em; text-transform: uppercase; width: max-content; }
.dl-b .ls-i { grid-template-columns: 150px 1fr; }
.dl-b .ls-i.now .ls-m { color: var(--blue); }

/* ---------- Subtítulos ---------- */
.caption-row { position: absolute; left: 0; right: 0; bottom: 92px; display: flex; justify-content: center; padding: 0 140px; pointer-events: none; }
.caption { font-size: 27px; line-height: 1.38; padding: 14px 28px; max-width: 1600px; text-align: center; text-wrap: balance; background: rgba(0,0,0,.9); color: var(--white); }

/* ---------- Play grande (solo si no hay portada) ---------- */
.big-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; }
.big-play span { width: 92px; height: 92px; border-radius: 50%; background: var(--black); display: flex; align-items: center; justify-content: center; }

/* ---------- Capítulos ---------- */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 80%); background: rgba(0,0,0,.96); color: var(--white); display: flex; flex-direction: column; padding: 20px 8px 20px 20px; box-sizing: border-box; overflow: auto; z-index: 8; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-right: 12px; margin-bottom: 12px; }
.drawer-head button { border: 0; background: transparent; color: var(--white); font-size: 20px; line-height: 1; padding: 4px 8px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.drawer-list { display: flex; flex-direction: column; gap: 2px; }
.drawer-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: baseline; text-align: left; border: 0; padding: 10px 12px; font-size: 14px; line-height: 1.3; background: transparent; color: rgba(255,255,255,.7); }
.drawer-row.on { background: rgba(255,255,255,.1); color: var(--white); }
.drawer-row .nn { font-weight: 600; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.drawer-row.on .nn { color: var(--blue); }
.drawer-row .mm { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }

/* ---------- Controles ---------- */
.controls { display: flex; align-items: center; gap: 14px; padding: 4px 0; flex-wrap: wrap; font-family: var(--font); }
.play { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--white); color: var(--black); display: flex; align-items: center; justify-content: center; flex: none; }
.play .i-pause { display: none; }
.is-playing .play .i-pause { display: block; }
.is-playing .play .i-play { display: none; }
.time { font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); min-width: 92px; }
.bar { flex: 1 1 240px; display: flex; gap: 3px; height: 22px; align-items: center; min-width: 0; }
.seg { height: 22px; display: flex; align-items: center; cursor: pointer; min-width: 0; }
.seg-track { width: 100%; height: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.seg-fill { height: 100%; width: 0; background: var(--white); }
.bar-label { font-size: 13px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.btns { display: flex; gap: 8px; flex: none; }
.ghost { border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--white); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; }
a.ghost { text-decoration: none; display: inline-flex; align-items: center; }
.ghost.on, .speed.fast { background: var(--white); color: var(--black); border-color: var(--white); }
.speed { min-width: 52px; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Guion ---------- */
.script { border-top: 1px solid rgba(255,255,255,.18); padding: 16px 0 4px; display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow: auto; font-family: var(--font); }
.script-body { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 15px; line-height: 1.55; }
.script-body span { cursor: pointer; padding: 1px 4px; color: rgba(255,255,255,.65); }
.script-body span.on { background: var(--white); color: var(--black); }

@media (max-width: 640px) { .page { padding: 12px; } .bar-label { display: none; } }
@media (max-height: 520px) {
  .page { padding: 8px; }
  .shell { gap: 6px; max-width: min(1280px, calc((100dvh - 70px) * 16 / 9)); }
  .controls { gap: 10px; flex-wrap: nowrap; padding: 0; }
  .play { width: 34px; height: 34px; }
  .bar-label { display: none; }
  .ghost { padding: 5px 10px; }
}

/* ---------- Pantalla de carga: el isotipo gira ---------- */
.loader { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5cqw; background: var(--black); color: var(--white); font-family: var(--font); transition: opacity .6s ease, visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-iso { width: 7cqw; height: 7cqw; animation: spin 2.8s cubic-bezier(.6,0,.4,1) infinite; }
.loader-title { font-size: 1.4cqw; font-weight: 600; letter-spacing: -.01em; margin-top: .6cqw; }
.loader-bar { width: 18cqw; height: 2px; background: rgba(255,255,255,.18); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--white); transition: width .45s ease; }
.loader-step { font-size: .85cqw; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); min-height: 1.2em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cabezote Hero Black (coordenadas del escenario) ---------- */
/* Lockup a 760 px, centrado: isotipo en x 580–751, y 330–494. */
.intro { position: absolute; inset: 0; z-index: 5; background: var(--black); color: var(--white); overflow: hidden; overflow: clip; }
.intro.out { opacity: 0; transition: opacity .5s ease; }
.intro-logo { position: absolute; left: 580px; top: 250px; width: 760px; opacity: 0; clip-path: inset(0 77.5% 0 0); }
.intro-iso { position: absolute; left: 580px; top: 250px; width: 171px; height: 164px; opacity: 0; transform-origin: 49.4% 56.2%; transform: translateX(294.5px) scale(1.9); }
.intro-title { position: absolute; left: 160px; right: 160px; top: 520px; text-align: center; font-size: 72px; line-height: 1.08; font-weight: 600; letter-spacing: -.03em; opacity: 0; text-wrap: balance; }
.intro-sub { position: absolute; left: 0; right: 0; top: 700px; text-align: center; font-size: 22px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); opacity: 0; }
.intro-client { position: absolute; left: 0; right: 0; top: 780px; display: flex; align-items: center; justify-content: center; gap: 28px; opacity: 0; }
.intro-client span { font-size: 22px; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.intro-client img { height: 60px; width: auto; filter: brightness(0) invert(1); }
.intro-play { position: absolute; left: 50%; top: 790px; transform: translateX(-50%); display: none; align-items: center; gap: 14px; border: 0; border-radius: 999px; padding: 20px 44px 20px 34px; font-size: 28px; font-weight: 600; color: var(--black); background: var(--white); transition: transform .2s ease; }
.intro-play:hover { transform: translateX(-50%) translateY(-3px); }
.intro-resume { position: absolute; left: 50%; top: 890px; transform: translateX(-50%); display: none; border: 0; background: transparent; color: rgba(255,255,255,.8); font-size: 22px; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,.35); padding: 8px 16px; }

/* Portada: cuadro final del cabezote con botón de inicio */
.intro.poster { cursor: pointer; }
.intro.poster .intro-logo, .intro.poster .intro-title, .intro.poster .intro-sub { opacity: 1; }
.intro.poster .intro-logo { clip-path: inset(0 0 0 0); }
.intro.poster .intro-play { display: flex; }
.intro.poster .intro-resume:not([hidden]) { display: block; }
.intro.poster .intro-client { opacity: 1; }
.intro.poster:has(.intro-client:not([hidden])) .intro-play { top: 880px; }
.intro.poster:has(.intro-client:not([hidden])) .intro-resume { top: 975px; }

.intro.run .intro-iso { animation: isoIn 1.5s cubic-bezier(.2,.8,.2,1) .2s forwards, isoMove .9s cubic-bezier(.65,0,.35,1) 1.8s forwards, hide .01s linear 3.4s forwards; }
.intro.run .intro-logo { animation: show .01s linear 2.65s forwards, wipe .9s cubic-bezier(.65,0,.35,1) 2.7s forwards; }
.intro.run .intro-title { animation: fadeUp .8s ease 3.4s forwards; }
.intro.run .intro-sub { animation: fadeUp .8s ease 3.9s forwards; }
.intro.run .intro-client:not([hidden]) { animation: fadeUp .8s ease 4.3s forwards; }
.intro.run { animation: introOut .7s ease 6.5s forwards; }
@keyframes show { to { opacity: 1; } }
@keyframes hide { to { opacity: 0; } }
@keyframes isoIn { from { opacity: 0; transform: translateX(294.5px) scale(1.4) rotate(-240deg); } to { opacity: 1; transform: translateX(294.5px) scale(1.9) rotate(0deg); } }
@keyframes isoMove { from { opacity: 1; transform: translateX(294.5px) scale(1.9); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes introOut { to { opacity: 0; } }

.skip { position: absolute; right: 2cqw; bottom: 2cqw; z-index: 6; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white); border-radius: 999px; padding: .5cqw 1.2cqw; font-size: max(12px, .9cqw); font-weight: 500; }

/* ---------- Acceso con PIN (Hero Black) ---------- */
.gate { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: clamp(40px, 10vw, 160px); padding: 24px; box-sizing: border-box; background: var(--black); color: var(--white); font-family: var(--font); transition: opacity .5s ease, visibility .5s; }
.gate.done { opacity: 0; visibility: hidden; }
.gate-brand { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.gate-logo { height: clamp(20px, 3.4vmin, 30px); width: auto; align-self: flex-start; margin-bottom: clamp(16px, 5vmin, 44px); }
.gate-title { font-size: clamp(28px, 6vmin, 56px); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.gate-sub { font-size: clamp(11px, 1.7vmin, 14px); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.gate-pad { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2.4vmin, 22px); }
.gate-label { font-size: clamp(14px, 2vmin, 17px); font-weight: 500; color: rgba(255,255,255,.85); min-height: 1.3em; }
.gate-label.err::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF3B30; margin-right: 10px; vertical-align: middle; }
.gate-dots { display: flex; gap: 18px; }
.gate-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.6px solid rgba(255,255,255,.6); transition: background .15s, border-color .15s; }
.gate-dots i.on { background: var(--white); border-color: var(--white); }
.gate-dots.ok i { background: var(--blue); border-color: var(--blue); }
.gate-dots.shake { animation: shake .42s ease; }
.keypad { display: grid; grid-template-columns: repeat(3, var(--k)); gap: calc(var(--k) * .3); --k: clamp(52px, 11vmin, 74px); }
.keypad button { width: var(--k); height: var(--k); border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--white); font-size: calc(var(--k) * .38); font-weight: 500; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; transition: background .12s, color .12s, transform .12s; }
.keypad button:hover { background: rgba(255,255,255,.08); }
.keypad button:active, .keypad button.hit { background: var(--white); color: var(--black); transform: scale(.95); }
.keypad .k-del { border-color: transparent; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
@media (orientation: portrait) { .gate { flex-direction: column; gap: 32px; } .gate-brand { align-items: center; text-align: center; } .gate-logo { align-self: center; } }

/* ---------- Girar el teléfono ---------- */
.rotate { display: none; position: fixed; inset: 0; z-index: 60; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; background: var(--black); color: var(--white); font-family: var(--font); }
@media (orientation: portrait) and (pointer: coarse) and (max-width: 900px) { html:not(.portrait-ok) .rotate { display: flex; } }
.rotate-phone { width: 132px; height: 132px; }
.rotate-phone .phone { transform-origin: 60px 60px; animation: turn 2.6s ease-in-out infinite; }
.rotate-phone .arrow { animation: blink 2.6s ease-in-out infinite; }
@keyframes turn { 0%, 20% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@keyframes blink { 0%, 20% { opacity: 1; } 45%, 100% { opacity: 0; } }
.rotate-title { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-top: 6px; }
.rotate-sub { font-size: 15px; color: rgba(255,255,255,.7); max-width: 280px; line-height: 1.45; }
.rotate-skip { margin-top: 18px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--white); border-radius: 999px; padding: 10px 20px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { .loader-iso, .rotate-phone .phone { animation: none; } }
