/* base_structure.css - MANTENIENDO TU ESTRUCTURA ORIGINAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Alineación rápida (Utility classes) */
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.text-center { text-align: center !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.me-3 { margin-right: 1rem !important; }

/* 1. TOP BAR (Corregida) */
.top-bar {
    padding: 10px 0;
    font-size: 0.85rem;
}

/* 2. NAVEGACIÓN (Original intacta + selector nav-list) */
.main-nav {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; /* Agregado para que no se pierda al scrollear */
    top: 0;
    z-index: 1000;
}

.main-nav ul {
    display: flex; 
    list-style: none; 
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    color: inherit;
}

/* 3. HERO SECTION */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 20px;
}

/* 4. STATS BAR */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background: #fff;
    padding: 30px;
    margin: -60px auto 0 auto; /* Centrado forzado */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 5;
    max-width: 1100px;
}

.stat-item { padding: 15px; text-align: center; }

/* 5. GRILLA DE SERVICIOS */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.card {
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s;
}

.card i { font-size: 3rem; display: block; margin-bottom: 20px; }

/* 6. BOTONES */
.btn-primary {
    padding: 15px 35px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    border: none;
}

/* 7. FOOTER */
.main-footer {
    padding: 60px 0;
    background: #222;
    color: #fff;
    text-align: center;
}

/* ==========================================================
   AGREGADO PARA EL MENÚ MÓVIL (Sin alterar lo de arriba)
   ========================================================== */

/* Botón hamburguesa oculto por defecto */
.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Solo aparece en celulares */
    }

    /* Modificamos el comportamiento del UL solo en móviles */
    .main-nav ul {
        display: none; /* Se oculta */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: inherit; /* Toma el color del nav (blanco o negro según tpl) */
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
        gap: 15px;
    }

    /* Clase que activa el JS */
    .main-nav ul.active {
        display: flex;
    }

    /* Ajuste de stats en móvil para que no se deforme */
    .stats-bar {
        margin-top: 20px;
        flex-direction: column;
    }
}





        @media (max-width: 768px) {
            .nav-list { display: none; flex-direction: column; width: 100%; background: inherit; padding: 20px 0; }
            .nav-list.active { display: flex; }
            .mobile-menu-btn { display: block !important; }
        }
        .mobile-menu-btn { display: none; cursor: pointer; font-size: 1.5rem; }
        .grid-publications { display: flex; overflow-x: auto; gap: 20px; padding: 20px 0; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
        .grid-publications::-webkit-scrollbar { height: 6px; }
        .grid-publications::-webkit-scrollbar-thumb { background: #c5a059; border-radius: 10px; }
        .pub-card { min-width: 320px; flex: 0 0 auto; scroll-snap-align: start; }
        .team-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; }
        .lightbox-modal { display:none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 10000; align-items: center; justify-content: center; padding: 20px; }
        .lightbox-content { background: #111; color: #fff; max-width: 700px; width: 100%; max-height: 85vh; overflow-y: auto; padding: 40px; position: relative; border: 1px solid #c5a059; }
  