/* Estilo menú flotante */
#asistenteLectura {
    position: fixed;
    bottom: 15px;
    right: 65px;
    background: white;
    border: 2px solid black;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    gap: 5px;
    z-index: 9999;

    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: all 0.4s ease;
}

#asistenteLectura.activo {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: flex; /* si necesitas flex, déjalo aquí */
}

#asistenteLectura button {
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    background: #f5f5f5;
}
#asistenteLectura button:hover {
    background: #0d6efd;
    color: white;
}

/* Estilo de foco accesible */
.asistente-lectura [tabindex="0"]:focus, 
button:focus, 
a:focus, 
input:focus {
    outline: 3px solid #0078D7;
    /*background-color: #f0f8ff;*/
}

/* Resaltado cuando se lee */
.leyendo {
    background-color: yellow !important;
    outline: none !important;
}

/* MOBILE */
@media (max-width: 991px){
    #asistenteLectura {
        bottom: 0px;
        padding: 0px;
        transform: translateX(50%);
    }

    #asistenteLectura.activo {
        right: 50%;
        transform: translateX(50%);
    }

    #asistenteLectura button{
        font-size: 0px;
        padding-inline: 15px;
    }
}