﻿/* =========================
   MODERN ACCESSIBILITY BAR (Floating Island)
   ========================= */
.accessibility-bar {
    position: fixed;
    right: 15px; /* Aproximadamente 0.5 cm del margen derecho */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    /* Efecto Glassmorphism Premium */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Bordes totalmente redondeados tipo cápsula */
    border-radius: 30px;
    /* Sombra profunda y suave */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 10px 0; /* Espaciado interno superior e inferior */
    transition: all 0.3s ease;
}

.ab-btn {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #444;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 4px 5px; /* Separación entre botones */
    border-radius: 50%; /* Botones circulares al hacer hover */
}

    /* Quitamos el borde inferior que separa los botones para un look más limpio */
    .ab-btn:not(:last-child) {
        border-bottom: none;
    }

    .ab-btn:hover {
        background-color: #8B2323; /* Rojo Talampaya */
        color: #fff;
        transform: scale(1.1);
    }

.ab-reset {
    color: #8B2323;
    margin-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: 0 0 30px 30px; /* Ajuste para el botón inferior */
}

/* --- ESTADOS DE ACCESIBILIDAD --- */

/* Alto Contraste */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

    body.high-contrast section,
    body.high-contrast div:not(.accessibility-bar) {
        background-color: #000 !important;
        color: #fff !important;
        border-color: #fff !important;
    }

/* Resaltar Enlaces */
body.highlight-links a {
    outline: 2px solid #D2691E !important;
    background-color: yellow !important;
    color: black !important;
    text-decoration: underline !important;
}

/* Mobile Tweak */
/* Mobile Tweak - Optimizado para evitar solapamiento */
@media (max-width: 768px) {
    .accessibility-bar {
        right: 8px; /* Más pegada al borde para ganar espacio */
        top: 40%; /* La subimos un poco para dejar espacio a los sociales abajo */
        border-radius: 20px;
        padding: 5px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .ab-btn {
        width: 36px; /* Reducimos de 42px a 36px */
        height: 36px; /* Reducimos de 42px a 36px */
        font-size: 0.9rem;
        margin: 2px 3px;
    }

    .ab-reset {
        margin-top: 4px;
    }
}

/* Importar OpenDyslexic */
@import url('https://fonts.cdnfonts.com/css/open-dyslexic');

/* Clase para activar la fuente */
body.dyslexic-font {
    font-family: 'OpenDyslexic', sans-serif !important;
}

    body.dyslexic-font * {
        font-family: 'OpenDyslexic', sans-serif !important;
    }

/* Estilo para el botón activo */
.ab-btn.active {
    background-color: #D2691E;
    color: white;
    box-shadow: 0 4px 10px rgba(210, 105, 30, 0.3);
}
