body {
    font-family: 'Montserrat', sans-serif;
}

: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);
    }


.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: scale(0.95);
    opacity: 0;
    max-height: 50vh;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9998;
}

    .chatbot-panel.open {
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
    }


.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;
}


.chatbot-messages {
    flex: 1;
    padding: 1px 10px;
    overflow-y: auto;
    background: #f4f6f9;
}


.chatbot-message {
    display: flex;
    gap: 8px;
    max-width: 90%;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}


    .chatbot-message.bot {
        background: #e5e7eb;
        justify-content: flex-start;
        align-self: flex-start;
    }


    .chatbot-message.user {
        background: #2F579B;
        color: #fff;
        justify-content: flex-end;
        align-self: flex-end;
    }



.chatbot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}


.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 {
    background: #e5e7eb;
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 75%;
}

.chatbot-message.user .chatbot-bubble {
    background: #2F579B;
    color: #fff;
}


.chatbot-message.bot.typing {
    display: flex;
    align-items: center;
    gap: 8px;
}


.typing-bubble {
    background: #e5e7eb;
    padding: 10px 14px;
    border-radius: 12px;
    display: inline-flex;
    gap: 4px;
}


.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;
    }
}