/* web.css — el cuestionario dentro de la página de una lectura (plantilla «Lecturas» del tema mp-2020). Lo demás está
   en motor/ y juego/; aquí solo la caja y lo que hace falta para que la hoja de la página no lo descoloque. */
.mpl { max-width: 980px; margin: 48px auto; scroll-margin-top: 90px; clear: both; }
.mpl-titulo { font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 600; font-size: 26px; line-height: 1.2; color: #1b7f92; text-align: left; margin: 0 0 24px; padding: 0; }
.mpl-juego { border-radius: 20px; overflow: clip; box-shadow: 0 2px 14px rgba(0, 0, 0, .14); color-scheme: light; text-align: left; }
:where(.mpl) :is(p, h2, h3, li) { margin: 0; padding: 0; text-align: inherit; line-height: inherit; }
.mpl p { font-size: inherit !important; line-height: inherit; }
.mpl .cq-etiqueta { font-size: .72em !important; }
.mpl .cq-portada-dato { font-size: .85em !important; }
.mpl .mp-portada-lema { font-size: 1.15em !important; }
.mpl .cq-pista { font-size: var(--opcion) !important; }
.mpl .cq-cuenta-texto { font-size: var(--pregunta) !important; line-height: var(--lh-pregunta); }
.mpl .mp-final-titulo { font-size: calc(var(--pregunta) * 1.25) !important; }
.mpl img { margin: 0; }
.mpl ul, .mpl ol { list-style: none; margin: 0; padding: 0; }

/* ── El lector: filtros arriba, la lectura, «Otra lectura» debajo del texto, cuestionario y tarjetas al final.
   Regla 6: 32-40 px entre bloques, 16 px dentro de un grupo, 28 px entre un rótulo y su control. ── */
.mpl-filtros, .mpl-filtros *, .mpl-mas, .mpl-mas *, .mpl-acciones, .mpl-acciones *, .mpl-destacada, .mpl-destacada * { box-sizing: border-box; }
.mpl-filtros, .mpl-mas, .mpl-acciones { font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.4; color: #23363b; color-scheme: light; text-align: left; }
.mpl-filtros { max-width: 1100px; margin: 32px auto 32px; display: flex; flex-direction: column; gap: 24px; clear: both; }
.mpl-fila { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.mpl-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.mpl-chip { font: inherit; font-size: 16px; font-weight: 800; color: #1b7f92; background: #fff; border: 2px solid #cfe6eb; border-radius: 999px; padding: 6px 18px;
  min-height: 46px; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.mpl-chip small { font-weight: 700; font-size: 11px; opacity: .8; }
.mpl-chip[data-grupo="curso"] { min-width: 128px; min-height: 58px; padding: 8px 22px; gap: 4px; }
.mpl-chip[data-grupo="curso"] small { font-size: 13px; }
@media (max-width: 600px) { .mpl-chip[data-grupo="curso"] { min-width: 0; flex: 0 0 calc((100% - 24px) / 3); padding: 8px 6px; } }
.mpl-chip:hover { border-color: #29a5bc; }
.mpl-chip[aria-pressed="true"] { background: #29a5bc; border-color: #29a5bc; color: #fff; }
.mpl-mas-filtros, .mpl-ver-mas { font: inherit; font-weight: 800; font-size: 16px; color: #1b7f92; background: none; border: 0; padding: 10px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.mpl-filtros-mas { display: flex; flex-direction: column; gap: 28px; padding: 24px; background: #f3fafb; border: 1px solid #cfe6eb; border-radius: 16px; }
.mpl-filtro { display: flex; flex-direction: column; gap: 14px; }
.mpl-filtro > span { font-weight: 800; font-size: 14px; color: #557078; text-transform: uppercase; letter-spacing: .05em; }
.mpl-norepetir { display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.mpl-norepetir input { width: 24px; height: 24px; accent-color: #29a5bc; margin: 0; }

/* «Otra lectura», justo debajo del texto */
.mpl-acciones { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: center; margin: 32px auto 0; clear: both; }
.mpl-otra { font: inherit; font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 600; font-size: 20px; border: 0; border-radius: 16px; padding: 14px 28px; min-height: 60px; cursor: pointer;
  background: #f26b1d; color: #fff; box-shadow: 0 5px 0 #c24f0e; }
.mpl-otra:active { transform: translateY(3px); box-shadow: 0 2px 0 #c24f0e; }
.mpl-otra:disabled { opacity: .4; cursor: default; }
.mpl-ir { font-weight: 800; font-size: 17px; color: #1b7f92 !important; text-decoration: underline !important; text-underline-offset: 4px; }

/* las tarjetas, al final */
.mpl-mas { max-width: 1100px; margin: 48px auto; display: flex; flex-direction: column; gap: 28px; clear: both; }
.mpl-mas h2 { font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 600; font-size: 26px; line-height: 1.2; color: #1b7f92; margin: 0; padding: 0; text-align: left; }
.mpl-mas p { margin: 0; padding: 0; font-size: 16px !important; line-height: 1.4; text-align: left; }
.mpl-cuenta { color: #557078; font-weight: 700; }
.mpl-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mpl-tarjeta { display: flex; align-items: center; gap: 16px; padding: 12px; background: #fff; border: 2px solid #cfe6eb; border-radius: 16px; color: inherit !important; text-decoration: none !important; min-width: 0; }
.mpl-tarjeta:hover { border-color: #29a5bc; }
.mpl-tarjeta img { flex: none; width: 96px; height: 64px; object-fit: contain; border-radius: 10px; background: #f3fafb; margin: 0; }
.mpl-tarjeta span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mpl-tarjeta b { font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.2; color: #1b7f92; }
.mpl-tarjeta small { font-size: 13px; font-weight: 700; color: #557078; }
.mpl-tarjeta .mpl-leida { color: #8a5a00; }
.mpl-chip:focus-visible, .mpl-otra:focus-visible, .mpl-tarjeta:focus-visible, .mpl-mas-filtros:focus-visible, .mpl-ver-mas:focus-visible, .mpl-ir:focus-visible { outline: 3px solid #f26b1d; outline-offset: 3px; }
.mpl-mas [hidden], .mpl-filtros [hidden] { display: none !important; }

/* ── la lectura: una hoja a todo lo ancho, sin columna estrecha (Mikel, 16-11-2026: «márgenes muy anchos y muchas líneas») ── */
.mpl-destacada { max-width: 1100px; margin: 0 auto 48px; padding: 32px 40px 40px; background: #fff; border: 2px solid #cfe6eb; border-radius: 20px; text-align: left; display: flex; flex-direction: column; gap: 28px; }
.mpl-destacada-cab { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.mpl-destacada h1, .mpl-destacada h2 { font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 600; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; color: #1b7f92; margin: 0; padding: 0; text-align: left; }
.mpl-destacada-datos { margin: 12px 0 0 !important; font-size: 15px !important; font-weight: 700; color: #557078; text-align: left; }
.mpl-destacada-cab img { flex: none; width: 168px; height: 112px; object-fit: contain; border-radius: 14px; margin: 0; }
.mpl-destacada-texto { display: flex; flex-direction: column; gap: 1em; }
.mpl-destacada-texto p { margin: 0; padding: 0; text-align: left; line-height: 1.65; font-size: 20px !important; }
.mpl-destacada .mpl-acciones { margin-top: 4px; }
.mpl, .mpl-juego { max-width: 1100px; }
@media (max-width: 600px) { .mpl-destacada { padding: 24px 16px; } .mpl-destacada-cab img { display: none; } .mpl-rejilla { grid-template-columns: 1fr; } }

.mpl-niveles { max-width: 1100px; margin: 0 auto 40px !important; text-align: center !important; font-size: 16px !important; color: #557078; }
.mpl-niveles a { color: #1b7f92; font-weight: 700; }

/* la página de una lectura: la hoja lleva el h1; la firma de la autora, debajo y sin apretar */
.mpl-pagina .mpl-destacada { margin-bottom: 32px; }
.mpl-firma { max-width: 1100px; margin: 0 auto 40px; }
.mpl-pagina #breadcrumbs { text-align: center; margin: 16px 0 0; }

/* ── las preguntas, dentro de la hoja de la lectura (Mikel, 16-11-2026: suelto y tras los anuncios «parece un anuncio,
   de los engañosos»). Sin caja con sombra: una raya de puntos lo separa del texto y lleva el dibujo de la lectura. ── */
.mpl-destacada .mpl { max-width: none; margin: 12px 0 0; padding-top: 32px; border-top: 2px dashed #cfe6eb; }
.mpl-destacada .mpl-juego { max-width: none; box-shadow: none; border: 2px solid #cfe6eb; }
.mpl .cq-portada { border: 0 !important; box-shadow: none !important; }
.mpl .mp-portada-img { flex: 0 0 240px !important; width: 240px !important; max-width: 40%; aspect-ratio: 3 / 2; object-fit: contain; animation: none !important; box-shadow: none; border-radius: 14px; }
.mpl .cq-portada .cq-boton { animation: none !important; }
.mpl .cq-portada :is(h1, h2, h3) { font-size: clamp(22px, 3vw, 30px) !important; }
.mpl .mp-final-img { width: 200px; aspect-ratio: 3 / 2; object-fit: contain; }
@media (max-width: 600px) { .mpl .mp-portada-img { flex-basis: 160px !important; width: 160px !important; max-width: 60%; } }
/* el rótulo «Preguntas de la lectura», más grande y en negrita (Mikel, 16-11-2026) */
.mpl .cq-portada .cq-etiqueta { font-size: 20px !important; font-weight: 800 !important; letter-spacing: .05em; margin-bottom: 4px; }
@media (max-width: 600px) { .mpl .cq-portada .cq-etiqueta { font-size: 17px !important; } }

/* portada y páginas de curso: mientras llega la lectura al azar, la hoja en blanco (no se ve el cambio); al cambiar de lectura, un fundido */
.mpl-espera .mpl-destacada > * { visibility: hidden; }
.mpl-destacada > * { transition: opacity .18s; }
.mpl-destacada.mpl-cambiando > * { opacity: .35; }

/* los poemas: los versos de una estrofa, juntos; hueco solo entre estrofas; la línea de autor, aparte y pequeña */
.mpl-destacada-texto.mpl-verso { gap: 32px; }
.mpl-estrofa { display: flex; flex-direction: column; gap: 4px; }
.mpl-destacada-texto.mpl-verso .mpl-estrofa p { line-height: 1.5; }
.mpl-destacada-texto.mpl-verso p.mpl-autor { font-size: 15px !important; font-weight: 700; color: #557078; }

/* ── cronómetro de velocidad lectora (16-11-2026): «Medir…» bajo el título, «He terminado» en el sitio de «Otra
   lectura» y el resultado entre el texto y los botones. Lo pinta lector-web.js. ── */
.mpl-crono, .mpl-crono *, .mpl-crono-resultado, .mpl-crono-resultado *, .mpl-crono-fin { box-sizing: border-box; }
.mpl-crono { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif; color: #23363b; }
.mpl-crono-empieza { font: inherit; font-weight: 800; font-size: 16px; color: #1b7f92; background: #fff; border: 2px solid #cfe6eb; border-radius: 999px; padding: 8px 20px 8px 16px; min-height: 46px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px; line-height: 1.2; }
.mpl-crono-empieza:hover { border-color: #29a5bc; }
.mpl-crono-marcha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mpl-crono-reloj { font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 600; font-size: 30px; line-height: 1; color: #1b7f92; font-variant-numeric: tabular-nums; min-width: 2.6em; }
.mpl-crono-pista { font-size: 15px; font-weight: 700; color: #557078; }
.mpl-crono-cancela { font: inherit; font-weight: 800; font-size: 15px; color: #1b7f92; background: none; border: 0; padding: 8px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.mpl-crono-fin { font: inherit; font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 600; font-size: 20px; border: 0; border-radius: 16px; padding: 14px 32px; min-height: 60px; cursor: pointer;
  background: #1b7f92; color: #fff; box-shadow: 0 5px 0 #125866; }
.mpl-crono-fin:active { transform: translateY(3px); box-shadow: 0 2px 0 #125866; }
.mpl-crono-resultado { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px; background: #f3fafb; border: 2px solid #cfe6eb; border-radius: 16px;
  font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif; color: #23363b; text-align: left; }
.mpl-crono-resultado p { margin: 0 !important; padding: 0; font-size: 17px !important; line-height: 1.5; text-align: left; }
.mpl-crono-resultado p.mpl-crono-cifra { font-size: 20px !important; font-weight: 800; line-height: 1.1; }
.mpl-crono-cifra b { font-family: Fredoka, Nunito, system-ui, sans-serif; font-weight: 600; font-size: 48px; color: #1b7f92; margin-right: 6px; }
.mpl-crono-resultado p.mpl-crono-ref { font-size: 16px !important; color: #557078; }
.mpl-crono-resultado p.mpl-crono-aviso { font-weight: 700; color: #8a5a00; }
.mpl-crono [hidden], .mpl-acciones [hidden], .mpl-crono-resultado[hidden] { display: none !important; }
.mpl-crono-empieza:focus-visible, .mpl-crono-cancela:focus-visible, .mpl-crono-fin:focus-visible { outline: 3px solid #f26b1d; outline-offset: 3px; }
@media (max-width: 600px) { .mpl-crono-resultado { padding: 20px; } .mpl-crono-cifra b { font-size: 40px; } }
