/* Contenedor principal de accesibilidad */
#usability-tools-root {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none; /* No bloquea clics fuera */
    font-family: 'Montserrat-Light';
}

.cont-usabilidad {
    position: absolute;
    bottom: 20px;
    left: 20px;
    pointer-events: auto; /* Habilitar interacción */
    isolation: isolate;
    z-index: 10001;
}

/* Icono del contenedor */
.cont-usabilidad .icon-ux {
    cursor: pointer;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20%;
    left: 20px;
    z-index: 10002;
}

/* Panel de accesibilidad */
.usability-panel {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    width: max-content;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    bottom: 60px;
    left: 72px;
    z-index: 10003;
}

.usability-panel.visible {
    display: block;
}

/* Lista de botones */
.usability-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usability-panel ul li {
    margin: 5px 0;
}

.usability-panel ul li button {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat-Light';
}

.usability-panel ul li button:hover {
    background: #0056b3;
}

/* Opciones de accesibilidad */
body.grayscale {
    filter: grayscale(100%);
}

body.high-contrast {
    filter: invert(100%);
}

body.negative-contrast {
    filter: contrast(200%);
}

body.light-background {
    background-color: #f5f5f5;
    color: #333;
}

a.underline {
    text-decoration: underline;
}

body.readable-font {
    font-family: Arial, sans-serif !important;
}

html body.grayscale #usability-tools-root,
html body.high-contrast #usability-tools-root,
html body.negative-contrast #usability-tools-root {
    filter: none !important;
}


/* Adaptaciones para pantallas móviles */
@media (max-width: 768px) {
    /* Panel de accesibilidad */
    .usability-panel {
        left: -5px;
    }
}