/* ProLearning · Páginas públicas por tema (/temas/1 … /temas/5), portado de las interfaces Tema1-5.dc.html de Claude Design
   (docs/diseno-v2/registro-v2.md §7). Reglas acotadas a .tema; tokens, barra, botones, pie y lightbox vienen de app.css.
   Cada tema tiene su paleta y su composición (héroe, módulos, práctica, infografía); todos comparten la misma anatomía y la
   barra/pie del sitio. Tipografía: Inter autoalojada; donde la maqueta usa serif (Fraunces, Playfair) se usa la serif del
   sistema (--fuente-serif). Sin código en línea (CSP). Movimiento ≤ 450 ms, anulado con prefers-reduced-motion. */

/* =====================================================================
   0. Lienzo: el bloque anula el relleno de .pagina y toda la página toma el fondo del tema
   ===================================================================== */
.tema { overflow-x: clip; margin-top: -32px; margin-bottom: -64px; color: var(--tx); }
@media (min-width: 900px) { .tema { margin-top: -56px; margin-bottom: -96px; } }
body:has(.tema--1) { --color-fondo: #FBF9FF; }
body:has(.tema--2) { --color-fondo: #FFF8FC; }
body:has(.tema--3) { --color-fondo: #F5FBF8; }
body:has(.tema--4) { --color-fondo: #FBFAF0; }
body:has(.tema--5) { --color-fondo: #FFF8F2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body:has(.tema--1) { --color-fondo: #14111F; }
  :root:not([data-theme="light"]) body:has(.tema--2) { --color-fondo: #1A1119; }
  :root:not([data-theme="light"]) body:has(.tema--3) { --color-fondo: #0F1917; }
  :root:not([data-theme="light"]) body:has(.tema--4) { --color-fondo: #16160F; }
  :root:not([data-theme="light"]) body:has(.tema--5) { --color-fondo: #1A130F; }
}
:root[data-theme="dark"] body:has(.tema--1) { --color-fondo: #14111F; }
:root[data-theme="dark"] body:has(.tema--2) { --color-fondo: #1A1119; }
:root[data-theme="dark"] body:has(.tema--3) { --color-fondo: #0F1917; }
:root[data-theme="dark"] body:has(.tema--4) { --color-fondo: #16160F; }
:root[data-theme="dark"] body:has(.tema--5) { --color-fondo: #1A130F; }

/* =====================================================================
   1. Paleta y voz tipográfica de cada tema (claro); el modo oscuro va al final de esta sección
   --p acción · --p2 profundo (bandas, titulares) · --tinte fondo suave · --borde · --tx texto · --tx2 secundario · --th titulares
   --tit familia de titulares · --ls interletrado de titulares · --card superficie de tarjetas
   ===================================================================== */
.tema { --p: var(--color-primario); --p-h: var(--color-primario-hover); --p2: var(--color-primario-oscuro); --tinte: var(--color-info-fondo); --borde: var(--color-borde); --tx: var(--color-texto); --tx2: var(--color-texto-2); --th: var(--color-texto); --tit: var(--fuente); --ls: -.03em; --card: var(--color-superficie-2); --sobre-p: #fff; --oro: #F2B84B; --sobre-oro: #2B1B63; --ok: #14633B; --ok-b: #1E7A4C; --ok-f: #E6F4EC; --no: #7A4800; --no-b: #B26A00; --no-f: #FFF6E6; }
.tema--1 { --p: #5B3FA3; --p-h: #4A3188; --p2: #2B1B63; --tinte: #EEE9FB; --tinte2: #E4DCFA; --borde: #E4DEF5; --tx: #1D1B2A; --tx2: #3F3A5C; --th: #2B1B63; --tit: var(--fuente-serif); --ls: -.02em; --card: #FFFFFF; --op-f: #FBF9FF; --op-b: #DCD3F3; --apagado: #C9C0E6; }
.tema--2 { --p: #B5470F; --p-h: #91390C; --p2: #5E2508; --p3: #91390C; --tinte: #FBEEE7; --borde: #F0DDD3; --borde2: #E7C3B1; --tx: #2A1911; --tx2: #422E24; --th: #5E2508; --tit: var(--fuente); --ls: -.03em; --card: #FFFFFF; --op-f: #FFFFFF; --op-b: #E7CABB; --op-m: #FCF1EB; --apagado: #DFC2B4; --rosa: #F9CBB4; }
.tema--3 { --p: #1D5FA8; --p-h: #174C86; --p2: #0F3157; --tinte: #E7F0FB; --borde: #D3E1F0; --tx: #111D2A; --tx2: #243242; --tx3: #495B6E; --th: #0F3157; --tit: var(--fuente); --ls: -.035em; --card: #FFFFFF; --op-f: #FFFFFF; --op-b: #BBD0E7; --op-m: #EBF3FC; --apagado: #B4C8DF; --menta: #BFDAF8; --sobre-oro: #111D2A; }
.tema--4 { --p: #0E7566; --p-h: #0B5E52; --p2: #073D35; --tinte: #E7FBF8; --borde: #D3F0EC; --borde2: #B1E7DF; --tx: #112A26; --tx2: #24423E; --tx3: #496E69; --th: #073D35; --tit: var(--fuente); --ls: -.045em; --card: #FFFFFF; --oro2: #C99A1E; --apagado: #B4DFD9; }
.tema--5 { --p: #8F5F00; --p-h: #724C00; --p2: #4A3100; --tinte: #FBF4E7; --tinte2: #F8F0DF; --borde: #F0E6D3; --borde2: #E7D5B1; --tx: #2A2111; --tx2: #423824; --th: #4A3100; --tit: var(--fuente-serif); --ls: -.015em; --card: #FFFFFF; --op-f: #FFFFFF; --op-b: #E7D8BB; --op-m: #FCF6EB; --melocoton: #FAE5BD; --crema: #FBF2DF; }
/* Oscuro: fondos profundos, acentos en su variante clara (los mismos --color-tema-N de app.css), texto del sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tema { --tx: var(--color-texto); --tx2: var(--color-texto-2); --tx3: var(--color-texto-3); --card: var(--color-superficie-2); --ok: #7DD6A6; --ok-b: #3F8A62; --ok-f: #163126; --no: #F3C57A; --no-b: #B07A2A; --no-f: #332610; --op-f: var(--color-superficie-2); --op-b: var(--color-borde-opcion); }
  :root:not([data-theme="light"]) .tema--1 { --p: #B9A6EC; --p-h: #CDBFF3; --th: #E4DBFA; --tinte: #2A2246; --tinte2: #221B3C; --borde: #332B4E; --apagado: #4A4068; --op-m: #2A2246; }
  :root:not([data-theme="light"]) .tema--2 { --p: #F2A67A; --p-h: #F5BC9B; --p3: #F2A67A; --th: #F7E1D4; --tinte: #35231A; --borde: #4B3428; --borde2: #5E4233; --apagado: #684E40; --op-m: #3F2A1F; }
  :root:not([data-theme="light"]) .tema--3 { --p: #9DC4F2; --p-h: #BDD7F6; --th: #D4E4F7; --tinte: #1A2735; --borde: #28394B; --apagado: #405368; --op-m: #1F2E3F; }
  :root:not([data-theme="light"]) .tema--4 { --p: #86D6C6; --p-h: #A1DFD3; --th: #D4F7F0; --tinte: #1A3531; --borde: #284B46; --borde2: #335E58; --apagado: #406862; --oro2: #E3B64A; }
  :root:not([data-theme="light"]) .tema--5 { --p: #E8C36A; --p-h: #EDCF89; --th: #F7EDD4; --tinte: #352C1A; --tinte2: #352C1A; --borde: #4B3F28; --borde2: #5E5033; --op-m: #3F341F; --crema: #352C1A; }
}
:root[data-theme="dark"] .tema { --tx: var(--color-texto); --tx2: var(--color-texto-2); --tx3: var(--color-texto-3); --card: var(--color-superficie-2); --ok: #7DD6A6; --ok-b: #3F8A62; --ok-f: #163126; --no: #F3C57A; --no-b: #B07A2A; --no-f: #332610; --op-f: var(--color-superficie-2); --op-b: var(--color-borde-opcion); }
:root[data-theme="dark"] .tema--1 { --p: #B9A6EC; --p-h: #CDBFF3; --th: #E4DBFA; --tinte: #2A2246; --tinte2: #221B3C; --borde: #332B4E; --apagado: #4A4068; --op-m: #2A2246; }
:root[data-theme="dark"] .tema--2 { --p: #F2A67A; --p-h: #F5BC9B; --p3: #F2A67A; --th: #F7E1D4; --tinte: #35231A; --borde: #4B3428; --borde2: #5E4233; --apagado: #684E40; --op-m: #3F2A1F; }
:root[data-theme="dark"] .tema--3 { --p: #9DC4F2; --p-h: #BDD7F6; --th: #D4E4F7; --tinte: #1A2735; --borde: #28394B; --apagado: #405368; --op-m: #1F2E3F; }
:root[data-theme="dark"] .tema--4 { --p: #86D6C6; --p-h: #A1DFD3; --th: #D4F7F0; --tinte: #1A3531; --borde: #284B46; --borde2: #335E58; --apagado: #406862; --oro2: #E3B64A; }
:root[data-theme="dark"] .tema--5 { --p: #E8C36A; --p-h: #EDCF89; --th: #F7EDD4; --tinte: #352C1A; --tinte2: #352C1A; --borde: #4B3F28; --borde2: #5E5033; --op-m: #3F341F; --crema: #352C1A; }

.tema h1, .tema h2, .tema h3 { color: var(--th); }
.tema a { color: var(--p); }
.tema a:hover { color: var(--p-h); }
.tema :focus-visible { outline-color: var(--p); }
.tema img { filter: brightness(var(--img-brillo)); }
.tema .btn:focus-visible { outline-offset: 4px; }

/* =====================================================================
   2. Migas y «Volver al temario»
   ===================================================================== */
.tema .migas { border-bottom: 1px solid var(--borde); background: var(--color-fondo); }
.tema .migas__int { max-width: 1312px; margin-inline: auto; padding: 4px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; }
@media (min-width: 760px) { .tema .migas__int { padding-inline: 28px; } }
@media (min-width: 1200px) { .tema .migas__int { padding-inline: 64px; } }
.tema .migas ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; font-size: .875rem; color: var(--tx2); }
.tema .migas li { display: inline-flex; align-items: center; min-height: 44px; }
.tema .migas li + li::before { content: "›"; margin: 0 8px 0 4px; color: var(--tx2); opacity: .7; }
.tema .migas li a { color: var(--tx2); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 4px; }
.tema .migas li a:hover { color: var(--p); text-decoration: underline; }
.tema .migas li[aria-current] { font-weight: 700; color: var(--tx); }
.tema .migas__volver { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.tema .migas__volver::before { content: "←"; margin-right: 6px; }
.tema .migas__volver:hover { text-decoration: underline; }

/* =====================================================================
   3. Bloques y titulares comunes
   ===================================================================== */
.tema .bloque { padding-block: 56px; }
@media (min-width: 900px) { .tema .bloque { padding-block: 72px; } }
.tema .bloque__int { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.tema .bloque__int--medio { max-width: 1000px; }
@media (min-width: 760px) { .tema .bloque__int { padding-inline: 28px; } }
.tema .bloque--mods { padding-block: 64px 24px; }
.tema .bloque--sit { padding-block: 48px 64px; }
.tema .bloque--info, .tema .bloque--sig { padding-block: 0 56px; }
.tema .bloque--sig { padding-block: 48px 24px; }
.tema .eyebrow, .tema .hero__eyebrow, .tema .info__eyebrow, .tema .sig__eyebrow, .tema .ficha__eyebrow, .tema .sit__tipo, .tema .mods__rotulo { margin: 0; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--p); line-height: 1.3; }
.tema .bloque h2 { margin: 10px 0 0; font-family: var(--tit); font-weight: 800; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); line-height: 1.08; letter-spacing: var(--ls); text-wrap: balance; }
.tema .bloque--mods h2 { margin-bottom: 32px; }

/* =====================================================================
   4. Héroe (anatomía común + una composición por tema)
   ===================================================================== */
.tema .hero { position: relative; overflow: hidden; padding: 48px 0 56px; }
@media (min-width: 900px) { .tema .hero { padding: 72px 0 84px; } }
.tema .hero__int { position: relative; max-width: 1260px; margin-inline: auto; padding-inline: 16px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
@media (min-width: 760px) { .tema .hero__int { padding-inline: 28px; } }
.tema .hero__texto { flex: 1 1 520px; min-width: 0; }
.tema .hero__figura { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; position: relative; }
.tema .hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.tema .hero__num { width: 44px; height: 44px; border-radius: var(--radio-pill); background: var(--p); color: var(--sobre-p); font-family: var(--tit); font-weight: 800; font-size: 1.375rem; display: inline-grid; place-items: center; letter-spacing: 0; }
.tema .hero h1 { margin: 20px 0 0; font-family: var(--tit); font-weight: 800; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); line-height: 1.04; letter-spacing: var(--ls); }
.tema .hero__sub { margin: 22px 0 0; font-size: clamp(1.0625rem, 1rem + .4vw, 1.1875rem); line-height: 1.6; color: var(--tx2); max-width: 560px; text-align: left; hyphens: manual; }
.tema .hero__acciones { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.tema .hero__estado, .tema .hero__nota { margin: 0; font-size: .875rem; color: var(--tx2); }
.tema .hero__nota { margin-top: 14px; max-width: 560px; }
.tema .hero__cta { background: var(--p); color: var(--sobre-p); border-color: var(--p); min-height: 54px; padding-inline: 30px; }
.tema .hero__cta:hover { background: var(--p-h); border-color: var(--p-h); color: var(--sobre-p); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); transform: translateY(-1px); }
.tema .hero__cta-2 { background: transparent; color: var(--p); border-color: var(--p); min-height: 54px; }
.tema .hero__cta-2:hover { background: var(--tinte); color: var(--p-h); }
.tema .hero__figura img { display: block; width: 100%; height: auto; }

/* Tema 1: fondo lila degradado con dos orbes, marco en arco violeta */
.tema--1 .hero { background: linear-gradient(135deg, var(--tinte) 0%, var(--tinte2) 100%); }
.tema--1 .hero__orbe { position: absolute; border-radius: 50%; pointer-events: none; }
.tema--1 .hero__orbe--a { right: -120px; top: -140px; width: 520px; height: 520px; background: rgba(91, 63, 163, .10); }
.tema--1 .hero__orbe--b { left: -90px; bottom: -160px; width: 380px; height: 380px; background: rgba(242, 184, 75, .22); }
.tema--1 .hero__eyebrow { color: var(--p); }
.tema--1 .arco { width: 100%; max-width: 520px; padding: 14px; border-radius: 260px 260px 28px 28px; background: linear-gradient(180deg, #5B3FA3, #8C6AD8); box-shadow: 0 30px 60px rgba(43, 27, 99, .28); }
.tema--1 .arco__int { border-radius: 246px 246px 18px 18px; overflow: hidden; background: #EEE9FB; padding: 36px 18px 18px; }
.tema--1 .arco__int img { border-radius: 12px; }
@media (max-width: 480px) { .tema--1 .arco { padding: 10px; border-radius: 200px 200px 22px 22px; } .tema--1 .arco__int { border-radius: 190px 190px 14px 14px; padding: 26px 12px 12px; } }

/* Tema 2: héroe oscuro a sangre (degradado magenta) con ola inferior; ilustración ladeada */
.tema--2 .hero { background: linear-gradient(140deg, #4A1D06 0%, #8A360B 52%, #B5470F 100%); color: #fff; padding-bottom: 150px; }
.tema--2 .hero h1, .tema--2 .hero__sub, .tema--2 .hero__estado { color: #fff; }
.tema--2 .hero__sub, .tema--2 .hero__estado { color: rgba(255, 255, 255, .86); }
.tema--2 .hero__eyebrow { color: #fff; padding: 8px 16px; border-radius: var(--radio-pill); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); }
.tema--2 .hero__cta { background: #fff; color: #5E2508; border-color: #fff; }
.tema--2 .hero__cta:hover { background: var(--rosa); border-color: var(--rosa); color: #5E2508; }
.tema--2 .hero__figura img { max-width: 520px; border-radius: 36px; box-shadow: 0 36px 70px rgba(20, 4, 18, .5); transform: rotate(2deg); }
.tema--2 .hero__orbe { position: absolute; right: -20px; top: -20px; width: 120px; height: 120px; border-radius: 50%; background: rgba(248, 182, 214, .28); pointer-events: none; }
.tema--2 .hero__ola { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; display: block; }
.tema--2 .hero__ola path { fill: var(--color-fondo); }
.tema--2 .bloque--mods { padding-top: 40px; }

/* Tema 3: banda verde con corte diagonal y degradados radiales; ilustración en círculo; las tarjetas montan sobre el corte */
.tema--3 .hero { background: #1D5FA8; color: #fff; padding: 56px 0 120px; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
@media (min-width: 900px) { .tema--3 .hero { padding: 72px 0 150px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); } }
.tema--3 .hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(105, 201, 174, .45), rgba(30, 103, 93, 0) 45%), radial-gradient(circle at 8% 90%, rgba(242, 184, 75, .25), rgba(30, 103, 93, 0) 40%); pointer-events: none; }
.tema--3 .hero__int { flex-wrap: wrap-reverse; }
.tema--3 .hero h1, .tema--3 .hero__sub, .tema--3 .hero__estado { color: #fff; }
.tema--3 .hero__sub, .tema--3 .hero__estado { color: rgba(255, 255, 255, .9); }
.tema--3 .hero__eyebrow { color: var(--menta); font-weight: 800; }
.tema--3 .hero__cta { background: var(--oro); color: #101F30; border-color: var(--oro); border-radius: 14px; font-weight: 800; }
.tema--3 .hero__cta:hover { background: #fff; border-color: #fff; color: #101F30; }
.tema--3 .circulo { width: 100%; max-width: 470px; aspect-ratio: 1 / 1; border-radius: 50%; background: #DDE8F2; border: 10px solid rgba(255, 255, 255, .35); display: flex; align-items: center; justify-content: center; box-shadow: 0 36px 70px rgba(6, 40, 35, .4); }
.tema--3 .circulo img { width: 82%; border-radius: 22px; filter: none; }
.tema--3 .bloque--mods { margin-top: -72px; padding-top: 0; position: relative; z-index: 1; }
@media (min-width: 900px) { .tema--3 .bloque--mods { margin-top: -96px; } }

/* Tema 4: fondo oliva muy claro con el numeral gigante; ilustración en tarjeta blanca ladeada */
.tema--4 .hero { background: linear-gradient(180deg, var(--tinte), var(--color-fondo)); padding: 56px 0 64px; }
.tema--4 .hero__numeral { position: absolute; right: -30px; top: -70px; font-family: var(--tit); font-weight: 800; font-size: clamp(260px, 44vw, 640px); line-height: 1; color: rgba(201, 154, 30, .16); letter-spacing: -.06em; pointer-events: none; user-select: none; }
.tema--4 .hero__eyebrow { color: var(--p); font-weight: 800; background: var(--borde); padding: 8px 16px; border-radius: var(--radio-pill); }
.tema--4 .hero h1 { font-size: clamp(2.75rem, 1.6rem + 5vw, 5.25rem); line-height: .98; }
.tema--4 .hero__acento { color: var(--oro2); }
.tema--4 .hero__cta { font-weight: 800; padding-inline: 32px; }
.tema--4 .tarjeta-img { width: 100%; max-width: 500px; padding: 18px; border-radius: 34px; background: var(--card); border: 2px solid var(--borde); box-shadow: 0 30px 60px rgba(93, 95, 28, .18); transform: rotate(-2deg); }
.tema--4 .tarjeta-img img { border-radius: 22px; }

/* Tema 5: banda terracota con constelación, cita en serif itálica, ilustración en arco con borde translúcido */
.tema--5 .hero { background: linear-gradient(160deg, #5E4516 0%, #A0792E 60%, #CA9533 100%); color: #fff; padding: 72px 0 84px; }
@media (min-width: 900px) { .tema--5 .hero { padding: 84px 0 96px; } }
.tema--5 .hero h1, .tema--5 .hero__sub, .tema--5 .hero__estado { color: #fff; }
.tema--5 .hero__sub, .tema--5 .hero__estado { color: rgba(255, 255, 255, .9); }
.tema--5 .hero__eyebrow { color: var(--melocoton); letter-spacing: .18em; }
.tema--5 .hero__cita { margin: 22px 0 0; font-family: var(--fuente-serif); font-style: italic; font-size: clamp(1.25rem, 1.05rem + .9vw, 1.5rem); line-height: 1.45; color: #FEEEC9; max-width: 560px; }
.tema--5 .hero__cta { background: #fff; color: #5E4516; border-color: #fff; }
.tema--5 .hero__cta:hover { background: var(--melocoton); border-color: var(--melocoton); color: #5E4516; }
.tema--5 .hero__figura img { max-width: 460px; border-radius: 200px 200px 30px 30px; border: 10px solid rgba(255, 255, 255, .35); box-shadow: 0 36px 70px rgba(40, 18, 6, .5); background: #FEF2DA; filter: none; }
.tema--5 .hero__constelacion { position: absolute; right: -20px; top: 20px; width: min(640px, 90vw); height: auto; opacity: .55; pointer-events: none; }
.tema--5 .hero__lineas { stroke: #FCE7B4; stroke-width: 1.6; }
.tema--5 .hero__estrellas { fill: var(--oro); }

/* =====================================================================
   5. Módulos con el objetivo en acordeón (anatomía común + 5 composiciones)
   ===================================================================== */
.tema .mods { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.tema .mods__item { position: relative; }
.tema .mods__card { position: relative; }
.tema .mods__cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tema .mods__num { font-family: var(--tit); font-weight: 800; font-size: 3.375rem; line-height: 1; color: var(--apagado); letter-spacing: -.02em; }
.tema .mods__item[data-estado="primero"] .mods__num { color: var(--p); }
.tema .mods__rotulo { letter-spacing: .12em; }
.tema .mods__chip { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 6px 12px; border-radius: var(--radio-pill); background: var(--color-superficie); color: var(--tx2); white-space: nowrap; line-height: 1.3; }
.tema .mods__item[data-estado="primero"] .mods__chip { background: var(--tinte); color: var(--p); }
.tema .mods__chip svg { width: 18px; height: 18px; }
.tema .mods__titulo { margin: 12px 0 0; font-size: 1.3125rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--th); }
.tema .mods__meta { margin: 6px 0 0; font-size: .8125rem; color: var(--tx3, var(--tx2)); }
.tema .mods__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--p); font: inherit; font-weight: 700; font-size: .9375rem; cursor: pointer; }
.tema .mods__btn svg { width: 18px; height: 18px; transition: transform var(--t); }
.tema .mods__btn[aria-expanded="true"] svg { transform: rotate(90deg); }
.tema .mods__btn:hover { color: var(--p-h); text-decoration: underline; }
.tema .mods__obj { margin-top: 6px; }
.tema .mods__obj p { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--tinte); font-size: .9375rem; line-height: 1.6; color: var(--tx); text-align: left; hyphens: manual; }
.tema .mods__obj b { display: block; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--p); margin-bottom: 4px; }
.tema .mods__nota { margin: 22px 0 0; font-size: .875rem; color: var(--tx2); max-width: 760px; }
/* Sin JS: todos los objetivos visibles y sin botón */
html:not(.js) .tema .mods__obj[hidden] { display: block !important; }
html:not(.js) .tema .mods__btn { display: none; }

/* Tema 1 · tarjetas en dos columnas, número grande en serif */
.tema .mods--tarjetas { grid-template-columns: 1fr; }
@media (min-width: 760px) { .tema .mods--tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tema .mods--tarjetas .mods__card { border-radius: 24px; background: var(--card); border: 1px solid var(--borde); padding: 26px 26px 22px; box-shadow: 0 12px 28px rgba(43, 27, 99, .06); height: 100%; transition: box-shadow var(--t-media), transform var(--t-media); }
.tema .mods--tarjetas .mods__card:hover { box-shadow: 0 18px 40px rgba(43, 27, 99, .10); transform: translateY(-2px); }
.tema .mods--tarjetas .mods__rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tema 2 · línea de tiempo: línea vertical degradada, número en círculo, tarjeta con esquina recta abajo-izquierda */
.tema .mods--linea { position: relative; padding-left: 46px; gap: 18px; }
.tema .mods--linea::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--p), var(--borde2)); }
.tema .mods--linea .mods__num { position: absolute; left: -46px; top: 20px; width: 38px; height: 38px; border-radius: var(--radio-pill); background: var(--apagado); color: #fff; font-family: var(--fuente); font-size: 1rem; display: grid; place-items: center; border: 4px solid var(--color-fondo); letter-spacing: 0; }
.tema .mods--linea .mods__item[data-estado="primero"] .mods__num { background: var(--p); color: var(--sobre-p); }
.tema .mods--linea .mods__card { padding: 22px 26px; border-radius: 24px 24px 24px 6px; background: var(--card); border: 1.5px solid var(--borde); box-shadow: 0 10px 26px rgba(106, 30, 98, .07); }
.tema .mods--linea .mods__item[data-estado="primero"] .mods__card { border-color: var(--p); }
.tema .mods--linea .mods__rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tema .mods--linea .mods__cab { justify-content: flex-end; }
.tema .mods--linea .mods__titulo { margin-top: 0; font-size: 1.25rem; max-width: 640px; }
.tema .mods--linea .mods__cuerpo .mods__titulo { padding-right: 0; margin-top: 8px; }
@media (min-width: 640px) { .tema .mods--linea .mods__cab + .mods__cuerpo { margin-top: -30px; } .tema .mods--linea .mods__cab + .mods__cuerpo .mods__titulo { padding-right: 190px; margin-top: 0; } }
.tema .mods--linea .mods__obj p { background: transparent; padding: 0; font-size: 1rem; line-height: 1.65; color: var(--tx2); }
.tema .mods--linea .mods__obj b { display: none; }

/* Tema 3 · cuatro tarjetas en fila con franja superior; «MÓDULO N» y marca */
.tema .mods--fila { gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .tema .mods--fila { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tema .mods--fila { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tema .mods--fila .mods__card { display: flex; flex-direction: column; height: 100%; border-radius: 22px; background: var(--card); border: 1px solid var(--borde); border-top: 6px solid var(--apagado); padding: 22px; box-shadow: 0 16px 34px rgba(16, 48, 44, .08); }
.tema .mods--fila .mods__item[data-estado="primero"] .mods__card { border-top-color: var(--p); }
.tema .mods--fila .mods__num { display: none; }
.tema .mods--fila .mods__cab { align-items: center; }
.tema .mods--fila .mods__rotulo { font-weight: 800; }
.tema .mods--fila .mods__chip { background: transparent; padding: 0; color: var(--apagado); font-size: 0; gap: 0; }
.tema .mods--fila .mods__chip svg { width: 24px; height: 24px; }
.tema .mods--fila .mods__item[data-estado="primero"] .mods__chip { color: var(--p); }
.tema .mods--fila .mods__cuerpo { display: flex; flex-direction: column; flex: 1; }
.tema .mods--fila .mods__titulo { font-size: 1.1875rem; font-weight: 800; flex: 1; }
.tema .mods--fila .mods__meta::after { content: " · empieza aquí"; }
.tema .mods--fila .mods__item[data-estado="secuencial"] .mods__meta::after { content: " · secuencial"; }
.tema .mods--fila .mods__btn { font-weight: 800; font-size: .9rem; }
.tema .mods--fila .mods__obj p { padding: 12px 14px; border-radius: 12px; font-size: .875rem; }

/* Tema 4 · lista numerada editorial: filas con regla, «01» grande, botón en pastilla de contorno */
.tema .mods--lista { gap: 0; border-top: 2px solid var(--tx); }
.tema .mods--lista .mods__item { border-bottom: 1.5px solid var(--borde2); padding: 22px 4px; }
.tema .mods--lista .mods__card { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num cuerpo"; gap: 4px 22px; align-items: center; }
.tema .mods--lista .mods__cab { grid-area: num; flex-direction: column; align-items: flex-start; gap: 0; }
.tema .mods--lista .mods__cuerpo { grid-area: cuerpo; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "titulo btn" "meta btn" "obj obj"; gap: 4px 22px; align-items: center; }
.tema .mods--lista .mods__num { font-size: clamp(2.75rem, 2rem + 2.4vw, 4rem); letter-spacing: -.04em; min-width: 84px; color: var(--apagado); }
.tema .mods--lista .mods__item[data-estado="primero"] .mods__num { color: var(--oro2); }
.tema .mods--lista .mods__rotulo, .tema .mods--lista .mods__chip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tema .mods--lista .mods__titulo { grid-area: titulo; margin: 0; font-family: var(--tit); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.625rem); line-height: 1.2; letter-spacing: -.02em; }
.tema .mods--lista .mods__meta { grid-area: meta; margin: 0; font-size: .875rem; }
.tema .mods--lista .mods__meta::after { content: " · empieza aquí"; }
.tema .mods--lista .mods__item[data-estado="secuencial"] .mods__meta::after { content: " · secuencial"; }
.tema .mods--lista .mods__btn { grid-area: btn; margin: 0; min-height: 46px; padding: 0 20px; border-radius: var(--radio-pill); background: transparent; border: 2px solid var(--p); color: var(--p); font-weight: 800; font-size: .9rem; }
.tema .mods--lista .mods__btn[aria-expanded="true"] { background: var(--p); color: var(--color-fondo); }
.tema .mods--lista .mods__btn:hover { text-decoration: none; background: var(--tinte); color: var(--p-h); }
.tema .mods--lista .mods__btn[aria-expanded="true"]:hover { background: var(--p-h); color: var(--color-fondo); }
.tema .mods--lista .mods__btn svg { display: none; }
.tema .mods--lista .mods__obj { grid-area: obj; margin-top: 10px; }
.tema .mods--lista .mods__obj p { background: transparent; padding: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--tx2); max-width: 760px; }
.tema .mods--lista .mods__obj b { display: none; }
@media (max-width: 599px) { .tema .mods--lista .mods__cuerpo { grid-template-columns: 1fr; grid-template-areas: "titulo" "meta" "btn" "obj"; } .tema .mods--lista .mods__btn { justify-self: start; margin-top: 8px; } }

/* Tema 5 · módulo único: tarjeta blanca ancha en serif */
.tema .mods--unico .mods__card { padding: 30px 34px; border-radius: 28px; background: var(--card); border: 1.5px solid var(--borde); box-shadow: 0 14px 34px rgba(90, 48, 26, .08); }
.tema .mods--unico .mods__num { display: none; }
.tema .mods--unico .mods__cab { align-items: center; }
.tema .mods--unico .mods__rotulo { letter-spacing: .16em; }
.tema .mods--unico .mods__item[data-estado="primero"] .mods__chip { background: var(--tinte2); color: var(--p); }
.tema .mods--unico .mods__chip::after { content: " · módulo único"; }
.tema .mods--unico .mods__titulo { margin-top: 10px; font-family: var(--tit); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); line-height: 1.2; }
.tema .mods--unico .mods__btn { font-size: 1rem; }
.tema .mods--unico .mods__obj p { background: transparent; padding: 0; font-size: 1.125rem; line-height: 1.7; }
.tema .mods--unico .mods__obj b { display: none; }
@media (max-width: 480px) { .tema .mods--unico .mods__card { padding: 22px 20px; } }

/* =====================================================================
   6. Situación de muestra (interactiva en el navegador): anatomía común + 5 composiciones
   ===================================================================== */
.tema .sit { scroll-margin-top: calc(var(--barra-alto) + 20px); }
.tema .sit__cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tema .sit__tipo { font-size: .75rem; font-weight: 800; padding: 7px 14px; border-radius: var(--radio-pill); background: var(--tinte); color: var(--p); }
.tema .sit__nota { font-size: .875rem; color: var(--tx2); }
.tema .sit__titulo { margin: 18px 0 0; font-family: var(--tit); font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.625rem); line-height: 1.08; letter-spacing: var(--ls); }
.tema .sit__enunciado { margin: 16px 0 0; font-size: 1.125rem; line-height: 1.65; color: var(--tx); text-align: left; hyphens: manual; max-width: 760px; }
.tema .sit__pregunta { margin: 22px 0 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--th); }
.tema .sit__opciones { margin-top: 16px; display: grid; gap: 14px; }
.tema .sit__op { position: relative; text-align: left; cursor: pointer; min-height: 60px; padding: 16px 20px; border-radius: 20px; font: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--tx); background: var(--op-f, var(--card)); border: 2.5px solid var(--op-b, var(--borde)); transition: background-color var(--t), border-color var(--t), transform var(--t), box-shadow var(--t); }
.tema .sit__op:hover { border-color: var(--p); transform: translateY(-1px); }
.tema .sit__op:active { transform: none; }
.tema .sit__op.es-elegida, .tema .sit__op[aria-pressed="true"] { background: var(--op-m, var(--tinte)); border-color: var(--p); }
.tema .sit[data-respondido] .sit__op.es-esperada { background: var(--ok-f); border-color: var(--ok-b); }
.tema .sit__letra { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--p); margin-bottom: 6px; }
.tema .sit__texto { display: block; }
.tema .sit__tag { display: block; margin-top: 8px; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ok-b); }
.tema .sit__tag[hidden] { display: none; }
.tema .sit__retro { margin-top: 22px; padding: 20px 22px; border-radius: 20px; background: var(--card); border: 2px solid var(--borde); color: var(--tx); }
.tema .sit[data-estado="ok"] .sit__retro { border-color: var(--ok-b); background: var(--ok-f); }
.tema .sit[data-estado="no"] .sit__retro { border-color: var(--no-b); background: var(--no-f); }
.tema .sit__msg { margin: 0; font-weight: 700; font-size: 1.0625rem; }
.tema .sit[data-estado="ok"] .sit__msg { color: var(--ok); }
.tema .sit[data-estado="no"] .sit__msg { color: var(--no); }
.tema .sit__recordar { margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--tinte); border-left: 5px solid var(--p); font-size: .9375rem; line-height: 1.55; color: var(--tx); text-align: left; hyphens: manual; }
.tema .sit__recordar b { display: block; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--p); margin-bottom: 3px; }
.tema .sit__cambiar { margin: 10px 0 0; font-size: .9rem; color: var(--tx2); }
/* Sin JS no hay retroalimentación: se dice claro */
html:not(.js) .tema .sit__opciones::after { content: "La retroalimentación de esta muestra necesita JavaScript. Dentro del curso funciona en cualquier caso."; grid-column: 1 / -1; font-size: .875rem; color: var(--tx2); }

/* Tema 1 · tarjeta con cabecera degradada violeta y tres opciones en fila */
.tema .sit--tarjetas { border-radius: 32px; overflow: hidden; background: var(--card); border: 1px solid var(--borde); box-shadow: 0 24px 50px rgba(43, 27, 99, .10); }
.tema .sit--tarjetas .sit__cab { padding: 22px 34px; background: linear-gradient(120deg, #2B1B63, #5B3FA3); color: #fff; }
.tema .sit--tarjetas .sit__tipo { background: rgba(255, 255, 255, .16); color: #fff; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.tema .sit--tarjetas .sit__nota { color: rgba(255, 255, 255, .85); }
.tema .sit--tarjetas .sit__cuerpo { padding: 32px 24px 36px; }
@media (min-width: 760px) { .tema .sit--tarjetas .sit__cuerpo { padding: 36px 40px 40px; } }
.tema .sit--tarjetas .sit__titulo { margin-top: 0; }
@media (min-width: 700px) { .tema .sit--tarjetas .sit__opciones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tema .sit--tarjetas .sit__op { min-height: 84px; padding: 18px; }
.tema .sit--tarjetas .sit__retro { background: var(--card); }
.tema .sit--tarjetas[data-estado="ok"] .sit__retro { background: #F1F9F4; }
.tema .sit--tarjetas[data-estado="no"] .sit__retro { background: var(--no-f); }
:root[data-theme="dark"] .tema .sit--tarjetas[data-estado="ok"] .sit__retro { background: var(--ok-f); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tema .sit--tarjetas[data-estado="ok"] .sit__retro { background: var(--ok-f); } }

/* Tema 2 · conversación: caja rosa, enunciado en burbuja a la izquierda, opciones como respuestas a la derecha */
.tema .sit--chat { border-radius: 34px; background: var(--tinte); border: 2px solid var(--borde2); padding: 30px 20px 34px; }
@media (min-width: 760px) { .tema .sit--chat { padding: 38px 40px 42px; } }
.tema .sit--chat .sit__tipo { background: var(--card); color: var(--p3, var(--p)); letter-spacing: .14em; text-transform: uppercase; }
.tema .sit--chat .sit__nota { color: var(--p3, var(--p)); }
.tema .sit--chat .sit__enunciado { padding: 20px 24px; border-radius: 24px 24px 24px 6px; background: var(--card); }
.tema .sit--chat .sit__pregunta { font-size: 1.3125rem; }
.tema .sit--chat .sit__opciones { justify-items: end; gap: 12px; }
.tema .sit--chat .sit__op { width: 100%; max-width: 640px; border-radius: 24px 24px 6px 24px; padding: 16px 22px; }
.tema .sit--chat .sit__retro { max-width: 760px; border-radius: 24px 24px 24px 6px; background: var(--card); }
.tema .sit--chat[data-estado="ok"] .sit__retro, .tema .sit--chat[data-estado="no"] .sit__retro { background: var(--card); }
.tema .sit--chat .sit__recordar { background: var(--tinte); }

/* Tema 3 · formulario a dos columnas: texto a la izquierda, opciones con botón de radio dibujado a la derecha */
.tema .sit--formulario .sit__cab { justify-content: flex-start; gap: 16px; margin-bottom: 4px; }
.tema .sit--formulario .sit__tipo { border-radius: 10px; letter-spacing: .14em; text-transform: uppercase; }
.tema .sit--formulario .sit__cuerpo { display: grid; gap: 0 36px; grid-template-columns: 1fr; grid-template-areas: "titulo" "enunciado" "pregunta" "opciones" "retro"; align-items: start; }
@media (min-width: 860px) { .tema .sit--formulario .sit__cuerpo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); grid-template-areas: "titulo opciones" "enunciado opciones" "pregunta opciones" "nada retro"; } }
.tema .sit--formulario .sit__titulo { grid-area: titulo; font-weight: 800; }
.tema .sit--formulario .sit__enunciado { grid-area: enunciado; color: var(--tx2); }
.tema .sit--formulario .sit__pregunta { grid-area: pregunta; font-weight: 800; }
.tema .sit--formulario .sit__opciones { grid-area: opciones; gap: 12px; margin-top: 18px; }
@media (min-width: 860px) { .tema .sit--formulario .sit__opciones { margin-top: 18px; } }
.tema .sit--formulario .sit__op { display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 14px 20px; border-radius: 18px; font-weight: 700; }
.tema .sit--formulario .sit__op::before { content: ""; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--op-b); background: var(--card); transition: background-color var(--t), border-color var(--t); }
.tema .sit--formulario .sit__op.es-elegida::before { border-color: var(--p); background: var(--p); box-shadow: inset 0 0 0 4px var(--card); }
.tema .sit--formulario .sit[data-respondido] .sit__op.es-esperada::before, .tema .sit--formulario[data-respondido] .sit__op.es-esperada::before { border-color: var(--ok-b); }
.tema .sit--formulario[data-respondido] .sit__op.es-esperada.es-elegida::before { background: var(--ok-b); }
.tema .sit--formulario .sit__letra { display: none; }
.tema .sit--formulario .sit__texto { flex: 1; }
.tema .sit--formulario .sit__tag { margin: 0; white-space: nowrap; }
.tema .sit--formulario .sit__retro { grid-area: retro; margin-top: 18px; border-radius: 18px; padding: 18px 20px; }
.tema .sit--formulario .sit__recordar { border-radius: 12px; }

/* Tema 4 · comparador: panel oliva oscuro, dos fichas de cargo, balanza que se inclina, Sí/No grandes */
.tema .sit--balanza { border-radius: 36px; background: #0F342F; color: #fff; padding: 32px 20px 36px; }
@media (min-width: 760px) { .tema .sit--balanza { padding: 44px 46px 48px; } }
.tema .sit--balanza .sit__tipo { background: var(--oro); color: #0F342F; letter-spacing: .14em; text-transform: uppercase; }
.tema .sit--balanza .sit__nota { color: rgba(255, 255, 255, .75); }
.tema .sit--balanza .sit__titulo, .tema .sit--balanza .sit__pregunta { color: #fff; }
.tema .sit--balanza .sit__pregunta { margin-top: 28px; font-family: var(--tit); font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 1vw, 1.625rem); letter-spacing: -.02em; }
.tema .cargos { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.tema .cargo { flex: 1 1 280px; min-width: 0; padding: 22px 24px; border-radius: 24px; background: #DCF5F1; color: #0E2723; }
.tema .cargo p { margin: 0; }
.tema .cargo__rotulo { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--p); }
.tema .cargo__nombre { margin-top: 4px !important; font-family: var(--tit); font-weight: 700; font-size: 1.4375rem; letter-spacing: -.02em; line-height: 1.2; }
.tema .cargo ul { margin: 12px 0 0; padding-left: 20px; line-height: 1.7; font-size: 1rem; }
.tema .balanza { flex: 1 1 100%; display: flex; align-items: center; justify-content: center; order: 3; }
@media (min-width: 860px) { .tema .balanza { flex: 0 0 190px; order: 0; } }
.tema .balanza svg { width: 190px; height: 142px; display: block; }
.tema .balanza__pie { fill: var(--oro); }
.tema .balanza__barra { fill: #fff; }
.tema .balanza__plato { fill: #C99A1E; }
.tema .balanza__brazo { transform-origin: 100px 52px; transform: rotate(0deg); transition: transform .45s ease; }
.tema .sit--balanza[data-estado="no"] .balanza__brazo { transform: rotate(-9deg); }
.tema .sit--balanza .sit__opciones { display: flex; flex-wrap: wrap; gap: 14px; }
.tema .sit--balanza .sit__op { flex: 1 1 220px; min-height: 64px; text-align: center; border-radius: 20px; font-size: 1.25rem; font-weight: 800; color: #fff; background: transparent; border-color: rgba(255, 255, 255, .45); }
.tema .sit--balanza .sit__op:hover { border-color: var(--oro); }
.tema .sit--balanza .sit__op.es-elegida, .tema .sit--balanza .sit__op[aria-pressed="true"] { background: rgba(255, 255, 255, .16); border-color: var(--oro); }
.tema .sit--balanza[data-respondido] .sit__op.es-esperada { background: #E6F4EC; border-color: #1E7A4C; color: #14633B; }
.tema .sit--balanza .sit__letra { display: none; }
.tema .sit--balanza .sit__tag { margin-top: 2px; color: #1E7A4C; }
.tema .sit--balanza .sit__retro { border-radius: 22px; background: #fff; color: #0E2723; border-width: 3px; }
.tema .sit--balanza[data-estado="ok"] .sit__retro { background: #fff; border-color: #1E7A4C; }
.tema .sit--balanza[data-estado="no"] .sit__retro { background: #fff; border-color: #B26A00; }
.tema .sit--balanza[data-estado="ok"] .sit__msg { color: #14633B; }
.tema .sit--balanza[data-estado="no"] .sit__msg { color: #7A4800; }
.tema .sit--balanza .sit__recordar { background: transparent; border: 0; padding: 0; margin-top: 8px; color: #0E2723; font-size: 1rem; }
.tema .sit--balanza .sit__recordar b { display: inline; color: var(--p); margin-right: 6px; }
.tema .sit--balanza .sit__recordar b::after { content: " ·"; }
.tema .sit--balanza .sit__cambiar { color: #1B3D38; }

/* Tema 5 · serif: caja melocotón, dos opciones grandes en serif, cita itálica */
.tema .sit--serif { border-radius: 34px; background: var(--crema); border: 2px solid var(--borde2); padding: 32px 20px 36px; }
@media (min-width: 760px) { .tema .sit--serif { padding: 40px 42px 44px; } }
.tema .sit--serif .sit__tipo { background: var(--card); color: var(--p2); letter-spacing: .16em; text-transform: uppercase; }
:root[data-theme="dark"] .tema .sit--serif .sit__tipo { color: var(--p); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tema .sit--serif .sit__tipo { color: var(--p); } }
.tema .sit--serif .sit__enunciado { font-size: 1.25rem; }
.tema .sit--serif .sit__pregunta { font-family: var(--tit); font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.625rem); line-height: 1.3; }
.tema .sit--serif .sit__opciones { display: flex; flex-wrap: wrap; gap: 14px; }
.tema .sit--serif .sit__op { flex: 1 1 220px; min-height: 68px; text-align: center; font-family: var(--tit); font-size: 1.5rem; font-weight: 700; }
.tema .sit--serif .sit__letra { display: none; }
.tema .sit--serif .sit__tag { font-family: var(--fuente); margin-top: 2px; }
.tema .sit--serif .sit__retro { border-radius: 22px; border-width: 2.5px; background: var(--card); }
.tema .sit--serif[data-estado="ok"] .sit__retro, .tema .sit--serif[data-estado="no"] .sit__retro { background: var(--card); }
.tema .sit--serif .sit__msg { font-size: 1.125rem; }
.tema .sit--serif .sit__recordar { background: transparent; border: 0; padding: 0; font-family: var(--tit); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--th); }
.tema .sit--serif .sit__recordar b { font-family: var(--fuente); font-style: normal; }

/* =====================================================================
   7. Infografía del tema (5 composiciones)
   ===================================================================== */
.tema .info { color: var(--tx); }
.tema .info__int { display: flex; flex-wrap: wrap; gap: 36px 52px; align-items: center; }
.tema .info__texto { flex: 1 1 400px; min-width: 0; }
.tema .info__texto h2 { margin: 12px 0 0; font-family: var(--tit); font-weight: 800; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1.08; letter-spacing: var(--ls); }
.tema .info__texto p { margin: 16px 0 0; font-size: 1.0625rem; line-height: 1.65; text-align: left; hyphens: manual; max-width: 560px; }
.tema .info__lista { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; font-size: 1.0625rem; line-height: 1.5; }
.tema .info__lista li { display: flex; gap: 12px; }
.tema .info__lista li span { flex: none; width: 3px; height: 1.15em; margin-top: .2em; border-radius: 2px; background: var(--oro); }
.tema .info__acciones { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; }
.tema .info__figura { flex: 1 1 320px; min-width: 0; margin: 0; display: flex; justify-content: center; }
.tema .info__figura img { display: block; width: 100%; max-width: 440px; height: auto; border-radius: 20px; border: 6px solid #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); background: #fff; }
.tema .info__btn { background: var(--oro); color: var(--sobre-oro); border-color: var(--oro); }
.tema .info__btn:hover { background: #fff; border-color: #fff; color: var(--sobre-oro); transform: translateY(-1px); }
.tema .info__btn-2 { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); font-weight: 600; }
.tema .info__btn-2:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

/* banda (T1): a sangre, violeta profundo */
.tema .info--banda { background: #2B1B63; color: #fff; padding-block: 64px; }
@media (min-width: 900px) { .tema .info--banda { padding-block: 76px; } }
.tema .info--banda .info__int { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 760px) { .tema .info--banda .info__int { padding-inline: 28px; } }
.tema .info--banda h2, .tema .info--banda .info__eyebrow { color: #fff; }
.tema .info--banda .info__eyebrow { color: var(--oro); }
.tema .info--banda p { color: rgba(255, 255, 255, .82); }
.tema .info--banda .info__figura img { max-width: 460px; }

/* panel (T2): tarjeta horizontal con degradado magenta, infografía ladeada */
.tema .info--panel { border-radius: 36px; overflow: hidden; background: linear-gradient(120deg, #5E2508, #B5470F); color: #fff; }
.tema .info--panel .info__int { gap: 0; }
.tema .info--panel .info__texto { padding: 36px 24px; }
@media (min-width: 760px) { .tema .info--panel .info__texto { padding: 50px 48px; } }
.tema .info--panel h2 { color: #fff; }
.tema .info--panel .info__eyebrow { color: #FAD2BB; }
.tema .info--panel p { color: rgba(255, 255, 255, .84); }
.tema .info--panel .info__figura { flex: 0 1 440px; padding: 0 24px 34px; }
@media (min-width: 760px) { .tema .info--panel .info__figura { padding: 34px; } }
.tema .info--panel .info__figura img { max-width: 380px; border-radius: 18px; border: 0; box-shadow: 0 26px 54px rgba(0, 0, 0, .5); transform: rotate(-2deg); }
.tema .info--panel .info__btn { background: #fff; color: #5E2508; border-color: #fff; }
.tema .info--panel .info__btn:hover { background: #FAD2BB; border-color: #FAD2BB; color: #5E2508; }

/* lista (T3): a sangre, verde profundo, infografía primero, lista con marcas doradas, botones de radio 14 */
.tema .info--lista { background: #12345C; color: #fff; padding-block: 64px; }
@media (min-width: 900px) { .tema .info--lista { padding-block: 72px; } }
.tema .info--lista .info__int { max-width: 1180px; margin-inline: auto; padding-inline: 16px; gap: 36px 50px; }
@media (min-width: 760px) { .tema .info--lista .info__int { padding-inline: 28px; } }
.tema .info--lista .info__figura { order: -1; flex: 0 1 430px; }
.tema .info--lista .info__figura img { max-width: 430px; }
.tema .info--lista h2 { color: #fff; }
.tema .info--lista .info__eyebrow { color: #BDD7F6; font-weight: 800; }
.tema .info--lista .info__btn, .tema .info--lista .info__btn-2 { border-radius: 14px; font-weight: 800; }
.tema .info--lista .info__btn { color: #101F30; }
.tema .info--lista .info__btn:hover { color: #101F30; }

/* caja (T4): tarjeta clara oliva con borde, infografía ladeada */
.tema .info--caja { border-radius: 36px; background: var(--tinte); border: 2px solid var(--borde); padding: 32px 22px; }
@media (min-width: 760px) { .tema .info--caja { padding: 40px 44px; } }
.tema .info--caja .info__int { gap: 32px 44px; }
.tema .info--caja .info__figura { flex: 0 1 380px; }
.tema .info--caja .info__figura img { max-width: 380px; border-radius: 18px; border: 5px solid #fff; box-shadow: 0 24px 50px rgba(50, 52, 15, .28); transform: rotate(1.5deg); }
.tema .info--caja p { color: var(--tx2); }
.tema .info--caja .info__btn { background: var(--p2); color: #fff; border-color: var(--p2); }
.tema .info--caja .info__btn:hover { background: var(--p); border-color: var(--p); color: var(--color-fondo); }
.tema .info--caja .info__btn-2 { color: var(--p); border-color: var(--p); }
.tema .info--caja .info__btn-2:hover { background: var(--card); color: var(--p-h); border-color: var(--p-h); }
:root[data-theme="dark"] .tema .info--caja .info__btn { background: var(--p); color: var(--color-fondo); border-color: var(--p); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tema .info--caja .info__btn { background: var(--p); color: var(--color-fondo); border-color: var(--p); } }

/* cierre (T5): degradado terracota hacia el certificado */
.tema .info--cierre { border-radius: 36px; background: linear-gradient(120deg, #4A3100, #8F5F00); color: #fff; padding: 36px 22px; }
@media (min-width: 760px) { .tema .info--cierre { padding: 44px 48px; } }
.tema .info--cierre .info__int { gap: 32px 44px; }
.tema .info--cierre h2 { color: #fff; }
.tema .info--cierre .info__eyebrow { color: #F7EDD4; letter-spacing: .18em; }
.tema .info--cierre p { color: rgba(255, 255, 255, .9); }
.tema .info--cierre .info__figura { flex: 0 1 360px; }
.tema .info--cierre .info__figura img { max-width: 360px; border-radius: 18px; border: 5px solid #fff; box-shadow: 0 26px 54px rgba(30, 12, 2, .5); transform: rotate(-1.5deg); }
.tema .info--cierre .info__btn { background: #fff; color: #4A3100; border-color: #fff; }
.tema .info--cierre .info__btn:hover { background: #F7EDD4; border-color: #F7EDD4; color: #4A3100; }

/* =====================================================================
   8. Siguiente tema (tarjeta con el tinte del tema que viene; app.css da --c y --tinte por data-tema)
   ===================================================================== */
.tema .sig__int { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; padding: 24px 22px; border-radius: 28px; background: var(--tinte); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); text-decoration: none; color: var(--color-texto); transition: box-shadow var(--t-media), transform var(--t-media); }
@supports not (color-mix(in srgb, red, blue)) { .tema .sig__int { border-color: var(--c); } }
@media (min-width: 760px) { .tema .sig__int { padding: 28px 34px; } }
.tema .sig__int:hover { box-shadow: var(--sombra-alta); transform: translateY(-2px); color: var(--color-texto); }
.tema .sig__int img { width: 150px; height: auto; border-radius: 18px; background: #fff; flex: none; }
.tema .sig__texto { flex: 1 1 300px; min-width: 0; }
.tema .sig__texto p { margin: 0; }
.tema .sig__eyebrow { color: var(--c); letter-spacing: .14em; font-size: .75rem; }
.tema .sig__titulo { margin-top: 6px !important; font-family: var(--tit); font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem); line-height: 1.2; letter-spacing: -.01em; color: var(--color-texto); }
.tema .sig__nota { margin-top: 6px !important; font-size: .9375rem; color: var(--color-texto-2); }
.tema .sig__nota span { color: var(--c); font-weight: 600; }
.tema .sig__int:hover .sig__nota span { text-decoration: underline; }

/* =====================================================================
   9. Tema 5 · el recorrido completo (chips de los cinco temas + ficha)
   ===================================================================== */
.tema .bloque--recorrido { padding-block: 64px 16px; text-align: center; }
.tema .bloque--recorrido h2 { margin-top: 12px; }
.tema .chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tema .chip { min-height: 48px; padding: 0 22px; border-radius: var(--radio-pill); cursor: pointer; font: inherit; font-weight: 700; font-size: .96875rem; color: var(--c); background: var(--card); border: 2.5px solid var(--c); transition: background-color var(--t), color var(--t), transform var(--t); }
.tema .chip:hover { transform: translateY(-1px); background: var(--tinte); }
.tema .chip[aria-pressed="true"] { background: var(--c); color: var(--sobre-tema); }
.tema .ficha { margin: 22px auto 0; max-width: 720px; padding: 20px 22px; border-radius: 24px; background: var(--tinte); border: 1.5px solid var(--c); text-align: left; display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
@media (min-width: 760px) { .tema .ficha { padding: 22px 28px; } }
.tema .ficha > div { flex: 1 1 300px; min-width: 0; }
.tema .ficha img { width: 120px; height: auto; border-radius: 14px; background: #fff; flex: none; }
.tema .ficha p { margin: 0; }
.tema .ficha__eyebrow { color: var(--c); font-size: .75rem; }
.tema .ficha__titulo { margin-top: 4px !important; font-family: var(--tit); font-weight: 700; font-size: 1.375rem; line-height: 1.25; color: var(--color-texto); }
.tema .ficha__enlace { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-weight: 600; font-size: .9375rem; color: var(--c); }
.tema .ficha__enlace:hover { color: var(--c); text-decoration-thickness: .16em; }

/* =====================================================================
   10. Cierre de la página: inscripción y vuelta al temario
   ===================================================================== */
.tema .tema-cierre { padding: 32px 0 72px; }
.tema .tema-cierre__int { max-width: 980px; margin-inline: auto; padding-inline: 16px; text-align: center; }
.tema .tema-cierre__txt { margin: 0 0 18px; font-size: .9375rem; color: var(--tx2); }
.tema .tema-cierre .acciones { justify-content: center; }
.tema .tema-cierre .btn--primario { background: var(--p); border-color: var(--p); color: var(--sobre-p); }
.tema .tema-cierre .btn--primario:hover { background: var(--p-h); border-color: var(--p-h); }
.tema .tema-cierre .btn--secundario { color: var(--p); border-color: var(--p); }
.tema .tema-cierre .btn--secundario:hover { background: var(--tinte); color: var(--p-h); }
.tema .tema-cierre .btn--terciario { color: var(--p); }
.tema .tema-cierre .btn--terciario:hover { background: var(--tinte); }
:root[data-theme="dark"] .tema .tema-cierre .btn--primario, :root[data-theme="dark"] .tema .hero__cta { --sobre-p: #141220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tema .tema-cierre .btn--primario, :root:not([data-theme="light"]) .tema .hero__cta { --sobre-p: #141220; } }
:root[data-theme="dark"] .tema .hero__num { color: #141220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tema .hero__num { color: #141220; } }

/* =====================================================================
   11. Movimiento reducido e impresión
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .tema *, .tema *::before, .tema *::after { transition: none !important; animation: none !important; }
  .tema .hero__figura img, .tema .tarjeta-img, .tema .info__figura img { transform: none !important; }
}
@media print { .tema .migas__volver, .tema .tema-cierre, .tema .info__acciones { display: none; } .tema .hero, .tema .info { break-inside: avoid; } }
