/* Modo oscuro del carnet digital público (CarnetDigital/CarnetDigital.aspx; clase "tema-oscuro" en <html>, ver Scripts/ModoOscuro.js).
   Misma paleta que Soporte y la solicitud de acceso. El carnet en sí (.CarnetDigital .front/.back) conserva su diseño: es el documento. */
html.tema-oscuro { color-scheme: dark; background: #0f1623; }
html.tema-oscuro body { background: #0f1623; color: #e5e9f0; }
html.tema-oscuro .cd-info { background-color: #1a2233; }
html.tema-oscuro .cd-main { background: #0f1623; }
html.tema-oscuro .cd-card { background: #151f31; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
html.tema-oscuro .cd-encabezado h1 { color: #e5e9f0; }
html.tema-oscuro .cd-encabezado p { color: #94a0b4; }
html.tema-oscuro .cd-btn-link { color: #6b9bff; }

/* campos */
html.tema-oscuro .cd-campo label { color: #c3cad6; }
html.tema-oscuro .cd-campo input,
html.tema-oscuro .cd-campo select,
html.tema-oscuro .cd-programa select { background: #131c2c; border-color: #2a3446; color: #e5e9f0; }
html.tema-oscuro .cd-campo input:disabled { background: #0f1623; color: #94a0b4; }
html.tema-oscuro .cd-campo input::placeholder { color: #6b778c; }
html.tema-oscuro .cd-campo input:focus,
html.tema-oscuro .cd-campo select:focus,
html.tema-oscuro .cd-programa select:focus { border-color: #4f7cff; box-shadow: 0 0 0 3px rgba(79, 124, 255, .2); }
html.tema-oscuro .cd-programa label { color: #9bbaff; }

/* botones, pestañas y avisos */
html.tema-oscuro .cd-boton { background: linear-gradient(135deg, #4f7cff, #3f66d9); }
html.tema-oscuro .cd-boton-sec { background: #1f2c45; color: #9bbaff; }
html.tema-oscuro .cd-boton-sec:hover { background: #2b4aa8; color: #fff; }
html.tema-oscuro .cd-tabs { background: #131c2c; }
html.tema-oscuro .cd-tab { color: #94a0b4; }
html.tema-oscuro .cd-tab.activo { background: #1f2c45; color: #9bbaff; box-shadow: none; }
html.tema-oscuro .cd-pista { color: #94a0b4; }
html.tema-oscuro .cd-aviso { background: rgba(251, 191, 36, .14); color: #fcd88a; }
html.tema-oscuro .cd-terminos { background: #131c2c; color: #c3cad6; }
html.tema-oscuro .cd-progreso { background: #26324a; }

/* alertas SweetAlert2 */
html.tema-oscuro .swal2-popup { background: #151f31; color: #e5e9f0; }
html.tema-oscuro .swal2-title, html.tema-oscuro .swal2-html-container { color: #e5e9f0; }

/* 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; }
