/* Eslora 24 · hoja de estilos única.
 * Guía de estilo web v1 (noviembre 2026): Figtree + JetBrains Mono, Azul Eslora para lo que se pulsa,
 * Abisal para el texto, Lima como único acento (nunca como texto sobre blanco), sin fotos, círculos de
 * línea como grafismo, bandas blanco/Bruma, tarjetas con borde, botones píldora. Fuentes alojadas aquí. */

@font-face { font-family: "Figtree"; src: url("fuentes/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fuentes/jetbrainsmono-semibold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Paleta de la guía */
  --azul: #1D7EAD;
  --azul-prof: #165F84;
  --abisal: #0B2B3C;
  --lima: #C5F05C;
  --lima-osc: #A6D43F;
  --espuma: #E8F3F8;
  --bruma: #F3F7F9;
  --marea: #546E7D;
  --linea: #DDE7ED;
  --niebla: #A9C3D1;

  /* Papeles en la interfaz */
  --fondo: #FFFFFF;
  --banda: var(--bruma);
  --superficie: #FFFFFF;
  --superficie-2: var(--bruma);
  --texto: var(--abisal);
  --apagado: var(--marea);
  --borde: var(--linea);
  --borde-fuerte: #CFDDE6;
  --primario: var(--azul);
  --primario-hover: var(--azul-prof);
  --primario-texto: #FFFFFF;
  --enlace: var(--azul-prof);
  --tinte: var(--espuma);
  --tinte-hover: #F3F9FC;
  --circulo: #CDE3EE;
  --ok: #18865A;
  --ok-texto: #0F5A3B;
  --ok-suave: #EAF6EF;
  --mal: #C9372E;
  --mal-texto: #8E2620;
  --mal-suave: #FBECEA;
  --aviso: #7A5200;
  --aviso-suave: #FFF4D6;
  --sombra: 0 24px 60px rgba(11, 43, 60, .12);
  --sombra-hover: 0 12px 32px rgba(11, 43, 60, .10);

  --radio: 22px;
  --radio-g: 32px;
  --radio-m: 14px;
  --radio-p: 10px;
  --letra: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --lado: 20px;
  color-scheme: light;
}

/* Modo oscuro: superficies Abisal, texto claro, círculos #1C4458 (como la banda oscura de la guía) */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --fondo: #072230; --banda: #0B2B3C; --superficie: #0B2B3C; --superficie-2: #123B52; --texto: #EAF3F7;
    --apagado: var(--niebla); --borde: #1C4458; --borde-fuerte: #2E5A70; --enlace: #8FC3DE; --tinte: #123B52;
    --tinte-hover: #10364B; --circulo: #1C4458; --ok: #4CC08A; --ok-texto: #8FE0B8; --ok-suave: #0F3A2C; --mal: #F0857B;
    --mal-texto: #F7B3AC; --mal-suave: #3D1D1A; --aviso: #F2C766; --aviso-suave: #362C12; --sombra: 0 24px 60px rgba(0, 0, 0, .45);
    --sombra-hover: none; color-scheme: dark;
  }
}
:root[data-tema="oscuro"] {
  --fondo: #072230; --banda: #0B2B3C; --superficie: #0B2B3C; --superficie-2: #123B52; --texto: #EAF3F7;
  --apagado: var(--niebla); --borde: #1C4458; --borde-fuerte: #2E5A70; --enlace: #8FC3DE; --tinte: #123B52;
  --tinte-hover: #10364B; --circulo: #1C4458; --ok: #4CC08A; --ok-texto: #8FE0B8; --ok-suave: #0F3A2C; --mal: #F0857B;
  --mal-texto: #F7B3AC; --mal-suave: #3D1D1A; --aviso: #F2C766; --aviso-suave: #362C12; --sombra: 0 24px 60px rgba(0, 0, 0, .45);
  --sombra-hover: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--fondo); color: var(--texto); font-family: var(--letra);
  font-size: 16px; line-height: 1.55; font-weight: 450; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
@media (min-width: 768px) { :root { --lado: 32px; } }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--enlace); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--texto); text-decoration-thickness: 2px; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; color: var(--texto); }
h1, .h1 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -0.03em; }
h2, .h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.025em; }
h3, .h3 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); font-weight: 600; }
code { background: var(--superficie-2); padding: .1em .4em; border-radius: 6px; font-size: .86em; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--borde); margin: 32px 0; }

/* Subrayado lima de los titulares (la guía: se destaca con el subrayado, no con cursiva) */
mark { background: linear-gradient(transparent 58%, var(--lima) 58%, var(--lima) 94%, transparent 94%); color: inherit; padding: 0 .12em; margin: 0 -.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--enlace); margin: 0 0 14px; }
.icono { width: 24px; height: 24px; flex: none; }
.tesela { width: 48px; height: 48px; border-radius: var(--radio-m); background: var(--tinte); color: var(--azul); display: grid; place-items: center; flex: none; }
.banda .tesela { background: var(--superficie); }
:root[data-tema="oscuro"] .tesela { color: #8FC3DE; }

.saltar { position: absolute; left: -999px; top: 0; background: var(--abisal); color: #fff; padding: .6em 1em; z-index: 100; }
.saltar:focus { left: 1rem; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Grafismo: círculos concéntricos de línea que asoman por una esquina */
.circulos { position: absolute; pointer-events: none; stroke: var(--circulo); stroke-width: 1.5; width: 600px; height: 600px; }
.circulos.arriba-dcha { right: -200px; top: -200px; }
.circulos.abajo-izq { left: -230px; bottom: -250px; width: 460px; height: 460px; }
.circulos.abajo-dcha { right: -240px; bottom: -260px; width: 620px; height: 620px; }
.circulos.centro { left: 50%; top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%); }
.oscuro .circulos, .banda-abisal .circulos { stroke: #1C4458; }

/* --- Estructura --- */
.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--lado); }
.contenedor.estrecho, .estrecho { max-width: 800px; }
.contenedor.medio { max-width: 960px; }
.contenedor.mini { max-width: 480px; }
.seccion { padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 768px) { .seccion { padding-top: 80px; padding-bottom: 96px; } }
.seccion-corta { padding-top: 40px; padding-bottom: 64px; }
.banda { background: var(--banda); }
.banda-abisal { background: var(--abisal); color: var(--niebla); position: relative; overflow: hidden; }
.banda-abisal h2, .banda-abisal h3, .banda-abisal strong { color: #fff; }
.banda-abisal .entradilla { color: var(--niebla); }
.centrado { text-align: center; }
.apagado { color: var(--apagado); }
.pequeno { font-size: .875rem; }
.entradilla { font-size: 17px; color: var(--apagado); max-width: 40em; line-height: 1.55; }
@media (min-width: 768px) { .entradilla { font-size: 19px; } }
.centrado .entradilla { margin-left: auto; margin-right: auto; }
.centrado-bloque { margin-left: auto; margin-right: auto; }
.romper { overflow-wrap: anywhere; }
.crece { flex: 1; min-width: 0; }
.en-linea { display: inline; }
.titulo-seccion { margin-top: 2.2em; margin-bottom: .9em; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.miga { margin-bottom: 1em; font-size: .92rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.miga a { text-decoration: none; color: var(--apagado); }
.miga a:hover { color: var(--texto); }
.cabecera-pagina { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 8px; }
.cabecera-pagina h1 { margin-bottom: .2em; }
.cabecera-pagina p { margin: 0; }
.pila { display: flex; flex-direction: column; gap: 24px; }
.pila-p { display: flex; flex-direction: column; gap: 12px; }

/* --- Cabecera y navegación --- */
.cabecera { background: color-mix(in srgb, var(--fondo) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); position: sticky; top: 0; z-index: 20; }
.cabecera-dentro { display: flex; align-items: center; gap: 24px; height: 76px; }
.marca { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo { height: 32px; width: auto; display: block; }
.logo-oscuro { display: none; }
:root[data-tema="oscuro"] .logo-claro { display: none; }
:root[data-tema="oscuro"] .logo-oscuro { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) .logo-claro { display: none; } :root:not([data-tema="claro"]) .logo-oscuro { display: block; } }
.nav { display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--apagado); text-decoration: none; padding: 0 15px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: color .2s, background .2s; }
.nav a:hover { color: var(--texto); background: var(--superficie-2); }
.nav a.activo { color: var(--texto); background: var(--tinte); }
.cabecera-derecha { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.enlace-cabecera { color: var(--texto); text-decoration: none; font-weight: 600; font-size: 15px; }
.enlace-cabecera:hover { color: var(--azul); }
.menu-usuario { position: relative; }
.menu-usuario summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 2px; border-radius: 999px; }
.menu-usuario summary::-webkit-details-marker { display: none; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--abisal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
:root[data-tema="oscuro"] .avatar { background: var(--superficie-2); }
.menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio-m); box-shadow: 0 16px 40px rgba(11, 43, 60, .14); padding: 8px; z-index: 30; }
.menu a, .enlace-menu { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--texto); text-decoration: none; font: inherit; font-size: 15px; font-weight: 600; background: none; border: 0; cursor: pointer; }
.menu a:hover, .enlace-menu:hover { background: var(--superficie-2); color: var(--texto); }
.menu .icono { width: 18px; height: 18px; color: var(--apagado); }
.menu-cabecera { padding: 8px 12px 12px; margin: 0 0 6px; border-bottom: 1px solid var(--borde); line-height: 1.4; overflow-wrap: anywhere; }
.menu-separador { height: 1px; background: var(--borde); margin: 6px 0; }

/* Botón «Estudiar» (alumnos del curso): Lima sobre Abisal, siempre visible */
.boton-estudiar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--abisal); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .2s; }
.boton-estudiar .icono { width: 18px; height: 18px; color: var(--lima); }
.boton-estudiar:hover { color: #fff; transform: translateY(-1px); }
.boton-estudiar.activo { box-shadow: 0 0 0 3px var(--lima); }
:root[data-tema="oscuro"] .boton-estudiar { background: var(--lima); color: var(--abisal); }
:root[data-tema="oscuro"] .boton-estudiar .icono { color: var(--abisal); }

.pestanas-movil { display: none; }
@media (max-width: 899px) {
  .nav { display: none; }
  .pestanas-movil {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--fondo);
    border-top: 1px solid var(--borde); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .pestanas-movil a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--apagado); text-decoration: none; padding: 4px 0; }
  .pestanas-movil a.activo { color: var(--texto); }
  .pestanas-movil a.activo .icono { color: var(--azul); }
  .pestanas-movil a.estudiar .icono { color: var(--abisal); background: var(--lima); border-radius: 8px; padding: 2px; }
  body:has(.pestanas-movil) { padding-bottom: 72px; }
  .cabecera-dentro { height: 64px; gap: 12px; }
  .logo { height: 28px; }
  .boton-estudiar span { display: none; }
  .boton-estudiar { padding: 0 12px; }
}

.banda-aviso { background: var(--aviso-suave); color: var(--aviso); font-size: 15px; font-weight: 600; padding: 12px 0; }
.banda-aviso .contenedor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.banda-aviso form { display: inline; }
.banda-aviso .crece { min-width: 200px; }
.banda-aviso .enlace-boton { color: inherit; }
.banda-plan { background: var(--abisal); color: #fff; font-size: 15px; font-weight: 600; padding: 12px 0; }
.banda-plan .contenedor { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.banda-plan .boton { min-height: 40px; background: var(--lima); border-color: var(--lima); color: var(--abisal); font-size: 14px; padding: 0 18px; }
.banda-plan .cerrar { background: none; border: 0; color: var(--niebla); cursor: pointer; padding: 6px; border-radius: 50%; display: grid; place-items: center; }
.banda-plan .cerrar:hover { color: #fff; background: rgba(255,255,255,.08); }
.banda-plan .cerrar .icono { width: 18px; height: 18px; }
.avisos { padding-top: 24px; }
.aviso { padding: 14px 18px; border-radius: var(--radio-m); margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.aviso.ok { background: var(--ok-suave); color: var(--ok-texto); }
.aviso.error { background: var(--mal-suave); color: var(--mal-texto); }
.aviso.info { background: var(--tinte); color: var(--texto); }

.pie { background: var(--abisal); padding: 40px 0 36px; color: var(--niebla); font-size: 14px; }
:root[data-tema="oscuro"] .pie { background: #051A25; }
.pie-dentro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.pie nav { display: flex; gap: 10px 24px; flex-wrap: wrap; align-items: center; }
.pie a, .pie .enlace-boton { color: var(--niebla); font-weight: 500; text-decoration: none; font-size: 14px; }
.pie a:hover, .pie .enlace-boton:hover { color: #fff; }
.pie .logo { height: 28px; }

/* --- Botones: píldora, 52 px, 700 --- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700; font-size: 16px;
  padding: 0 26px; min-height: 52px; border-radius: 999px; border: 1.5px solid var(--primario);
  background: var(--primario); color: var(--primario-texto); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
@media (hover: hover) { .boton:hover { background: var(--primario-hover); border-color: var(--primario-hover); color: var(--primario-texto); transform: translateY(-1px); text-decoration: none; } }
.boton:active { transform: scale(.98); }
.boton:disabled { opacity: .5; cursor: default; transform: none; }
.boton.secundario { background: var(--superficie); color: var(--texto); border-color: var(--borde-fuerte); }
@media (hover: hover) { .boton.secundario:hover { background: var(--superficie); border-color: var(--texto); color: var(--texto); } }
.boton.fantasma { background: transparent; color: var(--enlace); border-color: transparent; padding: 0 8px; }
@media (hover: hover) { .boton.fantasma:hover { background: transparent; color: var(--texto); border-color: transparent; } }
.boton.lima { background: var(--lima); border-color: var(--lima); color: var(--abisal); }
@media (hover: hover) { .boton.lima:hover { background: #D3F57E; border-color: #D3F57E; color: var(--abisal); } }
.boton.peligro { background: var(--mal); border-color: var(--mal); color: #fff; }
.boton.fantasma.peligro { background: transparent; color: var(--mal); border-color: transparent; }
.boton.exito { background: var(--ok); border-color: var(--ok); color: #fff; }
.boton.grande { min-height: 56px; padding: 0 30px; font-size: 17px; }
.boton.pequeno { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.boton.bloque { display: flex; width: 100%; }
.boton .icono { width: 18px; height: 18px; }
.botones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 20px 0; }
.botones.centrados { justify-content: center; }
.enlace-boton { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--enlace); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.enlace-boton.apagado { color: var(--apagado); }
.enlace-flecha { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--enlace); }
.enlace-flecha .icono { width: 18px; height: 18px; transition: transform .2s; }
.enlace-flecha:hover .icono { transform: translateX(3px); }
.boton-icono { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--texto); cursor: pointer; transition: background .2s; }
.boton-icono:hover { background: var(--superficie-2); }
.icono-rejilla { width: 18px; height: 18px; background:
  linear-gradient(currentColor 0 0) 0 0 / 7px 7px no-repeat, linear-gradient(currentColor 0 0) 100% 0 / 7px 7px no-repeat,
  linear-gradient(currentColor 0 0) 0 100% / 7px 7px no-repeat, linear-gradient(currentColor 0 0) 100% 100% / 7px 7px no-repeat; border-radius: 2px; }
@media (max-width: 479px) {
  .acciones .boton, .botones.apilar .boton, .botones.apilar form, .botones.apilar form .boton { width: 100%; }
}

/* --- Formularios --- */
.formulario { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.formulario .boton { align-self: flex-start; }
.formulario .boton.bloque { align-self: stretch; }
.campo { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.campo label, .campo legend { font-weight: 600; font-size: 14.5px; padding: 0; }
.campo legend { margin-bottom: 10px; }
.campo.compacto { gap: 4px; }
.campo.compacto label { font-family: var(--mono); font-size: 11.5px; color: var(--apagado); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
input, select, textarea {
  font: inherit; font-size: 16px; font-weight: 500; color: var(--texto); background: var(--superficie); border: 1.5px solid var(--borde);
  border-radius: var(--radio-m); padding: 13px 16px; min-height: 54px; width: 100%; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; line-height: 1.5; }
select { max-width: 100%; text-overflow: ellipsis; }
input::placeholder, textarea::placeholder { color: #8DA3B0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px var(--tinte); }
input[disabled], input[readonly] { background: var(--superficie-2); color: var(--apagado); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--azul); flex: none; margin: 1px 0 0; }
input[type="file"] { min-height: 0; padding: 10px; }
.ayuda { color: var(--apagado); font-size: 14px; margin: 0; }
.obligatorio { color: var(--mal); }
.campo-clave { position: relative; }
.campo-clave input { padding-right: 88px; }
.ver-clave { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--enlace); font: inherit; font-size: 14px; font-weight: 700; padding: 8px 12px; cursor: pointer; border-radius: 999px; }
.casilla { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.45; }
.casilla.apagado { color: var(--apagado); }
.casillas { display: flex; flex-direction: column; gap: 12px; }
.casillas.en-fila { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
.opciones-tarjeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.opcion-tarjeta { position: relative; cursor: pointer; }
.opcion-tarjeta input { position: absolute; opacity: 0; }
.opcion-tarjeta span { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1.5px solid var(--borde); border-radius: var(--radio-m); background: var(--superficie); height: 100%; transition: border-color .2s, background .2s; }
.opcion-tarjeta strong { font-weight: 800; }
.opcion-tarjeta small { color: var(--apagado); line-height: 1.35; font-size: 13px; }
.opcion-tarjeta input:checked + span { border-color: var(--azul); background: var(--tinte); }
.opcion-tarjeta input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 2px; }
.fila-formulario { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.fila-formulario select, .fila-formulario input { width: auto; flex: 1; min-width: 0; }
.fila-formulario.envolver { flex-wrap: wrap; }
.rejilla-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.rejilla-campos .ancho { grid-column: 1 / -1; }
.buscador { display: flex; gap: 10px; margin: 20px 0 12px; flex-wrap: wrap; }
.buscador input { flex: 2; min-width: 200px; width: auto; }
.buscador select { flex: 1; width: auto; min-width: 140px; }
.buscador .boton { min-height: 54px; }
.radio-fecha { display: flex; flex-direction: column; gap: 10px; }
.radio-fecha .fila-fecha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.radio-fecha input[type="date"] { width: auto; min-height: 44px; padding: 8px 12px; }

/* --- Tarjetas, listas, etiquetas --- */
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; }
@media (min-width: 768px) { .tarjeta { padding: 28px; } }
.tarjeta + .tarjeta { margin-top: 16px; }
.tarjeta.sin-relleno { padding: 0; overflow: hidden; }
.tarjeta h3 { margin-bottom: .35em; }
.tarjeta.tintada { background: var(--tinte); border-color: transparent; }
.tarjeta-enlace { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; }
@media (hover: hover) { .tarjeta-enlace:hover { transform: translateY(-3px); box-shadow: var(--sombra-hover); border-color: var(--borde-fuerte); color: inherit; } }
.tarjeta-enlace > .etiqueta { align-self: flex-start; margin-bottom: 12px; }
.tarjeta.bloqueada { background: var(--banda); }
.tarjeta.atencion { border-color: var(--mal); }
.tarjeta-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 20px; }
.tarjeta-fila .con-tesela { display: flex; gap: 18px; align-items: center; }
.tarjeta-fila h3 { margin: 0 0 2px; }
.tarjeta-fila p { margin: 0; color: var(--apagado); font-size: 15px; }
.rejilla { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .rejilla { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .rejilla { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.rejilla > .tarjeta + .tarjeta { margin-top: 0; }
.rejilla-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .rejilla-2 { grid-template-columns: repeat(2, 1fr); } }
.rejilla-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .rejilla-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .rejilla-4 { grid-template-columns: repeat(4, 1fr); } }
.tablero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 960px) { .tablero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.lista .fila { padding: 16px 22px; border-bottom: 1px solid var(--borde); }
.lista .fila:last-child { border-bottom: 0; }
.fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fila p { margin: 0; }
.fila strong { font-weight: 700; }
.fila-enlace { text-decoration: none; color: inherit; transition: background .2s; }
.fila-enlace:hover { background: var(--banda); color: inherit; }
.fila-derecha { display: flex; align-items: center; gap: 10px; flex: none; text-align: right; }
.fila-derecha.columna { flex-direction: column; align-items: flex-end; gap: 4px; }
.etiqueta { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--tinte); color: var(--enlace); white-space: nowrap; line-height: 1.4; text-decoration: none; vertical-align: middle; }
.etiqueta.ok { background: var(--ok-suave); color: var(--ok-texto); }
.etiqueta.mal { background: var(--mal-suave); color: var(--mal-texto); }
.etiqueta.neutra { background: var(--tinte); color: var(--enlace); }
.etiqueta.gris { background: var(--superficie-2); color: var(--apagado); }
.etiqueta.lima, .etiqueta.premium { background: var(--lima); color: var(--abisal); }
.etiqueta.abisal { background: var(--abisal); color: #fff; }
.etiqueta.aviso { background: var(--aviso-suave); color: var(--aviso); }
.etiqueta.mono { font-family: var(--mono); font-weight: 600; letter-spacing: .06em; }
.nota { font-weight: 800; font-variant-numeric: tabular-nums; }
.recortado { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lista-simple { padding-left: 1.2em; }
.lista-check { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.lista-check .icono { width: 20px; height: 20px; color: var(--azul); margin-top: 1px; }
.banda-abisal .lista-check .icono, .promo .lista-check .icono { color: var(--lima); }
.ventajas-linea { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--apagado); font-weight: 500; }
.ventajas-linea span { display: inline-flex; align-items: center; gap: 7px; }
.ventajas-linea .icono { width: 18px; height: 18px; color: var(--azul); stroke-width: 2; }
.vacio { text-align: center; padding: 48px 24px; color: var(--apagado); background: var(--banda); border-radius: var(--radio); margin-top: 24px; }
.icono-grande { width: 72px; height: 72px; border-radius: 22px; background: var(--tinte); color: var(--azul); display: grid; place-items: center; margin: 0 auto 24px; }
.icono-grande .icono { width: 34px; height: 34px; }
pre.codigo { background: var(--superficie-2); padding: 16px; border-radius: var(--radio-m); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

progress.barra { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 99px; background: var(--superficie-2); overflow: hidden; margin: 10px 0 4px; }
progress.barra::-webkit-progress-bar { background: #E3ECF1; border-radius: 99px; }
progress.barra::-webkit-progress-value { background: var(--azul); border-radius: 99px; }
progress.barra::-moz-progress-bar { background: var(--azul); border-radius: 99px; }
progress.barra.mal::-webkit-progress-value { background: var(--mal); }
progress.barra.mal::-moz-progress-bar { background: var(--mal); }
progress.barra.ok::-webkit-progress-value { background: var(--ok); }
progress.barra.ok::-moz-progress-bar { background: var(--ok); }
:root[data-tema="oscuro"] progress.barra::-webkit-progress-bar { background: var(--superficie-2); }

/* Chips y pestañas de titulación (mono) */
.chips { display: flex; gap: 8px; margin: 24px 0 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--borde); background: var(--superficie); color: var(--texto); text-decoration: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; flex: none; transition: border-color .2s, background .2s; }
.chip span { color: var(--apagado); font-weight: 600; }
.chip:hover { border-color: var(--azul); color: var(--texto); }
.chip.activo { background: var(--abisal); color: #fff; border-color: var(--abisal); }
.chip.activo span { color: var(--niebla); }
.pestanas-tit { display: flex; gap: 6px; flex-wrap: wrap; }
.pestana-tit { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--borde); background: var(--superficie); color: var(--apagado); font-family: var(--mono); font-weight: 600; font-size: 12.5px; text-decoration: none; }
.pestana-tit:hover { border-color: var(--azul); color: var(--azul-prof); }
.pestana-tit.activo { background: var(--abisal); border-color: var(--abisal); color: #fff; }
:root[data-tema="oscuro"] .pestana-tit.activo { background: var(--lima); border-color: var(--lima); color: var(--abisal); }

.cifras { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.cifra { display: flex; flex-direction: column; }
.cifra span { font-family: var(--mono); font-size: 28px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.cifra small { color: var(--apagado); font-size: 13px; font-weight: 600; }
.cifra.ok span { color: var(--ok); }
.cifra.mal span { color: var(--mal); }
.cifra-grande { display: block; font-family: var(--mono); font-size: 56px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; }
.tabla-envoltorio { overflow-x: auto; background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); }
.tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla th, .tabla td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--borde); vertical-align: top; }
.tabla th { font-family: var(--mono); font-weight: 600; color: var(--apagado); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; background: var(--banda); white-space: nowrap; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tr.apagada td { opacity: .55; }
.tabla td.numero, .tabla th.numero { text-align: right; font-variant-numeric: tabular-nums; }
.paginacion { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }

details > summary { cursor: pointer; }
.zona-peligro { margin-top: 56px; border: 1px solid var(--borde); border-radius: var(--radio); padding: 18px 24px; }
.zona-peligro summary { color: var(--mal); font-weight: 700; }
.desplegable { border: 1px solid var(--borde); border-radius: var(--radio-m); padding: 14px 18px; background: var(--superficie); }
.desplegable summary { font-weight: 700; }
.desplegable[open] summary { margin-bottom: 12px; }
.lista-comprobacion { list-style: none; padding: 0; }
.lista-comprobacion li { padding: 6px 0; }
.lista-comprobacion li.ok span { color: var(--ok); font-weight: 800; }
.lista-comprobacion li.mal span { color: var(--mal); font-weight: 800; }
.lista-comprobacion small { display: block; color: var(--apagado); padding-left: 1.4em; }

/* Texto con formato (páginas, lecciones, textos legales) */
.texto-largo { font-size: 17px; line-height: 1.65; }
.texto-largo h2 { margin-top: 1.6em; font-size: 26px; }
.texto-largo h3 { margin-top: 1.4em; font-size: 20px; }
.texto-largo h4 { margin-top: 1.2em; }
.texto-largo li { margin-bottom: .5em; }
.texto-largo img { border-radius: var(--radio-m); display: block; margin: 24px auto; }
.texto-largo blockquote { margin: 24px 0; padding: 16px 22px; background: var(--banda); border-radius: var(--radio-m); border-left: 4px solid var(--lima); }
.texto-largo .video { margin: 24px 0; }
.texto-largo a.boton { text-decoration: none; }
.texto-largo table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15px; }
.texto-largo th, .texto-largo td { border: 1px solid var(--borde); padding: 8px 12px; text-align: left; }

/* --- Home --- */
.hero { padding: 48px 0 72px; }
@media (min-width: 960px) { .hero { padding: 72px 0 104px; } }
.hero-rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.hero-texto { display: flex; flex-direction: column; gap: 24px; }
.hero-texto > * { margin: 0; }
.hero h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.02; letter-spacing: -0.035em; }
.hero .entradilla { max-width: 500px; }
.panel-tintado { position: relative; overflow: hidden; border-radius: var(--radio-g); background: var(--tinte); padding: 32px 18px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 600px) { .panel-tintado { padding: 40px 32px; } }
.panel-tintado.alto { min-height: 600px; }
.tarjeta-flotante { position: relative; width: 100%; max-width: 480px; background: var(--superficie); border-radius: 24px; padding: 24px; box-shadow: var(--sombra); }
@media (min-width: 600px) { .tarjeta-flotante { padding: 28px; } }
.rasgo { display: flex; gap: 18px; align-items: flex-start; }
.rasgo h3 { margin: 0 0 4px; }
.rasgo p { margin: 0; color: var(--apagado); }
.cabecera-banda { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.cabecera-banda h2 { margin: 0; max-width: 18em; }

/* --- Planes y promo del curso --- */
.planes { margin-top: 40px; grid-template-columns: 1fr; max-width: 980px; margin-left: auto; margin-right: auto; }
@media (min-width: 700px) { .planes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .planes.tres { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan.destacado { border: 2px solid var(--azul); }
.plan h2 { font-size: 22px; }
.precio { font-size: 40px; font-weight: 800; margin: 0 0 .2em; letter-spacing: -0.03em; line-height: 1.05; }
.precio small { font-size: 14px; font-weight: 600; color: var(--apagado); letter-spacing: 0; }
.precio s { font-size: 22px; color: var(--apagado); font-weight: 600; margin-right: 6px; }
.lista-ventajas { list-style: none; padding: 0; margin: 8px 0 28px; flex: 1; }
.lista-ventajas li { padding: 7px 0 7px 30px; position: relative; font-weight: 500; }
.lista-ventajas li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 11px; border: solid var(--azul); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lista-ventajas li.no { color: var(--apagado); text-decoration: line-through; }
.lista-ventajas li.no::before { border: 0; border-top: 2px solid var(--apagado); width: 10px; height: 0; top: 19px; left: 3px; transform: none; }
.plan-actual { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0 8px; }
.plan-actual p { margin: 0; }
.plan-nombre { font-size: 22px; font-weight: 800; }
.promo { position: relative; overflow: hidden; background: var(--abisal); color: #fff; border-radius: 24px; padding: 30px; }
:root[data-tema="oscuro"] .promo { background: #051A25; border: 1px solid var(--borde); }
.promo > *:not(.circulos) { position: relative; }
.promo .circulos { width: 400px; height: 400px; right: -150px; top: -150px; stroke: #1C4458; }
.promo h2 { color: #fff; font-size: 30px; margin: 0; }
.promo p { color: var(--niebla); margin: 0; }
.promo .separador { height: 1px; background: rgba(255,255,255,.14); }
.promo .precio { color: #fff; }
.promo .precio small, .promo .precio s { color: var(--niebla); }
.promo .pila { gap: 20px; }

/* --- Panel --- */
.saludo { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.saludo > * { margin: 0; }
.saludo h1 { font-size: clamp(30px, 3.4vw, 40px); }
.fila-tema { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 110px; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--borde); }
.fila-tema .nombre { display: flex; flex-direction: column; gap: 3px; }
.fila-tema .nombre strong { font-size: 16.5px; }
.fila-tema .detalle { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--apagado); }
.fila-tema .detalle.mal { font-family: var(--letra); font-size: 13.5px; color: var(--mal); display: inline-flex; align-items: center; gap: 6px; }
.fila-tema .detalle.mal::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--mal); }
.fila-tema .detalle.ok { color: var(--ok); }
.fila-tema .barra { margin: 0; }
.fila-tema .ir { font-size: 15px; font-weight: 700; text-decoration: none; text-align: right; }
.fila-tema .ir.bloqueado { color: var(--apagado); font-weight: 600; }
@media (max-width: 700px) { .fila-tema { grid-template-columns: minmax(0, 1fr) 96px; } .fila-tema .barra { display: none; } }
.cabecera-tarjeta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 12px; flex-wrap: wrap; }
.cabecera-tarjeta h2 { font-size: 22px; margin: 0; letter-spacing: -0.015em; }
.preparacion { background: var(--banda); border: 0; }
.preparacion.nivel-listo { background: var(--ok-suave); }
.preparacion.nivel-listo .preparacion-titulo { color: var(--ok-texto); }
.preparacion-titulo { font-size: 20px; font-weight: 800; margin-bottom: .2em; }
.preparacion p:last-child { margin-bottom: 0; }
.modos { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--borde); }
@media (min-width: 640px) { .modos { grid-template-columns: repeat(2, 1fr); } }
.modo .botones { margin-bottom: 0; }

/* --- Test --- */
.modo-test { background: var(--fondo); }
.test { max-width: 780px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; width: 100%; }
.test-barra { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: sticky; top: 0; background: var(--superficie); z-index: 5; }
.test-titulo { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.test-titulo strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 800; }
.test-titulo small { font-family: var(--mono); color: var(--apagado); font-size: 12px; font-weight: 600; }
.crono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--tinte); color: var(--enlace); }
.crono.poco { background: var(--mal-suave); color: var(--mal); }
.test-progreso { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border: 0; background: var(--superficie-2); display: block; }
.test-progreso::-webkit-progress-bar { background: var(--superficie-2); }
.test-progreso::-webkit-progress-value { background: var(--azul); transition: width .3s; }
.test-progreso::-moz-progress-bar { background: var(--azul); }
.test-cuerpo { flex: 1; padding: 32px 24px 28px; }
.pregunta .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; font-weight: 600; color: var(--apagado); margin-bottom: 20px; }
.pregunta .meta .etiqueta { font-family: var(--mono); font-weight: 600; letter-spacing: .04em; }
.pregunta .origen { flex: 1 1 12em; min-width: 0; }
.estrella { border: 0; background: none; color: var(--apagado); cursor: pointer; padding: 8px; border-radius: 12px; display: grid; place-items: center; transition: background .2s, color .2s; }
.estrella:hover { background: var(--superficie-2); }
.estrella.activa { color: var(--enlace); background: var(--tinte); }
.estrella.activa .icono path { fill: currentColor; fill-opacity: .18; }
.enunciado, .opcion span, .contexto .texto { overflow-wrap: anywhere; }
.enunciado { font-size: 21px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; white-space: pre-line; margin: 0 0 22px; }
.contexto { background: var(--banda); border-radius: var(--radio-m); padding: 14px 18px; margin-bottom: 22px; font-size: 15px; }
.contexto summary { font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--apagado); text-transform: uppercase; letter-spacing: .1em; }
.contexto .texto { white-space: pre-line; margin: 10px 0; }
.contexto img { display: block; margin: 10px auto; border-radius: 8px; background: #fff; cursor: zoom-in; }
.figuras { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 22px; }
.figuras img, img.figura { max-height: 320px; border-radius: 12px; background: #fff; border: 1px solid var(--borde); cursor: zoom-in; display: block; margin: 0 auto 16px; }
.nota-carta { font-size: 14px; font-weight: 600; color: var(--aviso); background: var(--aviso-suave); padding: 10px 14px; border-radius: var(--radio-p); }
.opciones { display: flex; flex-direction: column; gap: 10px; }
.opcion {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.35;
  color: var(--texto); background: var(--superficie); border: 1.5px solid var(--borde); border-radius: var(--radio-m); padding: 11px 16px; min-height: 54px; cursor: pointer;
  transition: border-color .2s, background .2s, opacity .2s, transform .1s;
}
.opcion:active:not(:disabled) { transform: scale(.99); }
.opcion b { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--tinte); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--enlace); }
.opcion span { white-space: pre-line; flex: 1; }
.opcion .marca-opcion { width: 20px; height: 20px; flex: none; stroke-width: 2.2; }
@media (hover: hover) { .opcion:hover:not(:disabled) { border-color: var(--azul); background: var(--tinte-hover); } }
.opcion.elegida { border-color: var(--azul); background: var(--tinte); }
.opcion.elegida b { background: var(--azul); color: #fff; }
.opcion.enviando { opacity: .7; }
.opcion:disabled { cursor: default; }
.opcion.correcta { border-color: var(--ok); background: var(--ok-suave); }
.opcion.correcta b { background: var(--ok); color: #fff; }
.opcion.correcta .marca-opcion { color: var(--ok); }
.opcion.incorrecta { border-color: var(--mal); background: var(--mal-suave); }
.opcion.incorrecta b { background: var(--mal); color: #fff; }
.opcion.incorrecta .marca-opcion { color: var(--mal); }
.opcion.descartada { opacity: .5; }
.feedback { min-height: 28px; margin-top: 18px; }
.resultado-pregunta { font-weight: 700; margin: 0; border-radius: var(--radio-m); padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.resultado-pregunta.ok { color: var(--ok-texto); background: var(--ok-suave); }
.resultado-pregunta.mal { color: var(--mal-texto); background: var(--mal-suave); }
.extras { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; }
.test-pie { display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borde); position: sticky; bottom: 0; background: var(--superficie); }
.test-pie .hueco { flex: 1; }
.test-pie .boton { min-height: 48px; }
@media (max-width: 520px) {
  .test-cuerpo { padding: 22px 18px; }
  .enunciado { font-size: 18px; }
  .opcion { padding: 10px 13px; font-size: 15.5px; }
  .test-pie .boton { padding: 0 18px; }
}

/* Test de prueba incrustado en la home (compacto) */
.test-compacto { display: flex; flex-direction: column; gap: 18px; }
.test-compacto .cabecera-test { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.test-compacto .cabecera-test .tema { letter-spacing: .12em; text-transform: uppercase; color: var(--enlace); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.test-compacto .cabecera-test .num { color: var(--apagado); flex: none; }
.segmentos { display: flex; gap: 6px; }
.segmentos span { flex: 1; height: 5px; border-radius: 99px; background: #E3ECF1; }
:root[data-tema="oscuro"] .segmentos span:not(.hecho):not(.actual):not(.bien):not(.mal) { background: var(--superficie-2); }
.segmentos span.hecho { background: var(--azul); }
.segmentos span.actual { background: #8FC3DE; }
.segmentos span.bien { background: var(--ok); }
.segmentos span.mal { background: var(--mal); }
.test-compacto .pregunta .meta { display: none; }
.test-compacto .enunciado { font-size: 20px; margin-bottom: 18px; }
.test-compacto .figuras img { max-height: 220px; }
.test-compacto .feedback { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.test-compacto .feedback:empty { display: none; }
.test-compacto .ayuda-test { font-size: 14px; color: var(--apagado); margin: 14px 0 0; }
.resumen-demo { display: flex; flex-direction: column; gap: 14px; }
.resumen-demo > * { margin: 0; }
.resumen-demo .puntuacion { display: flex; align-items: baseline; gap: 10px; }
.resumen-demo .puntuacion .cifra-grande { margin: 0; }
.resumen-demo .puntuacion small { font-size: 15px; color: var(--apagado); font-weight: 600; }
.resumen-demo h2 { font-size: 22px; letter-spacing: -0.015em; }

/* Diálogos y mapa de preguntas */
.modal { border: 0; border-radius: 24px; padding: 32px 26px 26px; width: min(520px, calc(100vw - 32px)); background: var(--superficie); color: var(--texto); box-shadow: 0 30px 80px rgba(11, 43, 60, .3); }
.modal.modal-ancho { width: min(1000px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(11, 43, 60, .55); }
.modal-cerrar { position: absolute; right: 12px; top: 12px; border: 0; background: none; color: var(--apagado); cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.modal-cerrar:hover { background: var(--superficie-2); }
.modal .botones { margin-bottom: 0; }
.galeria img { display: block; margin: 0 auto 16px; background: #fff; border-radius: 10px; }
.mapa { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; margin: 18px 0; }
.casilla-n { height: 46px; border-radius: 12px; border: 1.5px solid var(--borde); background: var(--superficie); color: var(--texto); font-family: var(--mono); font-weight: 600; font-size: 14px; cursor: pointer; position: relative; }
.casilla-n.hecha { background: var(--tinte); border-color: var(--azul); color: var(--enlace); }
.casilla-n.bien { background: var(--ok-suave); border-color: var(--ok); color: var(--ok-texto); }
.casilla-n.mal { background: var(--mal-suave); border-color: var(--mal); color: var(--mal-texto); }
.casilla-n.actual { outline: 2.5px solid var(--texto); outline-offset: 2px; }
.casilla-n.marcada::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--lima-osc); }
.leyenda { font-size: 13px; font-weight: 600; color: var(--apagado); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.muestra { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--borde-fuerte); margin-right: 4px; }
.muestra.hecha { background: var(--tinte); border-color: var(--azul); }
.muestra.bien { background: var(--ok-suave); border-color: var(--ok); }
.muestra.mal { background: var(--mal-suave); border-color: var(--mal); }
.tostada { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--abisal); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 50; box-shadow: 0 10px 28px rgba(0,0,0,.2); transition: opacity .4s; max-width: calc(100vw - 32px); }
.tostada.error { background: var(--mal); }
.tostada.fuera { opacity: 0; }

/* --- Resultado --- */
.veredicto { display: flex; align-items: center; gap: 28px; padding: 28px; border-radius: var(--radio); margin: 24px 0; background: var(--banda); }
.veredicto.ok { background: var(--ok-suave); }
.veredicto.mal { background: var(--mal-suave); }
.veredicto-titulo { font-size: 30px; font-weight: 800; margin: 0 0 .1em; letter-spacing: -0.02em; }
.veredicto.ok .veredicto-titulo { color: var(--ok-texto); }
.veredicto.mal .veredicto-titulo { color: var(--mal-texto); }
.veredicto p:last-child { margin-bottom: 0; }
.motivos { margin: 6px 0 0; padding-left: 1.2em; font-weight: 500; }
.anillo { --p: 0; flex: none; width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--azul) calc(var(--p) * 1%), var(--superficie) 0); }
.veredicto.ok .anillo { background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--superficie) 0); }
.veredicto.mal .anillo { background: conic-gradient(var(--mal) calc(var(--p) * 1%), var(--superficie) 0); }
.anillo span { width: 86px; height: 86px; border-radius: 50%; background: var(--superficie); display: flex; align-items: baseline; justify-content: center; padding-top: 28px; font-family: var(--mono); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; }
.anillo small { font-size: 13px; color: var(--apagado); font-weight: 600; }
.cifras-resultado { margin: 8px 0; }
.revision { list-style: none; padding: 0; margin: 18px 0 0; }
.revision .item { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 22px 24px; margin-bottom: 14px; position: relative; overflow: hidden; }
.revision .item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--borde-fuerte); }
.revision .item.bien::before { background: var(--ok); }
.revision .item.mal::before { background: var(--mal); }
.revision .item.blanco::before { background: var(--aviso); }
.revision .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.revision .num { font-family: var(--mono); font-weight: 600; color: var(--apagado); }
.revision .enunciado { font-size: 17px; margin-bottom: 14px; }
.opciones-revision { list-style: none; padding: 0; margin: 0 0 8px; }
.opciones-revision li { display: flex; gap: 10px; padding: 8px 12px; border-radius: var(--radio-p); font-size: 15px; align-items: baseline; }
.opciones-revision li b { font-family: var(--mono); font-weight: 600; color: var(--apagado); flex: none; }
.opciones-revision li.correcta { background: var(--ok-suave); }
.opciones-revision li.correcta b { color: var(--ok); }
.opciones-revision li.incorrecta { background: var(--mal-suave); }
.opciones-revision li.incorrecta b { color: var(--mal); }
.opciones-revision em { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--apagado); white-space: nowrap; font-style: normal; }

/* --- Acceso y registro: pantalla partida --- */
.partida { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - 77px); }
@media (min-width: 960px) { .partida { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.partida-formulario { display: flex; align-items: center; justify-content: center; padding: 48px var(--lado); }
.partida-formulario > div { width: 100%; max-width: 440px; }
.partida-formulario h1 { font-size: clamp(32px, 3.4vw, 42px); }
.partida-lateral { display: none; background: var(--abisal); color: #fff; position: relative; overflow: hidden; align-items: center; justify-content: center; padding: 64px; }
@media (min-width: 960px) { .partida-lateral { display: flex; } }
.partida-lateral > div { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 28px; }
.partida-lateral .eyebrow { color: var(--lima); }
.partida-lateral .lista-check { gap: 16px; }
.partida-lateral .lista-check li { font-size: 17px; color: #fff; }
.partida-lateral .tarjeta-flotante { color: var(--abisal); box-shadow: none; }
.partida-lateral .tarjeta-flotante p { color: var(--marea); }
:root[data-tema="oscuro"] .partida-lateral { background: #051A25; }
.segundo-factor-qr { display: block; width: 200px; height: 200px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 10px; }
.secreto { font-family: var(--mono); font-weight: 600; letter-spacing: .12em; word-break: break-all; background: var(--superficie-2); padding: 12px 16px; border-radius: var(--radio-m); text-align: center; }
input.codigo-2fa { font-family: var(--mono); font-size: 26px; letter-spacing: .4em; text-align: center; }

/* --- Curso --- */
.curso-rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 1000px) { .curso-rejilla { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; } }
.indice-curso { position: relative; }
@media (min-width: 1000px) { .indice-curso { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px; } }
.indice-curso details.indice-movil > summary { list-style: none; }
.indice-curso details.indice-movil > summary::-webkit-details-marker { display: none; }
@media (min-width: 1000px) { .indice-curso .indice-movil > summary { display: none; } }
.indice-cabecera { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--tinte); border-radius: var(--radio-m); margin-bottom: 14px; }
.indice-cabecera strong { font-size: 16px; }
.indice-cabecera .progreso-txt { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--apagado); }
.indice-cabecera .barra { margin: 0; }
.indice-tema { border-bottom: 1px solid var(--borde); }
.indice-tema summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 4px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.indice-tema summary::-webkit-details-marker { display: none; }
.indice-tema summary::after { content: ""; margin-left: auto; flex: none; width: 8px; height: 8px; border: solid var(--apagado); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.indice-tema[open] summary::after { transform: rotate(-135deg); }
.indice-tema ol { list-style: none; padding: 0 0 10px; margin: 0; }
.indice-tema li a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 8px 8px 6px; border-radius: 10px; text-decoration: none; color: var(--texto); font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.indice-tema li a:hover { background: var(--superficie-2); }
.indice-tema li a.actual { background: var(--tinte); font-weight: 700; }
.indice-tema li a.borrador { opacity: .6; }
.punto { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--borde-fuerte); margin-top: 1px; display: grid; place-items: center; }
.punto.hecho { background: var(--ok); border-color: var(--ok); color: #fff; }
.punto.hecho .icono { width: 12px; height: 12px; stroke-width: 2.6; }
.punto.tema-hecho { background: var(--lima); border-color: var(--lima); color: var(--abisal); }
.indice-practica { color: var(--enlace) !important; font-weight: 700 !important; }
.leccion-cabecera { margin-bottom: 24px; }
.leccion-cabecera h1 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 0; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.acciones-leccion { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 32px; padding: 20px 0; border-top: 1px solid var(--borde); }
.acciones-leccion form { margin: 0; }
.estado-leccion { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ok-texto); }
.estado-leccion .icono { width: 20px; height: 20px; color: var(--ok); }
.navegacion-leccion { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; font-size: 15px; }
.navegacion-leccion a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 600; max-width: 48%; }
.navegacion-leccion a .icono { width: 18px; height: 18px; flex: none; }
.navegacion-leccion .derecha { margin-left: auto; text-align: right; }
.continuar { position: relative; overflow: hidden; }

/* --- Landing del curso --- */
.temario { counter-reset: tema; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0 32px; }
@media (min-width: 768px) { .temario { grid-template-columns: 1fr 1fr; } }
.temario li { counter-increment: tema; display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--borde); font-weight: 600; }
.temario li::before { content: counter(tema, decimal-leading-zero); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--enlace); flex: none; }
.preguntas-frecuentes details { border-bottom: 1px solid var(--borde); padding: 18px 0; }
.preguntas-frecuentes summary { font-weight: 700; font-size: 17px; }
.preguntas-frecuentes details > *:not(summary) { margin: 10px 0 0; color: var(--apagado); }
.sobre-mi-breve { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .sobre-mi-breve { grid-template-columns: 1fr 2fr; gap: 56px; } }

/* --- Compra --- */
.resumen-compra { display: flex; flex-direction: column; gap: 10px; }
.resumen-compra .linea { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.resumen-compra .linea.total { font-size: 20px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--borde); }
.resumen-compra .linea.descuento { color: var(--ok-texto); font-weight: 600; }
.compra-rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 900px) { .compra-rejilla { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; } .compra-rejilla .lateral { position: sticky; top: 100px; } }
.girando { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--tinte); border-top-color: var(--azul); margin: 0 auto 24px; animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* --- 404: rosa de los vientos con la aguja buscando el norte --- */
.error-rejilla { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0 72px; }
@media (min-width: 900px) { .error-rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 64px 0 96px; } }
.error-rejilla .hero-texto h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.rosa-panel { min-height: 420px; }
@media (min-width: 900px) { .rosa-panel { min-height: 520px; } }
.rosa { position: relative; width: 340px; height: 340px; max-width: 100%; aspect-ratio: 1; }
.rosa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.aguja { transform-origin: 50% 50%; animation: buscar-norte 7s cubic-bezier(.45, .05, .55, .95) infinite; }
@keyframes buscar-norte {
  0% { transform: rotate(-38deg); } 13% { transform: rotate(24deg); } 25% { transform: rotate(-14deg); } 36% { transform: rotate(8deg); }
  46% { transform: rotate(-4deg); } 55% { transform: rotate(2deg); } 63% { transform: rotate(-1deg); } 70% { transform: rotate(.6deg); }
  76% { transform: rotate(-.3deg); } 82%, 90% { transform: rotate(0deg); } 100% { transform: rotate(-38deg); }
}

/* --- Administración --- */
.nav-admin { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 28px; }
.nav-admin a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--borde); color: var(--texto); text-decoration: none; font-size: 14px; font-weight: 600; background: var(--superficie); }
.nav-admin a:hover { border-color: var(--azul); }
.nav-admin a.activo { background: var(--abisal); border-color: var(--abisal); color: #fff; }
.nav-admin .contador { font-family: var(--mono); font-size: 11px; background: var(--lima); color: var(--abisal); border-radius: 99px; padding: 1px 7px; }
.cifras-admin { margin-bottom: 8px; }
.estado-sistema li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); font-size: 14.5px; }
.estado-sistema li:last-child { border-bottom: 0; }
.estado-sistema li strong { min-width: 14em; font-weight: 600; }
.estado-sistema .si { color: var(--ok); font-weight: 800; }
.estado-sistema .no { color: var(--aviso); font-weight: 800; }
.mensaje-soporte { white-space: pre-line; background: var(--banda); border-radius: var(--radio-m); padding: 14px 18px; margin: 10px 0; }
.reporte blockquote { margin: 0 0 12px; padding: 12px 16px; background: var(--banda); border-radius: var(--radio-m); }
.lista-orden { list-style: none; padding: 0; margin: 0; }
.lista-orden li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--borde); }
.lista-orden li:last-child { border-bottom: 0; }
.lista-orden input[type="number"] { width: 76px; min-height: 40px; padding: 6px 10px; flex: none; }
.lista-orden a { font-weight: 700; text-decoration: none; }

/* Editor de contenido (contenteditable con barra de herramientas) */
.editor { border: 1.5px solid var(--borde); border-radius: var(--radio-m); background: var(--superficie); }
.editor:focus-within { border-color: var(--azul); box-shadow: 0 0 0 4px var(--tinte); }
.editor-barra { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--borde); background: var(--banda);
  position: sticky; top: 77px; z-index: 6; border-radius: calc(var(--radio-m) - 2px) calc(var(--radio-m) - 2px) 0 0; }
@media (max-width: 899px) { .editor-barra { top: 65px; } }
.editor-barra button { min-width: 38px; height: 36px; padding: 0 9px; border: 0; border-radius: 8px; background: none; color: var(--texto); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; display: inline-grid; place-items: center; }
.editor-barra button:hover { background: var(--superficie); }
.editor-barra button[aria-pressed="true"] { background: var(--tinte); color: var(--enlace); }
.editor-barra .icono { width: 18px; height: 18px; }
.editor-barra .separador { width: 1px; background: var(--borde); margin: 4px 4px; }
.editor-area { min-height: 320px; padding: 20px 22px; outline: none; }
.editor-area:empty::before { content: attr(data-placeholder); color: var(--apagado); }
.editor-area.corto { min-height: 140px; }
.editor-codigo { display: none; width: 100%; min-height: 320px; border: 0; border-radius: 0; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.editor.ver-codigo .editor-area { display: none; }
.editor.ver-codigo .editor-codigo { display: block; }

@media (max-width: 560px) {
  .lista .fila { padding: 15px 18px; }
  .fila { align-items: flex-start; }
  .veredicto { flex-direction: column; text-align: center; }
  .motivos { text-align: left; }
  .cifras { gap: 12px 26px; }
  .cabecera-derecha .boton { padding: 0 16px; min-height: 42px; font-size: 14px; }
  .cabecera-derecha .enlace-cabecera.ocultar-movil { display: none; }
  .boton.bloque-movil { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .cabecera, .pie, .pestanas-movil, .botones, .chips, .test-barra, .test-pie, .banda-plan, .banda-aviso { display: none !important; }
  body { background: #fff; }
}

/* Utilidades de espaciado (la CSP no admite estilos en línea) */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-s { margin-top: 12px; } .mt { margin-top: 18px; } .mt-l { margin-top: 32px; } .mt-xl { margin-top: 48px; }
.mb-s { margin-bottom: 12px; } .mb { margin-bottom: 18px; } .mb-l { margin-bottom: 32px; }
.contenido-home h2 { max-width: 18em; margin-bottom: 40px; }
.contenido-home ul { counter-reset: rasgo; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .contenido-home ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.contenido-home li { counter-increment: rasgo; position: relative; padding-left: 66px; min-height: 48px; color: var(--apagado); font-size: 16px; line-height: 1.5; }
.contenido-home li::before { content: counter(rasgo, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: var(--radio-m); background: var(--superficie); color: var(--azul); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 14px; }
.contenido-home li strong { display: block; color: var(--texto); font-size: 18px; margin-bottom: 4px; }
.contenido-home p { color: var(--apagado); }
button.enlace-boton-flecha { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: var(--enlace); text-align: right; }
button.enlace-boton-flecha:hover { color: var(--texto); }
.fila-tema form { text-align: right; }
.mas { display: inline-flex; align-items: center; gap: 6px; color: var(--enlace); font-weight: 700; font-size: 15px; }
.mas .icono { width: 18px; height: 18px; }
.banda-abisal > .contenedor { position: relative; }
.banda-abisal .apagado, .banda-abisal .ayuda { color: var(--niebla); }
.banda-abisal .apagado a { color: #fff; }
.cta-oscura .boton:not(.fantasma) { background: var(--lima); border-color: var(--lima); color: var(--abisal); }
.cta-oscura .boton.fantasma { color: #fff; }
.contenido-landing ul { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 24px 0 40px; }
@media (min-width: 700px) { .contenido-landing ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contenido-landing li { margin: 0; padding: 22px 24px; border: 1px solid var(--borde); border-radius: var(--radio); color: var(--apagado); font-size: 16px; line-height: 1.5; }
.contenido-landing li strong { display: block; color: var(--texto); font-size: 18px; margin-bottom: 6px; }
.contenido-landing h3 { font-size: 18px; margin-top: 1.6em; }
.texto-largo iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radio); background: #000; margin: 24px 0; }
.editor .texto-largo iframe { pointer-events: none; }
.editor-area mark { background: linear-gradient(transparent 58%, var(--lima) 58%, var(--lima) 94%, transparent 94%); }
.lista-orden-pie { padding: 12px 16px; border-top: 1px solid var(--borde); }
.pila > .etiqueta, .pila-p > .etiqueta, .promo .etiqueta { align-self: flex-start; }
.temario li::before { content: none; }

/* Modo oscuro: ajustes de componentes */
:root[data-tema="oscuro"] mark { color: var(--lima); background: linear-gradient(transparent 84%, var(--lima) 84%, var(--lima) 94%, transparent 94%); }
:root[data-tema="oscuro"] .chip.activo { background: var(--lima); border-color: var(--lima); color: var(--abisal); }
:root[data-tema="oscuro"] .chip.activo span { color: var(--abisal); }
:root[data-tema="oscuro"] .nav-admin a.activo { background: var(--lima); border-color: var(--lima); color: var(--abisal); }
:root[data-tema="oscuro"] .etiqueta.abisal { background: var(--lima); color: var(--abisal); }
:root[data-tema="oscuro"] .opcion.correcta, :root[data-tema="oscuro"] .opcion.incorrecta { color: var(--texto); }
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .tesela { color: #8FC3DE; }
  :root:not([data-tema="claro"]) .avatar { background: var(--superficie-2); }
  :root:not([data-tema="claro"]) .boton-estudiar { background: var(--lima); color: var(--abisal); }
  :root:not([data-tema="claro"]) .boton-estudiar .icono { color: var(--abisal); }
  :root:not([data-tema="claro"]) .pie { background: #051A25; }
  :root:not([data-tema="claro"]) progress.barra::-webkit-progress-bar { background: var(--superficie-2); }
  :root:not([data-tema="claro"]) .pestana-tit.activo { background: var(--lima); border-color: var(--lima); color: var(--abisal); }
  :root:not([data-tema="claro"]) .promo { background: #051A25; border: 1px solid var(--borde); }
  :root:not([data-tema="claro"]) .segmentos span:not(.hecho):not(.actual):not(.bien):not(.mal) { background: var(--superficie-2); }
  :root:not([data-tema="claro"]) .partida-lateral { background: #051A25; }
  :root:not([data-tema="claro"]) mark { color: var(--lima); background: linear-gradient(transparent 84%, var(--lima) 84%, var(--lima) 94%, transparent 94%); }
  :root:not([data-tema="claro"]) .chip.activo { background: var(--lima); border-color: var(--lima); color: var(--abisal); }
  :root:not([data-tema="claro"]) .chip.activo span { color: var(--abisal); }
  :root:not([data-tema="claro"]) .nav-admin a.activo { background: var(--lima); border-color: var(--lima); color: var(--abisal); }
  :root:not([data-tema="claro"]) .etiqueta.abisal { background: var(--lima); color: var(--abisal); }
  :root:not([data-tema="claro"]) .opcion.correcta, :root:not([data-tema="claro"]) .opcion.incorrecta { color: var(--texto); }
}

.partida-lateral .tarjeta-flotante .eyebrow { color: var(--azul-prof); }
.ocultar-movil { display: inline; }
@media (max-width: 560px) { .ocultar-movil { display: none; } .cabecera-derecha { gap: 10px; } }
.plan > .etiqueta { align-self: flex-start; }
