/* --- Widget de Accesibilidad y Menú --- */
.acc-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #005b9f;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.acc-btn:hover {
    transform: scale(1.08);
}

.acc-panel {
    position: fixed;
    bottom: 95px;
    right: 25px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    width: 260px;
    overflow: hidden;
}

.acc-oculto {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

/* Sistema de Pestañas */
.acc-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.acc-tab {
    flex: 1;
    padding: 12px 10px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.acc-tab:hover {
    background-color: #e9ecef;
}

.acc-tab.active {
    color: #005b9f;
    border-bottom: 3px solid #005b9f;
    background-color: white;
}

/* Contenido de las pestañas */
.acc-content {
    display: none;
    padding: 15px;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.acc-content.active {
    display: flex;
}

/* Botones de Accesibilidad */
.acc-content button {
    background-color: #f4f6f8;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-align: left;
    transition: background 0.2s;
}

.acc-content button:hover {
    background-color: #e2e6ea;
}

#acc-reset {
    margin-top: 10px;
    background-color: #ffeaea;
    color: #c00;
    border-color: #f5c6c6;
    text-align: center;
    font-weight: bold;
}

/* Enlaces del Menú Rápido */
.acc-nav-link {
    display: block;
    padding: 12px 10px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    transition: color 0.2s, padding-left 0.2s;
}

.acc-nav-link:last-child {
    border-bottom: none;
}

.acc-nav-link:hover {
    color: #005b9f;
    padding-left: 15px;
    background-color: #f8f9fa;
}

/* --- CLASES DINÁMICAS DE ACCESIBILIDAD --- */

/* Alto Contraste */
body.acc-alto-contraste, 
body.acc-alto-contraste * {
    background-color: #121212 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Resaltar Enlaces */
body.acc-resaltar-enlaces a {
    text-decoration: underline !important;
    text-decoration-color: #ffcc00 !important;
    text-decoration-thickness: 3px !important;
    background-color: rgba(255, 204, 0, 0.1) !important;
}

/* Fuente para Dislexia (Letra más separada y limpia) */
body.acc-fuente-dislexia * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.1em !important;
    word-spacing: 0.15em !important;
    line-height: 1.6 !important;
}

/* Cursor Grande */
body.acc-cursor-grande, 
body.acc-cursor-grande * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23FFF' stroke-width='2' d='M4 4l5 16 3-6 6-3z'/%3E%3C/svg%3E"), auto !important;
}

/* Ajustes para Celulares */
@media (max-width: 600px) {
    .acc-btn { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .acc-panel { bottom: 85px; right: 20px; width: calc(100vw - 40px); max-width: 300px;}
}