/* CCC Media Company · player. Tokens y medidas de docs/CCC-Media-Company-Especificacion.md §2–3. */
:root {
  --blue: #1F3B8E;
  --magenta: #C81E5E;
  --deep: #0F1E4B;
  --chrome: #172A66;
  --stage: #F4F7FC;
  --white: #FFFFFF;
  --tint: #E8EEFA;
  --chip: #EEF2FA;
  --ink: #1F2A44;
  --muted: #5B6FA6;
  --line: #D5DCEC;
  --on-blue: #F4F7FC;
  /* Isotipo: de magenta a turquesa */
  --iso-magenta: #F51E6C;
  --iso-purple: #A92884;
  --iso-indigo: #3D3498;
  --iso-navy: #003493;
  --iso-cyan: #0096CB;
  --iso-teal: #00BE9E;
  --iso-ring: conic-gradient(from 210deg, var(--iso-magenta), var(--iso-purple), var(--iso-indigo), var(--iso-navy), var(--iso-cyan), var(--iso-teal), var(--iso-magenta));
}
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
html, body { margin: 0; padding: 0; background: var(--deep); }
a { color: var(--magenta); } a:hover { color: var(--on-blue); }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.page { min-height: 100vh; background: var(--deep); display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; font-family: 'Figtree', system-ui, sans-serif; color: var(--on-blue); }
.shell { width: 100%; max-width: min(1280px, calc((100dvh - 140px) * 16 / 9)); display: flex; flex-direction: column; gap: 14px; }

/* Escenario 1920×1080 escalado al ancho */
.stage-wrap { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; overflow: clip; border-radius: 14px; background: var(--blue); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: clip; transform-origin: 0 0; transition: background .7s ease, color .7s ease; background: var(--stage); color: var(--blue); }
.stage.is-statement { background: var(--white); }

.top { position: absolute; left: 96px; right: 96px; top: 56px; display: flex; justify-content: space-between; align-items: center; }
.top-l { display: flex; align-items: center; gap: 28px; }
.top-r { display: flex; align-items: center; gap: 36px; }
.logo-ccc { height: 132px; width: auto; display: block; margin-left: -14px; }
.logo-camara { height: 84px; width: auto; display: block; }
.logo-sistel { height: 56px; width: auto; display: block; }
.sep { width: 2px; height: 64px; background: var(--magenta); }
.chap-label { font-size: 24px; opacity: .8; border-left: 2px solid var(--magenta); padding-left: 20px; }

.block { position: absolute; left: 96px; right: 96px; top: 268px; bottom: 190px; display: flex; flex-direction: column; justify-content: center; }
.fx { will-change: opacity, transform; }

.sec-title { font-size: 30px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* statement */
.st { display: grid; grid-template-columns: minmax(0,1fr) 520px; gap: 80px; align-items: center; }
.st-text { display: flex; flex-direction: column; gap: 28px; }
.st-k { font-size: 26px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.st-t { font-size: 78px; line-height: 1.08; font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; color: var(--blue); }
.st-b { font-size: 34px; line-height: 1.4; color: var(--ink); max-width: 1300px; text-wrap: pretty; }
.st-f { font-size: 26px; font-weight: 600; color: var(--magenta); letter-spacing: .04em; margin-top: 12px; }
.st-hero { width: 520px; height: 520px; border-radius: 50%; background: var(--tint); display: flex; align-items: center; justify-content: center; position: relative; }
.st-hero::before { content: ''; position: absolute; inset: 44px; border-radius: 50%; background: var(--iso-ring); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); animation: spin 40s linear infinite; }
.st-hero img { width: 260px; height: 260px; display: block; position: relative; }
.st-hero.iso { background: #FFFFFF; box-shadow: 0 30px 80px rgba(31,59,142,.14), inset 0 0 0 1px var(--line); }
.st-hero.iso::before { inset: 18px; opacity: .35; }
.st-hero.iso img { width: 360px; height: 360px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* quote */
.qt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 44px; }
.qt-hero { width: 160px; height: 160px; border-radius: 50%; background: linear-gradient(135deg, var(--iso-magenta), var(--iso-indigo) 60%, var(--iso-navy)); display: flex; align-items: center; justify-content: center; }
.qt-hero img { width: 88px; height: 88px; display: block; }
.qt-text { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 64px; line-height: 1.25; color: var(--blue); max-width: 1500px; text-wrap: balance; }
.qt-chips { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.qt-chip { display: flex; align-items: center; gap: 14px; font-size: 26px; font-weight: 600; color: var(--blue); border: 2px solid var(--blue); border-radius: 999px; padding: 12px 28px 12px 18px; }
.qt-chip img { width: 40px; height: 40px; display: block; }

/* flow */
.fl { display: flex; flex-direction: column; gap: 56px; }
.fl-row { display: flex; align-items: stretch; gap: 12px; }
.fl-step { flex: 1 1 0; min-width: 0; display: flex; align-items: stretch; gap: 12px; }
.fl-body { flex: 1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fl-dot { width: 112px; height: 112px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(31,59,142,.25); }
.fl-dot img { width: 56px; height: 56px; display: block; }
.fl-n { font-size: 22px; font-weight: 700; color: var(--magenta); margin-top: 8px; }
.fl-label { font-size: 34px; font-weight: 600; color: var(--blue); line-height: 1.15; text-wrap: balance; }
.fl-sub { font-size: 24px; color: var(--muted); line-height: 1.3; }
.fl-arrow { align-self: flex-start; margin-top: 40px; font-size: 40px; line-height: 1; color: var(--magenta); font-weight: 300; }

/* cards */
.cd { display: flex; flex-direction: column; gap: 44px; }
.cd-grid { display: grid; gap: 28px; }
.cd-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 44px 44px 48px; display: flex; flex-direction: column; gap: 20px; }
.cd-plate { width: 96px; height: 96px; border-radius: 24px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.cd-plate img { width: 56px; height: 56px; display: block; }
.cd-title { font-size: 38px; font-weight: 600; color: var(--blue); line-height: 1.15; }
.cd-body { font-size: 27px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.cd-chips:empty { display: none; }
.cd-chip { font-size: 22px; font-weight: 600; color: var(--blue); background: var(--chip); border-radius: 6px; padding: 8px 16px; }
.logo-in { width: auto; display: block; align-self: flex-start; }

/* table */
.tb { display: flex; flex-direction: column; gap: 32px; }
.tb-grid { display: grid; column-gap: 36px; row-gap: 0; line-height: 1.3; }
.tb-h { font-size: 21px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 0 14px; border-bottom: 3px solid var(--blue); }
.tb-c { border-bottom: 1px solid var(--line); color: var(--ink); text-wrap: pretty; display: flex; align-items: center; gap: 16px; }
.tb-c img { width: 34px; height: 34px; display: block; flex: none; }
.tb-c.first { font-weight: 600; }

/* list */
.ls { display: flex; flex-direction: column; gap: 44px; }
.ls-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; }
.ls-item { display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: start; border-top: 1px solid var(--line); padding-top: 18px; }
.ls-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ls-plate { width: 76px; height: 76px; border-radius: 20px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.ls-plate img { width: 44px; height: 44px; display: block; }
.ls-n { font-size: 18px; font-weight: 700; color: var(--magenta); }
.ls-main { display: flex; flex-direction: column; gap: 8px; }
.ls-title { font-size: 32px; font-weight: 600; color: var(--blue); line-height: 1.15; }
.ls-body { font-size: 24px; line-height: 1.35; color: var(--muted); text-wrap: pretty; }

/* pair */
.pr { display: flex; flex-direction: column; gap: 56px; }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.pr-col { display: flex; flex-direction: column; gap: 22px; border-left: 6px solid var(--magenta); padding-left: 40px; }
.pr-dot { width: 112px; height: 112px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; }
.pr-dot img { width: 60px; height: 60px; display: block; }
.pr-title { font-size: 48px; font-weight: 600; color: var(--blue); line-height: 1.1; }
.pr-body { font-size: 31px; line-height: 1.4; color: var(--ink); text-wrap: pretty; }

/* riel de componentes */
.rail { position: absolute; left: 96px; right: 96px; top: 204px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rail span { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: #EEF2FA; border: 1px solid var(--line); transition: background .5s ease, color .5s ease; }
.rail span.on { color: #FFFFFF; border-color: transparent; box-shadow: 0 8px 18px rgba(31,59,142,.18); }

/* columnas */
.cl { display: flex; flex-direction: column; gap: 32px; }
.cl-row { display: grid; gap: 34px; align-items: stretch; }
.cl.wrap .cl-row { row-gap: 26px; }
.cl-col { position: relative; display: flex; flex-direction: column; min-width: 0; }
.cl-head { border-radius: 12px 12px 0 0; padding: 16px 18px; text-align: center; color: #FFFFFF; font-size: 21px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cl-body { flex: 1; background: #FFFFFF; border: 1px solid var(--line); border-top: 5px solid; border-radius: 0 0 12px 12px; padding: 30px 26px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.cl-col:not(:has(.cl-head)) .cl-body { border-radius: 12px; }
.cl-ic { width: 84px; height: 84px; border-radius: 22px; display: flex; align-items: center; justify-content: center; }
.cl-ic img { width: 48px; height: 48px; display: block; }
.cl-value { font-size: 34px; font-weight: 700; color: var(--blue); line-height: 1.15; text-wrap: balance; }
.cl-q { font-size: 24px; color: var(--muted); line-height: 1.3; text-wrap: balance; }
.cl.wrap .cl-body { padding: 24px 20px; gap: 12px; }
.cl.wrap .cl-value { font-size: 30px; }
.cl-arrow { position: absolute; right: -28px; top: 50%; transform: translateY(-50%); font-size: 46px; font-weight: 300; line-height: 1; z-index: 1; }
.cl-note { font-size: 22px; color: var(--muted); }

/* grupos */
.gr { display: flex; flex-direction: column; gap: 32px; }
.gr-grid { display: grid; gap: 40px; }
.gr-panel { background: #FFFFFF; border: 1px solid var(--line); border-top: 6px solid; border-radius: 14px; padding: 38px 44px 40px; display: flex; flex-direction: column; gap: 22px; }
.gr-title { font-size: 30px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gr-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.gr-panel li { display: flex; align-items: center; gap: 18px; font-size: 34px; color: var(--ink); line-height: 1.2; }
.gr-panel li i { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.gr-note { margin-top: auto; padding-top: 8px; font-size: 22px; color: var(--muted); }

/* subtítulos */
.caption-row { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; justify-content: center; padding: 0 160px; pointer-events: none; }
.caption { font-size: 30px; line-height: 1.35; padding: 18px 32px; border-radius: 10px; max-width: 1500px; text-align: center; text-wrap: balance; background: rgba(31,59,142,.94); color: var(--on-blue); }

/* play grande */
.big-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15,30,75,.28); display: flex; align-items: center; justify-content: center; }
.big-play span { width: 96px; height: 96px; border-radius: 50%; background: var(--magenta); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(0,0,0,.4); }

/* capítulos */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 80%); background: rgba(15,30,75,.96); color: var(--on-blue); display: flex; flex-direction: column; padding: 20px 8px 20px 20px; box-sizing: border-box; overflow: auto; }
.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(--on-blue); font-size: 20px; line-height: 1; padding: 4px 8px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.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; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.3; background: transparent; color: rgba(244,247,252,.8); }
.drawer-row.on { background: rgba(244,247,252,.12); color: var(--on-blue); }
.drawer-row .nn { font-weight: 700; color: var(--magenta); }
.drawer-row .mm { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }

/* barra de controles */
.controls { display: flex; align-items: center; gap: 14px; background: var(--chrome); border-radius: 12px; padding: 12px 16px; flex-wrap: wrap; }
.play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--magenta); color: var(--on-blue); 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; opacity: .85; 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: 5px; border-radius: 3px; background: rgba(244,247,252,.22); overflow: hidden; }
.seg-fill { height: 100%; width: 0; background: var(--magenta); }
.bar-label { font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.btns { display: flex; gap: 8px; flex: none; }
.ghost { border: 1px solid rgba(244,247,252,.35); background: transparent; color: var(--on-blue); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.ghost.on { background: var(--on-blue); color: var(--deep); }
.speed { min-width: 52px; font-variant-numeric: tabular-nums; font-weight: 600; }
.speed.fast { border-color: transparent; background: linear-gradient(90deg, var(--iso-magenta), var(--iso-indigo)); }

/* guion */
.script { background: var(--chrome); border-radius: 12px; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow: auto; }
.script .eyebrow { opacity: .6; }
.script-body { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 15px; line-height: 1.55; }
.script-body span { cursor: pointer; border-radius: 4px; padding: 1px 4px; color: rgba(244,247,252,.75); }
.script-body span.on { background: var(--magenta); color: var(--on-blue); }

@media (max-width: 640px) {
  .page { padding: 12px; }
  .bar-label { display: none; }
}
/* Móvil en horizontal: el escenario ocupa el alto disponible */
@media (max-height: 520px) {
  .page { padding: 8px; }
  .shell { gap: 8px; max-width: min(1280px, calc((100dvh - 76px) * 16 / 9)); }
  .controls { padding: 6px 10px; gap: 10px; flex-wrap: nowrap; }
  .play { width: 36px; height: 36px; }
  .bar-label { display: none; }
  .ghost { padding: 6px 10px; }
}

/* ---------- Pantalla de carga ---------- */
.loader { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6cqw; background: radial-gradient(circle at 50% 42%, #1F3B8E 0%, #0F1E4B 72%); color: var(--on-blue); transition: opacity .6s ease, visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-rings { width: 13cqw; height: 13cqw; overflow: visible; filter: drop-shadow(0 .6cqw 1.6cqw rgba(0,0,0,.35)); }
.loader-rings circle { fill: none; stroke-linecap: round; }
.loader-rings .r { transform-origin: 60px 60px; }
.loader-rings .r1 { animation: spin 2.4s linear infinite; }
.loader-rings .r2 { animation: spin 1.8s linear infinite reverse; }
.loader-rings .r3 { animation: spin 1.3s linear infinite; }
.loader-title { font-size: 1.55cqw; font-weight: 600; letter-spacing: .02em; }
.loader-bar { width: 22cqw; height: .32cqw; min-height: 3px; border-radius: 99px; background: rgba(244,247,252,.16); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--iso-magenta), var(--iso-purple), var(--iso-cyan), var(--iso-teal)); transition: width .45s ease; }
.loader-step { font-size: .95cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .6; min-height: 1.2em; }

/* ---------- Cabezote (coordenadas del escenario 1920×1080) ---------- */
.intro { position: absolute; inset: 0; z-index: 5; background: #FFFFFF; overflow: hidden; overflow: clip; }
.intro.out { opacity: 0; transition: opacity .5s ease; }
.intro-bg { position: absolute; inset: 0; opacity: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .22; }
.b1 { width: 900px; height: 900px; left: -300px; top: -380px; background: var(--iso-magenta); }
.b2 { width: 800px; height: 800px; right: -260px; bottom: -380px; background: var(--iso-teal); }
.b3 { width: 700px; height: 700px; right: 120px; top: -420px; background: var(--iso-cyan); opacity: .16; }
.b4 { width: 700px; height: 700px; left: 200px; bottom: -480px; background: var(--iso-indigo); opacity: .14; }
/* Lockup a 1150 px: isotipo del logo en x 425–767, y 269–611 */
.intro-logo { position: absolute; left: 385px; top: 155px; width: 1150px; opacity: 0; mix-blend-mode: multiply; clip-path: inset(0 68% 0 0); }
.intro-iso { position: absolute; left: 425px; top: 269px; width: 342px; height: 342px; opacity: 0; transform: translateX(364px) scale(1.5); -webkit-mask: conic-gradient(#000 var(--sweep), transparent 0); mask: conic-gradient(#000 var(--sweep), transparent 0); }
.intro-tag { position: absolute; left: 0; right: 0; top: 640px; text-align: center; font-size: 30px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); opacity: 0; }
.intro-partners { position: absolute; left: 0; right: 0; top: 780px; display: flex; align-items: center; justify-content: center; gap: 40px; opacity: 0; }
.intro-partners span { font-size: 24px; color: var(--muted); letter-spacing: .06em; }
.intro-partners .p-camara { height: 96px; }
.intro-partners .p-sistel { height: 62px; }
.intro-partners .sep { width: 2px; height: 72px; background: var(--magenta); }

/* Portada: cuadro final del cabezote, sin animación, con botón de inicio */
.intro-play { position: absolute; left: 50%; top: 700px; transform: translateX(-50%); display: none; align-items: center; gap: 16px; border: 0; border-radius: 999px; padding: 20px 44px 20px 34px; font-size: 30px; font-weight: 600; color: #FFFFFF; background: linear-gradient(90deg, var(--iso-magenta), var(--iso-purple) 45%, var(--iso-indigo)); box-shadow: 0 18px 40px rgba(245,30,108,.28); transition: transform .2s ease, box-shadow .2s ease; }
.intro-play:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 24px 50px rgba(245,30,108,.36); }
.intro-resume { position: absolute; left: 50%; top: 790px; transform: translateX(-50%); display: none; border: 0; background: transparent; color: var(--blue); font-size: 24px; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(31,59,142,.35); padding: 8px 16px; }
.intro-resume:hover { text-decoration-color: var(--magenta); }
.intro.poster .intro-resume:not([hidden]) { display: block; }
.intro.poster:has(.intro-resume:not([hidden])) .intro-partners { top: 880px; }
.intro.poster .intro-play { display: flex; }
.intro.poster .intro-tag { top: 620px; }
.intro.poster .intro-partners { top: 830px; }
.intro.poster .intro-bg, .intro.poster .intro-logo, .intro.poster .intro-tag, .intro.poster .intro-partners { opacity: 1; }
.intro.poster .intro-logo { clip-path: inset(0 0 0 0); }

.intro.run .intro-bg { animation: fade 1.2s ease forwards, drift 7s ease-in-out forwards; }
.intro.run .intro-iso { animation: isoIn 1.5s cubic-bezier(.2,.8,.2,1) .2s forwards, sweep 1.3s cubic-bezier(.5,0,.2,1) .2s forwards, isoMove .9s cubic-bezier(.65,0,.35,1) 1.9s forwards, hide .01s linear 3.5s forwards; }
.intro.run .intro-logo { animation: show .01s linear 2.75s forwards, wipe 1s cubic-bezier(.65,0,.35,1) 2.8s forwards; }
.intro.run .intro-tag { animation: fadeUp .8s ease 3.7s forwards; }
.intro.run .intro-partners { animation: fadeUp .8s ease 4.2s forwards; }
.intro.run { animation: introOut .7s ease 6.5s forwards; }

@keyframes fade { to { opacity: 1; } }
@keyframes show { to { opacity: 1; } }
@keyframes hide { to { opacity: 0; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1) translateY(-20px); } }
@keyframes sweep { to { --sweep: 360deg; } }
@keyframes isoIn { from { opacity: 0; transform: translateX(364px) scale(1.25) rotate(-140deg); } to { opacity: 1; transform: translateX(364px) scale(1.5) rotate(0deg); } }
@keyframes isoMove { from { opacity: 1; --sweep: 360deg; transform: translateX(364px) scale(1.5); } to { opacity: 1; --sweep: 360deg; 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(31,59,142,.25); background: rgba(255,255,255,.85); color: var(--blue); border-radius: 999px; padding: .55cqw 1.2cqw; font-size: max(12px, .95cqw); font-weight: 600; backdrop-filter: blur(6px); }
.skip:hover { background: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .loader-rings .r, .st-hero::before { animation: none; }
}

/* ---------- Acceso con PIN ---------- */
.gate { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 8vw, 120px); padding: 24px; box-sizing: border-box; background: radial-gradient(circle at 30% 30%, #1F3B8E 0%, #0F1E4B 70%); color: var(--on-blue); font-family: 'Figtree', system-ui, sans-serif; transition: opacity .5s ease, visibility .5s; }
.gate.done { opacity: 0; visibility: hidden; }
.gate-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.gate-iso { width: clamp(88px, 16vmin, 150px); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.gate-title { font-size: clamp(22px, 3.4vmin, 34px); font-weight: 700; margin-top: 8px; }
.gate-sub { font-size: clamp(12px, 1.8vmin, 15px); letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.gate-pad { display: flex; flex-direction: column; align-items: center; gap: clamp(12px, 2.4vmin, 22px); }
.gate-label { font-size: clamp(15px, 2.2vmin, 18px); font-weight: 600; opacity: .9; min-height: 1.3em; }
.gate-label.err { color: #FF7FA8; }
.gate-dots { display: flex; gap: 18px; }
.gate-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(244,247,252,.55); transition: background .15s, border-color .15s, transform .15s; }
.gate-dots i.on { background: linear-gradient(135deg, var(--iso-magenta), var(--iso-cyan)); border-color: transparent; transform: scale(1.1); }
.gate-dots.shake { animation: shake .42s ease; }
.gate-dots.ok i { background: var(--iso-teal); border-color: transparent; }
.keypad { display: grid; grid-template-columns: repeat(3, var(--k)); gap: calc(var(--k) * .28); --k: clamp(52px, 11vmin, 76px); }
.keypad button { width: var(--k); height: var(--k); border-radius: 50%; border: 1px solid rgba(244,247,252,.16); background: rgba(244,247,252,.07); color: var(--on-blue); font-size: calc(var(--k) * .4); font-weight: 500; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; transition: background .12s, transform .12s; }
.keypad button:hover { background: rgba(244,247,252,.13); }
.keypad button:active, .keypad button.hit { background: linear-gradient(135deg, var(--iso-magenta), var(--iso-indigo)); border-color: transparent; transform: scale(.94); }
.keypad .k-del { background: transparent; border-color: transparent; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
@media (orientation: portrait) { .gate { flex-direction: column; gap: 28px; } }

/* ---------- 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: radial-gradient(circle at 50% 40%, #1F3B8E 0%, #0F1E4B 72%); color: var(--on-blue); font-family: 'Figtree', system-ui, sans-serif; }
@media (orientation: portrait) and (pointer: coarse) and (max-width: 900px) {
  html:not(.portrait-ok) .rotate { display: flex; }
}
.rotate-phone { width: 140px; height: 140px; }
.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: 700; margin-top: 6px; }
.rotate-sub { font-size: 15px; opacity: .75; max-width: 280px; line-height: 1.45; }
.rotate-skip { margin-top: 18px; border: 1px solid rgba(244,247,252,.3); background: transparent; color: var(--on-blue); border-radius: 999px; padding: 10px 20px; font-size: 14px; }
