/* ===================================================
   ASISTENTE DE ACCESIBILIDAD VISUAL VAL-CORP
=================================================== */

/* Botón Flotante (FAB) */
.accessibility-fab-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: var(--brand-wine, #7A173B);
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 1.5rem;
    z-index: 1050;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.accessibility-fab-btn:hover {
    background-color: var(--brand-pink, #E83E8C);
    transform: scale(1.1);
}

/* Panel Lateral (Drawer) */
.accessibility-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100vh;
    background-color: #f8f9fa;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.25);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.accessibility-drawer.open {
    right: 0;
}

/* Cambio de posición a la izquierda */
.accessibility-drawer.left-side {
    right: auto;
    left: -380px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.25);
    transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.accessibility-drawer.left-side.open {
    left: 0;
}

/* Header */
.accessibility-header {
    background-color: var(--brand-wine, #7A173B);
}

.btn-close-accessibility {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
}

/* Botones de Opción */
.access-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--brand-wine, #7A173B);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 85px;
}

.access-btn i {
    font-size: 1.4rem;
    color: var(--brand-wine, #7A173B);
}

.access-btn span {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: #2d3748;
    text-align: center;
}

.access-btn:hover,
.access-btn.active {
    background-color: #ffffff;
    border-color: var(--brand-pink, #E83E8C);
    box-shadow: 0 4px 12px rgba(232, 62, 140, 0.2);
}

.access-btn.active i,
.access-btn.active span {
    color: var(--brand-pink, #E83E8C);
}

.fs-8 {
    font-size: 0.7rem;
}

/* Barra Inferior */
.branding-bar {
    background-color: #0d1b2a;
    letter-spacing: 1px;
}

/* ===================================================
   REGLAS DE ACCESIBILIDAD DINÁMICAS APLICADAS AL SITE
=================================================== */

/* High Contrast Mode */
body.access-contrast {
    filter: contrast(140%) !important;
    background-color: #000000 !important;
}

/* Resaltar Links */
body.access-highlight-links a {
    background-color: #ffff00 !important;
    color: #000000 !important;
    text-decoration: underline !important;
    font-weight: bold !important;
}

/* Texto Grande */
body.access-text-lg {
    font-size: 118% !important;
}

/* Espaciado de Lectura */
body.access-spacing {
    letter-spacing: 2px !important;
    word-spacing: 4px !important;
    line-height: 2 !important;
}

/* Sin Animaciones */
body.access-no-anim *,
body.access-no-anim *::before,
body.access-no-anim *::after {
    animation: none !important;
    transition: none !important;
}

/* Fuente Legible */
body.access-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Puntero Grande */
body.access-big-cursor,
body.access-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath fill='%23E83E8C' stroke='%23ffffff' stroke-width='1.5' d='M4.5 3.5l14 11-6 1.5 4 7-2.5 1.5-4-7-4.5 4z'/%3E%3C/svg%3E"), auto !important;
}

/* Guía de Línea de Lectura */
.reading-guide-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--brand-pink, #E83E8C);
    box-shadow: 0 0 10px var(--brand-pink, #E83E8C);
    pointer-events: none;
    z-index: 9999;
    transform: translateY(-50%);
}