/* Aspecto «Abuelito Citizenship» (features.look = "civic" → <html data-look="civic">). Cómo se arma: COMO-SE-HACE-UN-ASPECTO.md;
   el sistema completo (paleta con contraste medido, botones, íconos, sesiones, quién se ve cuando alguien habla):
   ~/Desktop/ciudadania/SISTEMA-DE-DISENO.md. Dos capas, en este orden:
     1. Tokens: los mismos nombres de css/tokens.css con otros valores, en claro y en oscuro (todas las pantallas los toman).
     2. Forma: botones planos y redondos, tarjetas sólidas con sombra suave, barra de vidrio y menú flotante, y «El camino al juramento».
   Claro: blanco papel. Oscuro: gris carbón neutro (el de Fichas, sin azul). La acción: azul bandera (claro: el marino; oscuro: uno
   más vivo, siempre con letra blanca); el dorado es el «toque» de la marca (barras, el sello de ahora, estrellas), nunca un botón;
   el rojo, solo acento o «borrar». Nada de sellos ni logos del gobierno. */

/* ============ 1. tokens ============ */
:root[data-look="civic"] {
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Nunito", ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;

  /* marca: el azul marino de la acción, el dorado del toque y el rojo de acento */
  --sun: #f5b82e; --sun-d: #d99a12; --sun-soft: #fdf3d8;
  --yellow: var(--sun); --yellow-d: var(--sun-d);
  --teal: #1d3f94; --teal-d: #142f72;
  --green: #17b26a; --green-d: #079455; --red: #d0334a; --red-d: #b0243a; --blue: #2e6fdb; --blue-d: #1d55b5;
  --purple: #7a5af8; --orange: #f79009;
  --on-brand: #0f1b33;
  /* la acción (botón principal, UNO por pantalla): azul bandera con letra blanca. --link = el azul de los textos que se tocan */
  --cta: #1d3f94; --on-cta: #ffffff; --link: #1d3f94;
  /* botón secundario (gris suave con letra de tinta) y el destructivo («Borrar», «Salir sin guardar») */
  --sec: #e9edf4; --on-sec: #0f1b33; --danger: #c2334a; --on-danger: #ffffff;
  /* la cinta del camino: azul marino con su franja roja y blanca */
  --flag-navy: #13306f; --flag-red: #c8283f; --flag-white: #ffffff;
  /* el azul hondo de las tarjetas oscuras (Manos libres): igual en claro y en oscuro */
  --brand-deep: #13306f;

  /* superficies */
  --ink: #0f1b33; --ink-2: #35435f; --muted: #5b6478;
  --bg: #faf9f5; --card: #ffffff; --soft: #f1f3f7; --soft-2: #e7ebf2; --line: #e1e5ed;
  --okbg: #ecfdf3; --kobg: #fef3f2; --ok-text: #067647; --ko-text: #b42318;
  /* «casi» (el mapa de temas): ámbar con significado, aparte del dorado de la marca */
  --warn: #f79009; --warnbg: #fffaeb; --warn-text: #b54708;
  --overlay: rgba(15, 27, 51, .44);
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, .05), 0 1px 1px rgba(15, 27, 51, .03);
  --shadow: 0 1px 2px rgba(15, 27, 51, .04), 0 10px 28px rgba(15, 27, 51, .08);
  --shadow-lg: 0 2px 6px rgba(15, 27, 51, .06), 0 24px 56px rgba(15, 27, 51, .14);
  --glass: rgba(250, 249, 245, .9); --glass-solid: #faf9f5;
  --focus: #2e6fdb;
  --ico-blue: #1d55b5; --ico-red: #b0243a; --ico-ink: var(--ink);
  /* «Mi juramento de estudio»: el papel de la promesa y la tinta del sello (en el pasaporte, el papel siempre es claro) */
  --vow-paper: #fbf6e9; --vow-ink: #b4233a;
  --pp-paper: #fbf6e9; --pp-ink: #b4233a; --pp-text: #2b2b33; --pp-muted: #5f596b; --pp-rule: #17151f; --pp-ok: #067647;

  /* forma */
  --r: 22px; --r-md: 16px; --r-sm: 12px; --r-xl: 28px;
  color-scheme: light;
}
:root[data-look="civic"][data-theme="dark"] {
  /* gris carbón neutro (como la arena de Fichas, sin el azul noche de antes): fondo, tarjeta y los grises de en medio */
  --sun: #ffc94a; --sun-d: #ffb81f; --sun-soft: #2e2715;
  --teal: #3366e0; --teal-d: #2a56c4;
  --cta: #3366e0; --on-cta: #ffffff; --link: #6aa5ff;
  --sec: #2c2c31; --on-sec: #f2f2f4; --danger: #d0334a; --on-danger: #ffffff;
  --green: #32d583; --green-d: #17b26a; --red: #f2687a; --red-d: #e04c60;
  --flag-navy: #2a4a94; --flag-red: #e3566b; --flag-white: #ececf0;
  --brand-deep: #23232a;
  --ink: #f2f2f4; --ink-2: #c9c9d1; --muted: #a2a2ac;
  --bg: #161618; --card: #1f1f22; --soft: #27272b; --soft-2: #303035; --line: #38383e;
  --okbg: #0f2a1c; --kobg: #2e1416; --ok-text: #47cd89; --ko-text: #fda29b;
  --warn: #fdb022; --warnbg: #2e2410; --warn-text: #fec84b;
  --overlay: rgba(0, 0, 0, .66);
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, .04);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 12px 32px rgba(0, 0, 0, .55);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .06), 0 24px 64px rgba(0, 0, 0, .7);
  --glass: rgba(22, 22, 24, .9); --glass-solid: #161618;
  --focus: #6aa5ff;
  --ico-blue: #6aa5ff; --ico-red: #ff8b97;
  --vow-paper: #24221d; --vow-ink: #ff8b97;
  color-scheme: dark;
}

/* ============ 2. forma ============ */
[data-look="civic"] body { -webkit-font-smoothing: antialiased; }
[data-look="civic"] h1, [data-look="civic"] h2, [data-look="civic"] h3 { font-family: var(--font-display); font-weight: 900; letter-spacing: -.015em; }
@media (min-width: 560px) { [data-look="civic"] body { background: var(--soft); } [data-look="civic"] #app { box-shadow: 0 0 0 1px var(--line), var(--shadow); } }
[data-look="civic"] .screen { animation: civic-in .36s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes civic-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { [data-look="civic"] .screen { animation: none; } }

/* --- botones: UN sistema (SISTEMA-DE-DISENO.md §4). Planos y redondos, de 54 px (40 px los chicos):
     principal   .btn (y los nombres viejos .yellow .blue .green .gold .teal): azul bandera, letra blanca. Uno por pantalla.
     secundario  .btn.ghost / .btn.dark / .btn.sec: gris suave, letra de tinta.
     terciario   .btn.text / .link-btn: solo texto en --link.
     destructivo .btn.red (relleno, solo para confirmar algo que no se deshace) y .btn.danger-text (texto rojo).
   Nada de amarillo, verde ni morado sueltos: el verde y el rojo solo dicen «bien» / «mal» (respuestas). Los íconos de adentro, del
   color de la letra del botón (nunca un ícono rojo sobre azul). --- */
[data-look="civic"] .btn { --c: var(--cta); --t: var(--on-cta); border-radius: 999px; padding: 16px 22px; min-height: 54px; box-shadow: none; border: 0;
  font-family: var(--font-display); font-weight: 900; font-size: calc(17px * var(--ts)); letter-spacing: 0; text-transform: none;
  transition: transform .15s cubic-bezier(.2, .8, .2, 1), filter .2s, background .2s; }
[data-look="civic"] .btn:hover { filter: brightness(1.06); }
[data-look="civic"] .btn:active { transform: scale(.975); box-shadow: none; filter: brightness(.94); }
[data-look="civic"] .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[data-look="civic"] .btn.blue, [data-look="civic"] .btn.yellow, [data-look="civic"] .btn.gold, [data-look="civic"] .btn.green, [data-look="civic"] .btn.teal,
[data-look="civic"] .btn.btn-teal { --c: var(--cta); --t: var(--on-cta); }
[data-look="civic"] .btn.ghost, [data-look="civic"] .btn.dark, [data-look="civic"] .btn.sec { --c: var(--sec); --t: var(--on-sec); border: 0; }
[data-look="civic"] .btn.text { --c: transparent; --t: var(--link); min-height: 44px; padding: 10px 12px; }
[data-look="civic"] .btn.red { --c: var(--danger); --t: var(--on-danger); }
[data-look="civic"] .btn[disabled] { --c: var(--soft); --t: var(--muted); }
[data-look="civic"] .btn.small { min-height: 40px; padding: 10px 16px; font-size: calc(14px * var(--ts)); }
[data-look="civic"] .btn.danger-text { --c: transparent; --t: var(--ko-text); }
[data-look="civic"] .link-btn, [data-look="civic"] .link-inline, [data-look="civic"] a:not(.btn), [data-look="civic"] .text-teal { color: var(--link); }
/* íconos dentro de botones y chips: monocromos, del color de su letra (ui/icons.js les da un tono cuando van solos) */
[data-look="civic"] :is(.btn, .chip, .fchip, .sq-play, .sq-known, .hf-btn, .seg button, .pt-way .pt-i, .speak, .x) .ico { color: currentColor !important; }

/* --- tarjetas: sólidas, sin labio de abajo, sombra suave --- */
[data-look="civic"] .card { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .big-card { border: 1px solid var(--line); border-bottom-width: 1px; box-shadow: var(--shadow-sm); transition: transform .15s; }
[data-look="civic"] .big-card:active { transform: scale(.985); border-bottom-width: 1px; }
[data-look="civic"] .big-card .bi { border-radius: 14px; }
[data-look="civic"] .chip { font-weight: 800; background: var(--soft); }
[data-look="civic"] .section-t, [data-look="civic"] .eyebrow { font-weight: 800; letter-spacing: .08em; font-size: calc(12px * var(--ts)); color: var(--muted); }
[data-look="civic"] .bubble { border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
[data-look="civic"] .bubble::before { border-width: 1px; }
[data-look="civic"] .setting { border-bottom: 1px solid var(--line); }
[data-look="civic"] .input, [data-look="civic"] .select { border: 1px solid var(--line); background: var(--soft); }
[data-look="civic"] .input:focus { border-color: var(--teal); background: var(--card); }
[data-look="civic"] .switch.on { background: var(--green); }
[data-look="civic"] .seg { border-radius: 14px; padding: 3px; }
[data-look="civic"] .seg button { border-radius: 11px; font-weight: 800; }
[data-look="civic"] .seg button.on { box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
[data-look="civic"] .skel-card { border: 1px solid var(--line); border-bottom-width: 1px; }
[data-look="civic"] .stat-box, [data-look="civic"] .ach { border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .choice { border: 1.5px solid var(--line); border-bottom-width: 1.5px; box-shadow: var(--shadow-sm); border-radius: 18px; }
[data-look="civic"] .choice.sel, [data-look="civic"] .choice.on { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, var(--card)); box-shadow: 0 0 0 1px var(--teal); }
[data-look="civic"] button.topic-row { border: 1px solid var(--line); border-bottom-width: 1px; }
[data-look="civic"] .tm { border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); border-bottom-width: 1px; overflow: hidden; }

/* --- progreso: la barra se llena de amarillo --- */
[data-look="civic"] .bar { height: 8px; border-radius: 99px; background: var(--soft-2); }
[data-look="civic"] .bar i { border-radius: 99px; background: var(--sun); }

/* --- hojas: más redondas, con jaladera --- */
[data-look="civic"] .sheet { border-radius: var(--r-xl) var(--r-xl) 0 0; padding-top: 30px; position: relative; box-shadow: var(--shadow-lg); }
[data-look="civic"] .sheet::before { content: ""; position: absolute; top: 10px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 99px; background: var(--line); }
[data-look="civic"] .sheet-bg { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[data-look="civic"] .toast { border-radius: 999px; font-weight: 800; padding: 12px 18px; }

/* --- marco: barra de arriba de vidrio, menú de abajo flotante --- */
[data-look="civic"] .topbar { border-bottom: 0; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); gap: 4px; }
[data-look="civic"] .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: .7; }
[data-look="civic"] .brandmini { font-family: var(--font-display); font-weight: 900; font-size: calc(15px * var(--ts)); letter-spacing: .02em; }
[data-look="civic"] .brandmini small { font-weight: 900; color: var(--teal); letter-spacing: .2em; }
[data-look="civic"] .brandmini .brandlogo { width: 32px; height: 32px; border-radius: 50%; }
[data-look="civic"] .stat { font-family: var(--font-display); font-weight: 900; font-size: calc(15px * var(--ts)); padding: 6px 10px; border-radius: 999px; background: var(--soft); gap: 5px; }
[data-look="civic"] .stat:active { background: var(--soft-2); }
[data-look="civic"] .stat .ic { font-size: calc(17px * var(--ts)); display: inline-flex; }
[data-look="civic"] .stat .ic-flame .glifo { width: 20px; height: 20px; }
[data-look="civic"] .stat.off .ic-flame .glifo { filter: grayscale(1); opacity: .55; }
[data-look="civic"] .stat.off { filter: none; opacity: 1; color: var(--muted); }
[data-look="civic"] .stat:has(.ring) { background: none; padding: 2px; }
[data-look="civic"] .stat.hf-top { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; background: var(--soft); border-radius: 50%; }
[data-look="civic"] .stat.hf-top .glifo { width: 24px; height: 24px; }
/* con la racha, las monedas, Manos libres y la meta no cabe el nombre en un teléfono: queda el logo */
@media (max-width: 430px) { [data-look="civic"] .brandmini > div { display: none; } }

[data-look="civic"] .tabs { position: sticky; bottom: 0; margin: 0; padding: 6px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 0; gap: 2px;
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); }
[data-look="civic"] .tab { text-transform: none; letter-spacing: 0; font-weight: 800; font-size: calc(11px * var(--ts)); gap: 3px; padding: 6px 0 4px; color: var(--muted); border-radius: 14px; }
[data-look="civic"] .tab .ti { display: grid; place-items: center; width: 56px; height: 32px; border-radius: 999px; filter: none; opacity: 1; transition: background .25s, transform .25s cubic-bezier(.2, .8, .2, 1); }
/* íconos propios rellenos (art/glifos-manejo.js → TABS_MANEJO): gris si no está activa; la activa en tinta, con su detalle amarillo */
[data-look="civic"] .tab .tabico { width: 25px; height: 25px; display: block; }
[data-look="civic"] .tab .ti { --hueco: var(--glass-solid, var(--bg)); }
[data-look="civic"] .tab .tabico .acc { fill: currentColor; transition: fill .25s; }
[data-look="civic"] .tab .tabico .hueco { fill: var(--hueco); transition: fill .25s; }
[data-look="civic"] .tab.on { color: var(--ink); }
[data-look="civic"] .tab.on .ti { transform: none; background: var(--soft-2); --hueco: var(--soft-2); }
[data-look="civic"] .tab.on .tabico .acc { fill: var(--sun); }
[data-look="civic"] .tab:active .ti { transform: scale(.92); }

/* --- lección: barra fina, opciones limpias --- */
[data-look="civic"] .x { border-radius: 999px; background: var(--soft); width: 38px; height: 38px; font-size: calc(18px * var(--ts)); color: var(--ink); }
[data-look="civic"] .prog { height: 10px; }
[data-look="civic"] .prog i { background: var(--sun); }
[data-look="civic"] .prog i::after { display: none; }
[data-look="civic"] .opt { border: 1.5px solid var(--line); border-bottom-width: 1.5px; border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .12s, border-color .15s, background .15s; }
[data-look="civic"] .opt:active { transform: scale(.985); border-bottom-width: 1.5px; }
[data-look="civic"] .opt .k { border-width: 1.5px; border-radius: 9px; }
[data-look="civic"] .opt.sel { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 7%, var(--card)); }
[data-look="civic"] .opt.sel .k { border-color: var(--teal); color: var(--teal); background: var(--card); }
[data-look="civic"] .opt.ok { border-color: var(--green); }
[data-look="civic"] .opt.ko { border-color: var(--red); }
[data-look="civic"] .foot { border-top: 1px solid var(--line); }
[data-look="civic"] .foot.ok, [data-look="civic"] .foot.ko { border-color: transparent; }
[data-look="civic"] .combo { color: var(--sun-d); font-family: var(--font-display); }
[data-look="civic"] .en-toggle { border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
/* minijuegos (css/games.css): en ciudadanía la arena SIGUE EL TEMA (claro u oscuro): sus cuatro juegos (Fichas, Ponlo en orden,
   Números clave, ¿Verdadero o falso?) son de tarjetas, no de dibujo, y se leen igual de bien en los dos. Los botones, los de la app. */
[data-look="civic"] .game { background: var(--bg); color: var(--ink); }
[data-look="civic"] .game .stage-dark { background: var(--bg); }
[data-look="civic"] .game .hud .x { color: var(--ink); background: var(--soft); border: 0; }
[data-look="civic"] .game .pill { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-shadow: none; }
[data-look="civic"] .game .overlay { background: color-mix(in srgb, var(--bg) 96%, transparent); color: var(--ink); backdrop-filter: none; }
[data-look="civic"] .game .overlay.clear { background: transparent; }
[data-look="civic"] .game .overlay .btn { width: min(100%, 360px); }
[data-look="civic"] .game .answers .opt { background: var(--card); color: var(--ink); border-color: var(--line); }
[data-look="civic"] .game .answers .opt.ok { background: var(--okbg); border-color: var(--green); color: var(--ok-text); }
[data-look="civic"] .game .answers .opt.ko { background: var(--kobg); border-color: var(--red); color: var(--ko-text); }
[data-look="civic"] .game .tf-answers .tf-no, [data-look="civic"] .game .tf-answers .tf-yes { background: var(--card); }
[data-look="civic"] .tf-card, [data-look="civic"] .fc-card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: var(--r-xl); }
[data-look="civic"] .tf-a { background: var(--soft); color: var(--ink); }
[data-look="civic"] .tf-fix { color: var(--ok-text); }
[data-look="civic"] .fc-kind { color: var(--muted); letter-spacing: .08em; }
[data-look="civic"] .fc-es { color: var(--ink-2); opacity: 1; }
[data-look="civic"] .fc-listen { color: var(--on-sec); background: var(--sec); border: 0; }
[data-look="civic"] .fc-built { border: 2px dashed var(--line); border-radius: var(--r-xl); }
[data-look="civic"] .fc-built.ok { border-style: solid; border-color: var(--green); background: var(--okbg); }
[data-look="civic"] .fc-chip { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .fc-empty { color: var(--muted); opacity: 1; }
[data-look="civic"] .fc-msg.ok { color: var(--ok-text); } [data-look="civic"] .fc-msg.ko { color: var(--ko-text); }
[data-look="civic"] .fc-tile { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .fc-tile:active { box-shadow: none; }
[data-look="civic"] .fc-tile.ko { background: var(--kobg); border-color: var(--red); color: var(--ko-text); }
[data-look="civic"] .fc-tile.hint { background: var(--okbg); border-color: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 35%, transparent); }
[data-look="civic"] .ord-done li { background: var(--okbg); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); color: var(--ok-text); }
[data-look="civic"] .timebar { background: var(--soft-2); border: 0; }
[data-look="civic"] .timebar i { background: var(--sun); }
[data-look="civic"] .stage-combo { color: var(--sun-d); }
[data-look="civic"] .countdown { color: var(--ink); }

/* ============ 3. la Ruta: «Tu siguiente paso», las etapas y las tarjetas (screens/journey-view.js, path.js) ============ */
[data-look="civic"] .ns-card { border: 1px solid var(--line); border-bottom-width: 1px; box-shadow: var(--shadow); border-radius: var(--r-xl); padding: 18px; }
[data-look="civic"] .ns-days { background: var(--soft); font-weight: 800; }
[data-look="civic"] .ns-days.soon { background: var(--sun-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 60%, transparent); }
[data-look="civic"] .ns-main .lesson-icon.has-glifo { width: 64px; height: 64px; }
[data-look="civic"] .ns-main h2 { font-family: var(--font-display); font-weight: 900; letter-spacing: -.015em; }
[data-look="civic"] .ns-ready { background: var(--soft); border-radius: var(--r-md); }
[data-look="civic"] .ns-meters .rd-track { background: var(--soft-2); }
[data-look="civic"] .stage-fold { border: 1px dashed color-mix(in srgb, var(--ink) 22%, var(--line)); border-bottom-width: 1px; box-shadow: none; background: var(--card); border-radius: var(--r); }
[data-look="civic"] .stage-note { border-radius: var(--r-sm); }
[data-look="civic"] .plan-card, [data-look="civic"] .study-card, [data-look="civic"] .hf-card, [data-look="civic"] .pp-card, [data-look="civic"] .rd-bar {
  border: 1px solid var(--line); border-bottom-width: 1px; box-shadow: var(--shadow-sm); border-radius: var(--r); }
[data-look="civic"] .hf-short { border-radius: var(--r); background: var(--soft); color: var(--ink); border: 0; box-shadow: none; }
[data-look="civic"] .sim-card-big .bi { border-radius: 50%; overflow: hidden; }
[data-look="civic"] .rd-m .rd-track, [data-look="civic"] .rd-track { background: var(--soft-2); }
[data-look="civic"] .unit-head { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ============ 4. los íconos propios (art/glifos-civica.js, ui/glifos-dom.js): la casilla deja su fondo y el ícono la llena ============ */
[data-look="civic"] .glifo { display: block; flex: none; }
[data-look="civic"] .has-glifo { background: none !important; box-shadow: none; padding: 0; display: grid; place-items: center; overflow: visible; }
[data-look="civic"] .has-glifo > .glifo { width: 100%; height: 100%; }
[data-look="civic"] .big-card .bi.has-glifo { width: 56px; height: 56px; }
[data-look="civic"] .hf-card-i.has-glifo { width: 52px; height: 52px; }
[data-look="civic"] .hf-short > span.has-glifo { width: 30px; height: 30px; }
[data-look="civic"] .study-card-i.has-glifo { width: 52px; height: 52px; }
[data-look="civic"] .lesson-icon.has-glifo { width: 64px; height: 64px; }
[data-look="civic"] .sec-ic.has-glifo { width: 52px; height: 52px; }
[data-look="civic"] .gi.has-glifo { width: 44px; height: 44px; }
[data-look="civic"] .choice .lic-ic.has-glifo { width: 44px; height: 44px; }
[data-look="civic"] .ach .ai.has-glifo { width: 40px; height: 40px; }
[data-look="civic"] .celebrate-icon.has-glifo, [data-look="civic"] .cel-ic.has-glifo { width: 96px; height: 96px; margin: 0 auto; }
[data-look="civic"] .streak-ic.has-glifo { width: 72px; height: 72px; }
[data-look="civic"] .shop-ic.has-glifo { width: 44px; height: 44px; }
[data-look="civic"] .icon-lg.has-glifo { width: 44px; height: 44px; flex: none; }

/* ============ 5. la barra de arriba: la meta de hoy como anillo (screens/shell.js → repasoSheet) ============ */
[data-look="civic"] .stat.goal { position: relative; padding: 0; width: 40px; height: 40px; display: grid; place-items: center; background: none; }
[data-look="civic"] .stat.goal .ring { position: absolute; inset: 2px; width: 36px; height: 36px; }
[data-look="civic"] .stat.goal .ring circle:first-child { stroke: var(--soft-2); }
[data-look="civic"] .goal-ic { position: relative; display: grid; }
[data-look="civic"] .stat .coin { width: 20px; height: 20px; vertical-align: -4px; }
[data-look="civic"] .coin.glifo { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -.25em; }
[data-look="civic"] .plan-card .icon-md.has-glifo { width: 30px; height: 30px; }
/* el número del módulo: su color mezclado con la tinta, para que se lea sobre blanco (el amarillo solo no se lee) */
[data-look="civic"] .sec-head .sec-n { color: color-mix(in srgb, var(--sec) 55%, var(--ink)); }

/* ============ 6. los minijuegos de Práctica: tarjeta blanca con su ícono; el color del juego, solo de acento ============ */
[data-look="civic"] .game-card { position: relative; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  min-height: 140px; gap: 10px; transition: transform .15s; }
[data-look="civic"] .game-card::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--game); opacity: .85; }
[data-look="civic"] .game-card:active { transform: scale(.975); box-shadow: var(--shadow-sm); }
[data-look="civic"] .game-card small { color: var(--muted); opacity: 1; font-weight: 700; }
[data-look="civic"] .game-card.locked { filter: none; opacity: 1; background: var(--soft); box-shadow: none; }
[data-look="civic"] .game-card.locked::before { display: none; }
[data-look="civic"] .game-card.locked .gi { filter: grayscale(1); opacity: .35; }
[data-look="civic"] .game-card.locked h3 { color: var(--muted); }
[data-look="civic"] .game-card .g-lock { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; opacity: .8; }
[data-look="civic"] .game-card .g-lock .glifo { width: 22px; height: 22px; }
/* Manos libres en Práctica: una tarjeta más (antes un recuadro azul marino también en claro), con su ▶ en el color de la acción */
[data-look="civic"] .hf-card { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .hf-card h3 { color: var(--ink); }
[data-look="civic"] .hf-card p { color: var(--muted); }
[data-look="civic"] .hf-card-go { background: var(--cta); color: var(--on-cta); }
[data-look="civic"] .me-av { border: 0; background: var(--sun-soft); box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line); }
[data-look="civic"] .setting .select { max-width: 68%; }

/* ============ 7. «El camino al juramento» (screens/path.js → LineaUnits con CIVICA, journey-view.js) ============
   Como la línea de inglés y la carretera de manejo: una línea por etapa (su ícono, su nombre, cuántas unidades llevas y su barra), cada
   unidad una parada con su nombre a la vista y la de ahora abierta en grande (su clase en video, «Vas a aprender», sus pasos y «Seguir»).
   El riel es una cinta azul marino con una fina franja roja y blanca; cada parada es un sello de pasaporte: los terminados, estampados a
   color y con su palomita; los que faltan, en gris de contorno; el de ahora, más grande, con el aro dorado que late. Al final, la
   parada del juramento (la mano levantada), con el simulacro con los oficiales y «¿Estoy listo?». */
[data-look="civic"] .ln { position: relative; padding: 4px 16px 8px; }
[data-look="civic"] .ln-head { position: relative; display: flex; gap: 14px; align-items: flex-start; margin: 26px 0 6px; padding: 16px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--topbar-h, 60px) + 12px); }
[data-look="civic"] .ln-badge { flex: none; position: relative; width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; }
[data-look="civic"] .ln-ic.has-glifo, [data-look="civic"] .ln-ic > .glifo { width: 52px; height: 52px; }
[data-look="civic"] .ln-badge b { position: absolute; right: -6px; bottom: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  font: 900 11px/1 var(--font-display); color: var(--on-cta); background: var(--teal); box-shadow: 0 0 0 2px var(--card); }
[data-look="civic"] .ln-head .ln-n { display: block; font: 800 calc(11px * var(--ts))/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
[data-look="civic"] .ln-head .ln-t { display: block; font: 900 calc(20px * var(--ts))/1.2 var(--font-display); letter-spacing: -.015em; margin-top: 3px; }
[data-look="civic"] .ln-head .ln-d { margin-top: 4px; font-size: calc(13.5px * var(--ts)); color: var(--muted); line-height: 1.35; }
[data-look="civic"] .ln-head .stage-note { margin-top: 8px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--soft); font-size: calc(13px * var(--ts)); line-height: 1.35; }
[data-look="civic"] .ln-head .bar { margin-top: 10px; height: 6px; }
[data-look="civic"] .ln-head.done { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }

[data-look="civic"] .ln-list { position: relative; list-style: none; margin: 0; padding: 6px 0 0; }
/* el riel: lo que falta, gris; lo recorrido, la cinta azul marino con su franja roja y blanca al centro */
[data-look="civic"] .ln-list::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 14px; width: 12px; border-radius: 6px; background: var(--soft-2); }
[data-look="civic"] .ln-list::after { content: ""; position: absolute; left: 18px; top: 0; width: 12px; height: var(--ln-k, 0%); max-height: calc(100% - 14px); border-radius: 6px;
  background: linear-gradient(90deg, var(--flag-navy) 0 4px, var(--flag-white) 4px 5px, var(--flag-red) 5px 7px, var(--flag-white) 7px 8px, var(--flag-navy) 8px); }
[data-look="civic"] .st { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
[data-look="civic"] .st-col { flex: 1; min-width: 0; display: grid; gap: 6px; }
[data-look="civic"] .st-dot { position: relative; z-index: 1; flex: none; width: 48px; height: 48px; display: grid; place-items: center; }
/* el sello de cada parada */
[data-look="civic"] .st-dot i { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--card); font-style: normal;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--muted) 45%, transparent); transition: transform .2s; }
[data-look="civic"] .st-dot i::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--muted) 45%, transparent); }
[data-look="civic"] .st-dot i .glifo { width: 26px; height: 26px; filter: grayscale(1); opacity: .55; }
[data-look="civic"] .st.locked .st-dot i { background: var(--soft); }
[data-look="civic"] .st.locked .st-dot i .glifo { opacity: .35; }
/* estampado: a color, un poco chueco, con el aro rojo y su palomita */
[data-look="civic"] .st.done .st-dot i { transform: rotate(-9deg); background: color-mix(in srgb, var(--flag-red) 7%, var(--card)); box-shadow: 0 0 0 2.5px var(--flag-red), 0 3px 8px rgba(15, 27, 51, .12); }
[data-look="civic"] .st.done .st-dot i::before { border-color: color-mix(in srgb, var(--flag-red) 55%, transparent); }
[data-look="civic"] .st.done .st-dot i .glifo { filter: none; opacity: 1; }
[data-look="civic"] .st.done .st-dot::after { content: "✓"; position: absolute; right: -2px; bottom: -2px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font: 900 11px/1 var(--font-display); box-shadow: 0 0 0 2px var(--card); }
/* la de ahora: grande, a color, con el aro dorado que late */
[data-look="civic"] .st.now .st-dot i { width: 50px; height: 50px; box-shadow: 0 0 0 3px var(--sun), 0 0 0 9px color-mix(in srgb, var(--sun) 25%, transparent); animation: st-beat-c 2.2s ease-in-out infinite; }
[data-look="civic"] .st.now .st-dot i::before { border-color: color-mix(in srgb, var(--sun) 70%, transparent); }
[data-look="civic"] .st.now .st-dot i .glifo { width: 34px; height: 34px; filter: none; opacity: 1; }
@keyframes st-beat-c { 50% { box-shadow: 0 0 0 3px var(--sun), 0 0 0 14px color-mix(in srgb, var(--sun) 0%, transparent); } }
[data-look="civic"] .st-row { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-top: -2px; border-radius: 18px; text-align: left; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: background .15s, transform .15s; }
[data-look="civic"] .st-row:active { transform: scale(.985); background: var(--soft); }
[data-look="civic"] .st-row .grow > small { display: block; font-size: calc(11.5px * var(--ts)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
[data-look="civic"] .st-row .grow > b { display: block; font: 900 calc(16px * var(--ts))/1.25 var(--font-display); margin-top: 2px; }
[data-look="civic"] .st-row .grow > span { display: block; font-size: calc(13px * var(--ts)); color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-look="civic"] .st-row .st-go { flex: none; color: var(--muted); font-size: 18px; }
[data-look="civic"] .st-row .st-opt { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: calc(10.5px * var(--ts)); letter-spacing: .04em; }
[data-look="civic"] .st-stars { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: calc(12px * var(--ts)); font-weight: 900; }
[data-look="civic"] .st.locked .st-row { background: var(--soft); box-shadow: none; color: var(--muted); }
[data-look="civic"] .st.locked .st-row .grow > b { color: var(--muted); }
/* lo extra de una parada: su nota de idioma, el manual de tu estado y sus episodios */
[data-look="civic"] .st-extra { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
[data-look="civic"] .st-extra p { width: 100%; margin: 0; font-size: calc(12.5px * var(--ts)); color: var(--muted); line-height: 1.35; }
[data-look="civic"] .st-extra .btn.small { min-height: 34px; padding: 6px 12px; font-size: calc(12.5px * var(--ts)); --c: var(--soft); --t: var(--ink); width: auto; }

/* la unidad de ahora, en grande: el póster de su clase en video, lo que vas a aprender y sus pasos */
[data-look="civic"] .board-card { flex: 1; min-width: 0; position: relative; border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--line); margin-top: -6px; }
[data-look="civic"] .board-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 4.4; background: var(--flag-navy) center 30% / cover no-repeat; color: #fff; text-align: left; }
[data-look="civic"] .board-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, transparent 30%, transparent 45%, rgba(0, 0, 0, .82) 100%); }
[data-look="civic"] .board-top { position: absolute; z-index: 1; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
[data-look="civic"] .board-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(0, 0, 0, .58); font: 800 calc(12px * var(--ts))/1 var(--font); color: #fff; }
[data-look="civic"] .board-pill.sun { background: var(--sun); color: var(--on-brand); }
[data-look="civic"] .board-pill .ico { width: 14px; height: 14px; }
[data-look="civic"] .board-play { position: absolute; z-index: 1; left: 50%; top: 44%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sun); color: var(--on-brand); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s; }
[data-look="civic"] .board-play .ico { width: 28px; height: 28px; margin-left: 4px; color: var(--on-brand); }
[data-look="civic"] .board-media:active .board-play { transform: scale(.92); }
[data-look="civic"] .board-cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; }
[data-look="civic"] .board-cap small { display: block; font: 800 calc(11.5px * var(--ts))/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
[data-look="civic"] .board-cap h3 { font: 900 calc(24px * var(--ts))/1.12 var(--font-display); letter-spacing: -.015em; margin-top: 4px; color: #fff; }
[data-look="civic"] .board-body { padding: 14px 16px 16px; }
[data-look="civic"] .board-say { display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 8px; border-radius: 16px; background: var(--soft); }
[data-look="civic"] .board-say span { font: 700 calc(14.5px * var(--ts))/1.3 var(--font); color: var(--ink); }
[data-look="civic"] .board-say em { display: block; font-style: normal; font-size: calc(12px * var(--ts)); color: var(--muted); font-weight: 700; }
[data-look="civic"] .board-steps { display: flex; align-items: flex-start; gap: 0; margin: 18px 2px 30px; }
[data-look="civic"] .bs { position: relative; flex: 1; display: grid; justify-items: center; gap: 4px; padding: 0; color: var(--muted); font-size: calc(10.5px * var(--ts)); font-weight: 800; min-width: 0; }
[data-look="civic"] .bs::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
[data-look="civic"] .bs:first-child::before { display: none; }
[data-look="civic"] .bs.done::before, [data-look="civic"] .bs.cur::before { background: var(--teal); }
[data-look="civic"] .bs i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 15px; background: var(--soft); border: 2px solid var(--card); }
[data-look="civic"] .bs i.has-glifo { padding: 3px; background: var(--soft) !important; }
[data-look="civic"] .bs.done i { background: color-mix(in srgb, var(--teal) 16%, var(--card)); color: var(--teal); font-weight: 900; }
[data-look="civic"] .bs.cur i { background: var(--sun-soft) !important; box-shadow: 0 0 0 3px var(--sun); transform: scale(1.12); }
[data-look="civic"] .bs.cur { color: var(--ink); }
[data-look="civic"] .bs.locked i { filter: grayscale(1); opacity: .5; }
[data-look="civic"] .bs.optional i { box-shadow: 0 0 0 1.5px var(--line); }
[data-look="civic"] .bs span { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: 0; transition: opacity .2s; }
[data-look="civic"] .bs.cur span { opacity: 1; }
[data-look="civic"] .bs:first-child span { left: 0; transform: none; }
[data-look="civic"] .bs:last-child span { left: auto; right: 0; transform: none; }
[data-look="civic"] .board-go { display: flex; gap: 8px; }
[data-look="civic"] .board-go .btn { flex: 1; }
[data-look="civic"] .board-media.noposter { background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--flag-navy) 70%, #fff 30%), var(--flag-navy)); }
[data-look="civic"] .board-media.noposter .board-emoji { position: absolute; right: 18px; top: 46px; width: 96px; height: 96px; }
[data-look="civic"] .board-media.noposter .board-emoji .glifo { width: 96px; height: 96px; }
[data-look="civic"] .bs i.has-glifo > .glifo { width: 100%; height: 100%; }
[data-look="civic"] .st-go.has-glifo { width: 22px; height: 22px; opacity: .7; }

/* el final del camino: la parada del juramento (la mano levantada), con el simulacro y «¿Estoy listo?» */
[data-look="civic"] .st.oath .st-dot { width: 48px; height: 64px; }
[data-look="civic"] .st.oath .st-dot i { width: 56px; height: 56px; background: var(--sun-soft); box-shadow: 0 0 0 3px var(--sun), 0 6px 16px rgba(15, 27, 51, .16); }
[data-look="civic"] .st.oath .st-dot i::before { border-color: color-mix(in srgb, var(--sun-d) 60%, transparent); }
[data-look="civic"] .st.oath .st-dot i .glifo { width: 36px; height: 36px; filter: none; opacity: 1; }
[data-look="civic"] .oath-card { flex: 1; min-width: 0; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
[data-look="civic"] .oath-card > small { display: block; font: 800 calc(11.5px * var(--ts))/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
[data-look="civic"] .oath-card > h3 { font: 900 calc(19px * var(--ts))/1.2 var(--font-display); letter-spacing: -.015em; margin-top: 3px; }
[data-look="civic"] .oath-card > p { margin-top: 4px; font-size: calc(13.5px * var(--ts)); color: var(--muted); line-height: 1.35; }
[data-look="civic"] .oath-card .big-card { margin-top: 12px; }
[data-look="civic"] .oath-card .rd-bar { box-shadow: none; background: var(--soft); border: 0; }

/* el título de la etapa en la que vas, fijo arriba al bajar (screens/path.js → pinSections) */
[data-look="civic"] .ln-pin { position: sticky; top: calc(var(--topbar-h, 60px) + 6px); z-index: 15; display: flex; align-items: center; gap: 12px; height: 56px; margin-bottom: -56px;
  padding: 0 12px 0 10px; border-radius: 999px; background: var(--flag-navy); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .18s, transform .18s; }
[data-look="civic"] .ln.pinned .ln-pin { opacity: 1; transform: none; }
[data-look="civic"] .ln-pin .ln-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff !important; padding: 5px; flex: none; }
[data-look="civic"] .ln-pin .ln-ic .glifo { width: 28px; height: 28px; }
[data-look="civic"] .ln-pin b { flex: 1; min-width: 0; font: 900 calc(15px * var(--ts))/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-look="civic"] .ln-pin small { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--sun); color: var(--on-brand); font-size: calc(12px * var(--ts)); font-weight: 900; }
[data-look="civic"] .stage-fold { margin: 22px 0 0; }
@media (prefers-reduced-motion: reduce) { [data-look="civic"] .st.now .st-dot i { animation: none; } [data-look="civic"] .ln-pin { transition: none; } }

/* ============ 8. «Conoce» de cívica (lesson/conoce-civica.js): la pregunta del oficial con su respuesta a la vista ============
   Mismo patrón que «Desde cero» de inglés (css/ingles.css): tarjeta, Parejas y los botones abajo; aquí con los tokens del aspecto. */
[data-look="civic"] .cero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 12px 16px 8px; overflow-y: auto; }
[data-look="civic"] .cero-intro { display: grid; justify-items: center; gap: 14px; text-align: center; }
[data-look="civic"] .cero-intro p { max-width: 30em; padding: 16px 18px; border-radius: var(--r-xl); background: var(--soft); font-size: calc(18px * var(--ts)); line-height: 1.45; font-weight: 700; }
[data-look="civic"] .cero-tip { padding: 10px 14px; border-radius: var(--r-md); background: var(--soft); font-size: calc(15px * var(--ts)); font-weight: 600; line-height: 1.4; }
[data-look="civic"] .cero-foot { display: grid; gap: 10px; width: 100%; }
[data-look="civic"] .cero-btns { display: grid; gap: 8px; width: 100%; }
[data-look="civic"] .cero-btns.two { grid-template-columns: 1fr 1.4fr; }
[data-look="civic"] .cv-card { display: grid; gap: 12px; animation: civic-in .32s cubic-bezier(.2, .8, .2, 1) both; }
[data-look="civic"] .cv-n { color: var(--muted); font-weight: 800; letter-spacing: .04em; text-align: center; }
[data-look="civic"] .cv-n b { color: var(--ink); }
[data-look="civic"] .cv-q, [data-look="civic"] .cv-a { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-xl); }
[data-look="civic"] .cv-spk { justify-content: center; }
[data-look="civic"] .cv-q { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .cv-q b { font: 900 calc(23px * var(--ts))/1.25 var(--font-display); letter-spacing: -.01em; }
[data-look="civic"] .cv-a { background: var(--okbg); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
[data-look="civic"] .cv-a b { font: 900 calc(26px * var(--ts))/1.2 var(--font-display); color: var(--ok-text); }
[data-look="civic"] .cv-a span:not(.cv-k) { font-weight: 700; color: var(--ink-2); }
[data-look="civic"] .cv-k { font-size: calc(13px * var(--ts)); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
[data-look="civic"] .cv-mean { color: var(--ink-2); font-weight: 700; }
[data-look="civic"] .cv-rep { text-align: center; font-weight: 800; color: var(--teal); }
[data-look="civic"] .cv-known { text-align: center; font-weight: 800; color: var(--ok-text); }
@media (prefers-reduced-motion: reduce) { [data-look="civic"] .cv-card { animation: none; } }
/* Parejas: la pregunta a la izquierda, su respuesta a la derecha */
[data-look="civic"] .cero-pares { display: grid; gap: 6px; }
[data-look="civic"] .cero-pares h2 { display: flex; align-items: center; gap: 8px; font-size: calc(20px * var(--ts)); line-height: 1.2; }
[data-look="civic"] .cero-pares h2 .glifo { width: 30px; height: 30px; flex: none; }
[data-look="civic"] .cero-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
[data-look="civic"] .cero-col { display: grid; gap: 10px; align-content: start; }
[data-look="civic"] .cero-tile { min-height: 64px; padding: 10px 12px; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--card); color: var(--ink);
  font: 700 calc(15px * var(--ts))/1.3 var(--font); text-align: left; cursor: pointer; }
[data-look="civic"] .cero-tile.es { font-weight: 900; }
[data-look="civic"] .cero-tile:active { transform: scale(.97); }
[data-look="civic"] .cero-tile.sel { border-color: var(--teal); background: color-mix(in srgb, var(--sun) 22%, var(--card)); }
[data-look="civic"] .cero-tile.ok { border-color: var(--green); background: var(--okbg); color: var(--ok-text); opacity: .6; pointer-events: none; }
[data-look="civic"] .cero-tile.mal { animation: cv-mal .4s; border-color: var(--red); }
@keyframes cv-mal { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { [data-look="civic"] .cero-tile.mal { animation: none; } }

/* ============ 9. arriba de la Ruta: UNA tarjeta «Ahora» y la línea chica (screens/path.js → AhoraTop, journey-view.js) ============ */
[data-look="civic"] .ahora-linea { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
[data-look="civic"] .ahora-linea .ns-days { background: var(--soft); color: var(--ink); font-weight: 800; }
[data-look="civic"] .ahora-linea .ns-days.libro { background: var(--sun-soft); }
[data-look="civic"] .ns-card.ahora { margin-top: 0; }
[data-look="civic"] .st-now { margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--sun); color: var(--on-brand); font-size: .85em; font-weight: 900; }
/* «¿Ya te toca aplicar?» (solo a quien no ha enviado su N-400, después de su primera clase) */
[data-look="civic"] .tramite-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r);
  background: var(--card); border: 1px dashed color-mix(in srgb, var(--teal) 45%, var(--line)); }
[data-look="civic"] .tramite-card .tramite-ic { font-size: 26px; }
[data-look="civic"] .tramite-card b { display: block; font-family: var(--font-display); font-weight: 900; }
[data-look="civic"] .tramite-card small { display: block; color: var(--muted); font-weight: 600; }
[data-look="civic"] .tramite-btns { display: flex; gap: 8px; width: 100%; justify-content: flex-end; }
[data-look="civic"] .tramite-btns .btn { min-height: 40px; padding: 8px 16px; font-size: calc(15px * var(--ts)); }
[data-look="civic"] .install-short { margin-top: 10px; }
[data-look="civic"] .mi-tramite { scroll-margin-top: calc(var(--topbar-h, 60px) + 12px); }
/* sin video (la Clase 0, las charlas): el cartel más bajo, para que «Empezar» quede a la vista */
[data-look="civic"] .board-media.noposter { aspect-ratio: 16 / 9; }
[data-look="civic"] .board-media.noposter .board-emoji { top: 30px; width: 80px; height: 80px; }
[data-look="civic"] .board-media.noposter .board-emoji .glifo { width: 80px; height: 80px; }
/* la hoja con los pasos de una unidad (screens/path.js → unitSheet; tocar una parada del camino): una fila por paso */
[data-look="civic"] .unit-steps { display: flex; flex-direction: column; gap: 8px; }
[data-look="civic"] .unit-step { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); min-height: 52px; }
[data-look="civic"] .unit-step.current { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
[data-look="civic"] .unit-step[disabled] { opacity: .5; cursor: default; }
[data-look="civic"] .unit-step-i { width: 32px; height: 32px; font-size: 22px; text-align: center; flex: none; }
[data-look="civic"] .unit-step-i.has-glifo { width: 32px; height: 32px; }

/* ============ la bienvenida nueva (screens/onboarding-civ.js; ~/Desktop/ciudadania/ONBOARDING.md) ============
   Una idea por pantalla, letra y botones grandes (≥ 56 px), el Abuelito con su globo arriba y el botón abajo, fijo. Las entradas
   son un fundido con 8 px de subida; con «reducir movimiento» no se mueve nada. */
.oc { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); }
.oc-top { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 76px 1fr 76px; align-items: center; gap: var(--sp-2);
  padding: calc(var(--sp-3) + env(safe-area-inset-top)) var(--sp-4) var(--sp-3); background: var(--glass); backdrop-filter: blur(10px); }
.oc-back, .oc-skip { min-height: 44px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 800; font-size: var(--fs-md); cursor: pointer; padding: 0; }
.oc-back { text-align: left; } .oc-skip { text-align: right; }
.oc-back:focus-visible, .oc-skip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.oc-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.oc-seg { display: block; position: relative; height: 8px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.oc-seg i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--teal); transition: width .5s ease; }
.oc-seg.full i { background: var(--sun); }
.oc-seg small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.oc-body { flex: 1; display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-2) var(--sp-4) var(--sp-5); width: 100%; max-width: 560px; margin: 0 auto;
  animation: oc-in .35s ease both; }
.oc-body h1 { font-size: calc(28px * var(--ts)); line-height: 1.15; outline: none; }
.oc-foot { position: sticky; bottom: 0; padding: var(--sp-3) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.oc-foot .btn { width: 100%; max-width: 528px; margin: 0 auto; display: block; min-height: 60px; font-size: calc(19px * var(--ts)); }
@keyframes oc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.oc-help { display: flex; gap: var(--sp-2); align-items: flex-end; }
.oc-help .avatar-slot { flex: none; }
.oc-bubble { font-size: calc(17px * var(--ts)); line-height: 1.35; padding: 12px 14px; }
.oc-replay { width: 48px; height: 48px; flex: none; font-size: calc(20px * var(--ts)); }
.oc .choice { min-height: 64px; font-size: calc(18px * var(--ts)); border-bottom-width: 2px; box-shadow: var(--shadow-sm); }
.oc .choice.sel { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--card)); }
.oc-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; }
.oc-tick { flex: none; width: 28px; height: 28px; border-radius: 99px; background: var(--teal); color: var(--on-cta); display: grid; place-items: center; font-size: 16px; font-weight: 900; }
.choices.oc-two { grid-template-columns: 1fr 1fr; }
.choices.oc-three { grid-template-columns: 1fr 1fr 1fr; }
.choices.oc-two .choice, .choices.oc-three .choice { justify-content: center; text-align: center; }
.oc-why { border-radius: var(--r-md); background: var(--soft); padding: 0 var(--sp-4); }
.oc-why summary { min-height: 48px; display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink-2); cursor: pointer; list-style: none; }
.oc-why summary::-webkit-details-marker { display: none; }
.oc-why p { padding-bottom: var(--sp-3); color: var(--ink-2); font-size: var(--fs-md); line-height: 1.45; }
.oc-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: var(--sp-4); box-shadow: var(--shadow-sm); animation: oc-in .3s ease both;
  display: flex; flex-direction: column; gap: var(--sp-2); line-height: 1.4; }
.oc-card-t { display: flex; align-items: center; gap: 8px; }
.oc-exam { display: flex; gap: var(--sp-3); align-items: flex-start; } .oc-exam p { font-weight: 800; margin: 2px 0 4px; }
.oc-ex { border-color: var(--sun); background: var(--sun-soft); }
.oc-officials ul { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0; }
.oc-officials li { display: flex; flex-direction: column; } .oc-officials li small { color: var(--muted); font-weight: 700; }
.oc-officials:empty { display: none; }
.oc-date input { min-height: 56px; font-size: calc(18px * var(--ts)); width: 100%; }
.oc-plan-line { font-weight: 800; color: var(--teal); min-height: 1.4em; }
.oc-lead { font-size: calc(18px * var(--ts)); color: var(--ink-2); line-height: 1.4; }

/* portada con el idioma */
.oc-splash { align-items: center; justify-content: center; text-align: center; gap: var(--sp-3); padding: calc(var(--sp-5) + env(safe-area-inset-top)) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 50% 25%, var(--sun-soft), var(--bg) 70%); }
.oc-tag { font-size: calc(19px * var(--ts)); font-weight: 800; color: var(--ink-2); max-width: 22em; }
.oc-pick { font-size: var(--fs-md); color: var(--muted); font-weight: 700; margin-top: var(--sp-2); }
.oc-langs { display: grid; gap: var(--sp-3); width: 100%; max-width: 360px; }
.oc-lang { min-height: 60px; font-size: calc(19px * var(--ts)); }
.oc-privacy { font-size: var(--fs-sm); color: var(--muted); max-width: 22em; }

/* el primer logro: la pregunta del oficial y sus opciones */
.oc-qn { font-weight: 800; color: var(--muted); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; }
.oc-officer { display: flex; gap: var(--sp-3); align-items: center; border-radius: var(--r-md); background: var(--card); color: var(--ink); padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.oc-officer img { width: 64px; height: 64px; border-radius: 99px; object-fit: cover; flex: none; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--sun); }
.oc-officer small { color: var(--muted); font-weight: 700; }
.oc-q { font-size: calc(21px * var(--ts)); font-weight: 900; line-height: 1.25; outline: none; }
.oc-qes { opacity: .85; font-size: var(--fs-md); margin-top: 2px; }
.oc-officer .oc-replay { background: var(--sec); color: var(--on-sec); border-color: transparent; }
.oc-opt { min-height: 64px; }
.oc-opt b { font-size: calc(19px * var(--ts)); }
.oc-opt.ok { border-color: var(--green); background: var(--okbg); }
.oc-opt.ok .oc-tick { background: var(--green); }
.oc-opt.ko { border-color: var(--red); background: var(--kobg); }
.oc-opt.dim { opacity: .55; }
.oc-opt[disabled] { cursor: default; color: var(--ink); }
.oc-after { display: flex; gap: var(--sp-3); align-items: center; border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4); animation: oc-in .3s ease both; font-size: calc(17px * var(--ts)); }
.oc-after.ok { background: var(--okbg); color: var(--ok-text); font-weight: 900; }
.oc-after.ko { background: var(--soft); }

/* el logro */
.oc-ring { --p: 3; width: 168px; height: 168px; margin: var(--sp-2) auto 0; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--sun) calc(var(--p) * 1%), var(--soft-2) 0); animation: oc-pop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.oc-ring > span { width: 132px; height: 132px; border-radius: 50%; background: var(--bg); display: grid; place-content: center; text-align: center; }
.oc-ring b { font-size: calc(54px * var(--ts)); line-height: 1; color: var(--teal); font-family: var(--font-display); }
.oc-ring small { color: var(--muted); font-weight: 800; }
@keyframes oc-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* el vistazo */
.oc-video { border-radius: var(--r-md); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.oc-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.oc-cap { padding: var(--sp-3) var(--sp-4); color: var(--ink); min-height: 3.6em; } .oc-cap b { display: block; font-size: calc(18px * var(--ts)); }
.oc-cap small { opacity: .85; }
.oc-frame { position: relative; }
/* el navegador no dejó sonar el video solo: ▶ grande para oírlo */
.oc-play { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: grid; justify-items: center; gap: 6px; padding: 14px 22px;
  border: 0; border-radius: var(--r-md); background: var(--overlay); color: var(--flag-white); font: inherit; font-weight: 900; cursor: pointer; }
.oc-play span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--cta); color: var(--on-cta); font-size: 34px; padding-left: 6px; }
.oc-play small { font-size: calc(16px * var(--ts)); }
.oc-play:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* tu plan */
.oc-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.oc-row { display: flex; gap: var(--sp-3); align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-sm);
  animation: oc-in .35s ease both; }
.oc-row:nth-child(2) { animation-delay: .05s; } .oc-row:nth-child(3) { animation-delay: .1s; } .oc-row:nth-child(4) { animation-delay: .15s; } .oc-row:nth-child(5) { animation-delay: .2s; } .oc-row:nth-child(6) { animation-delay: .25s; }
.oc-row small { display: block; color: var(--muted); font-weight: 700; font-size: var(--fs-sm); }
.oc-row b { font-size: calc(17px * var(--ts)); line-height: 1.3; }
.oc-ok { color: var(--green-d); }
.oc-ready { border-radius: var(--r-md); background: var(--soft); padding: var(--sp-4); }
.oc-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: var(--sp-2); margin-top: var(--sp-2); }
.oc-meters small { font-weight: 800; color: var(--ink-2); }
.oc-fact { font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.oc-fact a { color: var(--teal); font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .oc-body, .oc-card, .oc-after, .oc-row, .oc-ring { animation: none; }
  .oc-seg i { transition: none; }
}
/* la Clase 0 en «Ahora»: cuántas de las 10 ya conoce (las de la bienvenida cuentan) */
[data-look="civic"] .board-known { font-weight: 800; color: var(--ok-text); font-size: var(--fs-sm); margin: 2px 0 var(--sp-2); }
.oc .choices { display: grid; gap: 10px; }

/* «Mi juramento de estudio» (Tu plan · ui/vow.js · model/promesa.js): la promesa en papel con la bandera que sube por el asta con --k
   (0…1, la mano sostenida), la mano del juramento con su aro dorado, y el sello «MI PROMESA» que cae estampado. Todo por tokens. */
.vow { position: relative; display: grid; gap: var(--sp-2); border-radius: var(--r-md); background: var(--vow-paper); border: 1px solid var(--line);
  padding: var(--sp-4) calc(var(--sp-4) + 60px) var(--sp-4) var(--sp-4); box-shadow: var(--shadow-sm); min-height: 128px; }
.vow-t { font-weight: 900; font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--vow-ink); }
.vow-text { font-size: calc(19px * var(--ts)); font-weight: 800; line-height: 1.4; color: var(--ink); font-family: var(--font-display); }
.vow-pole { position: absolute; right: 10px; top: 12px; width: 56px; height: 100px; overflow: visible; }
.vp-pole { fill: var(--muted); } .vp-top { fill: var(--sun); }
.vp-red { fill: var(--flag-red); } .vp-white rect, .vp-stars circle { fill: var(--flag-white); } .vp-navy { fill: var(--flag-navy); }
.vp-flag { transform: translateY(calc((1 - var(--k, 0)) * 58px)); }
.vow-stamp { justify-self: end; display: grid; justify-items: center; padding: 6px 12px 7px; margin: 0 -48px -6px 0; border: 4px double var(--vow-ink); border-radius: 12px;
  color: var(--vow-ink); background: color-mix(in srgb, var(--vow-paper) 75%, transparent); transform: rotate(-8deg); font-family: var(--font-display); text-align: center; line-height: 1.1; }
.vow-stamp b { font-size: calc(15px * var(--ts)); letter-spacing: .08em; font-weight: 900; }
.vow-stamp small { font-size: calc(12px * var(--ts)); font-weight: 900; letter-spacing: .06em; }
.vow-stamp.fresh { animation: vow-stamp .55s cubic-bezier(.3, 0, .5, 1) both; }
/* el sello cae grande desde arriba: que nunca ensanche la página (en el teléfono la alejaría) */
.oc-plan { overflow-x: clip; }
@keyframes vow-stamp { 0% { transform: translateY(-90px) scale(2.4) rotate(-22deg); opacity: 0; } 50% { opacity: 1; } 58% { transform: rotate(-8deg) scale(.86, .8); }
  74% { transform: rotate(-8deg) scale(1.08); } 100% { transform: rotate(-8deg); } }
.vow-foot { z-index: 3; padding-top: var(--sp-3); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px color-mix(in srgb, var(--ink) 6%, transparent); }
.vow-hold { display: flex; gap: var(--sp-3); align-items: center; max-width: 528px; margin: 0 auto; }
.vow-hand { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; border: 0; padding: 0; background: var(--card); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .15s; }
.oc-plan.holding .vow-hand { transform: scale(.94); }
.vow-hand:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.vow-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.vr-track, .vr-fill { fill: none; stroke-width: 7; }
.vr-track { stroke: var(--soft-2); }
.vr-fill { stroke: var(--sun); stroke-dasharray: 100px 100px; stroke-dashoffset: calc((1 - var(--k, 0)) * 100px); }
.vow-ic { display: grid; place-items: center; pointer-events: none; }
/* la indicación: el dedo que presiona la mano en un ciclo suave, el aro que late y «Mantén presionado» (se esconden al presionar) */
.vow-col { flex: none; display: grid; justify-items: center; gap: 6px; }
.vow-press-at { position: relative; width: 96px; height: 96px; }
.vow-halo { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--teal); opacity: 0; pointer-events: none; animation: vow-halo 1.8s ease-out infinite; }
.vow-finger { position: absolute; right: -16px; bottom: -8px; width: 40px; height: 51px; pointer-events: none; transform-origin: 50% 0;
  transform: rotate(-30deg); animation: vow-tap 1.8s ease-in-out infinite; filter: drop-shadow(0 2px 2px color-mix(in srgb, var(--ink) 25%, transparent)); }
.vf-hand { fill: var(--card); stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.vf-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.vow-press { padding: 4px 12px; border-radius: 999px; background: var(--teal); color: var(--on-cta); font-weight: 900; font-size: calc(15px * var(--ts)); line-height: 1.2;
  text-align: center; max-width: 150px; }
.oc-plan.holding .vow-halo, .oc-plan.holding .vow-finger { visibility: hidden; animation: none; }
@keyframes vow-tap { 0%, 20% { transform: translate(10px, 12px) rotate(-30deg); } 45%, 60% { transform: translate(0, 0) rotate(-30deg) scale(.92); } 85%, 100% { transform: translate(10px, 12px) rotate(-30deg); } }
@keyframes vow-halo { 0%, 40% { transform: scale(.92); opacity: 0; } 50% { opacity: .7; } 100% { transform: scale(1.22); opacity: 0; } }
.vow-say { min-width: 0; flex: 1; }
.vow-say p { font-size: calc(16px * var(--ts)); line-height: 1.35; color: var(--ink); }
.vow-say .vow-hint { color: var(--muted); font-weight: 700; font-size: var(--fs-sm); margin-top: 2px; }
.vow-say .vow-hint.on { color: var(--teal); }
.vow-skip { min-height: 44px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 800; font-size: var(--fs-sm); text-decoration: underline; padding: 0; cursor: pointer; }
.vow-skip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .vp-flag { transform: none; }
  .vow-stamp.fresh { animation: vow-fade .25s ease both; }
  .vow-hand { transition: none; } .oc-plan.holding .vow-hand { transform: none; }
  .vow-finger { animation: none; transform: rotate(-30deg); } .vow-halo { animation: none; opacity: .5; transform: none; }
}
@keyframes vow-fade { from { opacity: 0; } }

/* «Mi pasaporte» → la página del titular: «Mi promesa» (aparte de los 20 sellos). El papel del pasaporte es claro en los dos temas. */
.pp-vow { display: flex; gap: var(--sp-3); align-items: center; padding: 14px 16px; background: var(--pp-paper); border-top: 3px solid var(--pp-rule); color: var(--pp-text); }
.pp-vow-l { flex: 1; min-width: 0; }
.pp-vow-l small { display: block; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: calc(12px * var(--ts)); color: var(--pp-muted); }
.pp-vow-l p { font-size: calc(14px * var(--ts)); line-height: 1.35; font-weight: 700; margin-top: 4px; }
.pp-vow-st { color: var(--pp-muted); } .pp-vow-st.kept { color: var(--pp-ok); }
.pp-vow .vow-stamp { --vow-ink: var(--pp-ink); --vow-paper: var(--pp-paper); flex: none; margin: 0 4px 0 0; justify-self: auto; }
.vow-stamp.kept i { position: absolute; right: -10px; top: -10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pp-ok); color: var(--pp-paper); font-style: normal; font-weight: 900; font-size: 14px; transform: rotate(8deg); }
.vow-stamp { position: relative; }

/* ============ 10. quién habla es quien se ve (ui/speaker.js → SpeakerStage; SISTEMA-DE-DISENO.md §7) ============
   El oficial (su foto), el intérprete (su ícono) o el Abuelito con la bandera detrás: se ve SOLO el que habla, con su nombre y unas
   barritas que se mueven mientras suena. Con «reducir movimiento», las barritas quedan quietas (el nombre ya dice quién es). */
.spk { display: flex; align-items: center; gap: 12px; }
.spk-cast { position: relative; flex: none; width: var(--spk); height: var(--spk); }
.spk-p { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.92); transition: opacity .22s, transform .22s; }
.spk[data-who="grandpa"] .spk-grandpa, .spk[data-who="officer"] .spk-officer, .spk[data-who="interpreter"] .spk-interpreter { opacity: 1; transform: none; }
.spk-officer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 50%; box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); }
.spk-interpreter { border-radius: 50%; background: var(--soft); }
.spk.talking .spk-officer img, .spk.talking .spk-interpreter { box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--sun); }
.spk-name { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.spk-n { display: none; font: 900 calc(16px * var(--ts))/1.2 var(--font-display); color: var(--ink); }
.spk[data-who="grandpa"] .spk-n[data-n="grandpa"], .spk[data-who="officer"] .spk-n[data-n="officer"], .spk[data-who="interpreter"] .spk-n[data-n="interpreter"] { display: inline; }
.spk-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; opacity: 0; transition: opacity .2s; }
.spk-bars i { width: 3px; height: 30%; border-radius: 2px; background: var(--sun-d); }
.spk.talking .spk-bars { opacity: 1; }
.spk.talking .spk-bars i { animation: spk-bar .9s ease-in-out infinite; }
.spk.talking .spk-bars i:nth-child(2) { animation-delay: .15s; } .spk.talking .spk-bars i:nth-child(3) { animation-delay: .3s; } .spk.talking .spk-bars i:nth-child(4) { animation-delay: .45s; }
@keyframes spk-bar { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .spk-p { transition: none; } .spk.talking .spk-bars i { animation: none; height: 70%; } }

/* ============ 11. la pantalla de sesión (SISTEMA-DE-DISENO.md §6): UNA plantilla para Las 128 (con mi voz, solo escuchar, con
   opciones), Manos libres (como en la entrevista y con opciones) y la práctica con voz. Sigue el tema de la app; «modo coche» es una
   opción explícita (apagada) que pone esta misma pantalla con el oscuro de la app. Arriba como una lección (✕, la barra y «3 de 10»),
   quien habla, la tarjeta de la pregunta (opciones o respuesta), el estado del micrófono y los controles grandes, todos secundarios.
   ============ */
[data-look="civic"] .hf.car {
  --sun: #ffc94a;
  --sun-d: #ffb81f;
  --sun-soft: #2e2715;
  --teal: #3366e0;
  --cta: #3366e0;
  --on-cta: #fff;
  --link: #6aa5ff;
  --sec: #2c2c31;
  --on-sec: #f2f2f4;
  --green: #32d583;
  --red: #f2687a;
  --ink: #f2f2f4;
  --ink-2: #c9c9d1;
  --muted: #a2a2ac;
  --bg: #161618;
  --card: #1f1f22;
  --soft: #27272b;
  --soft-2: #303035;
  --line: #38383e;
  --okbg: #0f2a1c;
  --kobg: #2e1416;
  --ok-text: #47cd89;
  --ko-text: #fda29b;
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark;
}
[data-look="civic"] .hf, [data-look="civic"] .hf.car { --hf-bg: var(--bg); --hf-ink: var(--ink); --hf-soft: var(--soft); --hf-line: var(--line); --hf-muted: var(--muted); --hf-card: var(--card);
  background: var(--bg); color: var(--ink); gap: 12px; }
[data-look="civic"] .hf.ps { height: 100dvh; min-height: 0; overflow: hidden; }
[data-look="civic"] .hf.ps .hf-main { min-height: 0; }
[data-look="civic"] .hf-top { gap: 12px; }
[data-look="civic"] .hf.ps .hf-top .x { color: var(--ink); }
[data-look="civic"] .ps-prog { flex: 1; min-width: 0; }
[data-look="civic"] .ps-prog .prog { height: 10px; }
[data-look="civic"] .hf-n { flex: none; font: 800 calc(14px * var(--ts))/1.2 var(--font); color: var(--muted); }
[data-look="civic"] .hf-speed { font-size: calc(13px * var(--ts)); }
[data-look="civic"] .ps-stage { padding: 4px 2px 0; }
/* la tarjeta de la pregunta: la pregunta grande, lo que quiere decir, y debajo las opciones o la respuesta */
[data-look="civic"] .hf.ps .hf-main:has(.hf-q:empty) { background: transparent; border-color: transparent; box-shadow: none; }
[data-look="civic"] .hf.ps .hf-main { flex: 1; gap: 14px; padding: 18px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .hf-q { font: 900 clamp(22px, 6vw, 30px)/1.25 var(--font-display); letter-spacing: -.01em; }
[data-look="civic"] .hf-x { font-size: calc(17px * var(--ts)); color: var(--ink-2); }
[data-look="civic"] .hf-opt { min-height: 60px; border: 1.5px solid var(--line); border-bottom-width: 1.5px; border-radius: 18px; background: var(--card); color: var(--ink);
  font-size: calc(18px * var(--ts)); box-shadow: var(--shadow-sm); }
[data-look="civic"] .hf-opt b { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: calc(16px * var(--ts)); }
[data-look="civic"] .hf-opt:active { transform: scale(.985); border-bottom-width: 1.5px; }
[data-look="civic"] .hf-opt.ok { border-color: var(--green); background: var(--okbg); color: var(--ok-text); }
[data-look="civic"] .hf-opt.ok b { background: var(--green); color: var(--on-cta); }
[data-look="civic"] .hf-opt.ko { border-color: var(--red); background: var(--kobg); color: var(--ko-text); }
[data-look="civic"] .hf-opt.dim { opacity: .5; }
[data-look="civic"] .hf-ans .hf-opt { min-height: 0; padding: 14px 16px; }
[data-look="civic"] .hf-ans strong { display: block; font: 900 calc(22px * var(--ts))/1.25 var(--font-display); }
[data-look="civic"] .hf-ans small { color: var(--ink-2); }
[data-look="civic"] .hf-heard { color: var(--ink-2); }
[data-look="civic"] .hf-micon, [data-look="civic"] .hf-btn.main i { background: var(--cta); color: var(--on-cta); }
[data-look="civic"] .hf .ps-prog .prog i { background: var(--sun); }
[data-look="civic"] .hf-btn:focus-visible { outline: 0; }
[data-look="civic"] .hf-notice { border-radius: var(--r-md); background: var(--kobg); color: var(--ko-text); }
[data-look="civic"] .hf-confirm { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--cta); }
[data-look="civic"] .hf-said { border-radius: var(--r-md); background: var(--soft); }
[data-look="civic"] .hf-said.ok { background: var(--okbg); color: var(--ok-text); }
[data-look="civic"] .hf-did { border: 0; border-radius: var(--r-md); background: var(--soft); box-shadow: inset 0 0 0 2px var(--cta); }
[data-look="civic"] .hf-did-btns button { border-radius: 999px; font-family: var(--font-display); }
[data-look="civic"] .hf-did-yes { background: var(--cta); color: var(--on-cta); }
[data-look="civic"] .hf-did-no { background: var(--sec); color: var(--on-sec); border: 0; }
[data-look="civic"] .hf-says { color: var(--muted); }

/* las hojas de Manos libres y de «¿Cómo quieres practicar?»: el ícono en su cuadro suave; cada forma, una tarjeta que se elige */
[data-look="civic"] .hf-icon { background: var(--soft); color: var(--ink); border-radius: 16px; }
[data-look="civic"] .pt-way { border: 1.5px solid var(--line); border-bottom-width: 1.5px; border-radius: 18px; box-shadow: var(--shadow-sm); min-height: 64px; }
[data-look="civic"] .pt-way .pt-i { background: var(--soft); color: var(--ink); border-radius: 12px; }
[data-look="civic"] .pt-way.on { border-color: var(--cta); background: color-mix(in srgb, var(--cta) 7%, var(--card)); box-shadow: 0 0 0 1px var(--cta); }
[data-look="civic"] .pt-way.on .pt-i { background: var(--cta); color: var(--on-cta); }
[data-look="civic"] .hf-ear-box, [data-look="civic"] .hf-resume { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
[data-look="civic"] .hf-ear-bar > i { background: var(--sun); }
[data-look="civic"] .hf-warn { border-radius: var(--r-sm); }

/* ============ 12. el resultado (lesson/results.js → showResults; el fin de una sesión, un examen o una lección) ============
   El Abuelito con su bandera, el título en tinta, tres datos en tarjetas neutras (sin los encabezados de colores) y el botón de abajo. */
[data-look="civic"] .results h1 { color: var(--ink); font-size: calc(28px * var(--ts)); }
[data-look="civic"] .tiles { gap: 10px; }
[data-look="civic"] .tile { border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); border-radius: 18px; padding: 10px 6px 12px; }
[data-look="civic"] .tile b { background: none; color: var(--muted); font-weight: 800; letter-spacing: .06em; padding: 0; font-size: calc(11.5px * var(--ts)); }
[data-look="civic"] .tile span { padding: 4px 2px 0; color: var(--ink); font-family: var(--font-display); }
[data-look="civic"] .hf-sum { width: 100%; }
[data-look="civic"] .hf-score { font-family: var(--font-display); }
[data-look="civic"] .hf-sum .chip-ko { background: var(--soft); color: var(--ink); }
[data-look="civic"] .results .card { border-radius: var(--r); }
[data-look="civic"] .bigstars .ico, [data-look="civic"] .stars-inline .ico { color: var(--sun); }

/* ============ 13. «Las 128 / Las 100 preguntas» (screens/study.js), con el sistema de la app ============
   El título con su regreso, el avance en una tarjeta, los filtros como chips de la app, UN botón principal («Practicar estas con
   voz») y cada pregunta en una tarjeta: su número en gris, ▶ con la cara de quien la dice (el oficial / el Abuelito), «Tu respuesta». */
[data-look="civic"] .study-head { align-items: center; gap: 12px; }
[data-look="civic"] .study-head h1 { font: 900 calc(24px * var(--ts))/1.15 var(--font-display); letter-spacing: -.015em; }
[data-look="civic"] .study-head .x { width: 40px; height: 40px; }
[data-look="civic"] .study-prog { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .study-prog small { color: var(--ink-2); font-weight: 800; }
[data-look="civic"] .study-prog .bar i { background: var(--sun); }
[data-look="civic"] .fchip { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; box-shadow: var(--shadow-sm); }
[data-look="civic"] .fchip.on { border-color: var(--cta); background: color-mix(in srgb, var(--cta) 9%, var(--card)); box-shadow: 0 0 0 1px var(--cta); }
[data-look="civic"] .study-filters .study-unit { min-height: 40px; border-radius: 999px; padding: 8px 14px; border: 1px solid var(--line); background: var(--card); }
[data-look="civic"] .study-bar { flex-direction: column; align-items: stretch; gap: 8px; margin: 16px 0 12px; }
[data-look="civic"] .study-bar .btn { width: 100%; min-height: 54px; font-size: calc(17px * var(--ts)); }
[data-look="civic"] .sq { border: 1px solid var(--line); border-bottom-width: 1px; box-shadow: var(--shadow-sm); border-radius: var(--r); }
[data-look="civic"] .sq-n { background: var(--soft-2); color: var(--ink); border-radius: 10px; font-family: var(--font-display); }
[data-look="civic"] .sq-star { background: var(--sun-soft); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 55%, transparent); }
[data-look="civic"] .sq-play { background: var(--sec); color: var(--on-sec); padding: 4px 14px 4px 4px; gap: 8px; }
[data-look="civic"] .sq-play .sq-face { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; background: var(--soft-2); }
[data-look="civic"] .sq-play .sq-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
[data-look="civic"] .sq-play.playing { box-shadow: inset 0 0 0 2px var(--sun); }
[data-look="civic"] .sq-q { font: 900 calc(19px * var(--ts))/1.3 var(--font-display); letter-spacing: -.01em; }
[data-look="civic"] .sq-qes { color: var(--ink-2); }
[data-look="civic"] .sq-mini { background: var(--sec); color: var(--on-sec); }
[data-look="civic"] .sq-mini.playing { box-shadow: inset 0 0 0 2px var(--sun); }
[data-look="civic"] .sq-h { font-weight: 800; letter-spacing: .08em; }
[data-look="civic"] .sq-a { border-radius: 14px; padding: 6px 6px 6px 6px; }
[data-look="civic"] .sq-a.mine { background: var(--okbg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 55%, transparent); }
[data-look="civic"] .sq-a.mine b { color: var(--ink); }
[data-look="civic"] .sq-pick { color: var(--muted); }
[data-look="civic"] .sq-pick[aria-pressed="true"] { color: var(--sun-d); }
[data-look="civic"] .sq-more summary { color: var(--link); font-weight: 800; }
[data-look="civic"] .sq-need { background: var(--soft); border-radius: var(--r-sm); }
[data-look="civic"] .sq-known { min-height: 40px; border: 0; background: var(--sec); color: var(--on-sec); font-weight: 800; }
[data-look="civic"] .sq-known.on { background: var(--okbg); color: var(--ok-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 55%, transparent); }
[data-look="civic"] .sq button:focus-visible, [data-look="civic"] .fchip:focus-visible { outline: 3px solid var(--focus); }

/* ============ 14. la pestaña «Simulacro» (screens/exam.js → SimHero) y su hoja de inicio (screens/simulator.js) ============
   Arriba, quien te va a entrevistar (su foto grande, su nombre y cómo es) y UN botón principal; debajo, los tres oficiales como
   tarjetas que se tocan para elegir (la elegida con su aro azul y su palomita; las cerradas en gris con candado). El examen cívico,
   aparte, con botón secundario. */
[data-look="civic"] .sm-hero { margin-top: 8px; padding: 18px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
[data-look="civic"] .sm-who { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
[data-look="civic"] .sm-face { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--sun); background: var(--soft); }
[data-look="civic"] .sm-who h2 { font-size: calc(22px * var(--ts)); line-height: 1.15; }
[data-look="civic"] .sm-who p { margin-top: 3px; color: var(--muted); font-size: calc(14px * var(--ts)); font-weight: 700; line-height: 1.3; }
[data-look="civic"] .sm-d { margin: 12px 0 14px; font-size: calc(15px * var(--ts)); line-height: 1.4; color: var(--ink-2); }
[data-look="civic"] .sm-pick-t { margin: 18px 2px 8px; font: 800 calc(12px * var(--ts))/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
[data-look="civic"] .sm-offs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
[data-look="civic"] .sm-off { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink); text-align: center; font: inherit; cursor: pointer; min-height: 132px; transition: transform .15s, border-color .15s; }
[data-look="civic"] .sm-off:active { transform: scale(.97); }
[data-look="civic"] .sm-off-face { position: relative; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: var(--soft); }
[data-look="civic"] .sm-off b { font: 900 calc(15px * var(--ts))/1.2 var(--font-display); }
[data-look="civic"] .sm-off small { font-size: calc(12px * var(--ts)); color: var(--muted); font-weight: 700; line-height: 1.25; }
[data-look="civic"] .sm-off.on { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta); background: color-mix(in srgb, var(--cta) 6%, var(--card)); }
[data-look="civic"] .sm-off.on::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cta); color: var(--on-cta); font: 900 12px/1 var(--font-display); }
[data-look="civic"] .sm-off.locked { cursor: default; background: var(--soft); border-color: transparent; }
[data-look="civic"] .sm-off.locked .sim-photo { filter: grayscale(1) brightness(.7); }
[data-look="civic"] .sm-off.locked b { color: var(--muted); }
[data-look="civic"] .sm-lock { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; color: var(--flag-white); }
[data-look="civic"] .sm-lock .ico { width: 22px; height: 22px; color: var(--flag-white) !important; }
[data-look="civic"] .sm-beaten { color: var(--ok-text) !important; }
[data-look="civic"] .sm-off:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[data-look="civic"] .sm-exam h3 { font-size: calc(18px * var(--ts)); }
[data-look="civic"] .sm-exam .btn { margin-top: 12px; }
[data-look="civic"] .sm .fmt-more summary { min-height: 44px; display: flex; align-items: center; }
/* la hoja de inicio: cada oficial una tarjeta que se elige, con su aro y su palomita */
[data-look="civic"] button.sim-officer { position: relative; border: 1.5px solid var(--line); background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 10px 40px 10px 12px; }
[data-look="civic"] .sim-officer.on { border-color: var(--cta); background: color-mix(in srgb, var(--cta) 6%, var(--card)); box-shadow: 0 0 0 1px var(--cta); }
[data-look="civic"] .sim-officer.on::after { content: "✓"; position: absolute; right: 12px; top: 50%; margin-top: -12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cta); color: var(--on-cta); font: 900 13px/1 var(--font-display); }
[data-look="civic"] .sim-officer.ready:not(.on)::after { content: ""; position: absolute; right: 12px; top: 50%; margin-top: -12px; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
[data-look="civic"] .sim-officer.locked { background: var(--soft); border-color: transparent; box-shadow: none; }
[data-look="civic"] .sim-officer .sim-officer-face { border-radius: 50%; width: 56px; height: 56px; }
[data-look="civic"] .sim-officer b { font-family: var(--font-display); }
[data-look="civic"] .sim-tipbox { background: var(--sun-soft); color: var(--ink); border-radius: var(--r-sm); }
/* el examen: si lee el oficial, va su foto con su nombre (no el Abuelito) */
[data-look="civic"] .qhead .q-spk { flex-direction: column; gap: 4px; flex: none; width: 76px; align-self: flex-start; }
[data-look="civic"] .qhead .q-spk .spk-name { flex-direction: column; gap: 3px; width: 100%; }
[data-look="civic"] .qhead .q-spk .spk-n { font-size: calc(11.5px * var(--ts)); line-height: 1.15; text-align: center; white-space: normal; }

/* «Tu mapa de temas» (Mi cita, screens/progress.js → TopicMapCivic): el resumen con la barra de un pedacito por tema y el que
   conviene practicar; abajo la lista en una sola tarjeta, una fila por tema. El nivel lo dice una etiqueta con texto y su color
   con significado: sin ver = neutro, flojo = rojo suave, casi = ámbar, dominado = verde. */
[data-look="civic"] .lvl-none { --lv: var(--soft-2); --lvbg: var(--soft); --lvt: var(--muted); }
[data-look="civic"] .lvl-weak { --lv: var(--red); --lvbg: var(--kobg); --lvt: var(--ko-text); }
[data-look="civic"] .lvl-mid { --lv: var(--warn); --lvbg: var(--warnbg); --lvt: var(--warn-text); }
[data-look="civic"] .lvl-strong { --lv: var(--green); --lvbg: var(--okbg); --lvt: var(--ok-text); }
[data-look="civic"] .tms-t { margin: 0; font: 900 calc(20px * var(--ts))/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
[data-look="civic"] .tms-bar { display: flex; gap: 4px; margin-top: 12px; }
[data-look="civic"] .tms-bar i { flex: 1; height: 10px; border-radius: 99px; background: var(--lv); }
[data-look="civic"] .tms-next { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
[data-look="civic"] .tms-next small { display: block; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: calc(11.5px * var(--ts)); color: var(--muted); }
[data-look="civic"] .tms-next b { display: block; font: 900 calc(18px * var(--ts))/1.25 var(--font-display); color: var(--ink); }
[data-look="civic"] .tms-ic, [data-look="civic"] .tml-ic { flex: none; display: grid; place-items: center; }
[data-look="civic"] .tms .btn { width: 100%; }
[data-look="civic"] .tml { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
[data-look="civic"] .tml-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 12px 12px 14px; border: 0; background: transparent;
  color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
[data-look="civic"] .tml-row + .tml-row { border-top: 1px solid var(--line); }
[data-look="civic"] .tml-row:active { background: var(--soft); }
[data-look="civic"] .tml-row:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--r-sm); }
[data-look="civic"] .tml-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
[data-look="civic"] .tml-main b { font: 800 calc(16px * var(--ts))/1.25 var(--font); }
[data-look="civic"] .tml-main small { font-weight: 700; font-size: calc(13px * var(--ts)); color: var(--muted); }
[data-look="civic"] .tml-bar { display: block; height: 5px; margin-top: 5px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
[data-look="civic"] .tml-bar i { display: block; height: 100%; border-radius: 99px; background: var(--lv); }
[data-look="civic"] .tml-bar.lvl-none i { background: var(--muted); }
[data-look="civic"] .tml-tag { flex: none; min-width: 6.4em; text-align: center; padding: 4px 10px; border-radius: 99px; background: var(--lvbg); color: var(--lvt); font-weight: 800; font-size: calc(12.5px * var(--ts)); white-space: nowrap; }
[data-look="civic"] .tml-go { flex: none; color: var(--muted); font-size: 24px; line-height: 1; margin-left: -2px; }
@media (prefers-reduced-motion: no-preference) { [data-look="civic"] .tml-row { transition: background .15s; } }

/* ── Premium de ciudadanía (ui/premium-civica.js; datos/CIUDADANIA-AL-DIA.md): la v5 en su mundo. El cielo azul marino de la app, el
   edificio de la corte con columnas y la bandera (sin DMV ni carro) y su pasaporte en el piso; los mismos bloques de .prem3 */
[data-look="civic"] .prem-civ {
  --p3-cielo: #e6ecf8;
  --p3-cielo2: #fbf4e6;
  --p3-edif: #ffffff;
  --p3-linea: #1f2a44;
  --p3-letrero: #c8a24a;
  --p3-piso: #dfe3ea;
}
[data-theme="dark"][data-look="civic"] .prem-civ {
  --p3-cielo: #111b33;
  --p3-cielo2: #1b1a2a;
  --p3-edif: #222a3b;
  --p3-linea: #c9cfdc;
  --p3-letrero: #c8a24a;
  --p3-piso: #262d3b;
}
[data-look="civic"] .prem-civ-corte { right: 3%; bottom: 30px; width: 46%; max-width: 190px; opacity: .6; overflow: visible; }
[data-look="civic"] .prem-civ-flag { transform-origin: 110px -20px; }
[data-look="civic"] .prem-civ-sello { right: 4%; bottom: 6px; transform: rotate(-8deg); }
[data-look="civic"] .prem3-escena .prem-civ-sello svg { width: 54px; height: 54px; }
[data-look="civic"] .prem-civ .prem3-camino li.sigue { background: color-mix(in srgb, var(--cta) 8%, var(--card)); border-color: color-mix(in srgb, var(--cta) 35%, var(--line)); }
[data-look="civic"] .prem-civ .prem3-familia { background: color-mix(in srgb, var(--cta) 7%, var(--card)); border: 1px solid var(--line); }
[data-look="civic"] .prem-civ-aviso { margin: 22px 0 0; color: var(--muted); font-weight: 700; font-size: calc(12.5px * var(--ts)); line-height: 1.45; text-align: center; }
/* con «Ver más planes»: 4 planes en una cuadrícula de 2 × 2 (no caben 4 en una fila con el precio grande) */
[data-look="civic"] .prem-civica .prem3-seg.cuatro { grid-auto-flow: row; grid-template-columns: 1fr 1fr; row-gap: 14px; }
[data-look="civic"] .prem-civica .prem3-op { min-height: 76px; }

/* ── Perfil de ciudadanía (screens/profile-civica.js): «Tu Premium y tu cuenta» en una sola tarjeta y «Más cursos del Abuelito» */
[data-look="civic"] .pfc-m, [data-look="civic"] .pfc-cursos {
  --pfc-marino: #1d3f94;
  --pfc-marino-2: #26407a;
  --pfc-tinta-oro: #0f1b33;
  --pfc-claro: rgba(255, 255, 255, .8);
  --pfc-velo: rgba(255, 255, 255, .14);
  --pfc-chev-claro: rgba(255, 255, 255, .7);
}
[data-look="civic"] .pfc-m { margin-top: 14px; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .pfc-m > button, [data-look="civic"] .pfc-aviso, [data-look="civic"] .pfc-curso { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 14px 16px; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
[data-look="civic"] .pfc-m > * + * { border-top: 1px solid var(--line); }
[data-look="civic"] .pfc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
[data-look="civic"] .pfc-txt b { font: 900 calc(16.5px * var(--ts))/1.25 var(--font); }
[data-look="civic"] .pfc-txt small { color: var(--muted); font-weight: 700; font-size: calc(13.5px * var(--ts)); line-height: 1.35; }
[data-look="civic"] .pfc-prem.vende { background: linear-gradient(135deg, var(--pfc-marino), var(--pfc-marino-2)); color: var(--on-cta); }
[data-look="civic"] .pfc-prem.vende small { color: var(--pfc-claro); }
[data-look="civic"] .pfc-prem.con { background: var(--sun-soft); }
[data-look="civic"] .pfc-tag { text-transform: uppercase; letter-spacing: .08em; font-weight: 900 !important; font-size: calc(11.5px * var(--ts)) !important; color: var(--sun) !important; }
[data-look="civic"] .pfc-prem.con .pfc-tag { color: var(--sun-d) !important; }
[data-look="civic"] .pfc-corona { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--pfc-velo); color: var(--sun); }
[data-look="civic"] .pfc-prem.con .pfc-corona { background: var(--card); color: var(--sun-d); }
[data-look="civic"] .pfc-corona .ico { width: 28px; height: 28px; }
[data-look="civic"] .pfc-btn { flex: none; padding: 9px 14px; border-radius: 999px; background: var(--sun); color: var(--pfc-tinta-oro); font: 900 calc(14px * var(--ts))/1 var(--font); }
[data-look="civic"] .pfc-aviso { flex-direction: column; align-items: stretch !important; gap: 10px !important; background: var(--warnbg); cursor: default !important; }
[data-look="civic"] .pfc-aviso b { color: var(--warn-text); }
[data-look="civic"] .pfc-aviso .btn { width: 100%; }
[data-look="civic"] .pfc-ini { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; background: var(--cta); color: var(--on-cta); font: 900 calc(19px * var(--ts))/1 var(--font-display); }
[data-look="civic"] .pfc-gl { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); }
[data-look="civic"] .pfc-ok { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 99px; background: var(--green); vertical-align: 1px; }
[data-look="civic"] .pfc-chev { flex: none; color: var(--muted); display: grid; }
[data-look="civic"] .pfc-prem.vende .pfc-chev { color: var(--pfc-chev-claro); }
[data-look="civic"] .pfc-cursos { border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
[data-look="civic"] .pfc-curso + .pfc-curso { border-top: 1px solid var(--line); }
[data-look="civic"] .pfc-curso .pf2-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--soft); }
[data-look="civic"] .pfc-m > button:focus-visible, [data-look="civic"] .pfc-curso:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) { [data-look="civic"] .pfc-m > button:active, [data-look="civic"] .pfc-curso:active { background-color: var(--soft); } [data-look="civic"] .pfc-prem.vende:active { background: var(--pfc-marino); } }
