/* ============================================================================
   CENTRO DE INVESTIGACIÓN TRASLACIONAL (CIT) - HOJA DE ESTILOS
   Archivo: styles.css
   Descripción: Estilos principales del sitio web
   ============================================================================ */

/* ============================================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   ============================================================================ */
:root {
    /* Paleta de Colores */
    --primary-color: #005f73;      /* Azul Petróleo - Científico */
    --secondary-color: #0a9396;    /* Turquesa - Innovación */
    --accent-color: #ee9b00;       /* Naranja suave - Calidez humana */
    
    /* Fondos y Textos */
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --text-color: #333;
    --white: #ffffff;
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Animaciones */
    --transition: all 0.3s ease;
}

/* ============================================================================
   2. RESET Y ESTILOS BASE
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================================
   3. UTILIDADES Y CLASES DE AYUDA
   ============================================================================ */
.section-padding {
    padding: 40px 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); color: var(--white); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* Encabezados de sección */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header .line {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto;
}

.section-header .line.bg-white { background: var(--white); }

/* Texto destacado */
.lead-text {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Enlaces "Leer más" */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.read-more-link:hover {
    color: var(--primary-color);
    gap: 12px;
}

/* ============================================================================
   4. COMPONENTES REUTILIZABLES
   ============================================================================ */

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1ebc57;
}

/* --- Tarjetas Genéricas --- */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* --- Listas con iconos --- */
.feature-list li,
.program-requirements li,
.div-list li,
.check-list li {
    margin: 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list i,
.program-requirements i,
.div-list i {
    color: var(--secondary-color);
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* ============================================================================
   5. NAVEGACIÓN Y HEADER
   ============================================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.logo span {
    font-weight: 300;
    font-size: 0.9rem;
    display: block;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-nav:hover {
    background: var(--secondary-color);
}

/* Menú móvil - Burger */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: var(--transition);
}

/* ============================================================================
   6. SECCIONES PRINCIPALES (Index)
   ============================================================================ */

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-color: #005f73; /* Respaldo */
    /* RUTA LOCAL: El ../ sale de la carpeta css/ y entra a la carpeta img/ */
    background: url('../img/hero-pediatria.jpg') no-repeat center center/cover;
    
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente ajustado para que el texto sea perfectamente legible sobre la nueva imagen */
    background: linear-gradient(135deg, rgba(0, 95, 115, 0.85), rgba(10, 147, 150, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sutil sombra para mejor lectura */
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Para que se adapte bien en móviles */
}
/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Cards Grid (Líneas de Investigación Preview) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- Divulgación Preview (Index) --- */
.divulgacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.div-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
    text-align: center;
}

.div-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.div-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.div-card h3 {
    color: var(--primary-color);
    margin: 15px 0;
    font-size: 1.3rem;
}

.div-card > p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.div-list {
    text-align: left;
    margin: 20px 0;
}

/* Social Preview Icons */
.social-preview {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon.facebook { background: #1877F2; }
.social-icon.twitter { background: #1DA1F2; }
.social-icon.linkedin { background: #0A66C2; }
.social-icon.youtube { background: #FF0000; }

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- CTA Section --- */
.cta-section {
    background: var(--dark-bg);
    color: var(--white);
}

/* ============================================================================
   7. PÁGINAS INTERNAS - ESTILOS ESPECÍFICOS
   ============================================================================ */

/* --- Page Header (Común para páginas internas) --- */
.page-header {
    padding: 100px 0 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 40px;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 3rem;
}

/* --- Nosotros: Misión/Visión --- */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary-color);
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* --- Vinculación: Programas Académicos --- */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.program-card.featured {
    border-top: 4px solid var(--accent-color);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.program-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.program-requirements {
    margin-top: 20px;
}

/* Steps Container (Proceso de aplicación) */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* --- Directorio: Tabs y Tarjetas --- */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: grid;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tarjetas Compactas Verticales (Directorio) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    justify-items: center;
}

.team-member-card.compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: var(--transition);
    border: 1px solid transparent;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}

.team-member-card.compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.member-photo {
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.member-photo img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    transition: var(--transition);
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f9ff 100%);
}

.team-member-card.compact:hover .member-photo img {
    border-color: var(--primary-color);
    transform: scale(1.03);
}

.member-name {
    margin-bottom: 10px;
    width: 100%;
}

.member-name h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
}

.member-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 5px;
}

.member-role {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.btn-view-profile {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    width: 100%;
    max-width: 200px;
}

.btn-view-profile:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.02);
}

/* --- Modal (Perfil de miembro) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal.is-open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-header-section {
    display: flex;
    gap: 25px;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--light-bg);
    margin-bottom: 25px;
}

.modal-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    flex-shrink: 0;
}

.modal-header-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.modal-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-group h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-group h4 i {
    color: var(--secondary-color);
}

.credentials-list,
.research-lines {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credentials-list li,
.research-lines li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.credentials-list li::before,
.research-lines li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.detail-group a {
    color: var(--secondary-color);
    font-weight: 600;
}

.detail-group a:hover {
    color: var(--primary-color);
}

/* Scrollbar para modal */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

/* --- Investigación: Líneas y Acordeón --- */
.lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.line-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid #eee;
}

.line-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Acordeón para protocolos */
.accordion-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background: #f9f9f9;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
    padding: 20px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* --- Divulgación: Educación y Publicaciones --- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.edu-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--white);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.social-btn.facebook { background: #1877F2; }
.social-btn.twitter { background: #1DA1F2; }
.social-btn.linkedin { background: #0A66C2; }
.social-btn.youtube { background: #FF0000; }

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.link-list {
    margin-top: 20px;
}

.link-list li {
    margin: 15px 0;
}

.link-list a {
    color: var(--primary-color);
}

.link-list a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.view-all {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* Publicaciones */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.publication-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.pub-year {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

.pub-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pub-authors, .pub-journal {
    color: #666;
    font-size: 0.95rem;
    margin: 5px 0;
}

.pub-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-link:hover {
    color: var(--primary-color);
}

/* --- Contacto --- */
.welcome-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.opp-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.opp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.opp-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.opp-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Formulario de Contacto */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form h3, .contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
}

/* Info de contacto lateral */
.contact-info {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.contact-info .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    min-width: 30px;
}

.contact-info .info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-info .info-item p {
    color: #666;
    font-size: 0.95rem;
}

.map-container {
    margin-top: 30px;
}

/* ============================================================================
   8. FOOTER
   ============================================================================ */
footer {
    background: var(--dark-bg);
    color: #aaa;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col h3,
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* ============================================================================
   9. ANIMACIONES
   ============================================================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================================================
   10. MEDIA QUERIES - RESPONSIVE
   ============================================================================ */

/* Tablet y móvil (max-width: 992px) */
@media screen and (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Tablet (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Navegación móvil */
    .nav-links {
        position: absolute;
        right: 0;
        top: 80px;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        width: 60%;
        max-width: 300px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        padding-top: 40px;
        gap: 20px;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(30px); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* Hero */
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }

    /* Grids */
    .about-grid,
    .mv-grid,
    .publication-item {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .pub-year {
        align-self: flex-start;
    }

    /* Directorio */
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
    }

    .member-photo img {
        width: 100px;
        height: 100px;
    }

    .member-name h3 {
        font-size: 1rem;
        min-height: 3em;
    }

    /* Divulgación Preview */
    .divulgacion-grid {
        grid-template-columns: 1fr;
    }
}

/* Móvil pequeño (max-width: 480px) */
@media screen and (max-width: 480px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .team-member-card.compact {
        padding: 20px 15px;
    }

    .modal-content {
        padding: 25px 20px;
        width: 95%;
    }

    .modal-header-section {
        flex-direction: column;
        text-align: center;
    }
}


/* ============================================================================
   ESTILOS PARA PÁGINA DE DIVULGACIÓN (VERSIÓN INSTAGRAM + PRÓXIMAMENTE)
   ============================================================================ */

/* Sección Highlight de Instagram */
.instagram-highlight {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.instagram-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.3);
}

.instagram-icon-wrapper i {
    font-size: 3.5rem;
    color: var(--white);
}

.instagram-highlight h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
}

.btn-instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.4);
    color: var(--white);
}

/* Grid de Próximamente */
.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.coming-soon-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed #ddd; /* Borde punteado para indicar "en construcción" */
    transition: var(--transition);
    opacity: 0.8;
}

.coming-soon-card:hover {
    opacity: 1;
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.cs-icon {
    font-size: 2.5rem;
    color: #aaa; /* Color atenuado para indicar que no está activo aún */
    margin-bottom: 20px;
}

.coming-soon-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.coming-soon-card p {
    color: #777;
    font-size: 0.95rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .instagram-highlight h2 {
        font-size: 1.7rem;
    }
    
    .btn-instagram {
        width: 100%;
        justify-content: center;
    }
}