/* Botón flotante de accesibilidad */
#btn-accesibilidad {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(180, 153, 153);
    border: 2px solid #0056b3;
    border-radius: 50%;
    cursor: grab;
    z-index: 9999;
    padding: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

#btn-accesibilidad img {
    width: 40px;
    height: 40px;
}

/* Menú de accesibilidad */
#panel-accesibilidad {
    display: none;
    position: fixed;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(95, 78, 78);
    padding: 15px;
    border: 2px solid #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 9998;
    transition: all 0.3s ease-in-out;
}

#panel-accesibilidad h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #0056b3;
}

#panel-accesibilidad ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#panel-accesibilidad ul li {
    margin-bottom: 8px;
}

#panel-accesibilidad ul li button {
    width: 100%;
    background: #0056b3;
    color: white;
    border: none;
    padding: 8px;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease-in-out;
}

#panel-accesibilidad ul li button:hover {
    background: #003d80;
}

/* Modos de accesibilidad */
.alto-contraste {
    background-color: black !important;
    color: yellow !important;
}

.escala-grises {
    filter: grayscale(100%);
}

.blanco-negro {
    filter: grayscale(100%) contrast(1) !important; /* Evita que todo se vuelva invisible */
}

.subrayar-enlaces a {
    text-decoration: underline !important;
}

.fondo-claro {
    background: #f2f2f2 !important;
    color: black !important;
}

.fuentes-legibles {
    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
}

/* Resaltar elementos al leer */
.leyendo {
    background-color: yellow !important;
    color: black !important;
    border-radius: 5px;
    padding: 2px;
    transition: background 0.3s ease-in-out;
}
