/* Modo oscuro del catálogo de cursos (clase "tema-oscuro" en <html>; ver Scripts/ModoOscuro.js).
   cursos.css usa variables: basta con redefinirlas. Sigue por defecto en claro; el oscuro es opcional con el botón. */
html.tema-oscuro {
    --bg: #0f1623; --surface: #151f31; --surface-2: #1b2740; --fg: #e5e9f0; --titulo: #e5e9f0; --muted: #94a0b4; --line: #26324a;
    --brand: #1d3f60; --brand-ink: #ffffff;
    --ok: #4ade80; --ok-bg: rgba(74, 222, 128, .15); --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --hero: linear-gradient(120deg, #131c2c, #1a2640);
    color-scheme: dark;
}
/* --brand es el fondo de la barra y de los botones; donde se usa como color de letra se aclara */
html.tema-oscuro .eyebrow,
html.tema-oscuro .cat-head button,
html.tema-oscuro .ins-head small,
html.tema-oscuro .agregar button,
html.tema-oscuro .estado.info { color: #6b9bff; }
html.tema-oscuro .chip[aria-pressed="true"] { background: #2b4aa8; border-color: #2b4aa8; }
html.tema-oscuro .alerta { background: rgba(220, 38, 38, .15); color: #fca5a5; }
html.tema-oscuro .link { color: #fca5a5; }
html.tema-oscuro input, html.tema-oscuro select, html.tema-oscuro textarea { color-scheme: dark; }
html.tema-oscuro ::placeholder { color: #6b778c; }

/* interruptor claro/oscuro (abajo a la derecha) */
.tema-toggle-login { position: fixed; right: 8px; bottom: 20px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
    background: #4f5bff; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.3); z-index: 30; transition: transform .2s; }
.tema-toggle-login:hover { transform: scale(1.08); }
.tema-toggle-login .fa { font-size: 16px; }
