/* alances-card */

/* Botón Flotante */
.municipal-accessibility-trigger {
    position: fixed !important;
    bottom: 100px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 999999 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

/* Hover Botón */
.municipal-accessibility-trigger:hover {
    transform: scale(1.1) !important;
    background-color: #172554 !important;
}

/* Panel Flotante */
.municipal-accessibility-sidebar {
    position: fixed !important;
    bottom: 165px !important;
    right: 30px !important;
    width: 320px !important;
    min-height: 30vh !important;
    max-height: calc(100vh - 190px) !important;
    height: auto !important;
    background-color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 8px solid var(--cyan) !important;
    z-index: 1000000 !important;
    display: flex !important;
    flex-direction: column !important;
    font-family: 'Montserrat', sans-serif !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(0.95) !important;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease !important;
}

/* Estado Activo */
.municipal-accessibility-sidebar.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* Cabecera */
.sidebar-header-acc {
    padding: 16px 20px 16px 16px !important;
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* Título Cabecera */
.sidebar-header-acc h3 {
    margin: 0 !important;
    font-size: 1rem !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Botón Cerrar */
.close-sidebar-acc {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

/* Contenido Principal */
.sidebar-content-acc {
    padding: 20px 20px 20px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    flex-grow: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

/* Sección Menú */
.menu-section-acc {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.menu-section-acc.row-layout-acc {
    flex-direction: row !important;
    gap: 0 !important;
}

/* Título Sección */
.section-title-acc {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* Slider Track */
.brightness-track-wrapper-acc input[type="range"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 6px !important;
    background: #e2e8f0 !important;
    border-radius: 4px !important;
    outline: none !important;
}

/* Slider Pulgar */
.brightness-track-wrapper-acc input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #1e3a8a !important;
    cursor: pointer !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.municipal-accessibility-trigger:focus-visible,
.close-sidebar-acc:focus-visible,
.reset-brightness-btn:focus-visible,
.text-size-controls-acc button:focus-visible,
.form-check-input:focus-visible,
.brightness-track-wrapper-acc input[type="range"]:focus-visible {
    outline: 3px solid var(--orange) !important;
    outline-offset: 3px !important;
}

/* Botón Reiniciar */
.reset-brightness-btn {
    display: flex !important;
    margin-top: auto !important;
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

.reset-brightness-btn:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Vista Móvil */
@media (max-width: 768px) {
    .municipal-accessibility-sidebar {
        width: 290px !important;
        max-width: calc(100vw - 40px) !important;
        max-height: calc(100vh - 175px) !important;
        right: 20px !important;
        bottom: 155px !important;
    }

    .municipal-accessibility-trigger {
        bottom: 90px !important;
        right: 20px !important;
    }
}

body.cursor-grande,
body.cursor-grande *:not(a):not(button):not([role="button"]):not(input[type="submit"]):not(input[type="button"]):not(.form-check-input) {
    cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M6 3l20 18-9 1 5 8-4 2-5-8-6 5z' fill='%23000000' stroke='%23ffffff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 9 4, auto !important;
}

body.cursor-grande a,
body.cursor-grande button,
body.cursor-grande [role="button"],
body.cursor-grande input[type="submit"],
body.cursor-grande input[type="button"],
body.cursor-grande .form-check-input,
body.cursor-grande a *,
body.cursor-grande button * {
    cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%3E%3Cpath%20d='M21,4a3,3,0,0,1,6,0v14h2a3,3,0,0,1,3,3v1h2a3,3,0,0,1,3,3v1h2a3,3,0,0,1,3,3v6a9,9,0,0,1,-9,9h-10a10,10,0,0,1,-7,-3l-6,-8a3,3,0,0,1,4,-4l7,7v-32z'%20fill='%23000000'%20stroke='%23ffffff'%20stroke-width='2'%20stroke-linejoin='round'/%3E%3C/svg%3E") 24 1, pointer !important;
}

.click-ripple-acc {
    position: fixed;
    border-radius: 50%;
    border: 3px solid #1e3a8a;
    background-color: rgba(30, 58, 138, 0.2);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-animation-acc 0.5s ease-out forwards;
    z-index: 9999999;
}

@keyframes ripple-animation-acc {
    0% {
        width: 10px;
        height: 10px;
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        width: 80px;
        height: 80px;
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

html.escala-grises {
    --site-grayscale: 100%;
}

html.alto-contraste,
html.alto-contraste body {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
}

html.alto-contraste *:not(i):not(.municipal-accessibility-trigger):not(.municipal-accessibility-trigger *):not(.municipal-accessibility-sidebar):not(.municipal-accessibility-sidebar *):not(.click-ripple-acc) {
    background-color: #000000 !important;
    background-image: none !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.alto-contraste a,
html.alto-contraste a *:not(i),
html.alto-contraste button:not(.municipal-accessibility-trigger):not(.close-sidebar-acc):not(.btn-outline-secondary),
html.alto-contraste input[type="submit"],
html.alto-contraste input[type="button"] {
    color: #00ffff !important;
    border-color: #00ffff !important;
}

html.alto-contraste .municipal-accessibility-sidebar,
html.alto-contraste .municipal-accessibility-sidebar * {}

html.fuente-legible * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.1em !important;
}

html.fuente-legible i[class^="fa-"],
html.fuente-legible i[class*=" fa-"] {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

html.resaltar-enlaces a:not(.municipal-accessibility-trigger):not(.close-sidebar-acc),
html.resaltar-enlaces button:not(.municipal-accessibility-trigger):not(.close-sidebar-acc):not(.btn-outline-secondary),
html.resaltar-enlaces .btn:not(.municipal-accessibility-trigger):not(.close-sidebar-acc):not(.btn-outline-secondary) {
    background-color: #FFFF00 !important;
    color: #000000 !important;
    border: 2px dashed #1e3a8a !important;
    text-decoration: underline !important;
    font-weight: 800 !important;
}

html.resaltar-enlaces a *:not(i),
html.resaltar-enlaces button *:not(i),
html.resaltar-enlaces .btn *:not(i) {
    color: #000000 !important;
}
