/* ==========================================================================
   LAYOUT - Contenedores y Grid system
   ========================================================================== */

/* === CONTENEDOR PRINCIPAL (Original para index.html) === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* === CONTENEDOR ESPECÍFICO PORTAL (Garantiza 3 columnas) === */
.container-portal {
    max-width: 1600px;
    /* Aumentado a 1600px (aprox +5%) */
    margin: 0 auto;
    padding: 0 var(--space-8);
    width: 100%;
}

/* === SECCIONES === */
.section-padding {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.careers-grid,
.sedes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

/* === GRID DE DOCUMENTOS === */
.docs-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
    padding: var(--space-4) 0;
}

/* === LAYOUT DE CARRERA (Sidebar + Content) === */
.career-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* Cuando está en container-portal (full width), sidebar más amplio */
.container-portal .career-layout-grid {
    grid-template-columns: 380px 1fr;
}

/* === APP SHELL (Para panel admin si se usa) === */
.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background-color: var(--slate-50);
}

/* === ESPACIO ENTRE TÍTULO Y GRID === */
.section-header-flex {
    display: flex;
    justify-content: flex-start;
    /* Movido a la izquierda cerca del título */
    align-items: center;
    gap: var(--space-6);
    /* Separación normal/cómoda */
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
}

.section-header-flex .section-title {
    margin-bottom: 0;
    /* Quitamos el margen inferior porque ahora el contenedor maneja el espacio */
}

/* Ajuste específico para el botón del header */
.section-header-flex .btn-cargos-sede {
    flex: none;
    /* Evitar que crezca */
    width: auto;
    font-size: 0.8rem;
    padding: var(--space-2) var(--space-4);
}

/* === ESPACIO ENTRE TÍTULO Y GRID === */
.section-title {
    margin-bottom: var(--space-10);
    /* Espacio entre "Sedes Institucionales" y las cards */
}

/* === BACKGROUND BLOBS (Premium Visual Depth) === */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: blob-float 25s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -10%;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, rgba(5, 150, 105, 0) 70%);
    animation-delay: -5s;
    animation-duration: 30s;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* === TIPOGRAFÍA Y JERARQUÍA VISUAL === */
h1, h2, h3, h4, h5, h6, 
.section-title, 
.column-header, 
.card-title {
    font-weight: 700;
}
.section-title {
    font-weight: 800; /* Extra bold para separar secciones temáticas */
}