/* Letra Chica · Capacitaciones (landing, aula, reproductor y certificado).
   Identidad del sitio: papel, tinta y lima. Los dibujos van en trazo de tinta con relleno lima, sobre una hoja de cuaderno. */
:root { --lc-olive: #1d3a60; --lc-paper: #ffffff; --lc-red: #b3412f; --lc-amber: #b57a00; --lc-green: #3e7a1f; }

/* ───────── Íconos y personajes ───────── */
.ic { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; filter: url(#lc-rough); --bg: var(--lc-paper); }
.ic .a { fill: var(--lime); }
.pj { filter: url(#lc-rough); overflow: visible; }

/* ───────── Cabecera del curso ───────── */
.aula-bloqueo { padding-block: 72px 96px; max-width: 760px; }
.aula-bloqueo h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.curso-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 28px; padding-block: 30px 20px; }
.curso-top h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.curso-top .eyebrow { margin-bottom: 10px; }
.volver { align-self: start; padding-top: 6px; }
.curso-avance { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 2px 8px; min-width: 150px; }
.curso-avance strong { font: 400 2rem/1 'Familjen Grotesk', sans-serif; }
.curso-avance span { color: var(--muted); font-size: 12px; font-weight: 600; }
.av-bar { grid-column: 1 / -1; height: 4px; background: var(--line); }
.av-bar i { display: block; height: 100%; width: 0; background: var(--lime-deep); transition: width .5s ease; }
.revision-banner { margin: 0 0 14px; border: 1px solid #e7d48a; background: #fff8dc; padding: 10px 14px; color: #5e4b00; font-size: 13px; }

.curso-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; padding-bottom: 80px; }

/* ───────── Escenario ───────── */
.stage-wrap { position: relative; border: 1px solid var(--ink); background: #fff; box-shadow: 8px 8px 0 var(--lime); }
.stage { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; min-height: 340px; overflow: hidden; background-color: #fcfdf8; background-image: radial-gradient(rgba(12,17,22, .10) 1px, transparent 1.2px); background-size: 22px 22px; outline: none; }
.stage.esc-in > .sc { animation: escIn .5s ease both; }
@keyframes escIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.sc { --f: clamp(13px, 2.05cqw, 21px); display: flex; height: 100%; flex-direction: column; justify-content: center; gap: 2.2cqw; padding: clamp(16px, 3.6cqw, 44px) clamp(18px, 5cqw, 64px); font-size: var(--f); line-height: 1.35; }
.rv { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .5s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.rv.on { opacity: 1; transform: none; }
.kicker { margin: 0; color: var(--lc-olive); font-size: .62em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sc-h { margin: 0; font-family: var(--display); font-size: 1.55em; line-height: 1.1; }
.sc-head { font-size: 1.45em; }
.sc strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(39,75,122, .75) 62%); }

.sc-portada { align-items: flex-start; justify-content: center; gap: 1.6cqw; }
.portada-ic .ic { width: clamp(70px, 14cqw, 150px); height: auto; }
.sc-titulo { margin: 0; max-width: 18ch; font: 400 clamp(1.9em, 5.2cqw, 3.4em)/1.04 'Familjen Grotesk', sans-serif; }

.sc-concepto { flex-direction: row; align-items: center; gap: 4cqw; }
.concepto-ic .ic { width: clamp(80px, 17cqw, 190px); height: auto; }
.concepto-txt { display: grid; gap: 1.1cqw; }
.concepto-def { margin: 0; font-size: 1.28em; line-height: 1.38; }
.ejemplo { margin: .4cqw 0 0; border-left: 3px solid var(--lime-deep); padding: .5em .9em; background: rgba(39,75,122, .22); font-size: .95em; }
.ejemplo b { margin-right: .5em; font-size: .75em; text-transform: uppercase; letter-spacing: .06em; }

.pasos-fila, .tarjetas-grid { display: grid; margin: 0; padding: 0; list-style: none; gap: 1.6cqw; }
.pasos-fila { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.paso, .tarjeta { position: relative; display: flex; flex-direction: column; gap: .5em; border: 1.5px solid var(--ink); background: #fff; padding: 1.1em; }
.paso b, .tarjeta b { font-family: var(--display); font-size: 1.08em; line-height: 1.15; }
.paso span:not(.paso-n), .tarjeta span { color: var(--ink-soft); font-size: .86em; line-height: 1.35; }
.paso-n { position: absolute; top: -.8em; left: .8em; display: grid; width: 1.7em; height: 1.7em; place-items: center; background: var(--ink); color: var(--lime); font: 700 .85em var(--display); }
.paso:not(:last-child)::after { position: absolute; top: 50%; right: -1.5cqw; z-index: 1; width: 1.4cqw; height: 1.4cqw; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateY(-50%) rotate(45deg); content: ''; }
.paso .ic, .tarjeta .ic { width: 2.6em; height: 2.6em; }
.tarjetas-grid { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }

.comp-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.comp { border: 1.5px solid var(--ink); background: #fff; padding: 1.2em; }
.comp-b { background: #e4eaf1; }
.comp h4 { margin: .4em 0 .5em; font: 600 1.15em var(--display); }
.comp ul { margin: 0; padding-left: 1.1em; font-size: .92em; }
.comp li + li { margin-top: .35em; }
.comp .ic { width: 2.4em; height: 2.4em; }
.comp-vs { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; width: 2.6em; height: 2.6em; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font: 700 .85em var(--display); transform: translate(-50%, -50%); }
.comp-vs.rv { transform: translate(-50%, -50%) scale(.8); }
.comp-vs.rv.on { transform: translate(-50%, -50%); }

.caso-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 2cqw; }
.caso-pj { display: grid; justify-items: center; gap: .3em; }
.caso-pj .pj { width: clamp(70px, 14cqw, 150px); height: auto; }
.caso-pj small { color: var(--muted); font-size: .7em; font-weight: 700; }
.caso-dialogo { display: grid; align-content: center; gap: .9cqw; }
.burbuja { position: relative; max-width: 88%; margin: 0; border: 1.5px solid var(--ink); background: #fff; padding: .6em .9em; font-size: .92em; line-height: 1.32; }
.burbuja-izq { justify-self: start; border-radius: 0 14px 14px 14px; }
.burbuja-der { justify-self: end; border-radius: 14px 0 14px 14px; background: var(--lime); }

.alertas-lista { display: grid; margin: 0; padding: 0; list-style: none; gap: .8cqw; }
.alerta { display: flex; align-items: center; gap: .9em; border: 1.5px solid var(--ink); border-left-width: 8px; background: #fff; padding: .55em .9em; }
.alerta .ic { flex: none; width: 1.9em; height: 1.9em; }
.alerta-rojo { border-left-color: var(--lc-red); }
.alerta-ambar { border-left-color: var(--lc-amber); }
.alerta-verde { border-left-color: var(--lc-green); }

.sc-cifra { flex-direction: row; align-items: center; justify-content: center; gap: 5cqw; }
.cifra-ic .ic { width: clamp(70px, 14cqw, 150px); height: auto; }
.cifra-valor { margin: 0; font: 400 clamp(2.6em, 9cqw, 6em)/.95 'Familjen Grotesk', sans-serif; }
.cifra-eti { margin: .3em 0 0; max-width: 24ch; font-size: 1.25em; line-height: 1.3; }
.cifra-nota { margin: .6em 0 0; color: var(--muted); font-size: .85em; }

.linea-hitos { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 3cqw 0 0; padding: 0; list-style: none; gap: 1.2cqw; }
.linea-hitos::before { position: absolute; top: 2.15em; right: 0; left: 0; height: 2px; background: var(--ink); content: ''; }
.hito { position: relative; display: grid; justify-items: start; gap: .6em; }
.hito-cuando { font: 400 1.5em/1 'Familjen Grotesk', sans-serif; }
.hito i { position: relative; z-index: 1; width: 1em; height: 1em; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); }
.hito-t { font-size: .88em; line-height: 1.3; }

.ciclo-wrap { position: relative; width: min(100%, 46cqw); aspect-ratio: 1; margin-inline: auto; max-height: 100%; }
.sc-ciclo { align-items: stretch; }
.ciclo-aro { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); animation: gira 60s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.ciclo-centro { position: absolute; top: 50%; left: 50%; display: grid; width: 24%; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font: 700 1.05em/1.1 var(--display); text-align: center; transform: translate(-50%, -50%); }
.ciclo-centro.rv { transform: translate(-50%, -50%) scale(.8); }
.ciclo-centro.rv.on { transform: translate(-50%, -50%); }
.ciclo-nodo { position: absolute; display: grid; width: 28%; justify-items: center; gap: .15em; text-align: center; translate: -50% -50%; }
.ciclo-nodo .ic { width: 2.1em; height: 2.1em; }
.ciclo-nodo b { font-size: .78em; line-height: 1.12; }

.jer { display: grid; justify-items: center; }
.jer-raiz, .jer-hijo { display: grid; justify-items: center; gap: .3em; border: 1.5px solid var(--ink); background: #fff; padding: .7em 1em; text-align: center; }
.jer-raiz { background: var(--lime); }
.jer-raiz .ic, .jer-hijo .ic { width: 2.3em; height: 2.3em; }
.jer-linea { width: 2px; height: 1.6cqw; background: var(--ink); }
.jer-hijos { position: relative; display: grid; width: 100%; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1.4cqw; padding-top: 1.6cqw; }
.jer-hijos::before { position: absolute; top: 0; right: calc(50% / var(--n)); left: calc(50% / var(--n)); height: 2px; background: var(--ink); content: ''; }
.jer-hijo { position: relative; font-size: .9em; }
.jer-hijo::before { position: absolute; top: -1.6cqw; left: 50%; width: 2px; height: 1.6cqw; background: var(--ink); content: ''; }
.jer-hijo span { color: var(--ink-soft); font-size: .8em; }

.mx-wrap { position: relative; display: grid; width: min(100%, 62cqw); margin-inline: auto; padding: 0 0 1.6em 1.8em; }
.mx-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); }
.mx-c { display: flex; min-height: 9cqw; flex-wrap: wrap; align-content: center; justify-content: center; gap: .4em; border: 1px solid rgba(12,17,22, .25); padding: .3em; }
.mx-v { background: #e4eaf1; } .mx-a { background: #fbe9b5; } .mx-r { background: #f4c9c0; }
.mx-p { border: 1.5px solid var(--ink); background: #fff; padding: .15em .55em; font-size: .78em; font-weight: 700; }
.mx-eje-x { position: absolute; right: 0; bottom: 0; left: 1.8em; text-align: center; font-size: .72em; font-weight: 700; color: var(--muted); }
.mx-eje-y { position: absolute; top: 0; bottom: 1.6em; left: 0; display: grid; place-items: center; font-size: .72em; font-weight: 700; color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg); }

.resumen-lista { display: grid; margin: 0; padding: 0; list-style: none; gap: .9cqw; }
.resumen-lista li { display: flex; align-items: flex-start; gap: .8em; }
.resumen-lista .ic { flex: none; width: 1.7em; height: 1.7em; margin-top: .05em; }
.resumen-lista span { font-size: 1.04em; }

.sc-pregunta, .sc-examen, .sc-cert-form, .sc-resultado { gap: 1.4cqw; }
.preg-q { max-width: 36ch; font-size: 1.5em; }
.preg-ops { display: grid; gap: .8cqw; }
.preg-op { display: flex; align-items: center; gap: .9em; border: 1.5px solid var(--ink); background: #fff; padding: .6em .9em; color: var(--ink); font: inherit; font-size: .95em; line-height: 1.3; text-align: left; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.preg-op:hover:not(:disabled) { background: #e4eaf1; transform: translateX(3px); }
.preg-op span { display: grid; flex: none; width: 1.8em; height: 1.8em; place-items: center; background: var(--ink); color: var(--lime); font: 700 .8em var(--display); }
.preg-op.es-ok { border-color: var(--lc-green); background: #e4eaf1; }
.preg-op.es-mal { border-color: var(--lc-red); background: #f8dcd6; opacity: .7; }
.preg-op.es-sel { background: var(--lime); }
.preg-op:disabled { cursor: default; }
.preg-fb { min-height: 3.4em; font-size: .92em; }
.preg-fb p { margin: 0 0 .5em; }
.fb-ok b { color: var(--lc-green); } .fb-mal b { color: var(--lc-red); }
.exam-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: .4cqw; }
.sc-examen .sc-h { max-width: 40ch; font-size: 1.4em; }

.sc-resultado { overflow: auto; justify-content: flex-start; }
.res-cab { display: flex; align-items: center; gap: 2.4cqw; }
.res-cab h2 { margin: 0; font-size: 1.7em; }
.res-cab p { margin: .2em 0 0; }
.res-pct { display: grid; width: 6.2em; aspect-ratio: 1; flex: none; place-items: center; align-content: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); text-align: center; }
.es-reprobado .res-pct { background: #f4c9c0; }
.res-pct strong { background: none; font: 400 2.2em/1 'Familjen Grotesk', sans-serif; }
.res-pct span { font-size: .7em; font-weight: 700; }
.res-rev { border: 1px solid var(--line); background: #fff; padding: .5em 1em; font-size: .88em; }
.res-rev summary { cursor: pointer; font-weight: 700; }
.res-rev ul { display: grid; margin: .6em 0 0; padding: 0; list-style: none; gap: .7em; }
.res-rev li b { display: block; }
.res-rev li span { color: var(--ink-soft); }
.sc-cert-form { align-items: flex-start; }
.sc-cert-form form { display: grid; width: min(100%, 460px); gap: 12px; }

.sc-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(255,255,255, .94); padding: 16px; }
.sc-overlay[hidden] { display: none; }
.ov-card { display: grid; max-width: 520px; justify-items: center; gap: 12px; text-align: center; }
.ov-card h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.ov-card p { margin: 0; color: var(--ink-soft); }
.ov-fuentes { max-width: 100%; border: 1px solid var(--line); background: #fff; padding: 8px 14px; text-align: left; font-size: 13px; }
.ov-fuentes summary { cursor: pointer; font-weight: 700; }
.ov-fuentes ul { margin: 8px 0 0; padding-left: 18px; }
.ov-card .actions { justify-content: center; gap: 12px; }

/* ───────── Subtítulos y controles ───────── */
.subs { min-height: 4.2em; margin-top: 22px; color: #9aa090; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; }
.subs .leida { color: var(--ink); }
.segs { display: flex; gap: 3px; margin-top: 10px; }
.segs i { flex: 1; height: 5px; background: var(--line); }
.segs i.hecha { background: var(--ink); } .segs i.actual { background: var(--lime-deep); }
.controles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.controles button { display: grid; min-width: 44px; height: 44px; place-items: center; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; font: 700 13px var(--body); }
.controles button:hover:not(:disabled) { background: var(--lime); }
.controles button:disabled { opacity: .35; cursor: default; }
.controles svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.controles .b-play { background: var(--ink); color: var(--lime); }
.controles .b-play:hover { background: #2b3540 !important; }
.controles .ctl-txt { padding: 0 14px; }
.controles .ctl-txt[aria-pressed="true"] { background: var(--lime); }
.ctl-info { margin-inline: 10px auto; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.controles.is-examen button:not(.ctl-txt) { display: none; }
.controles.is-examen .ctl-txt { display: none; }

/* ───────── Temario ───────── */
.temario { position: sticky; top: 96px; display: grid; gap: 4px; max-height: calc(100vh - 120px); overflow: auto; border: 1px solid var(--line); background: #fff; padding: 18px; }
.temario h2 { margin: 0 0 8px; font-size: 1.25rem; }
.tem-mod { padding-block: 10px; border-top: 1px solid var(--line); }
.tem-mod h3 { display: grid; margin: 0 0 8px; font-size: 14px; line-height: 1.2; }
.tem-mod h3 span { color: var(--lc-olive); font: 700 11px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.tem-mod ol { display: grid; margin: 0; padding: 0; list-style: none; gap: 2px; }
.tem-lec { display: grid; width: 100%; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 0; background: none; padding: 7px 6px; color: var(--ink); cursor: pointer; font: 500 13.5px/1.25 var(--body); text-align: left; }
.tem-lec:hover { background: #e4eaf1; }
.tem-lec.is-actual { background: var(--lime); font-weight: 700; }
.tem-lec small { color: var(--muted); font-size: 11.5px; }
.tem-ck { display: grid; width: 20px; height: 20px; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font-size: 11px; font-weight: 800; }
.tem-lec.is-hecha .tem-ck { background: var(--ink); color: var(--lime); }
.tem-final { display: grid; gap: 8px; }
.tem-final p { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
.tem-final .button { min-height: 44px; }
.tem-ok { color: var(--lc-green) !important; font-weight: 700; }

/* ───────── Aula (panel del alumno) ───────── */
.aula-hero { padding-block: 44px 24px; }
.aula-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.aula-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; padding-bottom: 36px; }
.curso-card { display: grid; align-content: space-between; gap: 18px; border: 1px solid var(--ink); background: #fff; padding: 24px; box-shadow: 6px 6px 0 var(--lime); }
.curso-card .ic { width: 64px; height: 64px; }
.curso-card h2 { margin: 6px 0 0; font-size: 1.6rem; }
.curso-card p { margin: 0; color: var(--ink-soft); }
.curso-card .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.curso-card .barra { height: 6px; background: var(--line); }
.curso-card .barra i { display: block; height: 100%; background: var(--lime-deep); }
.curso-card.is-bloqueado { box-shadow: none; border-color: var(--line); background: #f1f3ea; }
.canje { display: grid; gap: 14px; max-width: 560px; margin-bottom: 36px; border: 1px solid var(--line); background: #fff; padding: 22px; }
.canje h2 { margin: 0; font-size: 1.4rem; }
.canje form { display: flex; flex-wrap: wrap; gap: 10px; }
.canje input { flex: 1 1 200px; min-height: 50px; border: 1px solid var(--ink); background: #fff; padding: 0 14px; font: 600 15px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.equipo-panel { margin-bottom: 64px; }
.equipo-panel h2 { font-size: 1.6rem; }
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tabla th, .tabla td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; white-space: nowrap; }
.tabla th { background: var(--lc-paper); color: var(--muted); font-size: 12px; }
.pill { display: inline-block; border: 1px solid var(--ink); padding: 1px 9px; font-size: 11.5px; font-weight: 700; }
.pill-ok { background: var(--lime); } .pill-no { border-color: var(--line); color: var(--muted); }

/* ───────── Certificado ───────── */
.cert-page { padding-block: 40px 80px; }
.cert-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.cert-estado { margin-bottom: 18px; font-weight: 700; }
.cert-estado.es-vigente { color: var(--lc-green); } .cert-estado.es-vencido { color: var(--lc-red); }

/* ───────── Landing de capacitaciones ───────── */
.cap-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(28px, 5vw, 64px); padding-block: 56px 48px; }
.cap-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.cap-puntos { display: grid; margin: 22px 0 0; padding: 0; list-style: none; gap: 8px; color: var(--ink-soft); font-size: 14.5px; }
.cap-puntos li { display: flex; gap: 10px; }
.cap-puntos li::before { content: '✓'; flex: none; font-weight: 800; color: var(--lc-olive); }
.cap-demo { container-type: inline-size; }
.cap-demo .stage-wrap { box-shadow: 8px 8px 0 var(--lime); }
.cap-demo-nota { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; }
.cap-cursos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.cap-curso { display: grid; gap: 14px; border: 1px solid var(--ink); background: #fff; padding: 28px; }
.cap-curso .ic { width: 64px; height: 64px; }
.cap-curso h3 { margin: 0; font-size: 1.7rem; }
.cap-curso > p { margin: 0; color: var(--ink-soft); }
.cap-mod { display: grid; margin: 4px 0 0; padding: 0; list-style: none; gap: 0; counter-reset: m; }
.cap-mod li { display: flex; gap: 12px; border-top: 1px solid var(--line); padding: 9px 0; font-size: 14px; counter-increment: m; }
.cap-mod li::before { content: counter(m); flex: none; width: 1.6em; color: var(--lc-olive); font: 700 13px var(--display); }
.cap-mod small { display: block; color: var(--muted); font-size: 12.5px; }
.cap-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.cap-pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cap-pasos li { display: grid; gap: 8px; border-top: 2px solid var(--ink); padding-top: 14px; }
.cap-pasos b { font: 600 1.15rem var(--display); }
.cap-pasos span { color: var(--ink-soft); font-size: 14.5px; }
.cap-aviso { max-width: 780px; color: var(--muted); font-size: 12.5px; }

/* ───────── Panel del equipo (empresas) ───────── */
.adm-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 80px; }
.adm-form { display: grid; gap: 12px; border: 1px solid var(--ink); background: #fff; padding: 22px; }
.adm-form h2 { margin: 0; font-size: 1.4rem; }
.adm-form .checks { display: flex; flex-wrap: wrap; gap: 14px; }
.codigo { font: 700 14px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; background: var(--lime); padding: 3px 8px; }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .curso-layout { grid-template-columns: 1fr; }
  .temario { position: static; max-height: none; }
  .cap-hero, .adm-grid { grid-template-columns: 1fr; }
  .curso-top { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 720px) {
  .stage { aspect-ratio: auto; min-height: 460px; }
  .sc { justify-content: flex-start; padding: 18px 16px 22px; gap: 14px; --f: 15px; }
  .sc-concepto, .sc-cifra { flex-direction: column; align-items: flex-start; }
  .concepto-ic .ic, .portada-ic .ic, .cifra-ic .ic { width: 72px; }
  .pasos-fila, .tarjetas-grid, .comp-grid { grid-template-columns: 1fr; }
  .paso:not(:last-child)::after { display: none; }
  .comp-vs { display: none; }
  .linea-hitos { grid-template-columns: 1fr; margin: 0; }
  .linea-hitos::before { top: 0; bottom: 0; left: .5em; right: auto; width: 2px; height: auto; }
  .hito { grid-template-columns: 1.4em minmax(0, 1fr); gap: 2px 12px; }
  .hito i { grid-row: 1 / span 2; grid-column: 1; }
  .hito-cuando, .hito-t { grid-column: 2; }
  .ciclo-wrap { width: 100%; }
  .ciclo-nodo { width: 32%; }
  .ciclo-nodo b { font-size: 11px; }
  .jer-hijos { grid-template-columns: 1fr; padding-top: 0; }
  .jer-hijos::before, .jer-hijo::before { display: none; }
  .jer-linea { height: 12px; }
  .caso-grid { grid-template-columns: 1fr; }
  .caso-pj { grid-auto-flow: column; justify-content: start; align-items: end; }
  .caso-pj .pj { width: 64px; }
  .mx-wrap { width: 100%; }
  .mx-c { min-height: 70px; }
  .res-cab { flex-direction: column; align-items: flex-start; }
  .curso-card { padding: 20px; }
  .controles .ctl-info { order: 9; flex-basis: 100%; margin: 4px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .stage.esc-in > .sc { transition: none; animation: none; }
  .ciclo-aro { animation: none; }
}
@media print {
  .site-header, .site-footer, .cert-acciones, .cert-verif, .cap-aviso, .skip-link, #assistant-root, .assistant-fab { display: none !important; }
  html, body { background: #fff; }
  .shell.cert-page { width: 100%; max-width: none; margin: 0; padding: 0; }
  .cert-hojas { display: block; gap: 0; }
  .cert { width: 297mm; height: 210mm; aspect-ratio: auto; margin: 0; border: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .cert:last-child { break-after: auto; page-break-after: auto; }
  .cert, .cert * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 0; }
}

/* ───────── Banda de capacitaciones en la home ───────── */
.cap-band { background: var(--ink); color: var(--paper); padding-block: clamp(40px, 6vw, 72px); }
.cap-band-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cap-band .eyebrow { color: rgba(255,255,255, .7); }
.cap-band h2 { max-width: 16ch; margin-bottom: 16px; color: var(--paper); font-size: clamp(2rem, 4vw, 3.2rem); }
.cap-band-lead { max-width: 52ch; margin-bottom: 26px; color: rgba(255,255,255, .78); }
.cap-band-link { color: var(--paper); font-size: 13px; font-weight: 700; text-underline-offset: 5px; }
.cap-band-link:hover { color: var(--lime); }
.cap-band-tiles { display: grid; gap: 14px; }
.cap-tile { display: grid; gap: 4px; border: 1px solid rgba(255,255,255, .28); padding: 20px 22px; color: var(--paper); text-decoration: none; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.cap-tile:hover, .cap-tile:focus-visible { border-color: var(--lime); background: rgba(39,75,122, .08); transform: translateX(4px); }
.cap-tile small { color: var(--lime); font-size: 12px; font-weight: 700; }
.cap-tile b { font: 600 1.35rem/1.15 var(--display); }
.cap-tile span { color: rgba(255,255,255, .72); font-size: 14px; }
@media (max-width: 900px) { .cap-band-in { grid-template-columns: 1fr; } }

/* ───────── Ajustes de la landing ───────── */
.cap-curso { border-color: var(--line); border-radius: 22px; }
.feature-band .cap-pasos li { border-top-color: rgba(255,255,255, .5); }
.feature-band .cap-pasos span { color: rgba(255,255,255, .76); }
.canje-fila { display: flex; flex-wrap: wrap; gap: 10px; }
.canje-fila input { flex: 1 1 200px; min-height: 50px; border: 1px solid var(--ink); background: #fff; padding: 0 14px; font: 600 15px var(--body); letter-spacing: .06em; text-transform: uppercase; }


/* ───────── Evaluación final (modo formal: sin lima ni sombras, mismo papel y tinta) ───────── */
.ev-wrap { padding-block: 28px 90px; }
.ev { border: 1px solid var(--ink); background: #fff; }
.ev-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--ink); padding: 22px clamp(18px, 3vw, 36px) 18px; }
.ev-rotulo { margin: 0 0 6px; color: var(--lc-olive); font: 700 12px var(--body); letter-spacing: .08em; }
.ev-cab h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.ev-cand { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }
.ev-reloj { display: grid; min-width: 150px; gap: 2px; border: 1px solid var(--ink); padding: 8px 14px; text-align: center; }
.ev-reloj span { color: var(--muted); font-size: 11px; font-weight: 700; }
.ev-reloj strong { font: 600 1.7rem/1.1 var(--display); font-variant-numeric: tabular-nums; background: none; }
.ev-reloj.es-poco { border-color: var(--lc-red); background: #fbeeea; color: var(--lc-red); }
.ev-reloj.es-poco span { color: var(--lc-red); }
.ev-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ev-cond, .ev-pre { padding: clamp(20px, 3vw, 34px); }
.ev-cond { border-right: 1px solid var(--line); }
.ev-cond h3, .ev-pre h3, .ev-confirma h3, .ev-cert-form h3, .ev-espera h3 { margin: 0 0 16px; font-size: 1.25rem; }
.ev-cond dl { display: grid; margin: 0; }
.ev-cond dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; }
.ev-cond dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.ev-cond dd { margin: 0; }
.ev-pre ul { display: grid; margin: 0 0 20px; padding-left: 18px; gap: 10px; color: var(--ink-soft); }
.ev-hist { margin: 0 0 18px; border-left: 3px solid var(--lc-olive); padding: 4px 12px; font-size: 14px; font-weight: 600; }
.ev-nota { min-height: 1.4em; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.ev-nota.es-error { color: var(--lc-red); font-weight: 600; }
.ev-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.ev-preg { padding: clamp(20px, 3vw, 36px); }
.ev-num { margin: 0 0 12px; color: var(--lc-olive); font-size: 13px; font-weight: 700; }
.ev-q { max-width: 62ch; margin: 0 0 24px; font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.4 var(--display); }
.ev-ops { display: grid; gap: 10px; }
.ev-op { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 14px; border: 1px solid var(--ink); background: #fff; padding: 14px 16px; text-align: left; font: 500 16px/1.5 var(--body); cursor: pointer; transition: background-color .15s ease; }
.ev-op:hover { background: #f4f6ec; }
.ev-op:focus-visible, .ev-chip:focus-visible, .ev-marca:focus-visible { outline: 3px solid var(--lc-olive); outline-offset: 2px; }
.ev-letra { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--ink); font: 700 14px var(--display); }
.ev-op.es-sel { background: #eef4d8; box-shadow: inset 0 0 0 2px var(--ink); }
.ev-op.es-sel .ev-letra { background: var(--ink); color: #fff; }
.ev-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.ev-marca { border: 1px dashed var(--ink-soft); background: none; padding: 9px 14px; font: 600 14px var(--body); cursor: pointer; }
.ev-marca.on { border-style: solid; border-color: var(--lc-amber); background: #fff6dc; color: #6c4a00; }
.ev-pie button:disabled { opacity: .4; cursor: not-allowed; }
.ev-nav { border-left: 1px solid var(--line); background: #fafbf6; padding: 24px 22px; }
.ev-nav h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ev-prog { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.ev-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ev-grid-s { grid-template-columns: repeat(auto-fill, 38px); margin-top: 10px; }
.ev-chip { display: grid; min-height: 38px; place-items: center; border: 1px solid var(--line); background: #fff; font: 600 14px var(--display); cursor: pointer; }
.ev-chip.es-resp { border-color: var(--ink); background: var(--ink); color: #fff; }
.ev-chip.es-marca { border-color: var(--lc-amber); background: #fff6dc; color: #6c4a00; box-shadow: inset 0 -3px 0 var(--lc-amber); }
.ev-chip.es-resp.es-marca { background: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--lc-amber); }
.ev-chip.es-actual { outline: 2px solid var(--lc-olive); outline-offset: 2px; }
.ev-chip.es-ir { background: #fff; color: var(--ink); }
.ev-leyenda { display: grid; margin: 14px 0 18px; padding: 0; list-style: none; gap: 6px; color: var(--muted); font-size: 12px; }
.ev-leyenda li { display: flex; align-items: center; gap: 8px; }
.ev-leyenda i { width: 14px; height: 14px; border: 1px solid var(--line); background: #fff; }
.ev-leyenda i.es-resp { border-color: var(--ink); background: var(--ink); } .ev-leyenda i.es-marca { border-color: var(--lc-amber); background: #fff6dc; }
.ev-nav .button { width: 100%; justify-content: center; }
.ev-confirma, .ev-cert-form, .ev-espera { max-width: 720px; padding: clamp(22px, 3.5vw, 40px); }
.ev-aviso { margin: 16px 0; border: 1px solid var(--line); padding: 14px 16px; font-size: 14px; }
.ev-aviso.es-error { border-color: var(--lc-red); background: #fdf3f0; }
.ev-aviso p { margin: 10px 0 0; color: var(--ink-soft); }
.ev-cert-form form { display: grid; max-width: 460px; gap: 12px; }
.ev-res { display: grid; gap: 28px; padding: clamp(20px, 3vw, 36px); }
.ev-res-cab { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 28px; }
.ev-anillo { width: 150px; height: 150px; }
.ev-anillo .fondo { fill: none; stroke: var(--line); stroke-width: 12; }
.ev-anillo .valor { fill: none; stroke-width: 12; stroke-linecap: butt; }
.ev-anillo.es-ok .valor { stroke: var(--lc-green); } .ev-anillo.es-no .valor { stroke: var(--lc-red); }
.ev-anillo text { font: 400 34px 'Familjen Grotesk', sans-serif; fill: var(--ink); }
.ev-sello-res { display: inline-block; margin: 0 0 8px; border: 2px solid; padding: 3px 12px; font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-2deg); }
.ev-sello-res.ok { color: var(--lc-green); } .ev-sello-res.no { color: var(--lc-red); }
.ev-res-cab h3 { margin: 0 0 6px; font-size: 1.5rem; }
.ev-res-cab p { margin: 0; color: var(--ink-soft); }
.ev-metr { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px 0 0; border: 1px solid var(--line); }
.ev-metr div { border-right: 1px solid var(--line); padding: 12px 14px; } .ev-metr div:last-child { border-right: 0; }
.ev-metr dt { color: var(--muted); font-size: 12px; font-weight: 700; } .ev-metr dd { margin: 4px 0 0; font: 600 1.05rem var(--display); }
.ev-temas h4, .ev-rev h4 { margin: 0 0 12px; font-size: 1.1rem; }
.ev-temas ul { display: grid; margin: 0; padding: 0; list-style: none; }
.ev-temas li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 46px 76px; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 10px 0; font-size: 14px; }
.ev-barra { position: relative; height: 10px; background: var(--line); }
.ev-barra i { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--lc-olive); }
.ev-barra::after { position: absolute; top: -4px; bottom: -4px; left: var(--m); width: 2px; background: var(--ink); content: ''; }
.ev-tp { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.ev-tag { border: 1px solid; padding: 2px 8px; font-size: 12px; font-weight: 700; text-align: center; }
.ev-tag.ok { color: var(--lc-green); } .ev-tag.no { color: var(--lc-red); background: #fdf3f0; }
.ev-rev ol { display: grid; margin: 0; padding-left: 22px; gap: 18px; }
.ev-rev li { padding-left: 4px; }
.ev-rev li b { display: block; margin-bottom: 8px; line-height: 1.45; }
.ev-rev p { margin: 4px 0; font-size: 14px; }
.ev-rev i { display: inline-block; min-width: 130px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; }
.ev-rev .tuya { color: var(--lc-red); } .ev-rev .corr { color: var(--lc-green); font-weight: 600; }
.ev-rev .porq { margin-top: 8px; border-left: 3px solid var(--line); padding-left: 12px; color: var(--ink-soft); }
.ev-perfecto { margin: 0; font-weight: 700; color: var(--lc-green); }

/* ───────── Certificado formal ───────── */
.cert-verif { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; border: 1px solid; padding: 14px 18px; }
.cert-verif.es-vigente { border-color: var(--lc-green); background: #f0f7ea; } .cert-verif.es-vencido { border-color: var(--lc-amber); background: #fff7e0; }
.cert-verif-ic { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 50%; background: var(--lc-green); color: #fff; font-weight: 700; }
.es-vencido .cert-verif-ic { background: var(--lc-amber); }
.cert-verif b { display: block; } .cert-verif span:not(.cert-verif-ic) { color: var(--ink-soft); font-size: 14px; }
.cert-hojas { display: grid; gap: 28px; }
.cert { --c-tinta: #14170f; --c-oliva: #1d3a60; position: relative; width: min(100%, 1040px); aspect-ratio: 1.414; margin-inline: auto; container-type: inline-size; background: #ffffff; box-shadow: 0 1px 2px rgba(12,17,22, .18), 0 14px 34px rgba(12,17,22, .14); overflow: hidden; color: var(--c-tinta); }
.cert-roseton { position: absolute; top: 50%; left: 50%; width: 78cqw; transform: translate(-50%, -50%); fill: none; stroke: var(--c-oliva); stroke-width: .6; opacity: .1; pointer-events: none; }
.cert-marco { position: absolute; inset: 2.2cqw; border: .22cqw solid var(--c-tinta); padding: .5cqw; }
.cert-in { position: relative; display: flex; height: 100%; flex-direction: column; border: .1cqw solid var(--c-oliva); padding: 2.6cqw 4.4cqw 2.2cqw; }
.cert-cab { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 2cqw; }
.cert-marca { display: flex; align-items: center; gap: 1.2cqw; }
.cert-marca .brand-mark { width: 3.6cqw; font-size: 1.5cqw; }
.cert-marca b { display: block; font: 700 1.9cqw/1.1 var(--display); }
.cert-marca small { display: block; margin-top: .2cqw; color: #3a4550; font-size: 1.05cqw; }
.cert-folio { text-align: right; }
.cert-folio small { display: block; color: #3a4550; font-size: 1cqw; }
.cert-folio b { display: block; font: 600 1.7cqw/1.2 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.cert-folio b.nom { max-width: 32cqw; font-size: 1.5cqw; letter-spacing: 0; }
.cert-centro { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cert-titulo { margin: 0; font: 400 4.3cqw/1.1 'Familjen Grotesk', sans-serif; letter-spacing: .005em; }
.cert-orn { display: flex; align-items: center; gap: 1cqw; margin: 1cqw 0 1.5cqw; } .cert-orn i { width: 9cqw; height: .1cqw; background: var(--c-oliva); } .cert-orn b { width: .9cqw; height: .9cqw; background: var(--c-oliva); transform: rotate(45deg); }
.cert-texto { max-width: 66cqw; margin: 0; font-size: 1.55cqw; line-height: 1.55; color: #1e2832; }
.cert-nombre { min-width: 52cqw; margin: .9cqw 0 .7cqw; border-bottom: .12cqw solid var(--c-tinta); padding: 0 2cqw .5cqw; font: 400 5.4cqw/1.1 'Familjen Grotesk', sans-serif; }
.cert-curso { margin: 1cqw 0 0; font: 700 2.8cqw/1.2 var(--display); }
.cert-sub { margin: .5cqw 0 0; color: var(--c-oliva); font: 400 1.6cqw 'Familjen Grotesk', sans-serif; }
.cert-detalle { margin-top: 1.4cqw; font-size: 1.35cqw; }
.cert-pie { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 15cqw minmax(0, 1fr); align-items: end; gap: 2cqw; }
.cert-firma { text-align: center; }
.cert-linea { display: block; width: 24cqw; height: .1cqw; margin: 0 auto .6cqw; background: var(--c-tinta); }
.cert-firma b { display: block; font: 700 1.3cqw var(--display); } .cert-firma small { display: block; color: #3a4550; font-size: 1.05cqw; }
.cert-firma dl { display: flex; justify-content: center; gap: 2.4cqw; margin: 1.2cqw 0 0; } .cert-firma dt { color: #3a4550; font-size: .95cqw; } .cert-firma dd { margin: .1cqw 0 0; font: 600 1.15cqw var(--display); }
.cert-sello-w { display: grid; place-items: center; }
.cert-sello { width: 13.5cqw; height: 13.5cqw; }
.cert-sello .s-borde { fill: var(--c-tinta); } .cert-sello .s-aro { fill: none; stroke: #7fa2cc; stroke-width: .8; } .cert-sello .s-huella { fill: none; stroke: #ffffff; stroke-width: 1.4; stroke-linejoin: miter; } .cert-sello .s-vertice { fill: none; stroke: #7fa2cc; stroke-width: 5; stroke-linecap: square; }
.cert-ver { display: flex; align-items: center; justify-content: flex-end; gap: 1.2cqw; }
.cert-qr { width: 9.5cqw; height: 9.5cqw; flex: none; fill: var(--c-tinta); }
.cert-ver b { display: block; font: 700 1.2cqw var(--display); } .cert-ver small { display: block; margin-top: .3cqw; color: #3a4550; font-size: .95cqw; line-height: 1.4; }
.cert-anexo-cuerpo { position: relative; display: grid; flex: 1; align-content: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4cqw; margin-top: 2.2cqw; border-top: .1cqw solid var(--c-oliva); padding-top: 2cqw; }
.cert-anexo h2 { margin: 0 0 1.1cqw; font: 400 2.1cqw/1.2 'Familjen Grotesk', sans-serif; }
.cert-anexo h3 { margin: 1.6cqw 0 .7cqw; font: 700 1.2cqw var(--display); color: var(--c-oliva); }
.cert-mods { display: grid; margin: 0; padding: 0; list-style: none; gap: .9cqw; font-size: 1.12cqw; line-height: 1.4; }
.cert-mods > li > b { display: block; font: 700 1.15cqw var(--display); }
.cert-mods ul { margin: .2cqw 0 0; padding-left: 1.4cqw; color: #1e2832; }
.cert-datos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: .1cqw solid var(--c-tinta); }
.cert-datos div { border-right: .1cqw solid var(--line); border-bottom: .1cqw solid var(--line); padding: .8cqw 1cqw; }
.cert-datos dt { color: #3a4550; font-size: .95cqw; } .cert-datos dd { margin: .2cqw 0 0; font: 700 1.3cqw var(--display); }
.cert-temas, .cert-norma { display: grid; margin: 0; padding: 0; list-style: none; gap: .5cqw; font-size: 1.05cqw; line-height: 1.35; }
.cert-temas li { display: grid; grid-template-columns: minmax(0, 1fr) 11cqw 3.2cqw; align-items: center; gap: 1cqw; }
.cert-barra { position: relative; height: .7cqw; background: #dfe3d4; } .cert-barra::before { position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--c-oliva); content: ''; }
.cert-temas em { font-style: normal; font-weight: 700; text-align: right; }
.cert-norma { list-style: '— '; padding-left: 1.4cqw; font-size: .98cqw; color: #1e2832; gap: .35cqw; }
.cert-anexo-cuerpo { align-items: start; }
.cert-anexo-pie { position: relative; margin-top: 1.4cqw; border-top: .1cqw solid var(--c-oliva); padding-top: 1.1cqw; color: #3a4550; font-size: .95cqw; line-height: 1.5; }
.cert-anexo-pie p { margin: 0; } .cert-anexo-pie .u { color: var(--c-tinta); font-weight: 700; }
@media (max-width: 720px) {
  .ev-intro, .ev-cuerpo { grid-template-columns: 1fr; }
  .ev-cond { border-right: 0; border-bottom: 1px solid var(--line); }
  .ev-nav { border-top: 1px solid var(--line); border-left: 0; }
  .ev-cond dl div { grid-template-columns: 1fr; gap: 2px; }
  .ev-res-cab { grid-template-columns: 1fr; } .ev-metr { grid-template-columns: repeat(2, 1fr); }
  .ev-temas li { grid-template-columns: 1fr 40px 70px; } .ev-barra { grid-column: 1 / -1; order: 3; }
  .ev-pie { flex-direction: column; align-items: stretch; } .ev-pie .button, .ev-marca { width: 100%; justify-content: center; }
}

/* Botón secundario sobre fondos claros (el estilo base del sitio es para fondos oscuros) */
:is(.ev, .ev-nav, .temario, .ov-card, .aula-bloqueo, .curso-card, .equipo-panel, .tabla, .canje, .cert-acciones, .adm-form, .aula-cards, .sc) .button-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
:is(.ev, .ev-nav, .temario, .ov-card, .aula-bloqueo, .curso-card, .equipo-panel, .tabla, .canje, .cert-acciones, .adm-form, .aula-cards, .sc) .button-ghost:hover { background: var(--ink); color: #fff; }
.curso-layout[hidden], .ev-wrap[hidden] { display: none; }
@media (max-width: 720px) { .cert-hojas { overflow-x: auto; } .cert { min-width: 720px; } }

/* ═════ Escenas interactivas, fondos, personajes y guía animada ═════ */
.sc.con-fondo { position: relative; }
.sc-fondo { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sc-fondo svg { display: block; width: 100%; height: 100%; }
.sc.con-fondo > :not(.sc-fondo) { position: relative; z-index: 1; }
.sc-portada.con-fondo .sc-fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(252, 253, 248, .96) 0 34%, rgba(252, 253, 248, .66) 64%, rgba(252, 253, 248, .12)); }
.sc-caso.con-fondo .sc-fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(252, 253, 248, .82), rgba(252, 253, 248, .18) 55%, rgba(252, 253, 248, 0)); }

/* Caso: burbujas con entrada animada y personaje que habla */
.burbuja.rv { transform: translateY(10px) scale(.82); transform-origin: 0 100%; }
.burbuja-der.rv { transform-origin: 100% 100%; }
.burbuja.rv.on { transform: none; }
.burbuja { box-shadow: 3px 3px 0 var(--ink); }
.caso-pj .pj { transition: transform .3s ease; }
.caso-pj .pj.habla { animation: pjHabla .55s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes pjHabla { 50% { transform: translateY(-2.5%) rotate(-1deg); } }

/* Guía animada */
.guia { position: absolute; right: clamp(8px, 1.6cqw, 22px); bottom: 0; z-index: 3; width: clamp(54px, 8.4cqw, 104px); pointer-events: none; animation: guiaIn .6s .5s cubic-bezier(.2, .8, .2, 1) both; }
.guia .pj { display: block; width: 100%; height: auto; transform-origin: 50% 100%; animation: guiaFlota 4.2s ease-in-out infinite; }
.guia .pj.habla { animation: pjHabla .5s ease-in-out infinite; }
@keyframes guiaIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes guiaFlota { 50% { transform: translateY(-3%); } }
.stage.con-guia .sc { padding-right: calc(clamp(18px, 5cqw, 64px) + 7cqw); }

/* Base común de las escenas con pausa */
.sc-int { justify-content: flex-start; gap: 1.2cqw; padding-top: clamp(14px, 2.6cqw, 34px); padding-bottom: clamp(14px, 2.4cqw, 30px); }
.sc-int > .sc-head { flex: none; }
.int-cont { margin-top: .6em; align-self: flex-start; }
.int-link { align-self: flex-start; border: 0; border-bottom: 1.5px solid currentColor; background: none; padding: 0 0 1px; color: var(--ink); font: inherit; font-size: .78em; font-weight: 600; cursor: pointer; }
.int-link:hover { color: var(--lc-olive); }
.sc-int button:focus-visible { outline: 3px solid var(--lc-olive); outline-offset: 2px; }
.dc-fb .int-cont, .ht-acc .int-cont, .cl-fb .int-cont, .or-pie .int-cont { margin-top: .4em; }

/* Decide */
.dc-grid { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.4cqw; min-height: 0; }
.dc-escena { position: relative; display: flex; align-items: flex-end; min-height: 0; overflow: hidden; border: 1.5px solid var(--ink); background: #eef2f7; }
.dc-pjs { position: relative; z-index: 1; display: flex; width: 100%; height: 100%; align-items: flex-end; justify-content: space-around; gap: .4em; padding: 0 .4em; }
.dc-pj { display: grid; flex: 1 1 0; min-width: 0; justify-items: center; margin: 0; gap: .15em; align-self: flex-end; }
.dc-pj .pj { width: clamp(52px, 11cqw, 118px); height: auto; }
.dc-pj figcaption { margin-bottom: .3em; border: 1px solid var(--ink); background: #fff; padding: 0 .5em; font-size: .62em; font-weight: 700; line-height: 1.5; }
.dc-burbuja { position: relative; margin: 0 0 .6em; max-width: 100%; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff; padding: .35em .55em; font-size: .68em; line-height: 1.28; opacity: 0; transform: translateY(8px) scale(.8); transform-origin: 50% 100%; animation: dcPop .5s var(--d, .3s) cubic-bezier(.2, .8, .2, 1) forwards; }
.dc-burbuja::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); background: #fff; transform: translateX(-50%) rotate(45deg); }
@keyframes dcPop { to { opacity: 1; transform: none; } }
.dc-pj .pj.habla { animation: pjHabla .5s ease-in-out infinite; transform-origin: 50% 100%; }
.dc-pj.rx-ok .pj { animation: rxOk .7s ease both; }
.dc-pj.rx-mal .pj { animation: rxMal .6s ease both; }
@keyframes rxOk { 30% { transform: translateY(-9%); } 55% { transform: translateY(0); } 75% { transform: translateY(-4%); } }
@keyframes rxMal { 20%, 60% { transform: translateX(-4%); } 40%, 80% { transform: translateX(4%); } }
.dc-panel { display: flex; min-height: 0; flex-direction: column; gap: .7em; overflow: auto; }
.dc-sit { margin: 0; font-size: .92em; line-height: 1.3; }
.dc-sit b { display: block; color: var(--lc-olive); font-size: .68em; letter-spacing: .06em; text-transform: uppercase; }
.dc-ops { display: grid; gap: .5em; }
.dc-op { font-size: .85em; padding: .5em .75em; }
.dc-fb { display: grid; justify-items: start; gap: .35em; }
.dc-sello { display: inline-block; border: 2px solid currentColor; padding: .1em .55em; font: 800 .78em var(--display); letter-spacing: .06em; text-transform: uppercase; transform: rotate(-3deg); animation: selloIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.dc-sello.es-ok { color: var(--lc-green); } .dc-sello.es-mal { color: var(--lc-red); }
@keyframes selloIn { from { opacity: 0; transform: rotate(-3deg) scale(1.9); } to { opacity: 1; transform: rotate(-3deg) scale(1); } }
.dc-cons { margin: 0; font-size: .85em; line-height: 1.32; }
.dc-cons em { color: var(--muted); font-style: normal; font-weight: 600; }

/* Hotspots */
.ht-grid { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 2.2cqw; min-height: 0; }
.ht-mapa { position: relative; align-self: start; aspect-ratio: 16 / 9; width: 100%; border: 1.5px solid var(--ink); background: #eef2f7 repeating-linear-gradient(90deg, transparent 0 39px, rgba(12,17,22, .06) 39px 40px); }
.ht-pt { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 2px; width: max-content; max-width: 16ch; border: 0; background: none; padding: 0; color: var(--ink); font: inherit; cursor: pointer; transform: translate(-50%, -50%); }
.ht-pt.rv { transform: translate(-50%, -50%) scale(.6); } .ht-pt.rv.on { transform: translate(-50%, -50%); }
.ht-ic { position: relative; display: grid; width: clamp(34px, 5.6cqw, 56px); aspect-ratio: 1; place-items: center; overflow: hidden; border: 2px solid var(--ink); border-radius: 50%; background: #fff; transition: border-color .2s, background-color .2s, transform .2s; }
.ht-ic .ic, .ht-ic .pj { width: 72%; height: auto; }
.ht-ic .pj { width: 96%; margin-top: 14%; }
.ht-pt:not(.visto) .ht-ic { animation: htPulso 2.4s ease-in-out infinite; }
@keyframes htPulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(39,75,122, .0); } 50% { box-shadow: 0 0 0 6px rgba(39,75,122, .85); } }
.ht-pt:hover .ht-ic { transform: scale(1.1); }
.ht-eti { border: 1px solid var(--ink); background: #fff; padding: 0 .4em; font-size: .6em; font-weight: 700; line-height: 1.45; text-align: center; }
.ht-pt.es-alerta .ht-ic { border-color: var(--lc-red); background: #f8dcd6; }
.ht-pt.es-alerta .ht-eti { border-color: var(--lc-red); color: var(--lc-red); }
.ht-pt.es-normal .ht-ic { border-color: var(--lc-green); background: #e4eaf1; }
.ht-pt.es-actual .ht-ic { transform: scale(1.14); outline: 2px solid var(--ink); outline-offset: 3px; }
.ht-panel { display: flex; min-height: 0; flex-direction: column; gap: .6em; overflow: auto; }
.ht-cuenta { margin: 0; font-size: .9em; font-weight: 600; }
.ht-ayuda { margin: 0; color: var(--muted); font-size: .8em; }
.ht-card { display: grid; gap: .25em; border: 1.5px solid var(--ink); border-left-width: 6px; background: #fff; padding: .55em .75em; font-size: .8em; line-height: 1.32; animation: htIn .35s ease both; }
.ht-card p, .ht-card ul { margin: 0; }
.ht-card ul { display: grid; gap: .3em; padding-left: 1.1em; }
.ht-card.es-alerta { border-color: var(--lc-red); } .ht-card.es-normal { border-color: var(--lc-green); }
.ht-tag { justify-self: start; padding: 0 .5em; color: #fff; font-size: .78em; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ht-card.es-alerta .ht-tag { background: var(--lc-red); } .ht-card.es-normal .ht-tag { background: var(--lc-green); }
@keyframes htIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ht-acc { display: grid; justify-items: start; }

/* Clasificar */
.cl-wrap { display: grid; flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 2cqw; min-height: 0; overflow: auto; padding: 4px; }
.cl-pool { display: flex; align-content: flex-start; flex-direction: column; gap: .4em; }
.cl-card { border: 1.5px solid var(--ink); background: #fff; padding: .45em .7em; color: var(--ink); font: inherit; font-size: .8em; line-height: 1.28; text-align: left; cursor: grab; touch-action: manipulation; user-select: none; transition: background-color .15s, box-shadow .15s; }
.cl-card:hover { background: #e4eaf1; }
.cl-card.es-sel { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.cl-card.arrastra { position: relative; z-index: 20; cursor: grabbing; background: var(--lime); box-shadow: 5px 5px 0 var(--ink); transition: none; }
.cl-card.sacude { animation: clSacude .45s ease; border-color: var(--lc-red); }
@keyframes clSacude { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.cl-cats { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); align-content: start; gap: .6em; }
.cl-cat { display: flex; flex-direction: column; gap: .3em; min-height: 6em; border: 1.5px dashed var(--ink); background: rgba(255, 255, 255, .7); padding: .4em; cursor: pointer; transition: background-color .15s, border-color .15s; }
.cl-cat:hover { background: #e4eaf1; border-style: solid; }
.cl-cat-b { display: flex; align-items: center; gap: .45em; border: 0; background: none; padding: 0; color: var(--ink); font: inherit; font-size: .8em; text-align: left; cursor: pointer; }
.cl-cat-b .ic { flex: none; width: 1.7em; height: auto; }
.cl-dentro { display: grid; gap: .25em; margin: 0; padding: 0; list-style: none; }
.cl-dentro li { display: flex; gap: .4em; align-items: flex-start; border-left: 4px solid var(--lc-green); background: #e4eaf1; padding: .25em .5em; font-size: .72em; line-height: 1.25; }
.cl-dentro li i { flex: none; color: var(--lc-green); font-style: normal; font-weight: 800; }
.cl-dentro li.pop { animation: htIn .35s ease both; }
.cl-pie { display: flex; flex: none; align-items: center; flex-wrap: wrap; gap: .4em 1em; }
.cl-prog { margin: 0; color: var(--lc-olive); font-size: .72em; font-weight: 700; }
.cl-fb { display: flex; align-items: center; flex-wrap: wrap; gap: .6em; font-size: .78em; }
.cl-fb p { margin: 0; } .cl-fb .int-cont { margin: 0; }
.cl-ayuda { color: var(--muted); font-weight: 600; }
.fb-ok b { color: var(--lc-green); } .fb-mal b { color: var(--lc-red); }

/* Ordenar */
.or-wrap { display: flex; flex: 1 1 auto; flex-direction: column; gap: .4em; min-height: 0; overflow: auto; padding: 4px; }
.or-ayuda { margin: 0; color: var(--muted); font-size: .72em; font-weight: 600; }
.or-lista { display: grid; gap: .35em; margin: 0; padding: 0; list-style: none; }
.or-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7em; border: 1.5px solid var(--ink); background: #fff; padding: .35em .5em .35em .4em; font-size: .8em; line-height: 1.28; }
.or-n { display: grid; width: 1.8em; height: 1.8em; place-items: center; background: var(--ink); color: var(--lime); font: 700 .8em var(--display); }
.or-btns { display: flex; gap: .25em; }
.or-b { display: grid; width: 2em; height: 2em; place-items: center; border: 1.5px solid var(--ink); background: #fff; padding: 0; color: var(--ink); cursor: pointer; }
.or-b svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.or-b:hover:not(:disabled) { background: var(--lime); }
.or-b:disabled { opacity: .3; cursor: default; }
.or-it.es-ok { border-color: var(--lc-green); background: #e4eaf1; }
.or-it.es-ok .or-n { background: var(--lc-green); color: #fff; }
.or-it.es-mal { border-color: var(--lc-red); background: #f8dcd6; }
.or-it.es-mal .or-n { background: var(--lc-red); color: #fff; }
.or-pie { display: flex; flex: none; align-items: center; flex-wrap: wrap; gap: .5em 1em; }
.or-chk { font-size: .8em; padding: .5em 1em; }
.or-fb { margin: 0; font-size: .78em; }

@media (max-width: 720px) {
  .guia { display: none; }
  .stage.con-guia .sc { padding-right: 16px; }
  .sc-int { gap: 12px; padding: 16px 14px 20px; }
  .dc-grid, .ht-grid, .cl-wrap { grid-template-columns: 1fr; gap: 12px; }
  .dc-escena { min-height: 230px; }
  .dc-pj .pj { width: clamp(60px, 22vw, 96px); }
  .dc-burbuja { font-size: 11.5px; }
  .dc-pj figcaption { font-size: 10.5px; }
  .ht-mapa { aspect-ratio: 4 / 3; }
  .ht-ic { width: 40px; }
  .ht-eti { font-size: 10px; }
  .cl-cats { grid-template-columns: 1fr 1fr; }
  .cl-wrap { overflow: visible; }
  .cl-card, .dc-op, .or-it { font-size: 14px; }
  .or-b { width: 40px; height: 40px; }
  .sc-caso.con-fondo .sc-fondo::after { background: rgba(252, 253, 248, .78); }
}
@media (prefers-reduced-motion: reduce) {
  .guia, .guia .pj, .caso-pj .pj.habla, .dc-pj .pj, .dc-burbuja, .dc-sello, .ht-ic, .ht-card, .cl-card.sacude, .cl-dentro li.pop { animation: none !important; }
  .dc-burbuja { opacity: 1; transform: none; }
  .burbuja.rv, .ht-pt.rv { transition: none; }
}
.cl-card.arrastra { width: max-content; max-width: 16em; }
.or-chk[hidden] { display: none; }
.cl-wrap, .or-wrap { flex: 0 1 auto; }
@media (max-width: 720px) { .sc.con-fondo { min-height: 460px; } }

/* ───────── Player v2: fotos, juegos, HUD, bloqueos ───────── */
.sc-fondo-foto img, .foto-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sc-fondo-foto img { animation: fotoZoom 22s ease-out both; transform-origin: 60% 50%; }
.sc-portada.con-fondo .sc-fondo-foto::after { background: linear-gradient(90deg, rgba(12,17,22, .86) 0 38%, rgba(12,17,22, .5) 70%, rgba(12,17,22, .22)); }
.sc-portada.con-fondo:has(.sc-fondo-foto) :is(.kicker, h2, h1, p, .portada-meta) { color: #fff; }
.sc-portada.con-fondo:has(.sc-fondo-foto) .kicker { color: var(--lime); }
.sc-caso.con-fondo .sc-fondo-foto::after { background: linear-gradient(180deg, rgba(252, 253, 248, .9), rgba(252, 253, 248, .45) 60%, rgba(252, 253, 248, .2)); }
@keyframes fotoZoom { from { transform: scale(1); } to { transform: scale(1.12); } }

.sc-foto { position: relative; justify-content: flex-end; padding: 0; overflow: hidden; background: var(--ink); }
.sc-foto .foto-img { position: absolute; inset: 0; animation: fotoZoom 18s ease-out both; transform-origin: 40% 55%; }
.foto-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(8, 12, 4, .78)); }
.foto-tercio { position: relative; z-index: 1; display: grid; gap: .3em; margin: 0 0 clamp(14px, 3cqw, 36px); padding: .7em clamp(18px, 5cqw, 64px) .8em; border-left: .4em solid var(--lime); background: rgba(12,17,22, .86); color: #fff; max-width: 78%; }
.foto-t { margin: 0; font: 600 1.45em/1.15 var(--display); }
.foto-pie { margin: 0; font-size: .92em; color: #dfe6cf; }
.sc.con-foto { display: grid; grid-template-columns: 30cqw 1fr; grid-template-rows: auto; align-content: center; align-items: center; column-gap: 3cqw; }
.sc.con-foto > .sc-foto-lat { grid-row: 1 / span 6; grid-column: 1; align-self: stretch; margin: 0; border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--lime); overflow: hidden; min-height: 40cqw; }
.sc.con-foto > :not(.sc-foto-lat) { grid-column: 2; }
.sc-foto-lat img { display: block; width: 100%; height: 100%; object-fit: cover; animation: fotoZoom 20s ease-out both; }

.chip-rev { margin-left: .6em; border: 1.5px solid var(--ink); background: #fff; padding: .15em .7em; font: 600 .78em var(--body, inherit); cursor: pointer; }
.chip-rev[aria-pressed="true"] { background: var(--lime); }
.hud { position: relative; display: inline-flex; align-items: center; gap: .4em; margin-left: .8em; border: 1.5px solid var(--ink); background: #fff; padding: .15em .7em; font-size: .85em; }
.hud svg { width: 1.1em; height: 1.1em; fill: var(--lime-deep); stroke: var(--ink); stroke-width: 1.5; }
.hud b { font-family: var(--display); }
.hud.sube { animation: hudPulso .6s ease; }
.hud-plus { position: absolute; top: -.2em; right: .2em; color: var(--lc-olive); font: 700 1em var(--display); animation: hudSube 1.1s ease forwards; pointer-events: none; }
@keyframes hudPulso { 40% { transform: scale(1.18); background: var(--lime); } }
@keyframes hudSube { to { transform: translateY(-1.6em); opacity: 0; } }
.tem-lec.is-bloqueada { opacity: .5; cursor: not-allowed; }
.segs i.actual { background: linear-gradient(90deg, var(--lime-deep) calc(var(--p, 0) * 100%), var(--line) 0); }
.segs i.ir { cursor: pointer; }
.ov-pts { font-size: 1.05em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* chat */
.ch-grid, .dk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 2.4cqw; align-items: start; min-height: 0; }
.ch-app { display: flex; flex-direction: column; height: 33cqw; min-height: 18em; max-width: 30em; border: 2px solid var(--ink); border-radius: 1.2em; background: #eef1e4; overflow: hidden; box-shadow: 6px 6px 0 var(--lime); }
.ch-cab { display: flex; align-items: center; gap: .7em; padding: .6em .9em; background: var(--ink); color: #fff; }
.ch-cab small { display: block; color: #c9d7e8; font-size: .75em; }
.ch-av { display: grid; width: 2.2em; height: 2.2em; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font: 700 .95em var(--display); }
.ch-msgs { display: flex; flex: 1; flex-direction: column; gap: .5em; padding: .8em; overflow-y: auto; scroll-behavior: smooth; }
.ch-b { position: relative; max-width: 82%; margin: 0; padding: .45em .7em 1em; border-radius: .9em; font-size: .88em; line-height: 1.3; animation: chIn .25s ease both; }
.ch-b small { position: absolute; right: .6em; bottom: .15em; font-size: .68em; color: var(--ink-soft); }
.ch-otro { align-self: flex-start; background: #fff; border-top-left-radius: .2em; }
.ch-tu { align-self: flex-end; background: #c9d7e8; border-top-right-radius: .2em; }
.ch-tu.es-mal { background: #f8dcd6; }
.ch-tu.es-ok { background: #c9d7e8; }
.ch-typing { display: flex; gap: .25em; padding: .6em .8em; }
.ch-typing i { width: .5em; height: .5em; border-radius: 50%; background: var(--ink-soft); animation: chPunto 1s infinite; }
.ch-typing i:nth-child(2) { animation-delay: .15s; } .ch-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chPunto { 40% { transform: translateY(-.3em); opacity: .4; } }
@keyframes chIn { from { opacity: 0; transform: translateY(6px); } }
.ch-entrada { display: flex; align-items: center; gap: .5em; margin: .5em; padding: .45em .8em; border-radius: 2em; background: #fff; color: var(--ink-soft); font-size: .8em; }
.ch-entrada i { margin-left: auto; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--lime-deep); }
.ch-correo { border-radius: .3em; max-width: 36em; background: #fff; }
.ch-barra-top { display: flex; align-items: center; gap: .3em; padding: .4em .7em; background: #dfe3d2; font-size: .75em; }
.ch-barra-top i { width: .6em; height: .6em; border-radius: 50%; background: var(--ink-soft); }
.ch-barra-top span { margin-left: .6em; }
.ch-correo .ch-cab { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: .1em; }
.ch-correo .ch-cab small { color: var(--ink-soft); }
.ch-mail { margin: 0; padding: .6em .8em; border: 1px solid var(--line); background: #fbfcf6; animation: chIn .25s ease both; }
.ch-mail header { display: flex; justify-content: space-between; font-size: .8em; font-weight: 700; }
.ch-mail p { margin: .3em 0 0; font-size: .9em; }
.ch-mail.ch-tu { border-color: var(--lime-deep); background: #eff8d4; }
.ch-panel, .dk-panel { display: grid; gap: .8em; align-content: start; }
.ch-ayuda { margin: 0; color: var(--ink-soft); font-size: .9em; }
.ch-ops { display: grid; gap: .6em; }
.ch-ops.ch-in { animation: chIn .35s ease both; }
.ch-op { text-align: left; }

/* documento */
.dk-papel { max-width: 36em; padding: 1em 1.2em; border: 1px solid #c9ccbd; background: #fffef8; box-shadow: 5px 6px 0 rgba(0, 0, 0, .12); transform: rotate(-.4deg); }
.dk-enc { display: flex; align-items: center; gap: .7em; padding-bottom: .6em; border-bottom: 2px solid var(--ink); }
.dk-enc b { display: block; font-family: var(--display); }
.dk-enc small { color: var(--ink-soft); font-size: .78em; }
.dk-logo { display: grid; width: 2.2em; height: 2.2em; place-items: center; background: var(--ink); color: var(--lime); font: 700 .9em var(--display); }
.dk-sello { margin-left: auto; padding: .1em .6em; border: 2px solid var(--lc-red); color: var(--lc-red); font: 700 .75em var(--display); text-transform: uppercase; transform: rotate(6deg); }
.dk-lineas { display: grid; gap: .25em; margin: .7em 0; padding: 0; list-style: none; }
.dk-l { display: flex; align-items: center; gap: .6em; width: 100%; padding: .4em .5em; border: 1.5px dashed transparent; background: transparent; color: var(--ink); font: inherit; font-size: .88em; text-align: left; cursor: pointer; }
.dk-l:hover { background: #e4eaf1; border-color: var(--lime-deep); }
.dk-l.es-actual { outline: 2px solid var(--ink); }
.dk-n { flex: none; color: var(--ink-soft); font-size: .8em; }
.dk-t { flex: 1; }
.dk-m { flex: none; width: 1.3em; text-align: center; font-weight: 700; }
.dk-l.es-alerta { border-color: var(--lc-red); background: #f8dcd6; }
.dk-l.es-alerta .dk-m::before { content: '⚠'; color: var(--lc-red); }
.dk-l.es-normal { background: #eef4de; }
.dk-l.es-normal .dk-m::before { content: '✓'; color: var(--lc-green); }
.dk-pie { display: flex; align-items: flex-end; gap: .6em; padding-top: .5em; color: var(--ink-soft); }
.dk-pie span { flex: 0 0 8em; border-bottom: 1px solid var(--ink); height: 1.4em; }
.dk-pie small { font-size: .7em; }
.dk-cuenta { margin: 0; font-size: .95em; }
.dk-nota .ht-card ul { margin: .4em 0 0; padding-left: 1.1em; }
.dk-acc { display: flex; gap: .6em; flex-wrap: wrap; }

/* relámpago */
.rl-wrap { display: grid; gap: .8em; width: 100%; max-width: 40em; margin: 0 auto; }
.rl-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.rl-vidas { display: flex; gap: .2em; font-size: 1.4em; }
.rl-vidas span { color: #cfd3c0; }
.rl-vidas span.on { color: var(--lc-red); }
.rl-pts { font-size: 1.05em; }
.rl-pts b { font-family: var(--display); font-size: 1.3em; }
.rl-combo { min-width: 6em; color: var(--lc-olive); font: 700 .95em var(--display); text-align: right; }
.rl-inst { margin: 0; color: var(--ink-soft); font-size: .92em; }
.rl-juego { display: grid; gap: .7em; }
.rl-tarjeta { position: relative; display: grid; align-content: center; gap: .4em; min-height: 9em; padding: 1em 1.3em; border: 2px solid var(--ink); background: #fff; box-shadow: 6px 6px 0 var(--lime); }
.rl-tarjeta small { color: var(--ink-soft); }
.rl-tarjeta p { margin: 0; font: 600 1.2em/1.25 var(--display); }
.rl-tarjeta.rl-in { animation: rlIn .25s ease both; }
.rl-tarjeta.rl-ok { background: #e4eaf1; border-color: var(--lc-green); }
.rl-tarjeta.rl-mal { background: #f8dcd6; border-color: var(--lc-red); animation: sacude .35s; }
@keyframes rlIn { from { transform: translateX(30px) rotate(2deg); opacity: 0; } }
.rl-porque { display: grid; gap: .4em; font-size: .85em; }
.rl-porque .rl-sig { justify-self: start; }
.rl-barra { height: .5em; background: var(--line); overflow: hidden; }
.rl-barra i { display: block; height: 100%; background: var(--lime-deep); transform-origin: left; }
.rl-barra i.es-poco { background: var(--lc-red); }
.rl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.rl-b { display: flex; align-items: center; justify-content: center; gap: .5em; padding: .8em; border: 2px solid var(--ink); color: var(--ink); font: 700 1em var(--display); cursor: pointer; }
.rl-ok { background: #c9d7e8; } .rl-mal { background: #f4c6bd; }
.rl-b:hover { transform: translateY(-2px); }
.rl-tecla { margin: 0; color: var(--ink-soft); font-size: .75em; text-align: center; }
.rl-fin { display: grid; gap: .5em; justify-items: center; padding: 1em; border: 2px solid var(--ink); background: #fff; text-align: center; }
.rl-fin p { margin: 0; }
.rl-estrellas { font-size: 2.6em; letter-spacing: .1em; }
.rl-estrellas span { color: #cfd3c0; } .rl-estrellas span.on { color: #e0a800; animation: hudPulso .6s ease; }
.rl-btns[hidden], .rl-fin[hidden], .rl-juego[hidden], .ch-ops[hidden] { display: none; }

/* parejas */
.pa-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; width: 100%; max-width: 54em; margin: 0 auto; }
.pa-col { display: grid; gap: .6em; align-content: start; }
.pa-c { padding: .65em .9em; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: .92em; line-height: 1.3; text-align: left; cursor: pointer; }
.pa-c:hover:not(:disabled) { background: #e4eaf1; }
.pa-c.es-sel { background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }
.pa-c.es-ok { cursor: default; border-color: var(--lc-green); }
.pa-c.c0 { background: #c9d7e8; } .pa-c.c1 { background: #cfe7f5; } .pa-c.c2 { background: #f6e1b0; }
.pa-c.c3 { background: #f2cfe0; } .pa-c.c4 { background: #d9d2f1; } .pa-c.c5 { background: #cdeadb; }
.pa-c.sacude { animation: sacude .35s; border-color: var(--lc-red); }
@keyframes sacude { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.pa-pie { display: flex; align-items: center; gap: 1.2em; flex-wrap: wrap; justify-content: center; }
.pa-cuenta { font-size: .9em; color: var(--ink-soft); }

@media (max-width: 720px) {
  .sc.con-foto { display: flex; }
  .sc.con-foto > .sc-foto-lat { order: -1; align-self: stretch; min-height: 0; height: 34vw; max-height: 180px; box-shadow: 4px 4px 0 var(--lime); }
  .ch-grid, .dk-grid, .pa-wrap { grid-template-columns: 1fr; gap: 12px; }
  .ch-app { height: 300px; max-width: none; }
  .foto-tercio { max-width: 100%; margin-bottom: 0; }
  .hud { margin-left: 0; }
  .rl-tarjeta { min-height: 8em; }
  .pa-wrap { gap: 10px; }
  .sc-foto { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-fondo-foto img, .sc-foto .foto-img, .sc-foto-lat img, .ch-b, .ch-mail, .ch-typing i, .rl-tarjeta, .rl-estrellas span, .hud.sube, .hud-plus, .pa-c.sacude { animation: none !important; }
}

/* Guía grande en la portada */
.guia.guia-grande { width: clamp(150px, 24cqw, 300px); right: clamp(10px, 3cqw, 48px); z-index: 3; animation: guiaIn .7s .3s cubic-bezier(.2, .8, .2, 1) both; }
.guia-grande .pj { animation: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.guia-burbuja { position: absolute; right: 80%; top: 6%; width: max-content; max-width: 15em; background: #fff; color: #0c1116; border: 2px solid #0c1116; border-radius: 16px 16px 4px 16px; padding: .55em .8em; font-size: clamp(11px, 1.45cqw, 17px); line-height: 1.3; box-shadow: 3px 3px 0 #274b7a; }
@media (max-width: 720px) {
  .guia.guia-grande { display: block; width: 36%; right: 2%; opacity: .95; }
  .guia-burbuja { display: none; }
}

/* Oficial de cumplimiento (personaje de imagen) */
.pj.pj-foto { display: block; filter: none; line-height: 0; }
.pj.pj-foto img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28)); }
.pj.pj-foto.pj-cuerpo { width: auto; max-width: 100%; }
.ht-ic .pj.pj-foto { width: 96%; margin-top: 8%; }
.pj.pj-foto:not(.pj-cuerpo) img { -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
.caso-pj .pj.pj-foto { width: clamp(96px, 19cqw, 200px); }
.dc-pj .pj.pj-foto { width: clamp(72px, 15cqw, 150px); }
@media (max-width: 640px) { .caso-pj .pj.pj-foto { width: 88px; } .dc-pj .pj.pj-foto { width: clamp(70px, 24vw, 104px); } }
.guia.guia-grande:has(.pj-foto) { width: clamp(100px, 17cqw, 220px); }
.guia-grande .pj.pj-foto img { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .4)); }
@media (max-width: 640px) { .guia.guia-grande:has(.pj-foto) { width: 26%; } }

/* Escena de video (YouTube no listado) */
.sc-video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; padding: 12px clamp(12px, 4cqw, 40px); }
.sc-video .sc-h { margin: 0; text-align: center; }
.video-caja { width: min(100%, calc((100cqh - 120px) * 16 / 9), 960px); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.video-caja iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-pie { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.video-estado { margin: 0; font-size: .95rem; opacity: .85; }

/* Editor de cursos y membresía: ajustes de legibilidad */
.ed .button-ghost, #membresia .button-ghost, #adm-root .actions .button-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.ed .adm-form { margin: 0; min-width: 0; }
.ed-lec { display: grid; gap: 12px; padding: 16px 0 4px; border-top: 1px solid rgba(0, 0, 0, .15); }
.ed-lec h3, .ed-lec h4 { margin: 0; }
.ed-preg { display: grid; gap: 8px; padding: 12px; border: 1px dashed rgba(0, 0, 0, .25); border-radius: 10px; }
.ed-op { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; }
.ed-ok { display: flex; align-items: center; gap: 6px; font-size: .85rem; cursor: pointer; }
.ed-ok input { width: 18px; height: 18px; margin: 0; flex: none; }
.ed-op input:not([type="radio"]) { width: 100%; padding: 11px 14px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 10px; background: #f8f9fb; font: inherit; color: var(--ink); }
.ed select { width: 100%; padding: 11px 14px; border-radius: 10px; font: inherit; }
#f-pago .check { display: flex; align-items: flex-start; gap: 10px; }
#f-pago .check input[type="radio"] { flex: none; width: 18px; height: 18px; min-height: 0; margin-top: 3px; padding: 0; }
