/* Modo oscuro de la solicitud de acceso a la UNAC (SIR/SolicitudAcceso.aspx; clase "tema-oscuro" en <html>, ver Scripts/ModoOscuro.js).
   Misma paleta que Soporte: fondo #0f1623, paneles #1a2233, tarjetas #151f31, campos #131c2c, bordes #2a3446. */
html.tema-oscuro { color-scheme: dark; background: #0f1623; }
html.tema-oscuro body { background: #0f1623; color: #e5e9f0; }

/* panel izquierdo (los textos amarillos se conservan) y panel del formulario */
html.tema-oscuro .sa-info { background-color: #1a2233; }
html.tema-oscuro .sa-pasos { background: rgba(255, 255, 255, .06); }
html.tema-oscuro .sa-form-panel { background: #0f1623; }
html.tema-oscuro .sa-card { background: #151f31; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
html.tema-oscuro .sa-volver { color: #6b9bff; }
html.tema-oscuro .sa-encabezado h1 { color: #e5e9f0; }
html.tema-oscuro .sa-encabezado p { color: #94a0b4; }
html.tema-oscuro .sa-encabezado img { filter: brightness(0) invert(1); }

/* pestañas, avisos y subtítulos */
html.tema-oscuro .sa-tabs { background: #131c2c; }
html.tema-oscuro .sa-tab { color: #94a0b4; }
html.tema-oscuro .sa-tab:hover { color: #e5e9f0; }
html.tema-oscuro .sa-tab.activo,
html.tema-oscuro .sa-tab[aria-selected="true"] { background: #1f2c45; color: #9bbaff; box-shadow: none; }
html.tema-oscuro .sa-aviso { background: rgba(251, 191, 36, .14); color: #fcd88a; }
html.tema-oscuro .sa-subtitulo { color: #e5e9f0; border-bottom-color: #26324a; }
html.tema-oscuro .sa-subtitulo small,
html.tema-oscuro .sa-subtitulo span { color: #94a0b4; }

/* campos */
html.tema-oscuro .sa-campo label { color: #c3cad6; }
html.tema-oscuro .sa-campo input,
html.tema-oscuro .sa-campo select,
html.tema-oscuro .sa-campo textarea { background: #131c2c; border-color: #2a3446; color: #e5e9f0; }
html.tema-oscuro .sa-campo input::placeholder,
html.tema-oscuro .sa-campo textarea::placeholder { color: #6b778c; }
html.tema-oscuro .sa-campo input:focus,
html.tema-oscuro .sa-campo select:focus,
html.tema-oscuro .sa-campo textarea:focus { border-color: #4f7cff; box-shadow: 0 0 0 3px rgba(79, 124, 255, .2); }
html.tema-oscuro .sa-campo select option { background: #131c2c; color: #e5e9f0; }
html.tema-oscuro .sa-acomp-form { background: #131c2c; border-color: #2a3446; }

/* tabla de acompañantes y términos */
html.tema-oscuro .sa-tabla-wrap { border-color: #26324a; }
html.tema-oscuro .sa-tabla th { background: #1b2740; color: #9bbaff; }
html.tema-oscuro .sa-tabla td { border-top-color: #26324a; color: #c3cad6; }
html.tema-oscuro .sa-quitar { background: rgba(220, 38, 38, .15); color: #fca5a5; }
html.tema-oscuro .sa-quitar:hover { background: #d93025; color: #fff; }
html.tema-oscuro .sa-terminos { background: #131c2c; color: #c3cad6; }
html.tema-oscuro .sa-terminos a { color: #6b9bff; }
html.tema-oscuro .sa-check { color: #c3cad6; }

/* botones */
html.tema-oscuro .sa-boton { background: linear-gradient(135deg, #4f7cff, #3f66d9); }
html.tema-oscuro .sa-boton-sec { background: #1f2c45; color: #9bbaff; }
html.tema-oscuro .sa-boton-sec:hover { background: #2b4aa8; color: #fff; }

/* 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; }

/* contraste (WCAG 1.4.3) */
html.tema-oscuro .sa-terminos h4 { color: #e5e9f0; }
html.tema-oscuro .sa-terminos-aviso { color: #ff9a62; }
