﻿:root {
    --brandDark: #2F5D73;
    --accent: #C6B64A;
    --accentDark: #A39336;
}

/* --- Sidebar Base --- */
.a11y-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    background: rgba(235, 245, 240, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(36,75,92,.08);
    border-radius: 16px 0 0 16px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: -4px 8px 32px rgba(16,24,40,.08);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.a11y-header-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brandDark);
    cursor: pointer;
    transition: all 0.4s ease;
}

.a11y-tool {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--brandDark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    max-height: 50px;
    overflow: hidden;
}

    .a11y-tool:hover {
        background: rgba(47,93,115,.08);
        transform: scale(1.05);
    }

    .a11y-tool.active {
        background: var(--brandDark);
        color: #fff;
    }

    .a11y-tool.reset {
        color: #E03C31;
    }

.a11y-divider {
    height: 1px;
    background: rgba(36,75,92,.1);
    margin: 2px 4px;
    transition: all 0.4s ease;
}

/* --- Estado Colapsado --- */
.a11y-sidebar.collapsed {
    background: var(--brandDark);
    padding: 4px;
    border-radius: 12px 0 0 12px;
}

    .a11y-sidebar.collapsed .a11y-header-icon {
        color: #fff;
    }

    .a11y-sidebar.collapsed .a11y-tool,
    .a11y-sidebar.collapsed .a11y-divider {
        max-height: 0;
        opacity: 0;
        margin: 0;
        pointer-events: none;
    }

/* --- REGLAS DE ACCESIBILIDAD --- */
html.a11y-on-contrast {
    filter: invert(1) hue-rotate(180deg);
    background: #fff;
}

    html.a11y-on-contrast img, html.a11y-on-contrast video {
        filter: invert(1) hue-rotate(180deg);
    }

html.a11y-on-grayscale {
    filter: grayscale(100%);
}

body.a11y-on-links a {
    text-decoration: underline !important;
    text-decoration-color: #E03C31 !important;
    text-decoration-thickness: 3px !important;
    font-weight: 800 !important;
}

body.a11y-on-dyslexia * {
    font-family: Arial, sans-serif !important;
    letter-spacing: 0.05em !important;
    line-height: 1.6 !important;
}

/* Zoom Niveles */
html.zoom-1 {
    zoom: 1.05;
}

html.zoom-2 {
    zoom: 1.10;
}

html.zoom-3 {
    zoom: 1.15;
}

html.zoom--1 {
    zoom: 0.95;
}
