/* --- 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: 9999;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.accesibilidad-btn-flotante img {
    width: 32px;
    filter: invert(1);
}

/* --- MODAL --- */
.modal-acc {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-content-acc {
    background-color: #e8f1ff;
    margin: 50px auto;
    padding: 25px;
    width: 380px;
    border-radius: 30px;
    border: none;
}

.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;
}

/* --- GRID --- */
.grid-accesibilidad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- TARJETAS --- */
.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 transparent;
}

.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 INTERNOS --- */
.btn-group-plus-minus button {
    background-color: #3b82f6;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

.lang-group button {
    background-color: #e5e7eb;
    color: #6b7280;
    padding: 6px 15px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.lang-group button.active {
    background-color: #3b82f6;
    color: white;
}

/* --- MODO OSCURO --- */
body.dark-mode-body {
    background: #121212 !important;
}

body.dark-mode-body .login-container {
    background-color: #1e1e1e !important;
    color: white !important;
}

body.dark-mode-body input {
    background-color: #2d2d2d !important;
    color: white !important;
    border: 1px solid #444 !important;
}

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 .modal-content-acc { background-color: #1a1a1a !important; }
body.dark-mode-body .card-acc { background-color: #333 !important; border: 1px solid #444; }
body.dark-mode-body .card-acc p { color: white !important; }

/* --- ALTO CONTRASTE (PANTALLA COMPLETA) --- */
body.alto-contraste-body {
    background-color: black !important;
    background-image: none !important;
}

/* Ocultar elementos decorativos del fondo */
body.alto-contraste-body .background-decor, 
body.alto-contraste-body .circle {
    display: none !important;
}

/* Quitar bordes de maquetación invisibles */
body.alto-contraste-body div {
    border: none !important;
}

/* Contenedores con borde específico */
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 yellow !important;
}

/* Inputs y Placeholders */
body.alto-contraste-body input {
    background-color: black !important;
    color: yellow !important;
    border: 2px solid yellow !important;
}
body.alto-contraste-body input::placeholder {
    color: yellow !important;
    opacity: 0.7;
}

/* Textos */
body.alto-contraste-body h1, 
body.alto-contraste-body p, 
body.alto-contraste-body span, 
body.alto-contraste-body .footer-text,
body.alto-contraste-body a {
    color: yellow !important;
    background-color: transparent !important;
}

/* Botón principal */
body.alto-contraste-body button[type="submit"] {
    background-color: yellow !important;
    color: black !important;
    border: none !important;
    font-weight: bold;
}

/* Ajuste de Logo */
body.alto-contraste-body .logo {
    filter: invert(1) brightness(2);
}

/* --- DALTONISMO --- */
body.daltonismo-filtro {
    filter: saturate(2.5) contrast(1.1);
}