/* ==========================================================================
   ESTILOS DEL ASISTENTE / MENÚ DE ACCESIBILIDAD VISUAL (VALCORP)
   ========================================================================== */

:root {
    --querendaro-guinda: #691c32;
    --querendaro-guinda-dark: #4d1222;
    --querendaro-pink: #e91e63;
}

/* Color corporativo principal para encabezado y pie */
.bg-querendaro {
    background-color: var(--querendaro-guinda) !important;
}

/* Botón flotante en la esquina inferior derecha */
.btn-acceso-flotante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--querendaro-guinda);
    color: #ffffff;
    border: 2px solid var(--querendaro-pink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1050;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.btn-acceso-flotante:hover {
    background-color: var(--querendaro-pink);
    transform: scale(1.1);
}

/* Panel flotante contenedor del menú */
.panel-accesibilidad {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 310px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1050;
    overflow: hidden;
    font-family: inherit;
}

/* Estilo del botón cerrar en el header */
.btn-close-custom {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Botones individuales de cada opción */
.btn-acc-item {
    width: 100%;
    height: 75px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333333;
}

.btn-acc-item:hover {
    background-color: #fff0f5;
    border-color: var(--querendaro-pink);
    color: var(--querendaro-guinda);
}

/* Iconos de las opciones */
.acc-icon {
    font-size: 1.35rem;
    color: var(--querendaro-guinda);
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.btn-acc-item:hover .acc-icon {
    color: var(--querendaro-pink);
}

.btn-acc-item span {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.1;
}

/* Botón Reiniciar */
.btn-acc-reset {
    background: transparent;
    border: none;
    color: #555555;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.btn-acc-reset:hover {
    background-color: #f0f0f0;
    color: var(--querendaro-pink);
}

.text-pink {
    color: var(--querendaro-pink) !important;
}

/* Tipografía pequeña para el footer */
.fs-8 {
    font-size: 0.75rem !important;
}

/* ==========================================================================
   REGLAS DINÁMICAS DE ACCESIBILIDAD SOBRE EL DOCUMENTO
   ========================================================================== */

/* 1. Alto Contraste */
body.acc-alto-contraste {
    background-color: #000000 !important;
    color: #ffff00 !important;
}
body.acc-alto-contraste a, 
body.acc-alto-contraste p, 
body.acc-alto-contraste h1, 
body.acc-alto-contraste h2, 
body.acc-alto-contraste h3, 
body.acc-alto-contraste h4, 
body.acc-alto-contraste h5, 
body.acc-alto-contraste h6, 
body.acc-alto-contraste span, 
body.acc-alto-contraste div {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

/* 2. Resaltar Hipervínculos */
body.acc-resaltar-links a {
    text-decoration: underline !important;
    background-color: #ffff00 !important;
    color: #000000 !important;
    font-weight: bold !important;
}

/* 3. Escala de Texto */
body.acc-texto-md {
    font-size: 115% !important;
}
body.acc-texto-lg {
    font-size: 130% !important;
}

/* 4. Espaciado */
body.acc-mayor-espaciado * {
    letter-spacing: 2px !important;
    word-spacing: 4px !important;
    line-height: 2 !important;
}

/* 5. Desactivar Animaciones */
body.acc-sin-animaciones * {
    animation: none !important;
    transition: none !important;
}

/* 6. Fuente Legible */
body.acc-fuente-legible * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* 7. Puntero Grande */
body.acc-puntero-grande * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23e91e63'%3E%3Cpath d='M7 2l12 11.2-5.8.5 3.3 7.3-2.2 1-3.2-7.4L7 19.5V2z'/%3E%3C/svg%3E"), auto !important;
}

/* 8. Línea de Lectura */
.acc-linea-guia {
    position: fixed;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(233, 30, 99, 0.4);
    border-top: 2px solid #e91e63;
    border-bottom: 2px solid #e91e63;
    pointer-events: none;
    z-index: 99999;
}

/* 9. Posición Izquierda para el Panel */
.panel-accesibilidad.posicion-izquierda {
    right: auto !important;
    left: 25px !important;
}
.btn-acceso-flotante.posicion-izquierda {
    right: auto !important;
    left: 25px !important;
}

/* ==========================================================================
   LÍNEA DE LECTURA GUÍA ACCESIBLE
   ========================================================================== */

.acc-linea-guia {
    position: fixed !important;
    left: 0 !important;
    top: 0;
    width: 100vw !important;
    height: 24px !important;
    background-color: rgba(233, 30, 99, 0.25) !important; /* Tono rosa con transparencia */
    border-top: 2px solid var(--querendaro-pink, #e91e63) !important;
    border-bottom: 2px solid var(--querendaro-pink, #e91e63) !important;
    pointer-events: none !important; /* Permite hacer clic a través de ella */
    z-index: 999999 !important; /* Siempre en la capa superior */
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.3) !important;
    transition: top 0.05s linear; /* Movimiento fluido */
}