/* =========================================
   ESTILOS EXCLUSIVOS DE ACCESIBILIDAD
   (Botón, Modal y Modos Especiales)
   ========================================= */

/* --- BOTÓN FLOTANTE --- */
.accesibilidad-btn-flotante {
    position: fixed;
    top: 25px;
    right: 25px;
    background-color: #3b82f6;
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001; /* Siempre por encima */
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.accesibilidad-btn-flotante img {
    width: 32px;
    filter: invert(1);
}

/* --- MODAL DE ACCESIBILIDAD --- */
.modal-acc {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content-acc {
    background-color: #e8f1ff;
    margin: 50px auto;
    padding: 25px;
    width: 380px;
    border-radius: 30px;
    position: relative;
    font-family: 'Baloo 2', cursive;
}

.modal-header-acc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #1e3a8a;
}

.close-acc {
    font-size: 30px;
    cursor: pointer;
    color: #3b82f6;
    line-height: 1;
}

/* --- GRID Y TARJETAS --- */
.grid-accesibilidad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.card-acc {
    background: #ffffff;
    padding: 15px 10px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f6ff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.card-acc p {
    margin: 0;
    font-weight: 700;
    color: #1e3a8a;
    font-size: 14px;
}

.card-acc span {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 600;
}

/* --- BOTONES DE CONTROL INTERNOS --- */
.btn-group-plus-minus button, .lang-group button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.lang-group button {
    background-color: #e5e7eb;
    color: #6b7280;
}

.lang-group button.active {
    background-color: #3b82f6;
    color: white;
}

/* =========================================
   MODOS ACTIVADOS (FORZADO DE INTERFAZ)
   ========================================= */

/* --- 1. MODO OSCURO --- */
body.dark-mode-body { 
    background-color: #121212 !important; 
    background-image: none !important; 
}
body.dark-mode-body .register-container, 
body.dark-mode-body .login-container,
body.dark-mode-body .modal-content-acc { 
    background-color: #1e1e1e !important; 
    color: white !important; 
    border: 1px solid #333;
}
body.dark-mode-body h1, 
body.dark-mode-body p, 
body.dark-mode-body label,
body.dark-mode-body .footer-text { 
    color: white !important; 
}
body.dark-mode-body input { 
    background-color: #2d2d2d !important; 
    color: white !important; 
    border: 1px solid #444 !important;
}

/* --- 2. ALTO CONTRASTE (Corregido para fondo negro total) --- */
body.alto-contraste-body {
    background-color: black !important; /* Quita el gradiente azul/rosa */
    background-image: none !important; /* Elimina cualquier imagen de fondo */
}

/* Contenedores: Negro con Borde Amarillo */
body.alto-contraste-body .register-container,
body.alto-contraste-body .login-container,
body.alto-contraste-body .modal-content-acc,
body.alto-contraste-body .card-acc {
    background-color: black !important;
    border: 3px solid #ffff00 !important;
    box-shadow: none !important;
}

/* Textos y Enlaces: Amarillo */
body.alto-contraste-body h1,
body.alto-contraste-body p,
body.alto-contraste-body span,
body.alto-contraste-body label,
body.alto-contraste-body .footer-text,
body.alto-contraste-body .modal-header-acc,
body.alto-contraste-body a {
    color: #ffff00 !important;
    background-color: transparent !important;
}

/* Inputs: Negro con texto Amarillo */
body.alto-contraste-body input {
    background-color: black !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}
body.alto-contraste-body input::placeholder {
    color: #ffff00 !important;
    opacity: 0.8;
}

/* Botones: Fondo Amarillo con texto Negro */
body.alto-contraste-body button[type="submit"],
body.alto-contraste-body .btn-group-plus-minus button,
body.alto-contraste-body .lang-group button.active {
    background-color: #ffff00 !important;
    color: black !important;
    border: none !important;
    font-weight: bold !important;
}

/* Iconos */
body.alto-contraste-body .icon-circle {
    background-color: #ffff00 !important;
    color: black !important;
}

/* --- 3. DALTONISMO --- */
body.daltonismo-filtro {
    filter: contrast(125%) saturate(170%) !important;
}