/* Botón flotante */
#accesibilidadBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #621132;
    opacity: 0.89;
    color: white;
    border: #000;
    padding: 5px;
    border-radius: 25%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
}

#accesibilidadMenu img {
    max-width: 40px;
}
/* Menú lateral */
#accesibilidadMenu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 999;
    transition: right 0.3s ease;
}

#accesibilidadMenu.open {
    right: 0;
}

#accesibilidadMenu h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

#accesibilidadMenu ul {
    list-style: none;
    padding: 0;
}

#accesibilidadMenu li {
    margin-bottom: 10px;
}
#accesibilidadMenu li img{
height: fit-content;
background-color: #621132;
border-radius: 25%;
position: fixed;    
}

#accesibilidadMenu button {
    width: 100%;
    padding: 8px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#accesibilidadMenu button:hover {
    background-color: #ddd;
}

/* Escala de grises */
body.grayscale {
    filter: grayscale(100%);
}

body.dark-mode {
    background-color: #1f1f1f;
    color: #fff;
}

/* Afectar secciones y contenedores */
body.dark-mode section,
body.dark-mode div {
    background-color: #1f1f1f !important;
    color: #fff;
}
body.dark-mode li{
    background-color: #1f1f1f !important;
}
/* Títulos */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5 {
    color: #fff !important;
}

/* Enlaces */
body.dark-mode a {
    color: #fff !important;
    text-decoration: none;
}

body.dark-mode a:hover {
    color: #ccc;
}



/* Máscara de lectura */
#mascaraLectura {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 998;
    display: none;
}

[data-lectura-activa] {
    outline: 2px dashed #621132;
    background-color: rgba(255, 0, 0, 0.1);
}

body.grayscale #accesibilidadBtn {
    filter: none !important;
    z-index: 1001;
}
