﻿body {
    font-family: 'Montserrat', sans-serif;
}

body .table-responsive.table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
}

body .table-responsive.table-responsive::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
}

.table-scroll-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-top: 1px solid #f1e6e9;
    border-top: 1px solid color-mix(in srgb, var(--table-scroll-color, #89143a) 18%, #ffffff);
    background-color: #ffffff;
    color: var(--table-scroll-color, #89143a);
}

.table-scroll-control[hidden] {
    display: none !important;
}

.table-scroll-control i {
    flex: 0 0 auto;
    font-size: 1.5rem;
    line-height: 1;
}

.table-scroll-range {
    width: 100%;
    height: 20px;
    margin: 0;
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    touch-action: pan-x;
}

.table-scroll-range::-webkit-slider-runnable-track {
    height: 10px;
    border: 1px solid #d8aab9;
    border: 1px solid color-mix(in srgb, var(--table-scroll-color, #89143a) 36%, #ffffff);
    border-radius: 10px;
    background-color: #f1e6e9;
    background-color: color-mix(in srgb, var(--table-scroll-color, #89143a) 14%, #ffffff);
}

.table-scroll-range::-webkit-slider-thumb {
    width: var(--table-scroll-thumb-size, 30px);
    height: 18px;
    margin-top: -5px;
    appearance: none;
    border: 2px solid #ffffff;
    border-radius: 10px;
    background-color: var(--table-scroll-color, #89143a);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.table-scroll-range::-moz-range-track {
    height: 10px;
    border: 1px solid #d8aab9;
    border: 1px solid color-mix(in srgb, var(--table-scroll-color, #89143a) 36%, #ffffff);
    border-radius: 10px;
    background-color: #f1e6e9;
    background-color: color-mix(in srgb, var(--table-scroll-color, #89143a) 14%, #ffffff);
}

.table-scroll-range::-moz-range-thumb {
    width: var(--table-scroll-thumb-size, 26px);
    height: 14px;
    border: 2px solid #ffffff;
    border-radius: 10px;
    background-color: var(--table-scroll-color, #89143a);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.table-scroll-range:focus-visible {
    outline: 2px solid var(--table-scroll-color, #89143a);
    outline-offset: 3px;
}

:root {    
    --header-bg: #f2f2f2;
    --nav-bg: #f2f2f2;
    --brand: #19325b;
    --text-color-dark: #005f55;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.site-background {
    background: #ffffff;
    /*min-height: 100vh;*/
    background-attachment: fixed;
    background-size: cover;
}

.site-header {
    width: 100%;
    top: 0;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.top-brand-bar {
    background: #003F75;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.top-brand-inner {
    max-width: 96%;
    margin: 0 auto;
    height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
}

/*A- A+*/
.brand-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
}


.accessibility-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accessibility-btn {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border: none;
    border-radius: 6px;
    background-color: #003F75 !important;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

    .accessibility-btn:hover {
        background-color: #00284d !important;
        transform: translateY(-1px);
    }

    .accessibility-btn:active {
        transform: scale(.96);
    }

    .accessibility-btn i {
        font-size: 1rem;
    }

@media (max-width: 384px) {
    .top-app-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 10px;
        gap: 8px;
    }

    .app-logo-left {
        display: flex;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo-urna {
        max-height: 44px;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .brand-right {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .accessibility-toolbar {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .site-header {
        overflow-x: hidden;
    }
}

.brand-link {
    display: flex;
    align-items: center;
}


.logo-consejo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}


.top-app-bar {
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.top-app-inner {
    max-width: 95.6%;
    margin: 0 auto;
    min-height: 58px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo-urna {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

.app-inline-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.app-title-inline {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 800;
    color: #003F75;
    letter-spacing: .5px;
    line-height: 0.7;
    margin-bottom: 2px;
}

.app-description-inline {
    font-size: clamp(.79rem, .87vw, .92rem);
    font-weight: 400;
    color: #334155;
    line-height: 1; 
    margin-top: 0; 
}

@media (max-width: 720px) {
    .app-description-inline {
        display: none;
    }

    .app-inline-text {
        position: static;
        transform: none;
        flex: 1;
        pointer-events: auto;
    }
}

.header-navbar {
    background-color: var(--header-bg);
    padding: 10px 12px;
    box-shadow: 0 -1px 4px rgba(0,0,0,0.03), 0 2px 6px rgba(0,0,0,0.05);
    border-bottom: 5px solid #359946;
}

    .header-navbar .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        margin: 0 auto;
    }

.nav-block {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-center {
    display: flex;
    flex-direction: row !important;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
    margin: 0;
    background-color: var(--nav-bg);
    border-radius: 50px;
    min-width: 0;
}

    .nav-center .nav-item {
        flex: 0 1 auto;
        min-width: 0;
    }

    .nav-center .nav-link {
        color: var(--brand);
        font-size: 0.95rem;
        font-weight: 500;
        padding: 8px 18px;
        border-radius: 30px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        transition: all .18s ease;
    }


        .nav-center .nav-link:hover {
            background-color: rgba(25, 50, 91, 0.10);
            color: #19325b !important;
            transform: translateY(-1px);
        }


        .nav-center .nav-link.active {
            background-color: rgba(25, 50, 91, 0.18) !important;
            color: #19325b !important;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

            .nav-center .nav-link.active:hover {
                background-color: rgba(25, 50, 91, 0.22) !important;
                color: #19325b !important;

            }

.icon-nav {
    width: 22px;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}


.user-wrap {
    flex: 0 0 auto;
    margin-left: 12px;
    min-width: 0;
    max-width: 100%;
}

.btn-user {
    background-color: var(--brand);
    color: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #fff;
    font-size: .9rem;
    font-weight: 500;
    height: 35px;
    min-width: 0;
    max-width: 100%;
}

#userMenuBtn {
    overflow: hidden;
}

    #userMenuBtn > span.d-flex {
        min-width: 0;
    }

    #userMenuBtn #userNameLayout,
    #userMenuBtn .text-truncate.ms-1 {
        min-width: 0;
    }

    .btn-user:hover,
    .btn-user:focus,
    .btn-user:active {
        background-color: var(--brand);
        color: #fff;
    }

.icon-user {
    width: 20px;
    height: auto;
    object-fit: contain;
}

#userName {
    font-size: .8rem;
    font-weight: 500;
}
.dropdown-menu {
    border-radius: 12px;
    min-width: 220px;
}

.navbar-brand,
.nav-center,
.user-wrap {
    min-width: 0;
}

.user-dropdown {
    min-width: 420px;
    max-width: 520px;
    width: max-content;
    white-space: normal;
}

    .user-dropdown .dropdown-item i {
        font-size: 1.1rem;
        color: #19646E;
        min-width: 20px;
        display: flex !important;
        align-items: center;
        gap: 10px;
    }

    .user-dropdown .dropdown-item {
        font-size: 0.95rem;
        padding: 10px 14px;
        border-radius: 8px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        white-space: normal;
    }

        .user-dropdown .dropdown-item span {
            flex: 1;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: break-word;
            line-height: 1.35;
        }

    .user-dropdown .dropdown-item:hover {
        background-color: rgba(25, 100, 110, 0.08);
        color: #0f4f55;
    }

    .user-dropdown .dropdown-item.text-danger i {
        color: #dc3545;
    }

.navbar-toggler,
.navbar-collapse.collapse {
    display: flex !important;
}

.navbar-toggler {
    display: none !important;
}


@media (max-width: 1200px) {
    .top-brand-inner {
        gap: 12px;
    }

    .site-name {
        font-size: 1.7rem;
    }

    .site-subtitle {
        font-size: .86rem;
    }

    .logo-consejo,
    .logo-urna-top {
        max-height: 58px;
    }

    .nav-center .nav-link {
        font-size: .95rem;
        padding: 8px 10px;
    }

    .user-wrap .dropdown-menu {
        right: 50%;
        transform: translateX(50%);
        left: auto;
    }
}

@media (max-width: 800px) {

    .header-navbar .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .nav-block {
        order: 2;
        width: 100%;
        margin-top: 8px;
    }

    .user-wrap {
        order: 1;
        margin-top: 0;
        margin-left: auto;
    }
}

.user-wrap .dropdown-menu {
    right: 0;
    left: auto;
}

@media (max-width: 576px) {
    .site-name {
        font-size: 1.4rem;
    }

    .site-subtitle {
        font-size: .8rem;
    }

    .nav-center {
        gap: 6px;
        padding: 8px;
    }

        .nav-center .nav-link {
            font-size: .88rem;
            padding: 8px 10px;
        }

    .btn-user .ms-2 {
        display: none;
    }
}

@media (max-width: 441px) {
    .top-brand-inner {
        padding: 0 10px;
        gap: 8px;
    }

    .brand-right {
        gap: 8px;
    }

    .logo-consejo {
        max-height: 44px;
        max-width: 34vw;
    }

    .user-wrap {
        max-width: 52vw;
        margin-left: 6px;
    }

    .btn-user {
        gap: 5px;
        padding: 0.2rem 0.55rem !important;
    }

    #userMenuBtn > span.d-flex {
        max-width: 100% !important;
    }

    #userNameLayout {
        font-size: 0.68rem;
    }

    .btn-user .text-truncate.ms-1 {
        font-size: 0.58rem;
    }

    .user-dropdown {
        min-width: 0;
        max-width: calc(100vw - 16px);
        width: calc(100vw - 16px);
    }

    .user-wrap .dropdown-menu {
        left: 0;
        right: auto;
        transform: none;
    }
}

@media (max-width: 360px) {
    .user-wrap {
        max-width: 48vw;
        margin-left: 4px;
    }

    .logo-consejo {
        max-width: 30vw;
    }

    #userMenuBtn > span.d-flex {
        max-width: 100% !important;
    }
}

.visor-pdf-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.visor-pdf-title {
    min-width: 0;
    overflow: hidden;
}

.visor-pdf-title .modal-title {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visor-pdf-actions {
    justify-content: flex-end;
    min-width: 0;
}

.visor-pdf-modal {
    min-width: 400px;
}

@media (max-width: 770px) {
    .visor-pdf-dialog {
        max-width: calc(100vw - 24px);
        margin: 12px auto;
    }

    .visor-pdf-modal {
        min-width: 0;
        height: calc(100vh - 24px) !important;
        min-height: 0 !important;
    }

    .visor-pdf-header {
        gap: 8px;
        padding: 0.75rem 1rem;
    }

    .visor-pdf-actions {
        gap: 8px !important;
    }

    .visor-pdf-actions.d-flex.align-items-center.gap-3 {
        flex-direction: row !important;
        align-items: center !important;
    }

    .visor-pdf-actions.d-flex.align-items-center.gap-3 .btn {
        width: auto !important;
    }

    .visor-pdf-actions .btn {
        padding: 4px 8px;
    }

    .visor-pdf-title .modal-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 441px) {
    .visor-pdf-dialog {
        max-width: calc(100vw - 16px);
        margin: 8px auto;
    }

    .visor-pdf-modal {
        height: calc(100vh - 16px) !important;
    }

    .visor-pdf-actions {
        gap: 6px !important;
    }

    .visor-pdf-actions .btn {
        font-size: 0.78rem;
        padding: 4px 6px !important;
    }

    .visor-pdf-title .modal-title {
        font-size: 0.75rem;
    }
}

.nav-dropdown-fixed {
    position: relative;
}

.dropdown-menu-servicios {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 340px;
    max-width: 420px;
    border-radius: 14px;
    border: 1px solid #d9d9d9;
    background: #fff;
    z-index: 2000;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    margin-top: 0 !important;
}

.dropdown-menu-right-edge {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    min-width: 340px;
    max-width: 420px;
    border-radius: 14px;
    border: 1px solid #d9d9d9;
    background: #fff;
    z-index: 2000;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    margin-top: 0 !important;
}

.nav-dropdown-fixed .dropdown-menu.show {
    display: block;
}

.dropdown-item {
    color: #19325b !important;
}

.dropdown-menu-servicios .dropdown-item {
    border-radius: 10px;
    padding: 10px 14px;
    white-space: normal;
    line-height: 1.35;
    font-size: .98rem;
}

.dropdown-header {
    background: #ecececa8;
    color: #2d2d2d;
    font-weight: 700;
    padding: .55rem 1rem;
    margin: 0;
    text-transform: uppercase;
}
.dropdown-menu-right-edge .dropdown-item {
    border-radius: 10px;
    padding: 10px 14px;
    white-space: normal;
    line-height: 1.35;
    font-size: .98rem;
    color: #19325b;
}

.dropdown-menu-servicios .dropdown-item:hover {
    background-color: rgba(25, 50, 91, 0.10);
    color: #2d4f86 !important;
    transform: translateX(3px);
}

.dropdown-menu-right-edge .dropdown-item:hover {
    background-color: rgba(25, 50, 91, 0.10);
    color: #2d4f86 !important;
    transform: translateX(3px);
}

.header-navbar,
.header-navbar .container-fluid,
.nav-block,
.nav-center {
    overflow: visible !important;
}


@media (max-width: 992px) {

    .dropdown-menu-servicios,
    .dropdown-menu-right-edge {
        position: fixed !important;
        top: 100px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 92vw;
        max-width: 500px;
        min-width: unset;
        max-height: 70vh;
        overflow-y: auto;
        border-radius: 16px;
        padding: 8px;
    }
}

@media (max-width: 576px) {

    .dropdown-menu-servicios,
    .dropdown-menu-right-edge {
        width: 95vw;
        top: 65px !important;
        border-radius: 12px;
    }

    .dropdown-item {
        font-size: 0.95rem;
        padding: 12px 10px;
    }
}

.nav-center .nav-link.show {
    background-color: rgba(25, 50, 91, 0.18) !important;
    color: #19325b !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

    .nav-center .nav-link.show:hover {
        background-color: rgba(25, 50, 91, 0.22) !important;
        color: #19325b !important;
    }

.navbar-nav:has(.dropdown-toggle.show) .nav-link.active:not(.show) {
    background-color: transparent !important;
    color: #19325b !important; 
    font-weight: 500 !important; 
    box-shadow: none !important;
}

    .navbar-nav:has(.dropdown-toggle.show) .nav-link.active:not(.show):hover {
        background-color: rgba(25, 50, 91, 0.10) !important;
        transform: translateY(-1px);
    }


/* =========================================================
   CONTENEDOR PRINCIPAL INSTITUCIONAL (URNA CONTAINER)
   ========================================================= */
.urna-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.urna-container {
    width: 95%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #333;
    overflow: hidden;
}

.container-custom {
    max-width: 95%;
    margin-top: -15px;
    margin-bottom: -15px;
}

#modalPqrsdf .modal-dialog {
    max-width: 620px;
    margin: 2rem auto;
}

#modalPqrsdf .modal-content {
    border-radius: 1.2rem;
    border: none;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    animation: modalFadeInPqrsdf 0.30s ease-out;
    position: relative;
}

#modalPqrsdf .modal-header {
    background-color: #003F75;
    color: #fff;
    border-bottom: none;
    padding: 1.1rem 1.4rem;
    position: relative;
}

#modalPqrsdf .modal-title {
    font-weight: 600;
    letter-spacing: 0.4px;
    width: 100%;
    text-align: center;
    font-size: 1.15rem;
    text-transform: uppercase;
}

#modalPqrsdf .modal-body {
    padding: 1.5rem;
    background: #f8fafc;
    color: #333;
    font-size: 0.97rem;
    text-align: justify;
    line-height: 1.5rem;
}

#modalPqrsdf .modal-footer {
    background: #f1f5f9;
    border-top: none;
    padding: 0.75rem 1.2rem;
    justify-content: center;
}

.pqrsdf-divider {
    width: 90px;
    height: 4px;
    margin: 0 auto 1.4rem auto;
    background: #003F75;
    border-radius: 4px;
}

.pqrsdf-card {
    background: #ffffff;
    border: 1px solid #cce0f0;
    border-left: 4px solid #003F75;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 63, 117, 0.07);
    transition: box-shadow 0.2s ease;
}

    .pqrsdf-card:hover {
        box-shadow: 0 4px 14px rgba(0, 63, 117, 0.14);
    }

    .pqrsdf-card:last-child {
        margin-bottom: 0;
    }

.pqrsdf-card-title {
    font-weight: 700;
    color: #003F75;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pqrsdf-icon {
    font-size: 1.15rem;
    color: #003F75;
    flex-shrink: 0;
}

.pqrsdf-virtual-title {
    color: #003F75;
}

.pqrsdf-card-text {
    font-size: 0.92rem;
    color: #444;
    margin-bottom: 0.6rem;
    line-height: 1.45;
}

.pqrsdf-email-block {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e0edf6;
    border: 1px solid #b3d0e8;
    border-radius: 8px;
    padding: 8px 14px;
    margin-top: 0.4rem;
}

.pqrsdf-email-icon {
    color: #003F75;
    font-size: 1rem;
    flex-shrink: 0;
}

.pqrsdf-email-text {
    color: #003F75;
    font-weight: 600;
    font-size: 0.88rem;
    word-break: break-all;
    flex: 1;
    min-width: 0;
    user-select: all;
    -webkit-user-select: all;
    cursor: text;
    transition: background 0.15s ease;
    border-radius: 4px;
    padding: 2px 4px;
}

    .pqrsdf-email-text:hover {
        background: rgba(0, 63, 117, 0.08);
    }

.pqrsdf-mailto-link {
    color: #003F75;
    text-decoration: none;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.15s ease;
    padding: 2px;
    border-radius: 4px;
}

    .pqrsdf-mailto-link:hover {
        color: #002d54;
        transform: scale(1.15);
    }

.pqrsdf-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    margin-left: auto;
    color: #003F75;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pqrsdf-copy-btn:hover {
        background: rgba(0, 63, 117, 0.12);
        color: #002d54;
        transform: scale(1.15);
    }

    .pqrsdf-copy-btn:active {
        background: rgba(0, 63, 117, 0.2);
        transform: scale(0.95);
    }

    .pqrsdf-copy-btn:focus-visible {
        outline: 2px solid #003F75;
        outline-offset: 2px;
    }

.pqrsdf-copy-icon {
    font-size: 1rem;
    pointer-events: none;
}

.pqrsdf-copy-btn.copied .pqrsdf-copy-icon {
    color: #005599;
}

.pqrsdf-toast {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #003F75;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 63, 117, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

    .pqrsdf-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

.pqrsdf-btn-cerrar {
    background: #003F75;
    color: #fff;
    border: none;
    padding: 8px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(0, 63, 117, 0.18);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

    .pqrsdf-btn-cerrar:hover {
        background: #002d54;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0, 63, 117, 0.25);
    }

    .pqrsdf-btn-cerrar:active {
        background: #001f3a;
        color: #fff;
        transform: translateY(0);
    }

    .pqrsdf-btn-cerrar:focus-visible {
        outline: 3px solid #005599;
        outline-offset: 2px;
    }

@keyframes modalFadeInPqrsdf {
    from {
        transform: translateY(-12px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #modalPqrsdf .modal-dialog {
        max-width: 95%;
        margin: 1rem;
    }

    #modalPqrsdf .modal-header {
        padding: 0.9rem 1rem;
    }

    #modalPqrsdf .modal-title {
        font-size: 1rem;
    }

    #modalPqrsdf .modal-body {
        padding: 1rem;
    }

    .pqrsdf-card {
        padding: 0.8rem 1rem;
    }

    .pqrsdf-card-title {
        font-size: 0.93rem;
    }

    .pqrsdf-email-text {
        font-size: 0.82rem;
    }

    .pqrsdf-copy-btn {
        padding: 3px 5px;
    }

    .pqrsdf-copy-icon {
        font-size: 0.92rem;
    }

    .pqrsdf-btn-cerrar {
        padding: 7px 22px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #modalPqrsdf .modal-dialog {
        max-width: 98%;
        margin: 0.5rem;
    }

    .pqrsdf-card {
        padding: 0.7rem 0.8rem;
    }

    .pqrsdf-email-block {
        padding: 6px 10px;
        gap: 6px;
    }

    .pqrsdf-copy-btn {
        padding: 2px 4px;
    }

    .pqrsdf-copy-icon {
        font-size: 0.85rem;
    }

    .pqrsdf-toast {
        font-size: 0.82rem;
        padding: 8px 16px;
        bottom: 60px;
    }
}

.site-footer-new {
    background: #003f75;
    color: #ffffff;
    margin-top: -30px !important;
    font-family: 'Montserrat', sans-serif;
}

.containerfooter-new {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
}

.footer-head {
    padding: 20px 0 15px 0;
    text-align: center;
}

    .footer-head .containerfooter-new {
        background-color: #ffffff;
        padding: 16px 24px; 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    }

    .footer-head .footer-main-title {
        color: #003F75 !important; 
        font-weight: 700; 
        margin: 0;
        letter-spacing: 0.5px;
    }

.footer-flag-wrap {
    padding: 8px 0 14px;
}

.footer-flag {
    width: 100%;
    max-width: 930px;
    height: 9px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 45% 27.5% 27.5%;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
}

.flag-yellow {
    background: #FFCD00;
}

.flag-blue {
    background: #003087;
}

.flag-red {
    background: #C8102E;
}

.footer-body {
    padding: 18px 0 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr 3fr;
    gap: 0;
    align-items: stretch;
}

.footer-col {
    padding: 14px 16px 8px 16px;
    min-width: 0;
}

    .footer-col:not(:last-child) {
        border-right: 2px solid rgba(255,255,255,.55);
    }

.footer-col-title {
    margin: 0 0 14px 0;
    font-size: 1.2rem;
    line-height: 1.1;
    font-weight: 700;
}

.footer-title-yellow {
    color: #f7c100;
}

.footer-title-light {
    color: #8fd0ff;
}

.footer-title-red {
    color: #ff1d1d;
}

.footer-block {
    margin-bottom: 18px;
}

.footer-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.footer-text {
    margin: 0;
    color: rgba(255,255,255,.96);
    font-size: 1rem;
    line-height: 1.35;
}

    .footer-text strong {
        color: #ffffff;
        font-weight: 700;
    }

    .footer-text a {
        color: #19a363;
        font-weight: 700;
        text-decoration: none;
        word-break: break-word;
    }

        .footer-text a:hover {
            text-decoration: underline;
        }

.footer-note {
    color: #ffffff;
    font-size: .95rem;
    line-height: 1.35;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.footer-stats-block .footer-text strong {
    display: inline-block;
    margin-bottom: 6px;
}

.visit-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 8px 16px;
    margin-top: 2px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.5px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.visit-counter-small {
    min-width: 90px;
}

.visit-counter::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: #39d353;
    box-shadow: 0 0 10px rgba(57, 211, 83, .55);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #ffffff; 

    border: 2px solid rgba(255,255,255,0.15);
    transition: all .25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: all .25s ease;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}

    .social-btn i {
        font-size: 18px;
    }

    .social-btn:hover {
        background: rgba(255,255,255,0.15);
        transform: translateX(4px);
        color: white;
    }

    .social-btn.facebook i {
        color: #1877F2;
    }

    .social-btn.instagram i {
        color: #E4405F;
    }

    .social-btn.twitter i {
        color: #ffffff;
    }

    .social-btn.youtube i {
        color: #FF0000;
    }


.footer-icon {
    margin-right: 8px;
    font-size: 18px;
    vertical-align: middle;
    color: #8fd0ff;
}


@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1.15fr 2.2fr;
    }

    .footer-main-title {
        font-size: 1.1rem;
    }

    .footer-col-title {
        font-size: 1.08rem;
    }

    .footer-subtitle {
        font-size: .98rem;
    }

    .footer-text,
    .footer-note {
        font-size: .94rem;
    }

    .social-btn {
        font-size: .9rem;
        padding: 8px 10px;
    }

    .mail-chip {
        font-size: .85rem;
    }
}

@media (max-width: 991.98px) {
    .containerfooter-new {
        width: 94%;
        max-width: 94%;
    }

    .footer-main-title {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .footer-flag {
        height: 9px;
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,.25);
        padding: 18px 6px 16px 6px;
    }

        .footer-col:last-child {
            border-bottom: none;
        }

    .footer-col-title {
        font-size: 1.08rem;
        margin-bottom: 12px;
    }

    .footer-subtitle {
        font-size: .98rem;
    }

    .footer-text,
    .footer-note {
        font-size: .94rem;
        line-height: 1.45;
    }

    .footer-social {
        gap: 8px;
    }

    .social-btn,
    .mail-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .visit-counter {
        font-size: 1rem;
        min-width: 110px;
        padding: 8px 14px;
    }

    .visit-counter-small {
        min-width: 90px;
    }
}

@media (max-width: 576px) {
    .containerfooter-new {
        width: 92%;
        max-width: 92%;
    }

    .site-footer-new {
        margin-top: 0 !important;
    }

    .footer-head {
        padding: 12px 0 8px;
    }

    .footer-main-title {
        font-size: .98rem;
        line-height: 1.35;
    }

    .footer-flag-wrap {
        padding: 6px 0 12px;
    }

    .footer-flag {
        height: 8px;
        border-radius: 10px;
    }

    .footer-body {
        padding: 14px 0 22px;
    }

    .footer-col {
        padding: 16px 0 14px 0;
    }

    .footer-col-title {
        font-size: 1rem;
        line-height: 1.25;
    }

    .footer-subtitle {
        font-size: .94rem;
        line-height: 1.3;
        gap: 6px;
    }

    .footer-icon {
        font-size: 16px;
    }

    .footer-text,
    .footer-note {
        font-size: .9rem;
        line-height: 1.5;
    }

    .footer-block {
        margin-bottom: 16px;
    }

    .visit-counter {
        font-size: .95rem;
        min-width: 95px;
        padding: 7px 12px;
        border-radius: 10px;
        letter-spacing: 1px;
    }

    .visit-counter-small {
        min-width: 78px;
    }

    .visit-counter::before {
        width: 7px;
        height: 7px;
        margin-right: 8px;
    }

    .social-btn {
        font-size: .88rem;
        padding: 8px 10px;
        gap: 8px;
        border-radius: 7px;
    }

        .social-btn i {
            font-size: 16px;
        }

    .mail-chip {
        font-size: .82rem;
        line-height: 1.35;
        padding: 7px 9px;
        border-radius: 7px;
    }

        .mail-chip i {
            font-size: 13px;
        }
}

@media (max-width: 380px) {
    .footer-main-title {
        font-size: .9rem;
    }

    .footer-col-title {
        font-size: .95rem;
    }

    .footer-subtitle {
        font-size: .9rem;
    }

    .footer-text,
    .footer-note {
        font-size: .86rem;
    }

    .social-btn,
    .mail-chip {
        font-size: .8rem;
    }

    .visit-counter {
        min-width: 88px;
        font-size: .88rem;
        padding: 6px 10px;
    }
}

.spinner-mini {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 15px 15px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    font-size: 14px;
}

.accessibility-fab {
    position: fixed;
    bottom: 32%;
    right: 25px;
    z-index: 9999;
}

.accessibility-fab.active .fab-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-btn {
    width:  44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #2F579B;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}

    .fab-btn:hover {
        background: #f1f5f9;
    }


.chatbot-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    transform: translateX(120%);
    opacity: 0;
    max-height: 50vh;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
    z-index: 10001;
}

    .chatbot-panel.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

body:has(#chatbotPanel.open) .accessibility-fab {
    display: none !important;
}


.chatbot-header {
    background: #2F579B;
    color: #fff;
    padding: 10px 14px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}


.chatbot-avatar-header {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.6);
}


#chatbotName {
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-action-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 4px;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.3s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chatbot-action-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}


.chatbot-messages {
    flex: 1;
    padding: 12px 12px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f4f6f9;
    display: flex;
    flex-direction: column;
}


.chatbot-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
    font-size: 0.9rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
}


    .chatbot-message.bot {
        justify-content: flex-start;
    }


    .chatbot-message.user {
        justify-content: flex-end;
    }



.chatbot-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    max-height: 32px;
    flex-shrink: 0;
    align-self: flex-start;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 2px;
}


.chatbot-avatar-btn {
    width: 72px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border-radius: 50%;
    transition: all 0.25s ease;
    border: 3px solid #ffffff;
}


.chatbot-fab-avatar {
    width:  100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.25s ease;
}


.chatbot-avatar-btn:hover .chatbot-fab-avatar {
    transform: scale(1.5);
}


.chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
}

    .chatbot-input input {
        flex: 1;
        border: none;
        padding: 12px;
        outline: none;
    }

    .chatbot-input button {
        background: #2F579B;
        border: none;
        color: #fff;
        padding: 0 16px;
        cursor: pointer;
    }

.chatbot-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    max-width: 82%;
    word-break: break-word;
    line-height: 1.45;
}

.chatbot-message.bot .chatbot-bubble {
    background: #e9ecef;
    color: #212529;
    border-top-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.chatbot-message.user .chatbot-bubble {
    background: #2F579B;
    color: #fff;
    border-top-right-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}


.chatbot-message.bot.typing {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 0;
}


.typing-bubble {
    background: #e9ecef;
    padding: 10px 14px;
    border-radius: 14px;
    border-top-left-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}


.typing-dot {
    width: 6px;
    height: 6px;
    background: #6b7280;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }


@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.footer-update {
    margin-top: 10px;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1;
    color: rgba(255,255,255,.8);
}

    .footer-update i {
        margin-right: 5px;
        color: #ffd54f;
    }

    .footer-update strong {
        color: #fff;
    }

.form-nav-buttons {
    flex-wrap: nowrap;
}

.form-nav-buttons > div {
    white-space: nowrap;
}

.form-nav-buttons .btn {
    white-space: nowrap;
}

@media (max-width: 430px) {
    .form-nav-buttons .btn {
        font-size: 0.78rem;
        padding: 0.42rem 0.55rem;
    }

    .form-nav-buttons .btn.px-4 {
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    .form-nav-buttons .btn.ms-2 {
        margin-left: 0.4rem !important;
    }

    .form-nav-buttons .btn .me-2 {
        margin-right: 0.35rem !important;
    }

    .form-nav-buttons .btn .ms-2 {
        margin-left: 0.35rem !important;
    }
}

@media (max-width: 390px) {
    .form-nav-buttons .btn {
        font-size: 0.7rem;
        padding: 0.38rem 0.48rem;
    }

    .form-nav-buttons .btn.px-4 {
        padding-left: 0.48rem !important;
        padding-right: 0.48rem !important;
    }
}

@media (max-width: 340px) {
    .form-nav-buttons .btn {
        font-size: 0.62rem;
        padding: 0.32rem 0.42rem;
    }

    .form-nav-buttons .btn.px-4 {
        padding-left: 0.42rem !important;
        padding-right: 0.42rem !important;
    }

    .form-nav-buttons .btn.ms-2 {
        margin-left: 0.3rem !important;
    }

    .form-nav-buttons .btn .me-2 {
        margin-right: 0.25rem !important;
    }

    .form-nav-buttons .btn .ms-2 {
        margin-left: 0.25rem !important;
    }
}

.urna-visor-pdf {
    height: 100%;
    min-height: 200px;
    overflow: auto;
    background-color: #525659;
    padding: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.js-pdf-viewer-content.urna-visor-mano {
    cursor: grab;
}

.js-pdf-viewer-content.urna-visor-arrastrando {
    cursor: grabbing;
    user-select: none;
}

.pdf-viewer-toolbar .btn,
[data-pdf-viewer] [data-pdf-viewer-action="download"] {
    border: 1px solid var(--pdf-viewer-accent, #89143a);
    border-radius: 10px;
    background: #fff;
    color: var(--pdf-viewer-accent, #89143a);
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.pdf-viewer-toolbar .btn:hover:not(:disabled),
[data-pdf-viewer] [data-pdf-viewer-action="download"]:hover:not(:disabled) {
    border-color: var(--pdf-viewer-accent, #89143a);
    background: var(--pdf-viewer-accent, #89143a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--pdf-viewer-accent-rgb, 137, 20, 58), 0.2);
}

.pdf-viewer-toolbar .btn:focus,
.pdf-viewer-toolbar .btn:focus-visible,
[data-pdf-viewer] [data-pdf-viewer-action="download"]:focus,
[data-pdf-viewer] [data-pdf-viewer-action="download"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--pdf-viewer-accent-rgb, 137, 20, 58), 0.25);
}

.pdf-viewer-toolbar .btn:disabled,
[data-pdf-viewer] [data-pdf-viewer-action="download"]:disabled {
    border-color: #cfd6dc;
    background: #e6eaed;
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

[data-pdf-viewer] .pdf-viewer-toolbar .btn,
[data-pdf-viewer] [data-pdf-viewer-action="download"] {
    border-color: var(--pdf-viewer-accent, #89143a) !important;
    background-color: #fff !important;
    color: var(--pdf-viewer-accent, #89143a) !important;
}

[data-pdf-viewer] .pdf-viewer-toolbar .btn .bi,
[data-pdf-viewer] [data-pdf-viewer-action="download"] .bi {
    color: var(--pdf-viewer-accent, #89143a) !important;
}

[data-pdf-viewer] .pdf-viewer-toolbar .btn:hover:not(:disabled),
[data-pdf-viewer] [data-pdf-viewer-action="download"]:hover:not(:disabled) {
    border-color: var(--pdf-viewer-accent, #89143a) !important;
    background-color: var(--pdf-viewer-accent, #89143a) !important;
    color: #fff !important;
}

[data-pdf-viewer] .pdf-viewer-toolbar .btn:hover:not(:disabled) .bi,
[data-pdf-viewer] [data-pdf-viewer-action="download"]:hover:not(:disabled) .bi {
    color: #fff !important;
}

[data-pdf-viewer] .pdf-viewer-toolbar .btn:disabled,
[data-pdf-viewer] [data-pdf-viewer-action="download"]:disabled {
    border-color: #cfd6dc !important;
    background-color: #e6eaed !important;
    color: #6c757d !important;
}

[data-pdf-viewer] .pdf-viewer-toolbar .btn:disabled .bi,
[data-pdf-viewer] [data-pdf-viewer-action="download"]:disabled .bi {
    color: #6c757d !important;
}

@media (max-width: 575.98px) {
    .visor-pdf-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .visor-pdf-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem !important;
    }

    .pdf-viewer-zoom-controls .btn {
        padding-right: 0.45rem;
        padding-left: 0.45rem;
    }
}

.urna-visor-pdf-pagina-wrap {
    margin: 0 auto 12px;
    max-width: 100%;
}

.urna-visor-pdf canvas.urna-visor-pdf-pagina {
    display: block;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.urna-visor-pdf-etiqueta {
    text-align: center;
    color: #fff;
    font-size: 0.75rem;
    margin-top: 4px;
}

.urna-visor-pdf-cargando,
.urna-visor-pdf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

.urna-visor-pdf-error {
    color: #f8d7da;
}

/* =========================================================
   PROGRESSIVE OFFCANVAS MENU (SOLO MOBILE)
   ========================================================= */
@media (max-width: 991.98px) {
    .progressive-menu {
        width: 340px !important;
        max-width: 85vw;
        font-family: 'Montserrat', sans-serif !important;
    }
    .progressive-menu-wrapper {
        position: relative;
        overflow-x: hidden;
        overflow-y: hidden;
    }
    .progressive-nav-list {
        position: relative;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        height: auto;
        overflow: visible;
        transition: transform 0.3s ease, height 0.3s ease;
        display: flex;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        background: transparent !important;
        font-family: 'Montserrat', sans-serif !important;
    }
    
    /* Forzar que todos los <li> sean estáticos para que el .dropdown-menu se posicione respecto a su contenedor */
    .progressive-nav-list li,
    .progressive-nav-list .nav-item {
        border-bottom: 1px solid #f0f0f0;
        position: static !important;
        width: 100%;
    }
    
    .progressive-nav-list .nav-link,
    .progressive-nav-list .dropdown-item.dropdown-toggle {
        color: var(--brand) !important;
        padding: 16px 20px;
        font-size: 1.05rem;
        font-weight: 500 !important;
        display: flex;
        justify-content: flex-start !important;
        align-items: center;
        width: 100%;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .progressive-nav-list .nav-link::after,
    .progressive-nav-list .dropdown-item.dropdown-toggle::after {
        margin-left: auto;
    }
    .progressive-nav-list .nav-link:hover,
    .progressive-nav-list .dropdown-item:hover {
        background-color: rgba(25, 50, 91, 0.05) !important;
    }

    /* Submenús */
    .progressive-menu .dropdown-menu {
        position: absolute !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none !important;
        display: block !important; /* Siempre en DOM, pero fuera de pantalla */
        visibility: hidden;
        background: #fff;
        z-index: 10;
        overflow: visible; /* NO CLIPPING: permite que el submenú hijo se vea al lado */
        transform: none !important;
        font-family: 'Montserrat', sans-serif !important;
    }
    
    /* Niveles de anidación usando left (cada nivel se posiciona 100% a la derecha de su padre absoluto) */
    .progressive-nav-list .dropdown-menu {
        left: 100% !important;
    }

    .progressive-menu .dropdown-menu.sliding-active {
        visibility: visible;
    }
    .progressive-menu .dropdown-menu .dropdown-item {
        padding: 14px 20px;
        border-bottom: 1px solid #f0f0f0;
        white-space: normal;
        color: var(--brand) !important;
        font-size: 1rem;
        border-radius: 0;
    }
    .progressive-menu .dropdown-menu .dropdown-item:hover {
        background-color: rgba(25, 50, 91, 0.05);
        transform: none !important;
    }
    .progressive-menu .dropdown-header {
        background: #f8f9fa;
        padding: 12px 20px;
        font-size: 0.85rem;
        border-bottom: 1px solid #e0e0e0;
    }

    /* Botón Volver */
    .progressive-menu-back {
        padding: 16px 20px;
        background: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 700;
        color: var(--brand);
        cursor: pointer;
        font-size: 1.05rem;
    }
    .progressive-menu-back:hover {
        background: #e9e9e9;
    }
}

/* Ocultar elementos de UI móvil en escritorio */
@media (min-width: 992px) {
    .progressive-menu-back {
        display: none !important;
    }

    /* Submenú de 3er nivel para desktop */
    .dropdown-submenu {
        position: relative;
    }
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: -1px;
        display: none;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        min-width: 240px;
    }
    .dropdown-submenu:hover > .dropdown-menu,
    .dropdown-submenu.show > .dropdown-menu,
    .dropdown-submenu > .dropdown-menu.show {
        display: block !important;
    }

    .dropdown-submenu > .dropdown-menu.dropdown-menu-end-desktop {
        left: auto !important;
        right: 100% !important;
        margin-left: 0 !important;
        margin-right: -1px !important;
    }

    .dropdown-submenu.show > .dropdown-toggle,
    .dropdown-submenu:hover > .dropdown-toggle {
        background-color: rgba(25, 50, 91, 0.08) !important;
        color: var(--brand) !important;
    }
}

/* ==========================================================================
   ESTILO INSTITUCIONAL: ACCIÓN OJITO VISUALIZAR DOCUMENTO / DETALLE
   (Sin marco, recuadro ni borde; ícono vinotinto limpio e interactivo)
   ========================================================================== */
.btn-ver-doc-icon,
.link-detalle-ojo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #89143a !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, color 0.2s ease;
    vertical-align: middle !important;
    line-height: 1 !important;
}

.btn-ver-doc-icon:hover,
.btn-ver-doc-icon:focus,
.link-detalle-ojo:hover,
.link-detalle-ojo:focus {
    color: #b01e4a !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: scale(1.22);
}

.btn-ver-doc-icon i,
.link-detalle-ojo i {
    font-size: 1.3rem !important;
    color: inherit !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.icon-fechas {
    cursor: pointer;
    font-size: 1.3rem;
    color: #89143a;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.icon-fechas:hover {
    color: #b01e4a;
    transform: scale(1.18);
}

/* Botón institucional deshabilitado cuando no hay archivo soporte disponible */
.btn-gray {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: .35rem .65rem;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-gray:disabled,
.btn-gray.disabled {
    background: #6c757d !important;
    color: #fff !important;
    opacity: 0.85 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    border: none !important;
}



/* =========================================================
   ESTILOS HOMOGENEOS GLOBALES PARA ENCABEZADOS DE TABLAS (TH)
   Todos en mayusculas, alineados a la izquierda, misma fuente,
   mismo tamano (0.85rem), mismo peso (700 bold), sin flechas.
   ========================================================= */
table thead th,
table th,
.table thead th,
.table th,
.table-responsive table thead th,
.tabla-siurnapp thead th,
.tabla-header-vino th,
.faqs-table thead th,
.custom-tabla-asignaciones thead th,
.tabla-designaciones thead th,
.calif-tabla thead th,
.res-tabla thead th,
.autorizaciones-table th,
.tabla-cargos-header th,
#tablaConvocatoriasPrincipal thead tr th,
#tablaConvocatoriasSubusuario thead tr th,
#tblEquipoTrabajo thead tr th,
#tablaSolicitudesRetiro thead th,
#tablaUsuariosHabilitados thead th,
#tablaSoportesIdoneidadPN thead th,
#tablaSoportesIdoneidadPJ thead th {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-align: left !important;
    letter-spacing: 0.5px !important;
    vertical-align: middle !important;
}

/* Ocultar y suprimir todos los simbolos de flechas o iconos de ordenamiento en encabezados */
table thead th i.bi-arrow-down-up,
table thead th i.bi-arrow-up,
table thead th i.bi-arrow-down,
table thead th i.bi-chevron-expand,
table thead th .sort-icon,
table thead th i[class*="bi-arrow"],
table thead th i[class*="bi-chevron"],
th .sort-icon,
th i.bi-arrow-down-up,
th i.bi-arrow-up,
th i.bi-arrow-down,
th i.bi-chevron-expand,
.sortable-header i,
.th-sortable i,
.sortable i {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}