/*
Theme Name: ITLA Transparencia Child
Template: transparencia
Author: ITLA - Edward Ceballos Camacho
Description: Plantilla desarrollada para el portal de transparencia del Instituto Tecnológico de Las Américas
Version: 1.0.0
*/

/* =============================================
   PALETA DE COLORES PRINCIPAL
   ============================================= */
:root {
    --primary: #003670;      /* Azul institucional - Color principal */
    --primary-dark: #002850;  /* Azul más oscuro para hovers */
    --primary-light: #e6f0ff; /* Azul muy claro para fondos */
    
    --accent: #dc052d;        /* Rojo institucional - Color de acento */
    --accent-dark: #b00424;   /* Rojo más oscuro para hovers */
    --accent-light: #ffe6ea;  /* Rojo muy claro para fondos */
    
    --gray-100: #ffffff;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* =============================================
   APLICACIÓN DE COLORES INSTITUCIONALES
   ============================================= */

/* Enlaces y títulos principales */
/* a, 
.text-primary,
h1, h2, h3, h4 {
    color: var(--primary) !important;
} */
 a{
    color: #0071eb;
 }

/* Hovers de enlaces */
/* a:hover {
    color: var(--primary-dark) !important;
} */

/* Botones principales (acciones primarias) */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* Botones de acento (descargas importantes, acciones destacadas) */
a.btn-accent{
    background-color: var(--accent);
    border-color: white !important;
    color: white;
}

a.btn-btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: white !important;
    color: white !important;
}

/* .btn-accent {
    background-color: var(--accent);
    border-color: white !important;
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: white !important;
    color: white;
} */

/* Bordes y elementos decorativos */
.border-primary {
    border-color: var(--primary) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

/* Badges */
.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.badge-accent {
    background-color: var(--accent-light);
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* =============================================
   HEADER Y MENÚS
   ============================================= */

/* Topbar y elementos superiores */
.header-light .topbar {
    background: #fff !important;
    color: white;
    border-bottom: 0.5px solid rgba(204, 204, 204, 0.4);
}

.header-light .topbar a,
.header-light .topbar .menu-item {
    color: white;
}

.header-light .topbar a:hover {
    color: var(--accent);
}

/* header {
    box-shadow: 15px 19px 20px rgb(0 0 0 / 19%);
    padding: .2rem;
    border-radius: 1rem;
} */

.topbar {
    height: 82px;
    display: flex;
    align-items: center;
    background-color: #fff !important;
}

/* Enlaces del menú principal */
.main-menu .menu-item {
    color: #003670;
}



.main-menu .menu-item:hover {
    color: #dc052d !important;
}

/* =============================================
   MENÚ LATERAL - ESTILOS UNIFICADOS
   ============================================= */

/* Contenedor principal del menú */
.desktop-menu,
#menu_derecha_m {
/*     background-color: #f9f9f9; */
/*     padding: 15px; */
/*     border-radius: 8px; */
    font-family: 'Arial', sans-serif;
/*     box-shadow: 0 4px 8px rgba(0,0,0,0.05); */
    /* max-height: 100vh !important;
    overflow-y: auto; */
}

/* Barra de desplazamiento personalizada */
.desktop-menu::-webkit-scrollbar,
#menu_derecha_m::-webkit-scrollbar {
    width: 6px;
}

.desktop-menu::-webkit-scrollbar-thumb,
#menu_derecha_m::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Título de grupo de menú */
.group-submenu-title {
    font-weight: bold;
    font-size: 16px;
    color: #023877;
    margin-bottom: 10px;
}

/* Listas del menú */
.desktop-menu ul,
#menu_derecha_m ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Items del menú */
.desktop-menu li,
#menu_derecha_m li {
    margin-bottom: 0px;
    position: relative;
}

/* .collapse.show{
    background-color: #e9ecef;
} */

#collapseSeals{
    background-color: none !important;
}
                
.desktop-menu li + li,
#menu_derecha_m li + li {
    margin-top: 0px;
}

/* Enlaces del menú - ESTADO NORMAL */
.desktop-menu li a,
#menu_derecha_m li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #003366;
    border-right: 4px solid transparent;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 16px;
}

/* HOVER en enlaces */
.desktop-menu li a:hover,
#menu_derecha_m li a:hover {
    background-color: #e6f0ff;
    color: #023877;
    border-right: 4px solid #003670;
}

/* Enlace ACTIVO (sin hijos) */
.desktop-menu li a.active-link,
#menu_derecha_m li a.active-link {
    border-right: 4px solid #003670;
    font-weight: bold;
    background-color: #e6f0ff;
    color: #003670;
}

/* Items con hijos - cuando están activos */
.desktop-menu li a.active-parent,
#menu_derecha_m li a.active-parent {
    background-color: #e6f0ff;
    color: #023877;
    border-right: 4px solid #003670;
    font-weight: 600;
}

/* Iconos de colapso */
.desktop-menu li a i.ri-arrow-down-s-line,
#menu_derecha_m li a i.ri-arrow-down-s-line {
    float: right;
    transition: transform 0.3s ease;
}

/* Rotación del ícono cuando está expandido */
.desktop-menu li a[aria-expanded="true"] i.ri-arrow-down-s-line,
#menu_derecha_m li a[aria-expanded="true"] i.ri-arrow-down-s-line {
    transform: rotate(180deg);
}

/* Submenús colapsables */
.desktop-menu li .collapse,
#menu_derecha_m li .collapse {
    margin-top: 3px;
    margin-left: 10px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Enlaces de submenú */
.desktop-menu li .collapse ul li a,
#menu_derecha_m li .collapse ul li a {
    font-size: 15px;
    color: #003366;
    padding-left: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-left: 4px solid transparent; /* Reservar espacio para evitar saltos */
    transition: all 0.3s ease;
}

/* Hover en subenlaces */
.desktop-menu li .collapse ul li a:hover,
#menu_derecha_m li .collapse ul li a:hover {
/*     background-color: #d9eaff;
    border-left: 4px solid #ff0000; */
    color: #023877;
    padding-left: 20px; /* Mantener fijo para evitar saltos */
}

/* Items activos en submenú */
.desktop-menu li .collapse ul li a.active-link,
#menu_derecha_m li .collapse ul li a.active-link {
    background-color: #e6f0ff;
    border-right: 4px solid #003670;
    color: #595959;
    font-weight: 600;
}

/* =============================================
   MENÚ LATERAL MÓVIL - COMPORTAMIENTO
   ============================================= */
@media (max-width: 767px) {
    .side-menu.d-md-none {
        display: block;
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .side-menu.d-md-none.active {
        left: 0;
    }
    
    .side-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: #ffffff;
        border-bottom: 1px solid #dee2e6;
    }
    
    .side-menu-title {
        font-weight: 600;
        color: var(--primary);
    }
    
    .side-menu-close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
    
    .mobile-overlay.active {
        display: block;
    }
    
    /* Ajustes para enlaces en móvil */
    #menu_derecha_m li a {
        padding: 14px 15px;
    }
}

/* =============================================
   MENÚ HAMBURGUESA - BOTÓN
   ============================================= */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 5px;
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: inline-block;
    }
}

/* =============================================
   ESTILOS COMPLEMENTARIOS DEL MENÚ
   ============================================= */

/* Items activos (para side-menu-list) */
/* .side-menu-list .current-menu-item > a,
.side-menu-list .active-link {
    background-color: var(--primary-light);
    color: var(--primary);
    border-left: 4px solid var(--primary);
} */

/* Hover en items del menú lateral */
.side-menu-list a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* =============================================
   TARJETAS Y DOCUMENTOS
   ============================================= */

/* PDF - Rojo institucional */
.btn-pdf {
    background-color: #dee2e6 !important;
    border: 1px solid #adb5bd !important;
    color: var(--primary) !important;
    min-width: 70px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-pdf:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent-dark) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 5, 45, 0.2);
}

/* Excel - Mantiene verde (es estándar) */
.btn-excel {
    background-color: #dee2e6 !important;
    border: 1px solid #adb5bd !important;
    color: var(--primary) !important;
    min-width: 110px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-excel:hover {
    background-color: #218838 !important;
    border-color: #218838 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

/* =============================================
   FILTROS Y FORMULARIOS
   ============================================= */

.filtros-container .input-group-text {
    background-color: var(--primary-light);
    color: var(--primary);
}

.btn-filtro {
    background-color: var(--primary);
    color: white;
}

.btn-filtro:hover {
    background-color: var(--primary-dark);
}

/* =============================================
   PAGINACIÓN
   ============================================= */

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item .page-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* =============================================
   FOOTER
   ============================================= */

.footer-bottom {
    background: var(--primary);
    color: white;
}

.footer-bottom a {
    color: white;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* =============================================
   UTILIDADES DE COLOR
   ============================================= */

.bg-primary-custom {
    background-color: var(--primary);
}

.bg-accent-custom {
    background-color: var(--accent);
}

.text-primary-custom {
    color: var(--primary);
}

.text-accent-custom {
    color: var(--accent);
}

/* =============================================
   ESTILOS ORIGINALES - MANTENIDOS INTEGRAMENTE
   ============================================= */

.header-light .topbar-right > .search-bar,
.header-light .topbar-right > .menu-grid {
    margin-left: 30px;
    margin-right: 30px;
    position: relative;
}

.header-light .topbar-right > .lang-select {
    margin-left: 20px;
}

.header-light .topbar-right .lang-select > a > img {
    height: 15px;
}

.header-light .topbar-right .lang-select:after {
    background-color: #D3D3D3;
    content: none;
    display: block;
    height: 45px;
    right: -30px;
    position: absolute;
    top: -15px;
    width: 1px;
}

.header-light .topbar-right .search-bar:after {
    background-color: #D3D3D3;
    content: "";
    display: block;
    height: 45px;
    right: -30px;
    position: absolute;
    top: -2px;
    width: 1px;
}

.header-light .topbar-right .menu-grid:before {
    background-color: #D3D3D3;
    content: "";
    display: block;
    height: 45px;
    right: -30px;
    position: absolute;
    top: -4px;
    width: 1px;
}

.search-bar button i {
    font-weight: bold;
}

.search-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
}

div.lang-select.dropdown-simple i {
    color: var(--primary);
}

.topbar-right .lang-select {
    padding-left: 0;
}

.banner_content.bg-blue-ligth {
    background-color: white;
}

h1 {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 54px;
    color: var(--primary);
}

.banner_content h2 {
    font-size: 26px;
}

.banner_content p {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
}

hr.separator {
    border-top: 3px solid #BCD1EC;
    margin-top: 0;
}

p.card-text {
    font-size: 16px;
    color: black;
    font-weight: 400;
    line-height: 19px;
}

a.card-link {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    color: var(--primary);
}

.breadcrumbs {
    padding: 50px 0;
/*     background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    background-image: url('https://itla.edu.do/wp-content/uploads/2025/02/bg.png'); */
    background-color: #eef5ff;
    background-size: cover;
    min-height: 220px;
    display: flex;
    align-items: center;
}

.breadcrumbs h1 {
    font-weight: 500;
    margin-top: 10px;
}

.breadcrumbs .container{
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.breadcrumbs .container h1{
    font-size: xx-large;
    line-height: 40px;
    color: #003876;
/*     text-shadow: 2px 2px 4px rgba(0, 0, 0, 9); */
}

.breadcrumbs-cont .path span{
    color: #003876;
/*     font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 9); */
}


.breadcrumbs .path a {
    color: var(--primary);
}

@media screen and (max-width: 768px){

/*     .breadcrumbs{
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    } */

    .breadcrumbs .container{
        display: flex;
        justify-content: space-around;
        flex-direction: column-reverse;
    }

    .breadcrumbs-cont{
        margin-top: 1rem;
    }

    .breadcrumbs {
    position: relative; /* IMPORTANTE */
    padding: 50px 0;
/*     background-image: url("https://itla.edu.do/wp-content/uploads/2025/02/bg.png");
    background-color: #0a407b5e; */
    background-size: cover;
    min-height: 220px;
    display: flex;
    align-items: center;
    overflow: hidden; /* evita desbordes */
}

.breadcrumbs::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
/*     background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3)); */
    z-index: 1;
}

.breadcrumbs .container {
    position: relative;
    z-index: 2;
}
}

div.certifications {
    display: flex;
    justify-content: space-between;
}

.sertifications{
    background-color: #ffffff !important;
}

.menu-grid .dropdown-menu {
    inset: 0px 0px auto auto !important;
    transform: translate3d(0, 40.8px, 0px) !important;
    width: 350px;
    padding: 0;
}

.menu-grid .dropdown-menu h3 {
    font-size: 16px;
    font-family: 'Roboto';
    color: var(--primary);
    font-weight: 700;
}

.menu-grid .dropdown-menu h4 {
    font-size: 14px;
    font-family: 'Roboto';
    font-weight: 500;
    color: var(--primary);
}

.menu-grid .dropdown-menu h5 {
    color: var(--primary);
    font-family: 'Roboto';
    font-size: 10px;
    font-weight: 700;
    line-height: 11px;
}

p.subtitle {
    color: white !important;
}

.menu-grid .dropdown-menu .dropdown-items > .row {
    margin-bottom: 20px;
}

.list-submenu .group-submenu ul li.active {
    cursor: pointer;
}

.list-submenu .group-submenu-title{
    color: #717171;
}

.menu-grid-title i {
    font-size: 18px;
    color: var(--accent);
    cursor: pointer;
}

.menu-grid-content > a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    padding: 15px;
}

.menu-grid-content .menu-item:hover {
    background-color: var(--primary-light);
    border-radius: 5px;
}

.menu-grid-content .menu-item img {
    height: 60px;
}

.menu-grid-content .menu-item:hover .rounded-circle {
    border: 2px solid #4baaff;
}

.menu-grid-content .menu-item:hover a::before {
    content: '';
    height: 60px;
    width: 60px;
    position: absolute;
    background-color: rgb(75, 170, 255, 0.5);
    border-radius: 50%;
}

.menu-grid-content > a i {
    font-size: 18px;
    color: var(--primary);
}

.menu-grid-content hr {
    margin: 0;
    margin-bottom: 1rem;
}

.rounded-circle {
    border: 2px solid #E5E5E5;
}

.rounded-circle:hover {
    border: 2px solid #4baaff;
}

.menu-grid-content > a.collapsed i {
    transition: 0.2s;
    transform: rotate(-90deg);
    animation-fill-mode: forwards;
}

@media screen and (min-width: 768px) {
    .menu-grid-content .menu-item {
        padding-top: 10px;
        padding-bottom: 20px;
        margin-right: 8px;
        margin-left: 8px;
    }

    .main-menu {
        height: 56px;
    }

    .menu-dropdown .dropdown-menu {
        border: none;
        box-shadow: 2px 2px 4px #9c9b9bcf;
    }

    .menu-grid-title {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 14px 12px;
        height: 47px;
        background: #F8F8F8;
        box-shadow: 0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);
    }

    .menu-grid .dropdown-menu .menu-grid-content {
        padding: 25px;
    }

    footer .footer-nortic a {
        display: none;
    }
    
    .menu-grid-title i.ri-arrow-right-s-line {
        display: none;
    }

    /* Submenus para el menú principal en desktop */
    .dropdown-submenu {
        position: relative;
    }
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: 0;
        display: none;
        box-shadow: 2px 2px 4px #9c9b9bcf;
        border: none;
    }
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

.dropdown-toggle::after {
    content: none;
}

.list-submenu .group-submenu ul li a[data-bs-toggle|="collapse"] {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
}

.list-submenu .group-submenu ul li a[data-bs-toggle|="collapse"] i {
    color: #595959;
    font-size: 20px;
    margin-top: -4px;
    text-decoration: none;
    display: inline-block;
}

.list-submenu .group-submenu ul li.active a {
    display: flex;
    justify-content: space-between;
}

.lang-select .dropdown-list {
    padding: 0;
}

.lang-select .dropdown-list a {
    padding: 10px;
}

.lang-select .dropdown-list a:hover {
    background-color: var(--primary-light);
}

.main-menu .dropdown-menu {
    padding: 0;
}

.dropdown-list a + a {
    margin-top: 0;
}

.main-menu .dropdown-item {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 10px;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
}

.main-menu .dropdown-item:hover {
    background-color: var(--primary-light);
}

.list-submenu .group-submenu ul li.active i {
    color: #595959;
    font-size: 20px;
    margin-top: -4px;
    text-decoration: none;
    display: inline-block;
    display: none;
}

.list-submenu .group-submenu ul li a[data-bs-toggle|="collapse"] i:hover {
    text-decoration: none;
    display: inline-block;
}

.list-submenu .group-submenu div.collapse,
.list-submenu .group-submenu div.collapsing {
    margin-left: 30px;
    margin-top: 10px;
}

.list-submenu .group-submenu ul li a[aria-expanded|="true"] i {
    transform: rotate(180deg);
    text-decoration: none;
}

.hamburger-menu {
    display: none;
}

.topbar .logo-icon img {
    height: initial;
    
}

.logo-icon img{
    height: 5rem !important;
}

.footer-light {
    border-top: 1px solid #d3d3d3;
}

@media screen and (max-width: 767px) {
    .main-menu .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        padding: 0;
    }

    .main-menu .menu-dropdown .dropdown-menu {
        padding-left: 20px;
    }

    .main-menu .menu-dropdown .menu-item.show {
        color: var(--accent);
    }

    .hamburger-menu {
        display: block;
    }

    .main-menu {
        height: 100%;
    }

    .main-menu-cont .menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-menu-cont .menu .menu-item {
        font-weight: 500;
        font-size: 14px;
        padding: 20px 10px;
        margin-right: 0;
        justify-content: space-between;
    }

    .menu-grid {
        padding: 0 10px;
    }

    .menu-grid > a.dropdown-toggle > img {
        height: 20px;
        margin: 20px 0;
    }

    .menu-grid .dropdown-menu {
        border: none;
        position: static !important;
        transform: none !important;
        padding: 25px 0 0;
        width: 100%;
    }

    .menu-grid > a.dropdown-toggle {
        display: flex;
        border-bottom: 1px solid #e5e7eb;
        width: 100%;
    }

    .menu-grid > a.dropdown-toggle h3 {
        align-self: center;
        color: var(--primary);
        margin-left: 7px;
    }

    .banner {
        flex-direction: column;
        padding: 0;
    }
    
    .banner_content.bg-blue-ligth {
        width: 100%;
        padding: 10%;
    }

    .banner > img {
        width: 100%;
        height: auto;
    }

    .col-md {
        margin-bottom: 20px;
    }

    .group-submenu-title {
        display: none;
    }

    .list-submenu {
        border-right: none;
    }

    .list-submenu .group-submenu ul li.active {
        border: none;
        background-color: var(--primary-light);
    }

    .list-submenu .group-submenu {
        margin-bottom: 0;
        margin-top: 20px;
    }

    .list-submenu .group-submenu.second {
        padding-right: 0 !important;
    }

    .list-submenu .group-submenu ul li {
        padding: 15px 15px;
        color: var(--primary);
    }

    .list-submenu .group-submenu > ul > li > a,
    .list-submenu .group-submenu > ul > li.active > a {
        font-weight: 600;
        color: var(--primary);
    }

    .list-submenu .group-submenu > ul > li a {
        color: var(--primary);
    }

    .list-submenu .group-submenu ul li.active i,
    .list-submenu .group-submenu ul li a[data-bs-toggle|="collapse"] i {
        color: var(--primary);
        display: block;
    }

    .list-submenu .group-submenu ul li.active:after {
        content: none;
    }

    .list-submenu .group-submenu div.collapse,
    .list-submenu .group-submenu div.collapsing {
        margin-left: 0px;
        margin-top: 10px;
    }

    #searchMain {
        visibility: hidden;
        width: 1px !important;
    }

    .logo-icon img {
        width: 100%;
        max-height: 40px;
    }

    .topbar-right .lang-select:before {
        content: none;
    }

    div.list-submenu .group-submenu.second {
        display: none;
    }

    .menu-grid-title i.ri-close-circle-line {
        display: none;
    }

    footer .footer-nortic a {
        display: flex;
        justify-content: space-between;
        color: var(--primary);
        font-weight: 500;
        margin-bottom: 20px;
        text-decoration: none;
    }

    footer .footer-nortic {
        padding: 0;
    }

    footer .footer-nortic a {
        padding: 22px 0;
        margin-bottom: 0;
    }

    .topbar {
        height: 72px;
    }

    footer .footer-nortic .certifications {
        margin-bottom: 20px;
    }

    .menu-grid a {
        text-decoration: none;
    }

    .menu-grid > a:hover {
        background-color: #ffffff;
    }

    .menu-grid h3 {
        width: 100%;
        display: flex;
        justify-content: space-between;
        text-decoration: none;
        align-items: center;
    }

    .menu-grid h3 i {
        font-size: 18px;
    }
    
    .header-light .topbar-right > *,
    .header-light .topbar-right > .search-bar {
        margin-left: 14px;
        margin-right: 14px;
        position: relative;
    }

    .header-light .topbar-right .lang-select:after {
        background-color: #D3D3D3;
        content: "";
        display: block;
        height: 45px;
        right: -14px;
        position: absolute;
        top: -15px;
        width: 1px;
    }

    .header-light .topbar {
        box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.07);
    }

    .header-light .topbar-right .search-bar:after {
        background-color: #D3D3D3;
        content: "";
        display: block;
        height: 45px;
        right: -14px;
        position: absolute;
        top: -2px;
        width: 1px;
    }
    
    .list-submenu {
        padding: 0;
    }
    
    .entry-content {
        padding-top: 0 !important;
    }

    .menu-grid > a.show i {
        transition: 0.2s;
        transform: rotate(90deg);
    }

    .menu-dropdown > a i {
        font-size: 18px;
        transition: 0.2s;
        transform: rotate(-90deg);
    }

    .menu-dropdown > a.show i {
        transition: 0.2s;
        transform: none;
    }

    .footer-bottom {
        height: 128px;
    }

    .footer-light .footer-bottom-cont {
        padding: 14px 0;
    }

    .footer-light .footer-top .footer-menu-list li span,
    .footer-light .footer-top .footer-menu-list li a {
        font-size: 12px;
        line-height: 15px;
    }

    .footer-nortic {
        border-bottom: none;
    }

    .footer-light .footer-top .footer-title {
        margin-bottom: 10px;
    }

    .footer-light .footer-top {
        padding: 0 0 26px;
        height: auto;
    }

    .footer-light .footer-top .footer-menu-list li:not(:last-child) {
        margin-bottom: 6px;
    }

    .footer-light .footer-top .logo-cont::after {
        content: none;
    }
}

.logo-cont{
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-cont img{
    width: 180px !important;
    height: 100px !important;
}

.nortic-seals img {
    height: 100px;
    width: 100px;
}

.nortic-seals{
    background-color: #ffffff;
}


@media screen and (max-width: 428px) {
    .list-submenu .group-submenu {
        display: block;
    }
}

.footer-title {
    font-size: 14px;
    font-weight: 500;
}

/* =============================================
   ESTILOS MODERNOS IMPLEMENTADOS
   ============================================= */

/* Estilos para tarjetas de documentos */
.documentos-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.archivo-card {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    padding: 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.archivo-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.archivo-card.archivo-secundario {
    margin-top: -10px;
    background-color: #f9f9f9;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.archivo-info {
    display: flex;
    /* align-items: center; */
    gap: 20px;
    flex: 1;
}

.archivo-icon {
    flex-shrink: 0;
}

.archivo-icon i {
    font-size: 2.5rem;
}

.archivo-meta {
    flex: 1;
}

.archivo-title {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.archivo-fecha {
    font-size: 14px;
    color: #666;
}

.archivo-descargar {
    flex-shrink: 0;
}

.btn-descargar {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-descargar:hover {
    background-color: var(--primary-dark);
    color: white;
}

.filtro-year {
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Estilos para paginación */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    gap: 5px;
}

.page-item .page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    line-height: 1.25;
    color: var(--primary);
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-item .page-link:hover {
    z-index: 2;
    color: var(--primary-dark);
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Centrar la paginación */
.pagination-wrapper {
    text-align: center;
}

/* =============================================
   FILTROS CONTAINER - COMPONENTE REUTILIZABLE
   ============================================= */
.filtros-container {
    background: linear-gradient(to bottom, #ffffff, var(--gray-100));
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

.filtros-container .input-group-text {
    border-right: none;
    background-color: var(--gray-100);
}

.filtros-container .form-select {
    border-left: none;
}

.filtros-container .form-select:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

/* =============================================
   CARDS GENÉRICAS - COMPONENTE BASE
   ============================================= */
.compra-card,
.balance-card,
.periodo-card,
.estadistica-card,
.indice-card,
.memoria-card,
.revista-card,
.boletin-card,
.presupuesto-card,
.nomina-card,
.licitacion-card,
.comparacion-card,
.cuenta-card,
.ingreso-card,
.activo-card,
.inventario-card,
.informe-card,
.dataset-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.compra-card:hover,
.balance-card:hover,
.periodo-card:hover,
.estadistica-card:hover,
.indice-card:hover,
.memoria-card:hover,
.revista-card:hover,
.boletin-card:hover,
.presupuesto-card:hover,
.nomina-card:hover,
.licitacion-card:hover,
.comparacion-card:hover,
.cuenta-card:hover,
.ingreso-card:hover,
.activo-card:hover,
.inventario-card:hover,
.informe-card:hover,
.dataset-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: #dee2e6;
    transform: translateY(-2px);
}

/* Headers de cards */
.compra-card .card-header,
.balance-card .card-header,
.periodo-header,
.estadistica-card .card-header,
.indice-card .card-header,
.memoria-card .card-header,
.revista-card .card-header,
.boletin-card .card-header,
.presupuesto-card .card-header,
.nomina-card .card-header,
.licitacion-card .card-header,
.comparacion-card .card-header,
.cuenta-card .card-header,
.ingreso-card .card-header,
.activo-card .card-header,
.inventario-card .card-header,
.informe-card .card-header,
.dataset-card .card-header {
    padding: 20px;
    background: linear-gradient(to right, #ffffff, #fafbfc);
    border-bottom: 1px solid #f1f3f5;
}

/* Bodies de cards */
.compra-card .card-body,
.balance-card .card-body,
.periodo-card .card-body,
.estadistica-card .card-body,
.indice-card .card-body,
.memoria-card .card-body,
.revista-card .card-body,
.boletin-card .card-body,
.presupuesto-card .card-body,
.nomina-card .card-body,
.licitacion-card .card-body,
.comparacion-card .card-body,
.cuenta-card .card-body,
.ingreso-card .card-body,
.activo-card .card-body,
.inventario-card .card-body,
.informe-card .card-body,
.dataset-card .card-body {
    padding: 20px;
    background-color: #fafbfc;
}

.revista-card {
    min-height: 250px;
}

.revista-imagen {
    height: 100%;
}

.revista-imagen a {
    display: block;
    height: 100%;
}

.revista-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* @media screen (max-width: 768px){
    .revista-card .col-md-4{
        
    }
} */

/* Mejora visual opcional */
.archivo-card {
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
}

.btn-pdf {
    background: #dc3545;
    color: var(--primary);
    border: none; 
    padding: 0 2rem !important;
}

.btn-pdf:hover {
    background: #bb2d3b;
    color: #fff;
}

/* =============================================
   BADGES
   ============================================= */
.badge.bg-primary {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    font-weight: 600;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    margin-right: .5rem;
}

.fecha-badge {
    display: inline-block;
    font-size: 13px;
    color: #6c757d;
    background-color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
}

.fecha-badge i {
    font-size: 12px;
}

.estado-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estado-abierto {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.estado-cerrado {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.estado-cancelado {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =============================================
   DOCUMENTOS Y ARCHIVOS - COMPONENTES REUTILIZABLES
   ============================================= */
.archivo-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* align-items: center; */
    padding: 12px 15px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.archivo-card:hover {
    background-color: #ffffff;
    border-color: #ced4da;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.archivo-card.archivo-secundario {
    background-color: #ffffff;
    border: 1px dashed #dee2e6;
}

.archivo-info {
    display: flex;
    /* align-items: center; */
    gap: 12px;
    flex: 1;
}

.archivo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.archivo-card:hover .archivo-icon {
    background-color: #e9ecef;
    transform: scale(1.05);
}

.archivo-icon i {
    font-size: 1.8rem;
    line-height: 1;
}

.archivo-meta {
    flex: 1;
}

.archivo-title {
    font-size: 14px;
    margin-bottom: 2px;
    color: #212529;
}

.archivo-info-adicional {
    color: #6c757d;
    font-size: 11px;
}

.archivo-acciones {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.archivo-acciones .btn {
    /* width: 34px; */
    height: 34px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    white-space: nowrap;      /* Evita que el texto salte a la siguiente línea */
    overflow: hidden;         /* Oculta el texto que sobresale */
    text-overflow: ellipsis;  /* Añade "..." al final si el texto es muy largo */
    max-width: 100%;          /* Asegura que el botón no supere su contenedor */
}

/* =============================================
   BOTONES OUTLINE ESPECÍFICOS
   ============================================= */
.btn-ver-outline,
.btn-descargar-outline {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.btn-ver-outline:hover,
.btn-descargar-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-descargar-excel-outline {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
    border: 1px solid #28a745;
    color: #28a745;
    text-decoration: none;
}

.btn-descargar-excel-outline:hover {
    background-color: #28a745;
    color: white;
}

/* =============================================
   DOCUMENTOS LISTA VERTICAL
   ============================================= */
.documentos-lista-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.documento-fila {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    /* border-bottom: 1px solid #f0f0f0; */
}

/* .documento-fila:last-child {
    border-bottom: none;
} */

.documento-icono {
    width: 32px;
    text-align: center;
}

.documento-icono i {
    font-size: 1.8rem;
}

.documento-contenido {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.documento-tipo {
    font-weight: 600;
    font-size: 14px;
    color: #212529;
    min-width: 45px;
}

.documento-meta {
    font-size: 13px;
    color: #6c757d;
}

/* =============================================
   EXCERPT CONTAINER
   ============================================= */
.excerpt-container {
    border-left: 4px solid #6c757d;
    background-color: #ffffff !important;
}

/* =============================================
   PAGINACIÓN - COMPONENTE ÚNICO
   ============================================= */
.pagination,
.pagination-custom {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-item .page-link,
.pagination-custom .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    color: #495057;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.page-item .page-link:hover,
.pagination-custom .page-item .page-link:hover {
    background-color: #e9ecef;
    color: var(--primary);
    border-color: #ced4da;
}

.page-item.active .page-link,
.pagination-custom .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-item.disabled .page-link,
.pagination-custom .page-item.disabled .page-link {
    color: #ced4da;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* =============================================
   MENSAJE SIN RESULTADOS
   ============================================= */
.mensaje-sin-resultados {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 60px 20px;
}

/* =============================================
   VARIABLES GLOBALES ADICIONALES
   ============================================= */
:root {
    --primary-color: var(--primary);
    --primary-rgb: 0, 54, 112;
}

/* =============================================
   UTILIDADES
   ============================================= */
.bg-primary-soft {
    background-color: rgba(0, 86, 179, 0.1);
}
.bg-success-soft {
    background-color: rgba(40, 167, 69, 0.1);
}
.bg-warning-soft {
    background-color: rgba(255, 193, 7, 0.1);
}
.bg-info-soft {
    background-color: rgba(23, 162, 184, 0.1);
}

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

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* =============================================
   ACCESIBILIDAD - NORTIC B2, Ley 5-13, NORDOM 826
   ============================================= */

/* Skip to content - enlace para saltar navegación */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Clase para elementos visualmente ocultos pero accesibles para lectores de pantalla */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* Contraste de colores - WCAG AA */
.seccion-legal {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Texto con contraste suficiente */
.text-muted {
    color: #6a737b !important; /* Contraste 4.5:1 sobre fondo blanco */
}

/* Focus visible para navegación por teclado */
a:focus,
button:focus,
.btn:focus,
[tabindex="-1"]:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    box-shadow: none;
}

/* No ocultar outline en elementos interactivos */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Botones con suficiente contraste */
.btn-pdf {
    /* background-color: var(--accent); */
    /* border: 1px solid var(--accent); */
    color: var(--primary);
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-pdf:hover,
.btn-pdf:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: white;
}

/* Documento legal - área clickeable con feedback visual */
.documento-legal-card a {
    transition: all 0.3s ease;
}

.documento-legal-card a:focus {
    background-color: var(--primary-light);
    border-radius: 4px;
}

/* .documento-grupo{
    background-color: #f3f3f3 !important;
} */

.documento-grupo .g-4{
    background: url('http://testtransparencia.local/wp-content/uploads/page/estructura.png') !important;
    background-size: 17rem !important;
    background-repeat: no-repeat !important;
    background-position: right bottom !important;
}

.documento-card-simple  {
    background: url('http://testtransparencia.local/wp-content/uploads/page/estructura.png') !important;
    background-size: 8rem !important;
    background-repeat: no-repeat !important;
    background-position: right bottom !important;
}

.documento-legal-card .card-body{
    background: url('http://testtransparencia.local/wp-content/uploads/page/estructura.png') !important;
    background-size: 8rem !important;
    background-repeat: no-repeat !important;
    background-position: right bottom !important;
}

.estadistica-card .card-body{
    background: url('http://testtransparencia.local/wp-content/uploads/page/estructura.png') !important;
    background-size: 17rem !important;
    background-repeat: no-repeat !important;
    background-position: right bottom !important;
}

/* Tamaños de fuente accesibles */
html {
    font-size: 16px; /* Base para rem */
}

body {
    font-size: 1rem;
    line-height: 1.5;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

.small {
    font-size: 0.875rem;
}

/* Mensajes de alerta accesibles */
.alert{
    width: 100%;
    display: flex;
    flex-wrap: wrap !important;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    justify-content: space-between;
}

.alert {
    border-radius: 8px;
    padding: 12px 20px;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #856404;
}

/* SKIP LINK */
.skip-link{
    position:absolute;
    left:-9999px;
}

.skip-link:focus{
    position:fixed;
    top:10px;
    left:10px;
    background:#000;
    color:#fff;
    padding:10px;
    z-index:9999;
    border-radius:6px;
}

/* FOCUS ACCESIBLE */
a:focus,
button:focus,
.btn:focus,
input:focus,
select:focus{
    outline:3px solid #005fcc;
    outline-offset:2px;
}

/* TEXTO SOLO PARA LECTORES */
.visually-hidden{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    border:0;
}

/* =============================================
   PLANTILLA BASE LEGAL - ESTILOS ESPECÍFICOS
   ============================================= */

.seccion-legal {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.seccion-legal:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #dee2e6;
}

.seccion-header {
    padding: 25px 25px 0 25px;
}

.d-flex{
    display: flex;
    flex-wrap: wrap;
}

.seccion-header .d-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seccion-icono {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.seccion-legal:hover .seccion-icono {
    transform: scale(1.05);
}

.seccion-icono i {
    font-size: 2rem;
}

.bg-primary.bg-opacity-10 {
    background-color: var(--primary-light) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.seccion-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.seccion-header .text-muted {
    font-size: 0.9rem;
    color: #6c757d !important;
}

.seccion-contenido {
    padding: 0 25px 25px 25px;
}

.documento-legal-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.documento-legal-card:hover {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 54, 112, 0.1);
    transform: translateX(5px);
}

.documento-legal-card .card-body {
    padding: 20px;
}

.documento-icono {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.documento-legal-card:hover .documento-icono {
    background-color: #ffffff;
    transform: scale(1.1);
}

.documento-icono i {
    font-size: 2rem;
    line-height: 1;
}

.documento-legal-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.documento-legal-card h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.documento-legal-card:hover h3 a {
    color: var(--primary-dark);
}

.documento-excerpt {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    max-width: 600px;
}

.documento-metadata {
    font-size: 0.8rem;
    color: #6c757d;
    padding-top: 8px;
    border-top: 1px dashed #dee2e6;
    margin-top: 8px;
}

.documento-metadata i {
    margin-right: 5px;
}

.documento-acciones {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    /* margin-left: 15px; */
}

.documento-acciones .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.documento-acciones .btn i {
    font-size: 1.2rem;
}

.documento-acciones .btn-outline-primary {
    border-color: #dee2e6;
    color: var(--primary);
}

.documento-acciones .btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.documento-acciones .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.documento-acciones .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.alert.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #856404;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert.alert-warning i {
    color: #856404;
}

.text-white-50{
    color:#8ea6b4 !important;
}

/* CONTENIDO INSTITUCIONAL */
.contenido-institucional ul{
    padding-left:1.5rem;
}

.contenido-institucional li{
    margin-bottom:10px;
    line-height:1.6;
}

.contenido-institucional li::marker{
    color:var(--primary);
    font-weight:bold;
}

/* =============================================
   PLANTILLA MARCO LEGAL - ESTILOS ESPECÍFICOS
   ============================================= */

.documento-acciones .btn-outline-success {
    border: 1px solid #dee2e6;
    color: #198754;
}

.documento-acciones .btn-outline-success:hover {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.documento-acciones .btn-success {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.documento-acciones .btn-success:hover {
    background-color: #146c43;
    border-color: #146c43;
}

.documento-acciones .btn-outline-warning {
    border: 1px solid #dee2e6;
    color: #ffc107;
}

.documento-acciones .btn-outline-warning:hover {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.documento-acciones .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.documento-acciones .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.documento-acciones .btn-outline-info {
    border: 1px solid #dee2e6;
    color: #0dcaf0;
}

.documento-acciones .btn-outline-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #212529;
}

.documento-acciones .btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #212529;
}

.documento-acciones .btn-info:hover {
    background-color: #0bacd0;
    border-color: #0bacd0;
}

/* =============================================
   PLANTILLA ESTADÍSTICAS OIA - ESTILOS ESPECÍFICOS
   ============================================= */

.estadisticas-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.estadistica-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.estadistica-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.estadistica-card .card-header {
    padding: 20px;
    background: linear-gradient(to right, #ffffff, #fafbfc);
    border-bottom: 1px solid #f1f3f5;
}

.estadistica-card .card-body {
    padding: 20px;
    background-color: #fafbfc;
}

/* =============================================
   TARJETAS DE ARCHIVO CON FRANJAS DE COLOR
   ============================================= */

.archivo-pdf {
    border-top-color: var(--accent) !important;
}

.archivo-excel {
    border-top-color: #28a745 !important;
}

.archivo-data-cruda {
    border-top-color: #ffc107 !important;
}

.archivo-pdf:hover {
    border-color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(220, 5, 45, 0.2) !important;
}

.archivo-excel:hover {
    border-color: #218838 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.archivo-data-cruda:hover {
    border-color: #e0a800;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

/* =============================================
   BOTONES DEL COLOR DE LA FRANJA
   ============================================= */

.archivo-pdf .btn[style*="background-color"] {
    background-color: var(--accent) !important;
}

.archivo-pdf .btn:hover {
    background-color: var(--accent-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 5, 45, 0.3);
    color: #fff !important;
}

.archivo-excel .btn[style*="background-color"] {
    background-color: #28a745 !important;
}

.archivo-excel .btn:hover {
    background-color: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.archivo-data-cruda .btn[style*="background-color"] {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.archivo-data-cruda .btn:hover {
    background-color: #e0a800 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.archivo-acciones .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* =============================================
   PLANTILLA RESPONSABLE OAI - ESTILOS ESPECÍFICOS
   ============================================= */

.responsable-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.responsable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 54, 112, 0.12);
}

.responsable-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.responsable-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    border: 3px solid rgba(255,255,255,0.3);
}

.responsable-nombre {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px;
    color: white;
}

.responsable-cargo {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 5px;
    opacity: 0.95;
}

.responsable-subcargo {
    font-size: 16px;
    opacity: 0.85;
    margin: 0;
}

.responsable-body {
    padding: 30px;
}

.responsable-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.responsable-info-item:last-child {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #212529;
    line-height: 1.5;
}

.info-value a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.responsable-footer {
    padding: 30px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.responsable-footer .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.responsable-footer .btn-primary {
    background: var(--primary);
    border: none;
    color: white;
}

.responsable-footer .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 54, 112, 0.3);
}

.responsable-footer .btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.responsable-footer .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 54, 112, 0.2);
}

/* =============================================
   PLANTILLA RESOLUCIÓN DE INFORMACIÓN CLASIFICADA
   ============================================= */

.resoluciones-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resolucion-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.resolucion-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.resolucion-card .card-header {
    padding: 20px;
    background: linear-gradient(to right, #ffffff, #fafbfc);
    border-bottom: 1px solid #f1f3f5;
}

.resolucion-card .card-body {
    padding: 20px;
    background-color: #fafbfc;
}

.clasificacion-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.clasificacion-confidencial {
    background-color: #6c757d;
    color: white;
}

.clasificacion-reservada {
    background-color: var(--accent);
    color: white;
}

.clasificacion-secreta {
    background-color: #212529;
    color: white;
}

.descripcion-container {
    border-left: 4px solid #6c757d;
    background-color: #ffffff !important;
    border-radius: 8px;
}

.descripcion-container p {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
}

/* =============================================
   ÍNDICE DE DOCUMENTOS - VERSIÓN SIMPLIFICADA
   ============================================= */

.indices-grid-simple {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.indice-card-simple {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.2s ease;
    overflow: hidden;
    padding: 15px;
}

.indice-card-simple:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 54, 112, 0.1);
}

.indice-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.indice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indice-icon i {
    font-size: 1.8rem;
}

.indice-details {
    flex: 1;
    min-width: 0;
}

.indice-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.indice-title-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.indice-title-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.indice-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.indice-size {
    display: inline-flex;
    align-items: center;
}

.indice-excerpt {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.indice-action {
    flex-shrink: 0;
    margin-left: 10px;
}

.btn-download-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: var(--primary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-download-simple:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 54, 112, 0.2);
}

.indice-disabled {
    opacity: 0.7;
}

.indice-disabled .indice-icon {
    background-color: #e9ecef;
    color: #6c757d;
}

/* =============================================
   BALANCE GENERAL - DISEÑO PROFESIONAL
   ============================================= */


.balances-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.balance-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.balance-card:hover {
    box-shadow: 0 10px 25px rgba(0, 54, 112, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.balance-card .card-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.balance-card .card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.balance-card .card-header h2 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.balance-card .card-header h2 a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* =============================================
   BALANCE GENERAL - BOTONES ESPECÍFICOS
   ============================================= */

.balance-card .archivo-acciones .btn-outline-primary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 80px;
}

.balance-card .archivo-acciones .btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.balance-card .archivo-acciones .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    width: 50px;
}

.balance-card .archivo-acciones .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.balance-card .archivo-acciones .btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
    width: 100%;
    min-width: 140px;
}

.balance-card .archivo-acciones .btn-success:hover {
    background: #218838;
    border-color: #218838;
}

/* =============================================
   ESTILOS PARA PRESUPUESTO
   ============================================= */

.documentos-lista-presupuesto {
    max-width: 1200px;
    margin: 0 auto;
}

.documento-grupo {
    background-color: #ffffff;
    border: 1px solid var(--gray-200) !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.documento-grupo:hover {
    box-shadow: 0 8px 20px rgba(0, 54, 112, 0.08);
    border-color: var(--primary) !important;
}

.documento-grupo h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.documento-grupo h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.documento-grupo h3 a:hover {
    color: var(--primary-dark);
}

.documento-fila {
    transition: all 0.3s ease;
    border: 1px solid transparent;
/*     background-color: var(--gray-100) !important; */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.documento-fila:hover {
    background-color: #ffffff !important;
    /* border-color: var(--primary) !important; */
    /* box-shadow: 0 4px 12px rgba(0, 54, 112, 0.08); */
    transform: translateX(5px);
}

.bi-file-pdf-fill {
    color: var(--accent) !important;
    font-size: 2rem;
}

.bi-file-excel-fill {
    color: #28a745 !important;
    font-size: 2rem;
}

.info-meta {
    display: flex;
    flex-direction: column;
}

.info-meta .fw-bold {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 2px;
}

.info-meta small {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* =============================================
   FILTROS CONTAINER - ESTILOS ESPECÍFICOS
   ============================================= */

.filtros-container .input-group-text {
    background-color: var(--primary-light);
    border: 1px solid var(--gray-200);
    border-right: none;
    color: var(--primary);
}

.filtros-container .form-select {
    border-left: none;
    border-color: var(--gray-200);
}

.filtros-container .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 54, 112, 0.1);
}

.input-group{
    display: flex;
    align-items: center;
}

.documento-acciones a{
    padding: 0 4rem !important;
}

/* =============================================
   TÍTULOS DE SECCIÓN
   ============================================= */

.documentos-section h2 {
    color: var(--primary);
    font-weight: 600;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.documentos-section h2 i {
    color: var(--primary);
}

/* =============================================
   RESPONSIVE GLOBAL
   ============================================= */

@media (max-width: 768px) {

    .documento-acciones a{
    width: 100%;
    }

    .revista-card .col-md-4, .boletin-card .col-md-4{
        margin-bottom: 1rem;
    }
    .col.md-6{
        display: contents !important;
    }
    .filtros-container {
        padding: 20px;
    }

    .estadistica-card .card-header{
        flex-direction: column;
    }
    
    .balance-card .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .archivo-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .archivo-info {
        width: 100%;
    }
    
    .archivo-acciones {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }
    
    .archivo-acciones .btn-outline-primary,
    .archivo-acciones .btn-primary,
    .archivo-acciones .btn-success {
        width: 100%;
    }
    
    .btn-pdf, .btn-excel {
        width: 100%;
    }
    
    .documento-grupo .row {
        flex-direction: column;
    }
    
    .documento-grupo .col-md-6 {
        width: 100%;
    }
    
    .documento-fila {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .documento-fila .d-flex.gap-2 {
        width: 100%;
        justify-content: flex-end;
    }
    
    .indice-content {
        flex-wrap: wrap;
    }
    
    .indice-icon {
        width: 40px;
        height: 40px;
    }
    
    .indice-icon i {
        font-size: 1.5rem;
    }
    
    .indice-title {
        font-size: 0.95rem;
    }
    
    .indice-excerpt {
        white-space: normal;
    }
    
    .indice-action {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
    
    .btn-download-simple {
        width: 100%;
        height: 36px;
    }
    
    .mensaje-sin-resultados {
        padding: 40px 20px;
    }
    
    .mensaje-sin-resultados i {
        font-size: 3rem !important;
    }
    
    .mensaje-sin-resultados h4 {
        font-size: 1.25rem;
    }
    
    .seccion-header {
        padding: 20px 20px 0 20px;
    }
    
    .seccion-contenido {
        padding: 0 20px 20px 20px;
    }
    
    .seccion-header .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .seccion-header h2 {
        font-size: 1.5rem;
    }
    
    .seccion-icono {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .seccion-icono i {
        font-size: 1.8rem;
    }
    
    .documento-legal-card .card-body .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .documento-legal-card .d-flex.align-items-start {
        flex-direction: column;
        width: 100%;
    }
    
    
    .documento-icono {
        width: 45px;
        height: 45px;
    }
    
    .documento-icono i {
        font-size: 1.6rem;
    }
    
    .documento-legal-card h3 {
        font-size: 1rem;
    }
    
    .resolucion-card .card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .clasificacion-badge {
        align-self: flex-start;
    }
    
    .descripcion-container {
        padding: 12px !important;
    }
    
    .descripcion-container p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .archivo-icon {
        width: 40px;
        height: 40px;
    }
    
    .archivo-icon i {
        font-size: 1.6rem;
    }
    
    .documento-fila .d-flex.align-items-center {
        width: 100%;
    }
    
    .documento-fila .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .documento-legal-card .d-flex.align-items-start .d-flex.align-items-start {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .documento-icono {
        width: 40px;
        height: 40px;
    }
    
    .documento-icono i {
        font-size: 1.4rem;
    }
    
    /* .documento-acciones {
        width: 100%;
        
       
    } */
    
    .documento-acciones .btn {
        flex: 1;
        width: auto;
        padding: 8px 12px;
    }

    .documento-acciones {
        width: 100%;
        display: flex;
        justify-content: flex-end;
         gap: 5px;
        margin-left: 0;
        margin-top: 15px;
    }
    
    .resolucion-card .card-header .d-flex.gap-2 {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .clasificacion-badge {
        width: 100%;
        justify-content: center;
    }
    
    .responsable-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .responsable-nombre {
        font-size: 20px;
    }
}

.responsable-footer a.btn.btn-primary{
    color: #fff !important;
}

a.btn-outline-primary:hover{
    color: #fff !important;
}

.hero-stats h3{
    font-size: 1rem;
    font-weight: bold;
   
}

.hero-stats{
     border-radius: 1rem; 
}

.btn-primary #servicios:hover{
    color: #fff !important;
}

span.stat-value{
    font-weight: bold;
    font-size: 3rem;
    color: var(--primary);
}

.servicio-icon i.bi{
    font-size: 3rem;
}

.btn{
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    margin: 4px;
    cursor: pointer;
    /* background-color: var(--primary); */
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.estadisticas-section{
    background-color: var(--primary) !important;
    color: #fff !important;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
}

.servicios-section{
    padding: 1rem;
}

.enlaces-section a.btn-light{
    background-color: #fff;
    color: var(--primary) !important;
}

/* =============================================
   PLANTILLA PRESUPUESTO - TARJETAS
   ============================================= */

.presupuesto-tarjeta {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.presupuesto-tarjeta:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #dee2e6;
}

.tarjeta-header {
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.tarjeta-icono {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tarjeta-icono i {
    font-size: 1.8rem;
}

.tarjeta-contenido {
    padding: 20px 25px;
}

/* Documentos lista */
.documentos-lista {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.documentos-lista::-webkit-scrollbar {
    width: 6px;
}

.documentos-lista::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.documentos-lista::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* Documento item */
.documento-item {
    transition: all 0.2s ease;
}

.documento-item:hover {
    background-color: #ffffff;
    margin-left: -5px;
    padding-left: 5px;
    border-radius: 8px;
}

/* Metadatos */
.documento-metadata-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

.documento-metadata-line .badge {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.documento-metadata-line .text-muted {
    font-size: 0.7rem;
}

.documento-metadata-line .mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

/* Título del documento */
.documento-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.documento-item h3 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.documento-item h3 a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Extracto */
.documento-excerpt {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #6a737b;
}


/* Responsive */
@media (max-width: 768px) {
    .archivo-acciones .t-100{
        width: 100% !important;
    }

    .tarjeta-header {
        padding: 20px;
    }
    
    .tarjeta-header .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .tarjeta-contenido {
        padding: 15px 20px;
    }
    
    .documento-item .d-flex {
        flex-direction: column;
    }
    
    .documento-item .ms-3 {
        margin-left: 0 !important;
        margin-top: 10px;
        align-self: flex-end;
    }
}

/* =============================================
   PLANTILLA COMPRAS Y CONTRATACIONES
   ============================================= */

.compras-grid {
    margin-top: 30px;
}

.compra-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.compra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.compra-card .card-header {
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.compra-card .card-header .d-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seccion-icono {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seccion-icono i {
    font-size: 1.6rem;
}

.compra-card .card-body {
    padding: 20px;
    background-color: #ffffff;
}

.compra-card .card-body p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.compra-card .btn {
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.compra-card .btn:hover {
    transform: translateY(-2px);
}

.compra-card .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.compra-card .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.compra-card .btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.compra-card .btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Badges de opacidad para fondos */
.bg-primary.bg-opacity-10 {
    background-color: rgba(0, 54, 112, 0.1) !important;
}

.bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-info.bg-opacity-10 {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-danger.bg-opacity-10 {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-secondary.bg-opacity-10 {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .compra-card .card-header .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .seccion-icono {
        width: 60px;
        height: 60px;
    }
    
    .seccion-icono i {
        font-size: 2rem;
    }
    
    .compra-card .card-body .btn {
        width: 100%;
    }
}

/* =============================================
   MENÚ MÓVIL - ESTILOS CORREGIDOS
   ============================================= */

/* =============================================
   PANEL DEL MENÚ LATERAL (DESLIZANTE)
   ============================================= */

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    overflow-x: hidden;
}

.side-menu.active {
    left: 0;
}

/* Cuando el menú está abierto, evitar scroll en body */
body.menu-open {
    overflow: hidden;
}

/* =============================================
   HEADER DEL MENÚ MÓVIL
   ============================================= */

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.side-menu-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.side-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.side-menu-close:hover {
    color: var(--accent);
    background-color: #f0f0f0;
}

/* =============================================
   CONTENIDO DEL MENÚ MÓVIL
   ============================================= */

.side-menu-content {
    padding: 15px;
}

/* =============================================
   SECCIÓN DEL MENÚ
   ============================================= */

.menu-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    padding: 10px 0 5px;
    margin-top: 10px;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-menu-title-toggle i.transition-icon {
    transition: transform 0.3s ease;
}

.side-menu-title-toggle[aria-expanded="true"] i.transition-icon {
    transform: rotate(180deg);
}

.menu-section-title:first-of-type {
    margin-top: 0;
}

/* =============================================
   LISTA DEL MENÚ
   ============================================= */

.side-menu-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.side-menu-list li {
    margin-bottom: 2px;
}

.side-menu-list li a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-left: 3px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.side-menu-list li a:hover {
    background-color: #f0f7ff;
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Enlace activo */
.side-menu-list li a.active-link {
    background-color: #e7f1ff;
    color: var(--primary);
    /* border-left-color: var(--accent); */
    font-weight: 600;
}

/* Item activo en li */
/* .side-menu-list li.active-menu-item > a {
    background-color: #e7f1ff;
    color: var(--primary);
    border-left-color: var(--accent);
    font-weight: 600;
} */

/* =============================================
   SUBMENÚS COLAPSABLES
   ============================================= */

.side-menu-list li .collapse {
    margin-top: 2px;
    margin-left: 15px;
}

.side-menu-list li .collapse ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.side-menu-list li .collapse ul li a {
    padding: 10px 15px 10px 30px;
    font-size: 13px;
}

.side-menu-list li .collapse ul li a:hover {
    background-color: #ffffff;
}

/* =============================================
   ICONOS DE COLAPSO
   ============================================= */

.side-menu-list li a i.ri-arrow-down-s-line {
    float: right;
    transition: transform 0.3s ease;
    font-size: 18px;
    margin-top: 2px;
}

.side-menu-list li a[aria-expanded="true"] i.ri-arrow-down-s-line {
    transform: rotate(180deg);
}

/* =============================================
   OVERLAY OSCURO
   ============================================= */

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
}

/* =============================================
   BOTÓN PARA ABRIR EL MENÚ MÓVIL
   ============================================= */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #ffffff;
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: inline-block;
    }
}

/* =============================================
   BARRA DE DESPLAZAMIENTO
   ============================================= */

.side-menu::-webkit-scrollbar {
    width: 4px;
}

.side-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.side-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.side-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* =============================================
   ANIMACIÓN DE ENTRADA
   ============================================= */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.side-menu.active .side-menu-content {
    animation: slideIn 0.2s ease forwards;
}

/* =============================================
   RESPONSIVE - VISIBILIDAD
   ============================================= */

@media (min-width: 768px) {
    .side-menu.d-md-none {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .side-menu.d-md-none {
        display: block;
    }
}

.h-100{
    border-radius: 1rem;
}

/* =============================================
   SERVICIOS - TARJETAS MODERNAS
   ============================================= */

/* .services-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.services-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,86,179,0.1);
    border-color: #0056b3;
}

.service-card a {
    display: block;
    padding: 30px 20px;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e7f1ff 0%, #d4e4ff 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
}

.service-icon i {
    font-size: 32px;
    color: #0056b3;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: #ffffff;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #002850;
    margin-bottom: 10px;
    text-align: center;
    transition: color 0.5s ease;
}

.service-card:hover .service-title{
    color: #c50b0b !important;
}
.service-card:hover .service-description {
    color: #ffffff;
}

.service-card:hover  .service-link{
    color: #ffffff !important;
}

.service-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 30px;
    color: var(--primary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card:hover .service-link {
    background-color: var(--primary);
    border-color: #0056b3;
    color: #ffffff;
}

.service-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(5px);
} */

/* Responsive */
/* @media (max-width: 992px) {
    .services-row {
        grid-template-columns: repeat(2, 1fr);
    }
} */

/* @media (max-width: 768px) {
    .services-row {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 28px;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .services-container {
        margin: 20px auto;
    }
} */

/* =============================================
   SUBASTA INVERSA - ESTILOS ESPECÍFICOS
   ============================================= */

/* Grid de subastas */
.subastas-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Proceso principal */
.proceso-principal {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.proceso-principal:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: #dee2e6;
}

/* Título del proceso */
.proceso-principal h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.proceso-principal h2 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.proceso-principal h2 a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Badge de fecha */
.fecha-badge {
    display: inline-block;
    font-size: 13px;
    color: #6c757d;
    background-color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
}

/* =============================================
   TARJETAS DE ARCHIVO
   ============================================= */

.archivo-card {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.archivo-card:hover {
    background-color: #ffffff;
    border-color: #ced4da;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.archivo-card.archivo-secundario {
    background-color: #ffffff;
    border: 1px dashed #dee2e6;
    padding: 15px;
}

.archivo-card.archivo-secundario:hover {
    background-color: #ffffff;
    border-color: #adb5bd;
}

/* Info del archivo */
.archivo-info {
    display: flex;
    /* align-items: center; */
    gap: 15px;
    flex: 1;
}

.archivo-icon {
    flex-shrink: 0;
}

.archivo-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.archivo-card.archivo-secundario .archivo-icon img {
    width: 40px;
    height: 40px;
}

.archivo-meta {
    flex: 1;
}

.archivo-title {
    font-size: 16px;
    margin-bottom: 4px;
    color: #212529;
}

.archivo-info-adicional {
    font-size: 12px;
    color: #6c757d;
}

/* Botón de descarga */
.archivo-descargar {
    flex-shrink: 0;
}

.btn-descargar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-descargar:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,54,112,0.2);
}

.btn-descargar.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-descargar i {
    font-size: 16px;
}

/* =============================================
   PROCESOS ASOCIADOS
   ============================================= */

.procesos-asociados {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.procesos-asociados h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.proceso-asociado {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}

.proceso-asociado:last-child {
    margin-bottom: 0;
}

.proceso-asociado p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

/* Documentos asociados */
.documentos-asociados {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Enlace externo */
.enlace-externo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.enlace-externo:hover {
    background-color: #ffffff;
    border-color: var(--primary);
}

.enlace-externo a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enlace-externo a i {
    font-size: 14px;
}

.enlace-externo a:hover {
    text-decoration: underline;
}

/* =============================================
   FILTRO POR AÑO
   ============================================= */

.filtro-year {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

.filtro-year form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filtro-year label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0;
}

.filtro-year select {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-year select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,54,112,0.1);
}

/* =============================================
   PAGINACIÓN
   ============================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination .page-item {
    list-style: none;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    color: var(--primary);
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: var(--primary-dark);
    border-color: #ced4da;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #ced4da;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* =============================================
   MENSAJE SIN RESULTADOS
   ============================================= */

.text-center.py-5 {
    text-align: center;
    padding: 40px 20px;
}

.text-center.py-5 i {
    color: #dee2e6;
}

.text-center.py-5 h4 {
    font-size: 1.25rem;
    color: #6c757d;
    margin: 15px 0 10px;
}

.text-center.py-5 p {
    color: #6c757d;
    margin-bottom: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .proceso-principal {
        padding: 20px;
    }
    
    .proceso-principal .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start !important;
    }
    
    .archivo-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .archivo-info {
        width: 100%;
    }
    
    .archivo-descargar {
        width: 100%;
    }
    
    .btn-descargar {
        width: 100%;
        text-align: center;
    }
    
    .filtro-year form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filtro-year select {
        width: 100%;
    }
    
    .enlace-externo a {
        font-size: 12px;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .archivo-icon img {
        width: 40px;
        height: 40px;
    }
    
    .archivo-title {
        font-size: 14px;
    }
    
    .btn-descargar {
        font-size: 13px;
        padding: 8px 15px;
    }
}

/* =============================================
   DATOS ABIERTOS - ESTILOS MODERNOS
   ============================================= */

/* Imagen destacada */
.datos-imagen {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.datos-imagen:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #dee2e6;
}

.datos-imagen img {
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease;
    display: inline-block;
}

.datos-imagen img:hover {
    transform: scale(1.02);
}

/* Sección de datasets */
.datasets-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.datasets-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.datasets-section h2 i {
    font-size: 1.6rem;
    vertical-align: middle;
}

/* Grid de datasets */
.datasets-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjeta de dataset */
.dataset-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--primary, #003670);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.dataset-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 54, 112, 0.1), 0 4px 6px -2px rgba(0, 54, 112, 0.05);
    border-color: #cbd5e1;
    border-left-color: var(--secondary, #dc052d);
}

.dataset-card .card-body {
    padding: 24px;
}

/* Título del dataset */
.dataset-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary, #003670);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dataset-card h3 i {
    font-size: 1.35rem;
}

/* Descripción */
.dataset-description {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Formatos */
.dataset-formats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.formats-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.formats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Badges de formato */
.format-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.format-badge:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.format-badge i {
    font-size: 1rem;
}

.format-badge small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
    margin-left: 4px;
    padding-left: 6px;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.format-badge:hover small {
    border-left-color: rgba(255, 255, 255, 0.3);
}

/* Formato XLSX */
.format-xlsx {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.format-xlsx:hover {
    background-color: #166534;
    color: #ffffff;
    border-color: #166534;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.2);
}

/* Formato ODS */
.format-ods {
    background-color: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.format-ods:hover {
    background-color: #9a3412;
    color: #ffffff;
    border-color: #9a3412;
    box-shadow: 0 4px 12px rgba(154, 52, 18, 0.2);
}

/* Formato CSV */
.format-csv {
    background-color: #f8fafc;
    color: #334155;
    border-color: #e2e8f0;
}

.format-csv:hover {
    background-color: #334155;
    color: #ffffff;
    border-color: #334155;
    box-shadow: 0 4px 12px rgba(51, 65, 85, 0.2);
}

/* =============================================
   PAGINACIÓN
   ============================================= */

.pagination-custom {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.pagination-custom .page-item {
    list-style: none;
}

.pagination-custom .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    color: var(--primary);
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination-custom .page-link:hover {
    background-color: #e9ecef;
    color: var(--primary-dark);
    border-color: #ced4da;
    transform: translateY(-2px);
}

.pagination-custom .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination-custom .page-item.disabled .page-link {
    color: #ced4da;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* =============================================
   MENSAJE 404
   ============================================= */

.error-404 {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 60px 20px;
    margin: 40px 0;
    text-align: center;
}

.error-404 i {
    color: #dee2e6;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 1.75rem;
    color: #6c757d;
    margin-bottom: 15px;
    border-bottom: none;
}

.error-404 p {
    color: #6c757d;
}

.error-404 .btn-primary {
    background-color: var(--primary);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-404 .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,54,112,0.2);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .datos-imagen {
        padding: 15px;
    }
    
    .datos-imagen img {
        max-width: 200px;
    }
    
    .datasets-section {
        padding: 20px;
    }
    
    .datasets-section h2 {
        font-size: 1.3rem;
    }
    
    .dataset-card .card-body {
        padding: 15px;
    }
    
    .dataset-card h3 {
        font-size: 1rem;
    }
    
    .dataset-description {
        font-size: 0.85rem;
    }
    
    .dataset-formats {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .formats-list {
        width: 100%;
    }
    
    .format-badge {
        flex: 1;
        justify-content: center;
    }
    
    .pagination-custom .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .format-badge {
        width: 100%;
        justify-content: center;
    }
    
    .error-404 {
        padding: 40px 20px;
    }
    
    .error-404 h2 {
        font-size: 1.5rem;
    }
}

.stamp-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.stamp-box {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
div.certifications {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
@media (max-width: 768px) {
    div.certifications {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .stamp-container {
        justify-content: center;
    }
}
/* Estilo acordeón estilo Bootstrap 5 para Bootstrap 4 */

/* Contenedor del botón del acordeón */
.accordion-button {
  background-color: #ffffff; /* gris claro */
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  padding: 1rem 1.25rem;
  width: 100%;
  text-align: left;
  font-weight: 400;
  font-size: 1rem;
  color: #212529;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  outline: none;
}

/* Flecha desplegable (caret) */
.accordion-button::after {
  content: "";
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 11.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1rem;
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease-in-out;
  transform-origin: center;
}

/* Flecha rotada cuando el acordeón está abierto */
.accordion-button.collapsed::after {
  transform: rotate(0deg);
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

/* Hover y focus */
.accordion-button:hover,
.accordion-button:focus {
  background-color: #e2e6ea;
  border-color: #b3bfc7;
  text-decoration: none;
}

/* Contenedor del contenido desplegado */
.accordion-collapse {
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 0.375rem 0.375rem;
  overflow: hidden;
}

/* Padding del cuerpo del acordeón */
.accordion-body {
  padding: 1rem 1.25rem;
  background-color: white;
  color: #212529;
  font-size: 1rem;
  line-height: 1.5;
}

.documentos-container{
    display: flex;
    justify-content: space-around;
}

/* =============================================
   BALANCE GENERAL - DOCUMENTOS EN COLUMNAS
   ============================================= */

.balances-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjeta de Balance */
.balance-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.balance-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-color: #dee2e6;
    transform: translateY(-2px);
}

/* Header de la tarjeta */
.balance-card .card-header {
    padding: 20px;
    background: linear-gradient(to right, #ffffff, #fafbfc);
    border-bottom: 1px solid #f1f3f5;
}

.balance-card .card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.balance-card .card-header h2 a {
    color: var(--primary);
    text-decoration: none;
}

.balance-card .card-header h2 a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Badge */
.badge.bg-primary {
    background-color: #e7f1ff !important;
    color: #0056b3 !important;
    font-weight: 500;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
}

/* Cuerpo de la tarjeta */
.balance-card .card-body {
    padding: 20px;
    background-color: #fafbfc;
}

/* Archivo card */
.archivo-card {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.archivo-card:hover {
    background-color: #ffffff;
    border-color: #ced4da;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);
}

.archivo-card.archivo-secundario {
    background-color: #ffffff;
    border: 1px dashed #dee2e6;
}

.archivo-card.archivo-secundario:hover {
    background-color: #ffffff;
    border-color: #adb5bd;
}

/* Archivo vacío */
.archivo-card-empty {
    background-color: #ffffff;
    border: 1px dashed #dee2e6;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

/* Info del archivo */
.archivo-info {
    display: flex;
    /* align-items: center; */
    gap: 15px;
    flex: 1;
}

.archivo-icon {
    flex-shrink: 0;
}

.archivo-icon i {
    font-size: 2rem;
}

.archivo-meta {
    flex: 1;
}

.archivo-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: #212529;
    word-break: break-word;
}

.archivo-info-adicional {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Acciones */
.archivo-acciones {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.archivo-acciones .btn {
    height: 36px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.archivo-acciones .btn-sm {
    width: 36px;
    padding: 0;
}

/* Botón Excel */
.btn-success {
    background-color: #28a745;
    border: none;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-success.w-100 {
    width: 100%;
}

/* Botones PDF */
.btn-outline-primary {
    border: 1px solid #dee2e6;
    color: var(--primary);
    /* background: transparent; */
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .balance-card .card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .row.g-3 {
        flex-direction: column;
    }
    
    .col-md-6 {
        width: 100%;
    }
    
    .archivo-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .archivo-info {
        width: 100%;
    }
    
    .archivo-acciones {
        width: 100%;
        justify-content: flex-end;
    }
    
    .btn-success.w-100 {
        width: 100%;
    }
}

.funcionario-card {
    background: #fff;
    transition: all 0.25s ease;
}

.funcionario-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.funcionario-card h5 {
    font-size: 1rem;
    font-weight: 600;
}

.funcionario-card .btn {
    font-size: 0.85rem;
}

/* Contenedor general */
.services-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid de filas y tarjetas */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.services-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Tarjeta de servicio */
.service-card {
    flex: 1 1 calc(33.333% - 1.33rem);
    background-color: #002850;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Hover tarjeta */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Enlace completo */
.service-card a {
    color: #6c757d;
    text-decoration: none;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 19rem;
}

/* Icono de servicio */
.service-icon {
    height: 5rem;
    width: 5rem;
    background-color: #e9ecef;
    border-radius: 50%;
    font-size: 3rem; /* Iconos más grandes */
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--primary);
}

/* Icono al hacer hover en la tarjeta */
.service-card:hover .service-icon {
    transform: scale(1.2);
    color: #0056b3;
}

/* Título de servicio */
.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* Título al hover */
.service-card:hover .service-title {
    color: #003670;
}

/* Descripción de servicio */
.service-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1rem;
}


/* Link “Ver más” */
.service-link {
    background-color: #ffffff;
    border-radius: 1.5rem;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    justify-content: center;
}

/* Hover del link */
.service-card:hover .service-link {
    color: #0056b3;
    /* text-decoration: underline; */
}

/* Responsivo */
@media (max-width: 992px) {
    .service-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .service-card {
        flex: 1 1 100%;
    }
}

/* Contenedor de enlaces largos */
.enlace-externo a,
.archivo-card a.archivo-link {
    word-break: break-word; /* Rompe palabras largas para que no se salgan */
    overflow-wrap: anywhere; /* Compatibilidad moderna */
    display: inline-block;  /* Para que el ancho se limite al contenedor */
}

/* Opcional: limita el ancho máximo del enlace al contenedor padre */
.enlace-externo,
.archivo-card {
    max-width: 100%;
}

/* Añadir padding y borde si quieres que se vea dentro de la tarjeta */
.enlace-externo a {
    display: block;
    padding: 0.5rem;
}

/* =============================================
   PÁGINA 404 - ERROR NO ENCONTRADO
   ============================================= */

.error-404-page {
    padding: 60px 0 80px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Icono de error */
.error-icon {
    font-size: 5rem;
    color: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Código de error */
.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 4px 4px 12px rgba(0,54,112,0.1);
}

/* Título */
.error-title {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
}

/* Descripción */
.error-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Botones de acción */
.error-actions .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-actions .btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.error-actions .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,54,112,0.2);
}

.error-actions .btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.error-actions .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-3px);
}

/* Buscador */
.error-search {
    max-width: 500px;
    margin: 0 auto;
}

.error-search .input-group {
    gap: 10px;
}

.error-search .form-control {
    border-radius: 50px;
    border: 1px solid #dee2e6;
    padding: 12px 20px;
    font-size: 1rem;
}

.error-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,54,112,0.1);
}

.error-search .btn {
    border-radius: 50px;
    padding: 12px 25px;
    background-color: var(--primary);
    border-color: var(--primary);
}

.error-search .btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Enlaces útiles */
.error-links {
    max-width: 600px;
    margin: 0 auto;
}

.error-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #212529;
}

.error-link-card:hover {
    background-color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    color: var(--primary);
}

.error-link-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.error-link-card span {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .error-404-page {
        padding: 40px 0 60px;
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-actions .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .error-search .form-control,
    .error-search .btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
    
    .error-link-card {
        padding: 12px 15px;
    }
    
    .error-link-card i {
        font-size: 1.2rem;
    }
}

.stat-item{
    color: #6c757d;
    /* font-size: 30px; */
    font-weight: bold;
}

/* =============================================
   ESTILOS PREMIUM - MENÚ MÓVIL INSTITUCIONAL (REPLICA EXACTA CAPTURA 2)
   ============================================= */

.side-menu {
    background-color: #ffffff !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.08) !important;
    border-left: 1px solid #eef2f6 !important;
    border-right: none !important;
    width: 300px !important;
    left: -330px !important; /* Totalmente oculto por defecto */
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
    z-index: 9999 !important;
}

.side-menu.active {
    left: 0 !important;
}

.side-menu-header {
    background: #ffffff !important;
    color: #003670 !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.side-menu-title {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    color: #003670 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.side-menu-close {
    background: none !important;
    border: none !important;
    color: #595959 !important;
    font-size: 28px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.side-menu-content {
    padding: 15px 0 !important; /* Quitar padding horizontal para que el active background ocupe todo el ancho */
}

/* Elementos del menú */
.menu-section {
    border-bottom: none !important;
    padding: 0 !important;
}

/* Botón o título de sección de primer nivel */
.menu-section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 24px !important;
    color: #595959 !important; /* Color neutro */
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-transform: none !important; /* Sentence Case */
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background-color: transparent !important;
    border-right: 4px solid transparent !important;
}

.menu-section-title i {
    font-size: 1.1rem !important;
    color: #595959 !important;
}

.menu-section-title span {
    flex: 1;
    margin-left: 10px !important;
}

/* Iconos colapsables */
.menu-section-title .menu-sec-arrow {
    font-size: 1rem !important;
    transition: transform 0.2s ease !important;
}

/* Estilos de activo para primer nivel */
.menu-section-title.active-link,
.menu-section-title:hover {
    color: #003670 !important;
    background-color: rgba(0, 54, 112, 0.05) !important;
}

.menu-section-title.active-link {
    font-weight: 700 !important;
    border-right: 4px solid #003670 !important;
}

/* Submenús */
.side-menu-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background-color: #fcfdfe !important;
}

.side-menu-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.side-menu-list li a {
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #595959 !important;
    padding: 12px 24px 12px 40px !important; /* Sangría a la izquierda */
    text-decoration: none !important;
    display: block !important;
    transition: all 0.2s ease !important;
    border-right: 4px solid transparent !important;
}

.side-menu-list li a:hover {
    color: #003670 !important;
    background-color: rgba(0, 54, 112, 0.03) !important;
}

.side-menu-list li a.active-link,
.side-menu-list li.active-menu-item > a {
    color: #003670 !important;
    background-color: rgba(0, 54, 112, 0.05) !important;
    font-weight: 700 !important;
    border-right: 4px solid #003670 !important;
}

/* =============================================
   BARRA DE BÚSQUEDA INTERACTIVA EN MÓVIL
   ============================================= */
@media screen and (max-width: 767px) {
    .header-light .topbar-right .search-bar {
        position: relative;
        display: flex;
        align-items: center;
        margin-left: 14px;
        margin-right: 14px;
    }
    
    .search-bar .search-bar-toggle {
        cursor: pointer;
        font-size: 20px !important;
        color: #ffffff !important; /* Icono blanco */
        margin: 0 !important;
        width: 44px !important;
        height: 44px !important;
        background-color: #dc052d !important; /* Círculo rojo */
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
    }
    
    .search-bar .search-bar-toggle i {
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }
    
    #searchMain {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        width: 0 !important;
        opacity: 0;
        visibility: hidden !important;
        background-color: #f8fafc;
        border: 1px solid #dee2e6;
        border-radius: 20px;
        padding: 6px 12px;
        font-size: 0.85rem;
        transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 100;
    }
    
    .search-bar.active #searchMain {
        width: 180px !important;
        opacity: 1;
        visibility: visible !important;
    }
    
    /* Ocultar el botón submit nativo del buscador en móvil para no encimar */
    .search-bar button[type="submit"] {
        display: none !important;
    }
}

/* =============================================
   ESTILOS DE OCULTACIÓN PARA GOOGLE TRANSLATE (PREMIUM INTEGRATION)
   ============================================= */
.skiptranslate, 
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}
body {
    top: 0 !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* =============================================
   ESTILOS PREMIUM HOVER DROPDOWN SELECTOR
   ============================================= */
.lang-select {
    position: relative !important;
    display: inline-block !important;
}

.lang-select:hover .dropdown-list {
    display: block !important;
}

.lang-select .dropdown-list {
    display: none;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    background-color: #ffffff !important;
    min-width: 100px !important;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1) !important;
    z-index: 99999 !important;
    border-radius: 4px !important;
    border: 1px solid #eef2f6 !important;
    padding: 5px 0 !important;
    margin-top: 5px !important;
}

.lang-select .dropdown-list a {
    color: #595959 !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease !important;
}

.lang-select .dropdown-list a:hover {
    background-color: #f1f5f9 !important;
    color: #003670 !important;
}

.lang-select .dropdown-list a img {
    height: 12px !important;
    width: auto !important;
}

/* =============================================
   ACCORDION MENU TRANSPARENCIA MÓVIL (CAPTURA)
   ============================================= */
.mobile-transparencia-menu-accordion {
    border: 1px solid #e2ebf5 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background-color: #f0f4f8 !important; /* Celeste muy suave */
    border-right: 4px solid #003670 !important; /* Línea azul a la derecha como la captura */
}

.btn-transparencia-toggle {
    background-color: #f0f4f8 !important;
    color: #003670 !important;
    border: none !important;
    padding: 16px 20px !important;
    font-family: 'Poppins', 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    text-align: left !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.btn-transparencia-toggle:hover,
.btn-transparencia-toggle:focus {
    background-color: #e2ebf5 !important;
}

.btn-transparencia-toggle .transition-icon {
    font-size: 1.35rem !important;
    color: #003670 !important;
    transition: transform 0.2s ease !important;
}

.btn-transparencia-toggle[aria-expanded="true"] .transition-icon {
    transform: rotate(180deg) !important;
}

.mobile-transparencia-menu-content {
    background-color: #ffffff !important;
    padding: 10px 0 !important;
    border-top: 1px solid #eef2f6 !important;
}

.mobile-transparencia-menu-content .side-menu-list {
    margin: 0 !important;
    padding: 0 !important;
    border-left: none !important;
}

.mobile-transparencia-menu-content .side-menu-list li a {
    padding: 12px 24px !important;
    border-right: none !important;
}

.mobile-transparencia-menu-content .side-menu-list li a.active-link,
.mobile-transparencia-menu-content .side-menu-list li.active-menu-item > a {
    border-right: 4px solid #003670 !important;
    background-color: rgba(0, 54, 112, 0.05) !important;
}


.list-submenu .group-submenu ul li {
    padding: 0 !important;
}

.hamburger-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger-menu .ri-menu-line {
  font-size: 28px;
  line-height: 1;
  color: #4a4a4a;
}

/* Imágenes del contenido de la página: nunca más anchas que la columna */
main[role="main"] img {
  max-width: 100% !important;
  height: auto !important;
}
main[role="main"] .alignwide,
main[role="main"] .alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===== Azul institucional sobre Bootstrap (14-10-2026) ===== */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 .2rem rgba(0, 54, 112, .5) !important;
}
.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  color: #fff !important;
}
.btn-link,
.text-primary {
  color: var(--primary) !important;
}
.btn-link:hover {
  color: var(--primary-dark) !important;
}
.border-primary { border-color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

:root { --primary: #003670 !important; }

/* Documentos: fila a todo el ancho (ícono + datos a la izquierda, botones a la derecha) */
.row > [class*="col-"]:has(> .archivo-card) {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}
.archivo-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px !important;
}
.archivo-card .archivo-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 280px;
  margin: 0 !important;
}
.archivo-card .archivo-acciones {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0 !important;
}
.archivo-card .archivo-acciones .btn {
  width: auto !important;
  white-space: nowrap;
}

/* Botones de documentos: ícono y texto centrados en ambos ejes */
.btn-pdf,
.btn-excel {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  line-height: 1.2 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.btn-pdf i,
.btn-excel i {
  line-height: 1;
  margin: 0 !important;
}

/* Menú lateral (escritorio): abrir submenús al pasar el mouse */
@media (hover: hover) and (min-width: 768px) {
  .desktop-menu li:hover > .collapse,
  .desktop-menu li:hover > .collapse > ul {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
  }
  .desktop-menu li:hover > a .ri-arrow-down-s-line {
    transform: rotate(180deg);
    transition: transform .2s;
  }
}

/* =============================================
   REVISTAS, BOLETINES Y MEMORIAS: tarjeta compacta
   ============================================= */
.revista-card, .boletin-card, .memoria-card { min-height: 0 !important; margin-bottom: 1rem !important; }

/* Portada pequeña a la izquierda (también en móvil) */
.revista-card > .row, .boletin-card > .row, .memoria-card > .row { flex-wrap: nowrap !important; margin: 0 !important; }
.revista-card > .row > [class*="col-md-"],
.boletin-card > .row > [class*="col-md-"],
.memoria-card > .row > [class*="col-md-"] { padding: 0 !important; }
.revista-card > .row > .col-md-4,
.boletin-card > .row > .col-md-4,
.memoria-card > .row > .col-md-4 { flex: 0 0 130px !important; max-width: 130px !important; }
.revista-card > .row > .col-md-8,
.boletin-card > .row > .col-md-8,
.memoria-card > .row > .col-md-8 { flex: 1 1 0 !important; max-width: none !important; min-width: 0; }
.revista-card > .row > .col-md-4,
.boletin-card > .row > .col-md-4,
.memoria-card > .row > .col-md-4 { position: relative; min-height: 0; background-color: #f1f3f5; }
.revista-card > .row > .col-md-4 > a,
.boletin-card > .row > .col-md-4 > a,
.memoria-card > .row > .col-md-4 > a { position: static; display: block; }
.revista-card > .row > .col-md-4 img,
.boletin-card > .row > .col-md-4 img,
.memoria-card > .row > .col-md-4 img {
  position: static !important; display: block;
  width: 100% !important; height: auto !important; aspect-ratio: 3 / 4;
  max-width: none !important; max-height: none !important; min-height: 0 !important;
  object-fit: cover !important; object-position: top !important; border-radius: 0 !important;
}
/* Quita el margen inferior que una regla vieja le ponía a la portada en pantallas pequeñas */
.revista-card > .row > .col-md-4,
.boletin-card > .row > .col-md-4,
.memoria-card > .row > .col-md-4 { margin-bottom: 0 !important; overflow: hidden; }
@media (max-width: 575.98px) {
  .revista-card > .row > .col-md-4,
  .boletin-card > .row > .col-md-4,
  .memoria-card > .row > .col-md-4 { flex-basis: 90px !important; max-width: 90px !important; }
  .revista-card > .row > .col-md-4, .boletin-card > .row > .col-md-4, .memoria-card > .row > .col-md-4 { min-height: 0; }
}

/* La columna de texto como bloque normal: el flex en columna calculaba un alto
   de más (como si los botones bajaran de línea) y dejaba espacio vacío abajo */
@media (min-width: 576px) {
.revista-card > .row > .col-md-8 > .p-3,
.boletin-card > .row > .col-md-8 > .p-3,
.memoria-card > .row > .col-md-8 > .p-3,
.revista-card > .row > .col-md-12 > .p-3,
.boletin-card > .row > .col-md-12 > .p-3,
.memoria-card > .row > .col-md-12 > .p-3 { display: block !important; height: auto !important; }
}

/* Texto y espacios más ajustados */
.revista-card .p-3, .boletin-card .p-3, .memoria-card .p-3 { padding: 12px 16px !important; }
.revista-card h2, .boletin-card h2, .memoria-card h2 { font-size: 1.15rem !important; margin-bottom: 4px !important; }
.revista-card header, .boletin-card header, .memoria-card header { margin-bottom: 8px !important; }
.revista-card h3, .boletin-card h3, .memoria-card h3 { font-size: .85rem !important; margin-bottom: 6px !important; }

/* Caja del documento: icono pequeño y botones en una sola línea */
.revista-card .border.p-2, .boletin-card .border.p-2, .memoria-card .border.p-2 {
  flex-direction: row !important; flex-wrap: wrap; align-items: center !important;
  gap: 8px 16px; padding: 8px 12px !important; border-radius: 8px;
}
.revista-card .border.p-2 > .d-flex:first-child,
.boletin-card .border.p-2 > .d-flex:first-child,
.memoria-card .border.p-2 > .d-flex:first-child { flex: 1 1 200px; gap: 10px !important; font-size: .9rem; }
.revista-card .border.p-2 i[style*="font-size"],
.boletin-card .border.p-2 i[style*="font-size"],
.memoria-card .border.p-2 i[style*="font-size"] { font-size: 1.5rem !important; }
.revista-card .border.p-2 > .d-flex:last-child,
.boletin-card .border.p-2 > .d-flex:last-child,
.memoria-card .border.p-2 > .d-flex:last-child { flex-direction: row !important; gap: 8px !important; }
.revista-card .btn, .boletin-card .btn, .memoria-card .btn {
  width: auto !important; padding: 5px 14px !important;
  font-size: .8rem !important; margin: 0 !important; white-space: nowrap;
}

/* =============================================
   AZUL INSTITUCIONAL en contenido (enlaces e iconos)
   Una hoja externa (_text-emphasis) fuerza #007bff; "body" le gana.
   ============================================= */
body .text-primary { color: var(--primary) !important; }
body main a:not(.btn):not(.page-link) { color: var(--primary) !important; }
body main a:not(.btn):not(.page-link):hover,
body main a:not(.btn):not(.page-link):focus { color: var(--primary-dark) !important; }
/* =============================================
   REVISTAS, BOLETINES Y MEMORIAS: celular
   Portada pequeña al lado del título; documento y botones abajo a todo el ancho
   ============================================= */
@media (max-width: 575.98px) {
  .revista-card > .row, .boletin-card > .row, .memoria-card > .row {
    display: grid !important; grid-template-columns: 76px 1fr; column-gap: 12px;
    padding: 12px !important; align-items: center;
  }
  .revista-card > .row > .col-md-8, .boletin-card > .row > .col-md-8, .memoria-card > .row > .col-md-8,
  .revista-card > .row > .col-md-8 > div, .boletin-card > .row > .col-md-8 > div, .memoria-card > .row > .col-md-8 > div,
  .revista-card > .row > .col-md-12, .boletin-card > .row > .col-md-12, .memoria-card > .row > .col-md-12,
  .revista-card > .row > .col-md-12 > div, .boletin-card > .row > .col-md-12 > div, .memoria-card > .row > .col-md-12 > div {
    display: contents !important;
  }
  /* Portada con su proporción normal */
  .revista-card > .row > .col-md-4, .boletin-card > .row > .col-md-4, .memoria-card > .row > .col-md-4 {
    grid-column: 1; grid-row: 1; position: static; min-height: 0 !important;
    max-width: none !important; width: auto !important; border-radius: 6px;
    background-color: transparent !important; overflow: hidden;
  }
  .revista-card > .row > .col-md-4 > a, .boletin-card > .row > .col-md-4 > a, .memoria-card > .row > .col-md-4 > a { position: static; }
  .revista-card > .row > .col-md-4 img, .boletin-card > .row > .col-md-4 img, .memoria-card > .row > .col-md-4 img {
    position: static !important; height: auto !important; aspect-ratio: 3 / 4;
  }
  /* Título y fecha al lado de la portada */
  .revista-card header, .boletin-card header, .memoria-card header { grid-column: 2; grid-row: 1; margin: 0 !important; }
  /* Resumen y documentos debajo, a todo el ancho */
  .revista-card > .row > [class*="col-md-"] > div > :not(header),
  .boletin-card > .row > [class*="col-md-"] > div > :not(header),
  .memoria-card > .row > [class*="col-md-"] > div > :not(header) { grid-column: 1 / -1; margin-top: 12px !important; margin-bottom: 0 !important; }
  /* Caja del documento: icono + nombre en una fila, botones en otra */
  .revista-card .border.p-2, .boletin-card .border.p-2, .memoria-card .border.p-2 { flex-direction: column !important; align-items: stretch !important; }
  .revista-card .border.p-2 > .d-flex:first-child,
  .boletin-card .border.p-2 > .d-flex:first-child,
  .memoria-card .border.p-2 > .d-flex:first-child { flex: none !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; }
  .revista-card .border.p-2 > .d-flex:last-child,
  .boletin-card .border.p-2 > .d-flex:last-child,
  .memoria-card .border.p-2 > .d-flex:last-child { flex-wrap: nowrap !important; }
  .revista-card .border.p-2 .btn, .boletin-card .border.p-2 .btn, .memoria-card .border.p-2 .btn { flex: 1 1 0 !important; justify-content: center; }
}


/* =============================================
   CONTRASTE ACCESIBLE (NORTIC A2 7.01(i) / WCAG 1.4.3 / BUG-A2-004)
   - Texto gris #6c757d solo sobre fondo blanco (4.69:1).
   - Enlaces e iconos en azul institucional (11.9:1).
   - Badges/textos grises claros (#adb5bd) pasan a #6c757d.
   Cubre también clases de Bootstrap que vienen del CDN.
   ============================================= */
/* "html body" sube la especificidad: le gana a Bootstrap aunque su CSS cargue después (ej. en el footer) */
html body .bg-light { background-color: #ffffff !important; }
html body .text-muted { color: #6c757d !important; }
html body .breadcrumbs .path a { color: var(--primary) !important; }
html body .badge.bg-secondary, html body .badge.bg-light, html body .badge-secondary, html body .badge-light {
    background-color: #ffffff !important; color: #6c757d !important; border: 1px solid #ced4da;
}

/* Filas de proceso de las plantillas de Compras: su <style> interno usa fondo
   #f8f9fa con texto gris #6c757d (4.44:1). Fondo blanco + borde fino (4.69:1). */
.menores-proceso, .urgencias-proceso, .comparaciones-proceso, .emergencia-proceso,
.excepcion-proceso, .licitaciones-proceso, .restringidas-proceso, .mipymes-proceso,
.subasta-proceso {
    background: #ffffff !important;
    border: 1px solid #e3e6ea !important;
}

/* Otras páginas con fondo #f8f9fa en su <style> interno y texto gris encima */
body .extensiones-card,                                /* Contactos */
body .estadistica-card .card-header,                   /* Estadísticas trimestrales */
body .contact-box,                                     /* Política de privacidad */
body .faq-search-wrap input.form-control,              /* Preguntas frecuentes: buscador */
body .faq-search-wrap .btn-clear,
body .no-results-feedback {
    background: #ffffff !important;
}
body .extensiones-card,
body .contact-box,
body .no-results-feedback {
    border: 1px solid #e3e6ea !important;
}

/* =============================================
   MENÚ LATERAL: SUBÍTEMS
   - Fondo gris muy claro, del mismo ancho que el ítem principal, sin espacio
   - Al pasar el mouse: fondo un poco más oscuro y línea azul a la derecha
   - Mismo color y tamaño de letra que los ítems principales, sin negrita
   - Los ítems principales no se tocan (solo pierden la negrita)
   ============================================= */
html body .desktop-menu li .collapse,
html body #menu_derecha_m li .collapse,
html body .desktop-menu li .collapsing,
html body #menu_derecha_m li .collapsing {
    margin: 0 !important;
}
html body .desktop-menu li .collapse ul,
html body #menu_derecha_m li .collapse ul,
html body .desktop-menu li .collapse ul li,
html body #menu_derecha_m li .collapse ul li {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}
/* Normal */
html body .desktop-menu li .collapse ul li a,
html body #menu_derecha_m li .collapse ul li a {
    display: block;
    width: 100%;
    margin: 0 !important;
    background: #fafafa !important;
    padding-left: 32px !important;
    border: 0 !important;
    border-right: 4px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: background-color .15s ease;
}
/* Página activa */
html body .desktop-menu li .collapse ul li a.active-link,
html body #menu_derecha_m li .collapse ul li a.active-link {
    background: #f1f1f1 !important;
    border-right: 4px solid #003670 !important;
}
/* Mouse encima o foco con teclado */
html body .desktop-menu li .collapse ul li a:hover,
html body #menu_derecha_m li .collapse ul li a:hover,
html body .desktop-menu li .collapse ul li a:focus,
html body #menu_derecha_m li .collapse ul li a:focus {
    background: #ececec !important;
    border-right: 4px solid #003670 !important;
}
/* Letra: en el enlace y en todo lo que tiene dentro */
html body .desktop-menu li .collapse ul li a,
html body .desktop-menu li .collapse ul li a *,
html body #menu_derecha_m li .collapse ul li a,
html body #menu_derecha_m li .collapse ul li a * {
    color: #595959 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* Sin negrita en el ítem principal activo o abierto */
html body .desktop-menu li a.active-link,
html body #menu_derecha_m li a.active-link,
html body .desktop-menu li a.active-parent,
html body #menu_derecha_m li a.active-parent {
    font-weight: 400 !important;
}