/* ==========================================================================
   Gadget 04 — Reporte de Impulso Lector
   ========================================================================== */

/* Todo el ancho disponible: la tabla de «Todas» es la que más lo necesita. */
.il { padding: 22px 30px 70px; }
/* Los números cortos, centrados en su columna: se comparan de un vistazo. */
.tabla th.c, .tabla td.c { text-align: center; }
.tenue { color: var(--texto-suave); }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.rotulo { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--texto-suave); margin: 0 0 3px; }
.enlace { background: none; border: none; padding: 0; font: inherit; color: var(--azul-oscuro); cursor: pointer; text-decoration: underline; }
.nota-pie { font-size: 12.5px; color: var(--texto-medio); margin: 10px 2px 18px; }
.volver { background: none; border: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--azul-oscuro); padding: 0; margin-bottom: 10px; }
.volver:hover { text-decoration: underline; }

.titulo-pantalla { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.titulo-pantalla > div:first-child { flex: 1; min-width: 240px; }
.titulo-pantalla h1 { font-size: 23px; margin: 0 0 4px; }
.titulo-pantalla p { margin: 0; color: var(--texto-medio); font-size: 13.5px; }

.campo { display: flex; flex-direction: column; gap: 4px; }
.campo > span { font-size: 12px; color: var(--texto-suave); }
.campo select {
  font: inherit; font-size: 13.5px; color: var(--texto); padding: 7px 14px; background: #fff;
  border: 1px solid var(--borde-fuerte); border-radius: var(--r-capsula); min-width: 150px;
}
.campo select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-suave); }
.filtros { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }


.pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--borde); margin-bottom: 16px; flex-wrap: wrap; }
.pestana {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--texto-medio); cursor: pointer;
  background: none; border: none; padding: 10px 16px; border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.pestana:hover { color: var(--texto); }
.pestana.activa { color: var(--azul-oscuro); border-bottom-color: var(--azul); }

/* --- Tablas --------------------------------------------------------------- */
.tabla-envoltorio { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabla th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--texto-suave); padding: 10px 12px; border-bottom: 1px solid var(--borde); vertical-align: bottom;
}
.tabla th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }
.tabla th.num { text-align: right; }
.tabla td { padding: 8px 12px; border-bottom: 1px solid var(--borde); }
.tabla tr:last-child td { border-bottom: none; }
/* Ordenar: toda columna se ordena. La flecha dice el sentido; al pasar por
   encima aparece tenue, para que se sepa que se puede. */
.ordenable { cursor: pointer; user-select: none; white-space: nowrap; }
.ordenable:hover, .orden-asc, .orden-desc { color: var(--azul-oscuro) !important; }
.ordenable:focus-visible { outline: 2px solid var(--azul); outline-offset: -2px; }
.ordenable::after { content: '▲'; font-size: 9px; margin-left: 4px; opacity: 0; vertical-align: 1px; }
.ordenable:hover::after { opacity: .35; }
.orden-asc::after { content: '▲'; opacity: 1 !important; }
.orden-desc::after { content: '▼'; opacity: 1 !important; }
.tabla-todas th.col-cap.ordenable { white-space: normal; }
.fila-alumno { cursor: pointer; }
.fila-alumno:hover td { background: #f7fbfe; }
.fila-alumno:focus-visible { outline: 2px solid var(--azul); outline-offset: -2px; }
.nombre { font-weight: 600; white-space: nowrap; }
.col-cap { white-space: nowrap; }
.tabla th.col-cap { max-width: 150px; white-space: normal; }
.ppm { font-size: 12px; color: var(--texto-medio); margin-left: 4px; }

/* --- «Todas»: la tabla se desplaza hacia el lado -------------------------
   Con 14 cápsulas no cabe. Se desplaza DENTRO de su caja —la página no— y
   quedan fijos el alumno a la izquierda y sus promedios a la derecha, para no
   perder de quién es cada fila al moverse. */
.sub-todas { font-size: 13px; color: var(--texto-medio); margin: 0 2px 12px; }
.tabla-desliza { overflow-x: auto; overscroll-behavior-x: contain; }
.tabla-todas { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.tabla-todas th, .tabla-todas td { background: #fff; }
.tabla-todas .fila-alumno:hover td { background: #f7fbfe; }
.tabla-todas .fijo { position: sticky; z-index: 2; }
.tabla-todas .fijo-n { left: 0; width: 52px; min-width: 52px; max-width: 52px; }
.tabla-todas .fijo-nombre { left: 52px; min-width: 200px; box-shadow: 6px 0 8px -6px rgba(60,72,88,.18); }
/* Anchos EXACTOS: la de la derecha empieza donde termina la otra (right: 76px),
   así que si una creciera por su contenido, se montarían. */
.tabla-todas .fijo-der1 { right: 0; width: 76px; min-width: 76px; max-width: 76px; }
.tabla-todas .fijo-der2 { right: 76px; width: 116px; min-width: 116px; max-width: 116px; box-shadow: -6px 0 8px -6px rgba(60,72,88,.18); }
.tabla-todas th.col-cap { width: 96px; min-width: 96px; max-width: 96px; white-space: normal; vertical-align: bottom; }
.cap-fecha { display: block; font-size: 10.5px; font-weight: 700; color: var(--azul-oscuro); letter-spacing: 0; }
.cap-titulo {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 10.5px; line-height: 1.3; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--texto-medio);
}
.tabla-todas td.col-cap { text-align: center; padding: 7px 6px; }
.tabla-todas td.col-cap .logro { min-width: 44px; }
.tabla-todas td.col-cap .ppm { display: block; margin: 2px 0 0; font-size: 11px; }
.en-linea { display: inline !important; margin: 0 !important; }
.ppm-celda { font-weight: 700; margin-right: 3px; }
.est-sin td, .est-en_curso td { color: var(--texto-suave); }
.est-sin .nombre, .est-en_curso .nombre { color: var(--texto-medio); }
.intentos { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: var(--r-capsula); background: var(--azul-suave); color: var(--azul-oscuro); font-weight: 700; text-align: center; }
.sube { color: #1f9b76; font-weight: 700; } .baja { color: var(--rojo); font-weight: 700; }

.logro {
  display: inline-block; min-width: 50px; text-align: center; font-weight: 700; font-size: 12.5px;
  padding: 2px 9px; border-radius: var(--r-capsula);
}
.logro-bajo  { background: var(--rojo-suave); color: #c9435f; }
.logro-medio { background: var(--c-amarillo); color: #a67b1b; }
.logro-alto  { background: var(--verde-suave); color: #1f9b76; }
.logro-sin   { background: #f2f4f8; color: var(--texto-suave); }
.logro-txt-bajo { color: #c9435f; } .logro-txt-medio { color: #a67b1b; } .logro-txt-alto { color: #1f9b76; }
.leyenda { font-size: 12.5px; color: var(--texto-medio); margin: 6px 2px 20px; }

.estado { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: var(--r-capsula); white-space: nowrap; }
.estado-completado { background: var(--verde-suave); color: #1f9b76; }
.estado-en_curso { background: var(--c-amarillo); color: #a67b1b; }
.estado-sin { background: #f2f4f8; color: var(--texto-suave); }

/* Las seis categorías de fluidez, con los colores del visor
   (rojo lentas, ámbar medias, verde rápidas). */
.cat { display: inline-flex; flex-direction: column; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--r-capsula); white-space: nowrap; }
.cat small { font-weight: 400; font-size: 11px; }
.cat-0, .cat-1 { background: #fde8ea; color: #c0392b; }
.cat-2, .cat-3 { background: #fdf3d4; color: #a0701a; }
.cat-4, .cat-5 { background: #e3f6ec; color: #16874f; }
.reparto span.cat-0, .leyenda-cats i.cat-0 { background: #dc2626; } .reparto span.cat-1, .leyenda-cats i.cat-1 { background: #f0797a; }
.reparto span.cat-2, .leyenda-cats i.cat-2 { background: #f59e0b; } .reparto span.cat-3, .leyenda-cats i.cat-3 { background: #f7c35c; }
.reparto span.cat-4, .leyenda-cats i.cat-4 { background: #4cc38a; } .reparto span.cat-5, .leyenda-cats i.cat-5 { background: #16a34a; }

/* --- Pestaña preguntas ---------------------------------------------------- */
.preg-intro p { font-size: 13.5px; color: var(--texto-medio); margin: 0 0 12px; }
.pregunta { padding: 16px 18px; margin-bottom: 12px; }
.preg-cab { display: flex; gap: 12px; align-items: flex-start; }
.preg-n { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #eef1f6; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--texto-medio); }
.preg-titulo { flex: 1; min-width: 0; }
.preg-enunciado { margin: 3px 0 2px; font-weight: 600; font-size: 14.5px; }
.preg-meta { margin: 0; font-size: 12px; color: var(--texto-suave); }
.preg-meta b { color: var(--texto-medio); font-weight: 600; }
.preg-meta code { font-size: 11px; background: #f2f4f8; padding: 0 5px; border-radius: 4px; }
.preg-cifra { text-align: right; min-width: 110px; }
.preg-cifra b { display: block; font-size: 24px; line-height: 1.1; }
.preg-cifra span { font-size: 12px; color: var(--texto-suave); }
.preg-nota { font-size: 12.5px; color: var(--texto-medio); margin: 10px 0 0 40px; }
.marcas { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.marca { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 9px; border-radius: var(--r-capsula); background: #eef1f6; color: var(--texto-medio); }
.marca-clave { background: var(--naranja-suave); color: var(--naranja-oscuro); }
.marca-quitada { background: #f2f4f8; color: var(--texto-suave); text-decoration: line-through; text-decoration-thickness: 1px; }

.distribucion { margin: 12px 0 0 40px; display: flex; flex-direction: column; gap: 6px; }
.dist-fila { display: grid; grid-template-columns: minmax(0, 1fr) 200px 36px; gap: 12px; align-items: center; font-size: 13.5px; }
.dist-op { display: flex; align-items: center; gap: 8px; }
.dist-op small { color: var(--texto-suave); }
.dist-barra { height: 9px; background: #eef1f6; border-radius: 5px; overflow: hidden; }
.dist-barra i { display: block; height: 100%; background: #b8c2d0; }
.dist-correcta .dist-barra i { background: var(--verde); }
.dist-correcta .dist-op { font-weight: 600; }
.dist-fila b { text-align: right; }
.dist-check { color: #1f9b76; font-weight: 800; }
.alt-img {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 9px; background: #fff7ea; border: 1px solid #f3dfbd; font-size: 22px; line-height: 1;
}
.alt-img.chica { width: 28px; height: 28px; font-size: 16px; margin-right: 3px; }
.clave-vieja { margin: 14px 0 0 40px; padding: 11px 14px; border-radius: var(--r); background: var(--naranja-suave); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.clave-vieja p { margin: 0; font-size: 13px; flex: 1; min-width: 260px; }
.abiertas { list-style: none; margin: 10px 0 0 40px; padding: 0; }
.abiertas li { font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--borde); }
.abiertas small { color: var(--texto-suave); margin-left: 6px; }

/* --- Pestaña lectura ------------------------------------------------------ */
.norma { margin-bottom: 16px; }
.norma h3 { font-size: 14px; margin: 0 0 8px; }
.norma-porque { font-weight: 400; font-size: 12.5px; color: var(--texto-medio); }
.norma-tramos { display: flex; gap: 6px; flex-wrap: wrap; }
.norma p { font-size: 12px; margin: 6px 0 0; }
.bloque { padding: 16px 20px; margin-bottom: 16px; }
.bloque h3 { font-size: 15px; margin: 0 0 12px; }
.reparto { display: flex; height: 26px; border-radius: 6px; overflow: hidden; gap: 2px; }
.reparto span { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; min-width: 18px; }
.leyenda-cats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--texto-medio); margin: 10px 0 0; }
.leyenda-cats i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.btn-escuchar {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: 3px 12px; border-radius: var(--r-capsula); border: 1.5px solid var(--azul-borde); background: #fff; color: var(--azul-oscuro);
}
.btn-escuchar:hover { background: var(--azul-suave); }
.sin-audio { font-size: 12px; color: var(--texto-suave); white-space: nowrap; }

/* --- Pestaña habilidades -------------------------------------------------- */
.donas { display: flex; gap: 30px; flex-wrap: wrap; }
.hab-intro { font-size: 13.5px; color: var(--texto-medio); margin: 0 0 14px; }
.dona-hab { display: flex; flex-direction: column; align-items: center; text-align: center; width: 170px; position: relative; }
.dona-hab svg { display: block; }
.dona-hab > b { position: absolute; top: 32px; font-size: 18px; }
.dona-hab span { font-weight: 600; font-size: 13.5px; margin-top: 6px; }
.dona-hab small { color: var(--texto-suave); font-size: 11.5px; }
.dona-fondo { fill: none; stroke: #eef1f6; stroke-width: 3.6; }
.dona-bajo, .dona-medio, .dona-alto, .dona-sin { fill: none; stroke-width: 3.6; stroke-linecap: round; }
.dona-bajo { stroke: #e0637e; } .dona-medio { stroke: #efc760; } .dona-alto { stroke: var(--verde); } .dona-sin { stroke: #d5dce6; }

/* --- La ficha del alumno (cajón) ------------------------------------------ */
.cajon-fondo { position: fixed; inset: 0; z-index: 70; background: rgba(31, 39, 51, .32); }
.cajon {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(640px, 100vw);
  background: #fff; box-shadow: -10px 0 40px rgba(31,39,51,.18); display: flex; flex-direction: column;
}
.cajon-cab { display: flex; align-items: flex-start; gap: 10px; padding: 20px 24px 12px; border-bottom: 1px solid var(--borde); }
.cajon-cab > div { flex: 1; }
.cajon-rotulo { margin: 0; font-size: 12px; color: var(--texto-suave); }
.cajon-cab h2 { margin: 2px 0 0; font-size: 20px; }
.cajon-cerrar { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--texto-suave); line-height: 1; }
.cajon-cuerpo { overflow-y: auto; padding: 16px 24px 40px; }
.ficha-sel { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ficha-sel .campo { flex: 1; min-width: 200px; }
.ficha-sel select { width: 100%; }
.ficha-cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.ficha-cifras > div { background: #f7f9fc; border-radius: var(--r); padding: 10px 12px; }
.ficha-cifras b { display: block; font-size: 20px; }
.ficha-cifras span { display: block; font-size: 11.5px; color: var(--texto-medio); margin-top: 3px; }
.ficha-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--texto-suave); margin: 20px 0 10px; }
.aviso-ficha { padding: 10px 13px; border-radius: var(--r); background: var(--c-amarillo); color: #7c5a12; font-size: 13px; margin-bottom: 12px; }
.vacio { padding: 22px; text-align: center; color: var(--texto-medio); border: 1.5px dashed var(--borde-fuerte); border-radius: var(--r); }

.reproductor { display: flex; align-items: center; gap: 12px; }
.reproductor .btn { padding: 7px 16px; }
.onda { flex: 1; height: 44px; }
.onda rect { fill: #b8c7da; }
.onda-marca { stroke: #dc2626; stroke-width: 1.4; opacity: .7; }
.onda-cursor { stroke: var(--azul); stroke-width: 2; }
.dur { font-size: 12.5px; color: var(--texto-medio); font-variant-numeric: tabular-nums; }
.nota-audio { font-size: 11.5px; color: var(--texto-suave); margin: 6px 0 10px; }
.lectura-cifras { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--texto-medio); margin-bottom: 10px; }
.lectura-cifras b { color: var(--texto); }
.texto-leido { font-family: var(--fuente-papel); font-size: 16px; line-height: 2.1; background: #fbfcfe; border: 1px solid var(--borde); border-radius: var(--r); padding: 14px 16px; }
.w { border-radius: 4px; padding: 1px 1px; transition: background .1s; }
.w-sub { background: #fdf3d4; border-bottom: 2px solid #f59e0b; position: relative; }
.w-sub sup { font-size: 10.5px; color: #a0701a; margin-left: 2px; font-family: var(--fuente); }
.w-del { color: #c0392b; text-decoration: line-through; text-decoration-color: #dc2626; background: #fde8ea; }
.w-ins { color: #6b4fbb; font-size: 13px; font-style: italic; }
.w.sonando { background: var(--azul); color: #fff; }
.w.sonando sup { color: #fff; }
.leyenda-palabras { font-size: 12px; color: var(--texto-medio); display: flex; gap: 16px; margin: 8px 0 0; }

.ficha-resps { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.resp { padding: 10px 12px 10px 14px; margin-bottom: 8px; border-radius: var(--r); border: 1px solid var(--borde); border-left-width: 3px; }
.resp-ok { border-left-color: var(--verde); }
.resp-mal { border-left-color: var(--rojo); }
.resp-abierta { border-left-color: #b8c2d0; }
.resp-sin { border-left-color: #e4e8ef; opacity: .7; }
.resp-enunciado { margin: 0 0 2px; font-weight: 600; font-size: 13.5px; }
.resp-meta { margin: 0 0 6px; font-size: 11.5px; color: var(--texto-suave); }
.resp-dijo { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.resp-icono { font-weight: 800; width: 18px; }
.resp-ok .resp-icono { color: #1f9b76; } .resp-mal .resp-icono { color: #c9435f; } .resp-abierta .resp-icono { color: var(--texto-suave); }
.resp-esperada { margin: 6px 0 0 26px; font-size: 12.5px; color: #1f9b76; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }

.historial { width: 100%; max-width: 420px; height: 130px; }
.hist-banda { fill: var(--verde-suave); }
.hist-banda-txt { font-size: 8px; fill: #1f9b76; }
.hist-linea { fill: none; stroke: var(--azul); stroke-width: 2; }
.hist-punto { fill: #fff; stroke: var(--azul); stroke-width: 2; }
.hist-val { font-size: 9px; font-weight: 700; fill: var(--texto); }
.hist-eje { font-size: 8px; fill: var(--texto-suave); }

/* --- Modal y avisos ------------------------------------------------------- */
.modal-fondo { position: fixed; inset: 0; z-index: 90; background: rgba(31, 39, 51, .38); display: flex; align-items: flex-start; justify-content: center; padding: 70px 16px; }
.modal { background: #fff; border-radius: var(--r-grande); box-shadow: 0 18px 50px rgba(31,39,51,.25); width: 100%; max-width: 520px; }
.modal-cab { display: flex; align-items: center; padding: 18px 22px 0; }
.modal-cab h3 { flex: 1; margin: 0; font-size: 17px; }
.modal-cerrar { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--texto-suave); }
.modal-cuerpo { padding: 12px 22px 4px; font-size: 14px; }
.modal-cuerpo ul { padding-left: 20px; }
.modal-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; }
.avisos { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.aviso { background: #2f3a4b; color: #fff; font-size: 13.5px; padding: 10px 18px; border-radius: var(--r-capsula); box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: opacity .35s; }
.aviso-ok { background: #1f9b76; }
.aviso.saliendo { opacity: 0; }

/* --- La ficha impresa ------------------------------------------------------
   Sólo la ficha, en una hoja. marco.js mete TODO lo que no es la cinta en la
   columna principal —el cajón incluido—, así que no se puede ocultar .wc-app:
   se ocultan sus piezas una por una. El audio no se imprime; el texto con las
   palabras marcadas, sí: es lo que el profesor lleva a la reunión. */
.solo-impresion { display: none; }
.btn-imprimir { padding: 6px 14px; font-size: 13px; margin-right: 6px; }
@media print {
  body.imprimiendo-ficha .wc-lateral, body.imprimiendo-ficha .wc-cabecera, body.imprimiendo-ficha .wc-migas,
  body.imprimiendo-ficha .wc-plegar, body.imprimiendo-ficha .cinta-maqueta, body.imprimiendo-ficha #il,
  body.imprimiendo-ficha .cajon-fondo, body.imprimiendo-ficha .avisos, body.imprimiendo-ficha .modal-fondo,
  body.imprimiendo-ficha .cajon-cerrar, body.imprimiendo-ficha .btn-imprimir, body.imprimiendo-ficha .ficha-sel,
  body.imprimiendo-ficha .reproductor, body.imprimiendo-ficha .nota-audio { display: none !important; }
  body.imprimiendo-ficha { background: #fff; }
  body.imprimiendo-ficha .wc-app { display: block; }
  body.imprimiendo-ficha .cajon {
    position: static; width: auto; box-shadow: none; display: block; height: auto;
  }
  body.imprimiendo-ficha .cajon-cab { padding: 0 0 8px; border-bottom: 2px solid var(--texto); }
  body.imprimiendo-ficha .cajon-cuerpo { overflow: visible; padding: 10px 0 0; }
  body.imprimiendo-ficha .solo-impresion { display: block; }
  body.imprimiendo-ficha .ficha-impresa-cab { font-size: 12px; margin-bottom: 12px; }
  body.imprimiendo-ficha .ficha-impresa-cab p { margin: 0 0 2px; }
  body.imprimiendo-ficha .resp, body.imprimiendo-ficha .ficha-lectura { break-inside: avoid; }
  body.imprimiendo-ficha .texto-leido { background: #fff; }
  body.imprimiendo-ficha * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* --- Corregir a mano las abiertas ----------------------------------------- */
.corregir { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12.5px; color: var(--texto-medio); }
.corregir.hecha { color: var(--texto-suave); }
.btn-corregir {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 3px 12px; border-radius: var(--r-capsula); background: #fff; border: 1.5px solid var(--borde-fuerte); color: var(--texto-medio);
}
.btn-corregir.si:hover { border-color: var(--verde); color: #1f9b76; background: var(--verde-suave); }
.btn-corregir.no:hover { border-color: var(--rojo); color: #c9435f; background: var(--rojo-suave); }
.abiertas li { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.abiertas li .corregir { margin-top: 0; }
.abiertas li.corregida .abierta-txt { color: var(--texto-medio); }
@media print { .corregir:not(.hecha) { display: none !important; } .corregir .enlace { display: none; } }

/* --- Alumnos del PIE ------------------------------------------------------
   Una marca chica junto al nombre, con el diagnóstico en el title. Ni rojo ni
   naranja: no es una alerta ni un error, es una forma distinta de leer. */
.pie {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px;
  padding: 0 6px; border-radius: var(--r-capsula); margin-left: 4px;
  background: var(--c-lavanda); color: var(--c-lavanda-txt); border: 1px solid #d9def5; cursor: help;
}
.pie-ficha { background: var(--c-lavanda); border-radius: var(--r); padding: 11px 14px; margin-bottom: 14px; font-size: 13px; }
.pie-ficha p { margin: 0 0 4px; }
.pie-ficha .pie { margin-left: 0; }
.pie-lectura { color: var(--texto-medio); }
.pie-nota { font-size: 11.5px; color: var(--texto-suave); margin: 4px 0 0 !important; }
@media print {
  /* El diagnóstico no sale impreso nunca: ni la marca ni el recuadro. */
  .pie, .pie-ficha { display: none !important; }
}