/* Botón Flotante de Accesibilidad */
.accessibility-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #000000;
    border: 2px solid var(--text-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: transform 0.3s ease;
}

.accessibility-btn:hover {
    transform: scale(1.1);
}

.accessibility-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--text-yellow);
}

/* Menú de Opciones */
.accessibility-menu {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: #ffffff;
    border: 2px solid #000000;
    padding: 10px;
    border-radius: 8px;
    display: none;
    /* Oculto por defecto */
    flex-direction: column;
    gap: 8px;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 220px;
}

.accessibility-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.access-option {
    background: #f4f4f4;
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
    text-align: left;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    transition: background 0.2s;
}

.access-option:hover {
    background: var(--text-yellow);
    border-color: #000;
}

.access-option.active {
    background: #000;
    color: var(--text-yellow);
    border-color: var(--text-yellow);
}

/* Filtros Globales */
html.acc-grayscale {
    filter: grayscale(100%);
}

html.acc-contrast {
    filter: contrast(150%) brightness(110%);
}

html.acc-fontsize {
    font-size: 125%;
}

@media (max-width: 768px) {
    .accessibility-btn {
        width: 46px;
        height: 46px;
        bottom: 16px;
        left: 16px;
    }

    .accessibility-btn svg {
        width: 24px;
        height: 24px;
    }

    .accessibility-menu {
        left: 16px;
        bottom: 70px;
        width: min(220px, calc(100vw - 32px));
    }
}

@media (max-width: 480px) {
    .accessibility-btn {
        width: 42px;
        height: 42px;
        bottom: 12px;
        left: 12px;
    }

    .accessibility-btn svg {
        width: 22px;
        height: 22px;
    }

    .accessibility-menu {
        left: 12px;
        bottom: 60px;
        width: min(200px, calc(100vw - 24px));
        padding: 8px;
    }

    .access-option {
        font-size: 13px;
        padding: 9px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
