/* ==========================================================
   ESTILOS GLOBALES - CMS PERSONALIZADO (TRANSPARENCIA & BUILDER)
   ========================================================== */

:root {
    --color-romano: var(--v30-acento, #0d6efd);
    --color-normal: #b8860b;
    --fondo-romano: #f4f8fb;
    --fondo-normal: #fdfaf2;
    --border-radius: 8px;
    --shadow-soft: 0 2px 4px rgba(0,0,0,0.08);
}

.main-container-full {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* SIN SEPARACIÓN BAJO EL HEADER (2026-11-09, franja blanca):
   Estas dos reglas eran del header FIJO (position:fixed, fuera del
   flujo): el contenido necesitaba 25px de padding + 10px de margen
   para no quedar tapado bajo el header. Pero el header ahora es
   STICKY (o relative): queda DENTRO del flujo y ya ocupa su sitio,
   así que esa separación sobra y se ve como una franja clara de 10px
   (el fondo #ededed del body) entre el header y el primer bloque de
   cada página (en Inicio, entre el header y el carrusel). El <main>
   ya lleva p-0 + padding-top:0 en línea, por eso solo se veían 10px
   y no 25px+10px. Con el header en el flujo, el primer bloque va
   pegado al header: padding y margen superior en 0. */
main {
    padding-top: 0 !important;
}

main > div > *:first-child {
    margin-top: 0 !important;
}

.header-premium {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid var(--color-romano);
}

.header-title h2 { 
    margin: 0; 
    font-size: 1.3rem; 
    color: #1a202c; 
    text-transform: uppercase; 
}

.romano-txt { color: var(--color-romano); font-weight: 800; }
.normal-txt { color: var(--color-normal); font-weight: 800; }

.search-box {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #e2e8f0;
    width: 300px;
    outline: none;
}

/* TARJETAS DE FRACCIONES (GLOBAL) */
.fraccion-card, .fraccion-cardX, .fraccion-cardXX {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 8px;
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.fraccion-trigger {
    display: flex;
    align-items: stretch;
    cursor: pointer;
    min-height: 48px;
    transition: background 0.2s;
}

.fraccion-trigger:hover { background: #fcfcfc; }

.num-box {
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.box-rom { background: var(--fondo-romano); color: var(--color-romano); border-right: 1px solid #e2e8f0; }
.box-nor { background: var(--fondo-normal); color: var(--color-normal); border-right: 1px solid #e2e8f0; }

.texto-principal {
    flex: 1;
    padding: 10px 18px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.45;
    display: flex;
    align-items: center;
    text-align: left;
}

.flecha-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

/* ==========================================================
   PANELES Y TRANSICIONES GLOBALES (ACORDEONES)
   ========================================================== */
.content-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    background: #fff;
}

.item-activo .content-panel {
    max-height: 3000px;
    border-top: 1px solid #e2e8f0;
}

.area-interna {
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
    transition: padding 0.18s ease;
}

.item-activo .area-interna {
    padding: 30px;
}

.item-activo .flecha-icon {
    transform: rotate(180deg);
    color: var(--color-romano);
}

/* ACORDEÓN INTERNO UNIFORME (MESES / TRIMESTRES) */
.card-mes-item {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
}

.btn-mes-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8fafc;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    cursor: pointer;
}

.btn-mes-trigger:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

.mes-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chev-icon {
    transition: transform 0.3s ease;
}

.card-mes-item .body-mes-pdfs {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #fff;
    border-top: 0px solid #e2e8f0;
}

.card-mes-item.item-activo .body-mes-pdfs {
    max-height: 1000px;
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
}

.card-mes-item.item-activo .chev-icon {
    transform: rotate(180deg);
}

.body-mes-pdfs ul {
    margin: 0;
    padding-left: 20px;
}

.body-mes-pdfs li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .header-premium { flex-direction: column; gap: 15px; }
    .search-box { width: 100%; }
    .num-box { width: 50px; font-size: 0.8rem; }
}

/* ==========================================================
   ESTANDARIZACIÓN DE ICONOS INSTITUCIONALES (FONTAWESOME)
   ========================================================== */
.widget-card .icon-box i,
.wb-trim-file-card i,
.wb-trim-file-card summary i {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.ui-file-node i.fas,
.ui-folder-node summary i.fas {
    font-size: 14px;
    margin-right: 6px;
}

.fa-file-pdf { color: #ef4444 !important; }
.fa-file-excel { color: #10b981 !important; }
.fa-file-word { color: #3b82f6 !important; }
.fa-file-alt { color: #64748b !important; }
.fa-folder, .fa-folder-open { color: #f59e0b !important; }