/* GENERADO por despliegue/generar-tema-noche.py: no editar a mano (las excepciones van en CAJA_APARTE del script). */
html[data-tema="noche"] {
  /* Los colores del modo noche están en /tokens.css (html[data-tema="noche"]). */
  color-scheme: dark;
}
html[data-tema="noche"] body { background: var(--crema); color: var(--tinta); }
html[data-tema="noche"] .oscuro { color: #efe7dc; }
html[data-tema="noche"] .boton { color: #efe7dc; }
html[data-tema="noche"] .boton .fl { color: #efe7dc; }
html[data-tema="noche"] .boton-claro { color: #efe7dc; }
html[data-tema="noche"] .boton-claro .fl { color: #efe7dc; }
html[data-tema="noche"] .pildora-claro { color: #efe7dc; }
html[data-tema="noche"] .nav a.activo { color: #efe7dc; }
html[data-tema="noche"] .en-oscuro .cabecera:not(.solida) { color: #efe7dc; }
html[data-tema="noche"] .en-oscuro .cabecera:not(.solida) .nav a.activo { color: #efe7dc; }
html[data-tema="noche"] .cinta { color: #efe7dc; }
html[data-tema="noche"] .maestros { color: #efe7dc; }
html[data-tema="noche"] .opcion[aria-pressed="true"] { color: #efe7dc; }
html[data-tema="noche"] .ruta-b .num { color: #efe7dc; }
html[data-tema="noche"] .pulpo { color: #efe7dc; }
html[data-tema="noche"] .acordeon details[open] summary::after { color: #efe7dc; }
html[data-tema="noche"] .pie { color: #efe7dc; }
html[data-tema="noche"] .chip[aria-pressed="true"] { color: #efe7dc; }
html[data-tema="noche"] .panel { color: #efe7dc; }
html[data-tema="noche"] .espera { color: #efe7dc; }
html[data-tema="noche"] .oscuro .campo input,
html[data-tema="noche"] .oscuro .campo select,
html[data-tema="noche"] .espera .campo input,
html[data-tema="noche"] .espera .campo select { color: #efe7dc; }
html[data-tema="noche"] .tab-seguir { color: #efe7dc; }
html[data-tema="noche"] .tab-ruta li span { color: #efe7dc; }
html[data-tema="noche"] .semana span.si { color: #efe7dc; }
html[data-tema="noche"] .clase-btn.actual { color: #efe7dc; }
html[data-tema="noche"] .herr button[aria-pressed="true"] { color: #efe7dc; }
html[data-tema="noche"] .rep-play { color: #efe7dc; }
html[data-tema="noche"] .pestana[aria-selected="true"] { color: #efe7dc; }
html[data-tema="noche"] .llevar { color: #efe7dc; }
html[data-tema="noche"] .cara-btns button:hover { color: #efe7dc; }
html[data-tema="noche"] .atras { color: #efe7dc; }
html[data-tema="noche"] .est-clase .tipo { color: #efe7dc; }
html[data-tema="noche"] .mini-btns button:hover { color: #efe7dc; }
html[data-tema="noche"] .aviso { color: #efe7dc; }
html[data-tema="noche"] .mov-aviso b { color: #efe7dc; }
html[data-tema="noche"] .heroe-ficha p b { color: #efe7dc; }
html[data-tema="noche"] .sos-dona .cerdo { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .cab-gato { color: #efe7dc; }
html[data-tema="noche"] .en-oscuro .cabecera:not(.solida) .cab-gato { color: #efe7dc; }
html[data-tema="noche"] .precarga { color: #efe7dc; }
html[data-tema="noche"] .pc-sil { color: #efe7dc; }
html[data-tema="noche"] .pc-num { color: #efe7dc; }
html[data-tema="noche"] .pc-saltar:hover { color: #efe7dc; }
html[data-tema="noche"] .migas-claro a:hover { color: #efe7dc; }
html[data-tema="noche"] .d16-pie b { color: #efe7dc; }
html[data-tema="noche"] .mt-quien { color: #efe7dc; }
html[data-tema="noche"] .mt-indice a:hover { color: #efe7dc; }
html[data-tema="noche"] .mt-indice a[aria-current] { color: #efe7dc; }
html[data-tema="noche"] .maestro-ir { color: #efe7dc; }
html[data-tema="noche"] .flota { color: #efe7dc; }
html[data-tema="noche"] .flota-x:hover { color: #efe7dc; }
html[data-tema="noche"] .sello-pct { color: #efe7dc; }
html[data-tema="noche"] .pildora.fmt-video,
html[data-tema="noche"] .curso-foto .pildora.fmt-video { color: #efe7dc; }
html[data-tema="noche"] .curso-foto .pildora.pildora-pronto { color: #efe7dc; }
html[data-tema="noche"] .sos-dona { color: #efe7dc; }
html[data-tema="noche"] .tf-mod { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .chip-demo:hover { color: #efe7dc; }
html[data-tema="noche"] .campus-resumen-bar { color: #efe7dc; }
html[data-tema="noche"] .campus-nav a { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .campus-nav a.activo { color: #efe7dc; }
html[data-tema="noche"] .campus-nav a.activo small { color: #efe7dc; }
html[data-tema="noche"] .cc-card { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .sant-card { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .sant-probar:hover { color: #efe7dc; }
html[data-tema="noche"] .apunte-caja { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .cert-card { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .huella-caja { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .lec-guardar-cita { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .tabla-wrap { background: rgba(255, 255, 255, .07); }
html[data-tema="noche"] .lec-ref-op.elegida { color: #efe7dc; }
html[data-tema="noche"] .lectura-lienzo.tema-noche { color: #efe7dc; }
html[data-tema="noche"] .lectura-lienzo.tema-noche .tabla-editorial td:first-child { color: #efe7dc; }
html[data-tema="noche"] .lectura-lienzo.tema-noche .margen-maestro p { color: #efe7dc; }
html[data-tema="noche"] .lectura-lienzo.tema-noche .lec-ref-rta { color: #efe7dc; }
html[data-tema="noche"] .pop-cita { color: #efe7dc; }
html[data-tema="noche"] .eval-ok { color: #efe7dc; }
html[data-tema="noche"] .btn-cita { color: #efe7dc; }
html[data-tema="noche"] .cal-tip { color: #efe7dc; }
@media (max-width: 980px) {
html[data-tema="noche"] .menu-abierto .cabecera { color: #efe7dc; }
html[data-tema="noche"] .nav a,
html[data-tema="noche"] .en-oscuro .cabecera:not(.solida) .nav a { color: #efe7dc; }
}
/* Imágenes y animales no se oscurecen; solo se baja un poco el brillo de las fotos para que no encandilen. */
html[data-tema="noche"] img { filter: brightness(.9) contrast(1.03); }
html[data-tema="noche"] ::selection { background: #8b3dff; color: #fff; }
html[data-tema="noche"] #principal input:not([type=checkbox]):not([type=radio]), html[data-tema="noche"] #principal textarea, html[data-tema="noche"] #principal select { background: var(--hoja); color: var(--tinta); border-color: var(--linea); }
/* La lectura trae su propio papel; en modo noche arranca oscura salvo que la persona elija «Papel». */
html[data-tema="noche"] #aula:not(.tema-papel) .lectura-lienzo { background: var(--hoja); color: var(--tinta); }
html[data-tema="noche"] input::placeholder, html[data-tema="noche"] textarea::placeholder { color: var(--gris); }
html[data-tema="noche"] option { background: var(--hoja); color: var(--tinta); }
html[data-tema="noche"] .cabecera.solida { background: color-mix(in srgb, var(--crema) 88%, transparent); }
