/* =========================================================================
   1. ESTILOS GENERALES Y DE FONDO
   ========================================================================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: url('../images/arbol-vibrante.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
.container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: transparent; 
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}
main.container { margin-top: 2rem; }
a { color: #2E8B57; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================================================
   2. HEADER Y NAVEGACIÓN PRINCIPAL
   ========================================================================= */
.site-header {
    background-color: rgba(0, 70, 0, 0.9);
    padding: 1rem 1.5rem;
}
.header-container { max-width: 1300px; margin: 0 auto; }
.main-nav-bar { display: flex; justify-content: space-between; align-items: center; }
.header-container h1 { margin: 0; font-size: 2.2rem; color: white; }
.nav-list ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.nav-list a { text-decoration: none; color: white; font-weight: bold; font-size: 1.1rem; transition: color 0.2s ease; padding-bottom: 5px; }
.nav-list a:hover { color: #90EE90; }
.nav-list a.active { color: #90EE90; border-bottom: 2px solid #90EE90; }

/* =========================================================================
   3. SUBMENÚ INTEGRADO EN EL HEADER
   ========================================================================= */
.sub-menu-header {
    background-color: transparent;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}
.sub-menu-header ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; }
.sub-menu-header li { margin: 0; }
.sub-menu-header a {
    display: block;
    padding: 8px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    border: 2px solid #a7c957;
    border-radius: 25px;
    transition: background-color: 0.3s ease, border-color: 0.3s ease, color: 0.3s ease;
}
.sub-menu-header a:hover,
.sub-menu-header a.active {
    background-color: #a7c957;
    border-color: #a7c957;
    color: #386641;
}

/* =========================================================================
   4. DISEÑO DE TRES COLUMNAS (PÁGINA PRINCIPAL)
   ========================================================================= */
.main-content-grid { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 2rem; 
    align-items: flex-start;
    padding: 1.5rem; 
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px; 
}
.column { 
    flex: 1; 
    min-width: 300px; 
}

.quotes-column blockquote { 
    margin: 0 0 1.5rem 0; 
    padding: 0;
    border: none;
    font-style: italic; 
    text-align: right;
    background: none;
    box-shadow: none;
}
.quotes-column blockquote p {
    margin: 0;
}
.quotes-column blockquote:last-child {
    margin-bottom: 0;
}
.quotes-column small { 
    display: block; 
    margin-top: 0.25rem; 
    font-style: normal; 
    font-weight: bold; 
    color: #555;
}
.data-column h1 { 
    font-size: 2.5rem; 
    margin-top: 0;
    margin-bottom: 1rem; 
    color: #006400; 
    text-align: left; 
}
.data-column p { margin: 0.5rem 0; line-height: 1.6; }
.data-column strong { display: block; margin-top: 1rem; font-size: 1.1rem; color: #006400; text-align: left; }

/* --- ESTILOS PARA LAS NUEVAS SECCIONES DE LA PÁGINA DE INICIO --- */
.blenders-section-home {
    text-align: center;
    margin-top: 2rem;
}
.blenders-button {
    display: inline-block;
    padding: 10px 25px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    background-color: #c00000;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color: 0.3s ease, transform: 0.3s ease;
}
.blenders-button:hover {
    background-color: #900000;
    transform: scale(1.05);
    text-decoration: none;
    color: #fff;
}

.recent-pubs-section {
    margin-top: 2rem;
    border-top: 1px solid #ccc;
    padding-top: 1.5rem;
}
.recent-pubs-section h4 {
    margin: 0 0 1rem 0;
    color: #006400;
    font-size: 1.2rem;
}
.recent-pubs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.recent-pubs-list li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    text-align: left; 
}
.recent-pubs-list a {
    color: #333;
    font-weight: bold;
}
.recent-pubs-list span {
    color: #555;
    margin-left: 0.5rem;
}
.view-all-link {
    display: block;
    margin-top: 1.5rem;
    font-weight: bold;
    text-align: right;
}

/* =========================================================================
   5. IMAGEN ESTÁTICA
   ========================================================================= */
.carousel-column { 
    flex: 2; /* <-- AJUSTADO */
    display: flex;
    flex-direction: column;
    justify-content: center; /* <-- AJUSTADO */
    align-items: center; 
}
.static-image-container { 
    width: 100%;
    height: auto;
    margin: 0 auto; 
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
}
.static-image-container img { 
    width: 100%; 
    height: auto;
    display: block; 
    object-fit: cover;
}

/* =========================================================================
   6. CONTENIDO GENERAL (PARA OTRAS PÁGINAS)
   ========================================================================= */
.content-section { padding: 2rem; background-color: rgba(255, 255, 255, 0.9); border-radius: 8px; }
.content-section h2 { color: #006400; border-bottom: 2px solid #2E8B57; padding-bottom: 10px; }

/* =========================================================================
   7. FOOTER CON PATRÓN VOLPI
   ========================================================================= */
.site-footer {
    background: 
        linear-gradient(rgba(0, 50, 0, 0.90), rgba(0, 50, 0, 0.90)),
        url('../images/volpi-pattern.png');
    color: #FFFFFF;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-weight: bold;
}
.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.footer-separator {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.4);
}
.footer-text p {
    margin: 0;
    font-size: 0.9rem;
}
.footer-logos img {
    height: 45px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1) grayscale(1);
}
.footer-logos a:hover img {
    opacity: 1;
}

/* =========================================================================
   8. ESTILOS PARA LAS SECCIONES DE RESEARCH
   ========================================================================= */
.research-section { 
    padding-top: 2rem; 
    margin-top: -2rem; 
}
.research-section h3 { color: #2E8B57; font-size: 1.8rem; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; margin-bottom: 1.5rem; }

/* =========================================================================
   9. BANNER DECORATIVO VOLPI (PÁGINAS SECUNDARIAS)
   ========================================================================= */
.page-banner {
    height: 40px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    background: 
        linear-gradient(rgba(0, 70, 0, 0.80), rgba(0, 70, 0, 0.80)),
        url('../images/volpi-pattern.png');
    background-repeat: repeat;
    background-position: center center;
}
.page-banner-clear {
    background-image: url('../images/volpi-pattern.png');
    border: none;
    background-size: 200px;
}

/* =========================================================================
   10. ESTILOS PARA LA LISTA DE PUBLICACIONES (NUMERADA)
   ========================================================================= */
.publication-list { list-style: none; padding-left: 0; }
.publication-list li { counter-increment: publications-counter -1; margin-bottom: 1.2rem; position: relative; line-height: 1.8; display: flex; align-items: baseline; }
.publication-list li::before { content: counter(publications-counter) ")"; font-size: 1.2rem; font-weight: bold; color: #006400; min-width: 2.5rem; padding-right: 0.5rem; text-align: left; }
.publication-list .pub-title { color: #333; }
.publication-list .pub-journal { color: #555; font-style: italic; }
.publication-list .pub-title-link { text-decoration: none; }
.publication-list .pub-title-link:hover { text-decoration: underline; }
.pdf-link {
    color: #8B0000;
    font-weight: bold;
    margin-left: 0.5rem;
}

/* =========================================================================
   11. ESTILOS PARA LA LISTA DE LIBROS (VIÑETAS DE TRIÁNGULO)
   ========================================================================= */
.book-list { list-style: none; padding-left: 0; }
.book-list li { padding-left: 20px; position: relative; margin-bottom: 1.5rem; line-height: 1.7; }
.book-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #006400; }
.book-list .book-title { color: #333; font-weight: bold; }
.book-list .book-title-link { text-decoration: none; color: #333; }
.book-list .book-title-link:hover { text-decoration: underline; }
.book-list .book-authors { font-style: italic; }
.book-list .book-source { color: #555; }

/* =========================================================================
   12. ESTILOS PARA PÁGINA DE COMITÉS EDITORIALES
   ========================================================================= */
.journal-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
    padding: 0;
    margin: 2rem 0 0 0;
    list-style: none;
}
.journal-entry { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem;
}
.journal-cover { 
    flex: 0 0 120px;
    width: 120px; 
}
.journal-cover img { 
    width: 100%; 
    height: auto; 
    display: block; 
    border: 1px solid #ddd; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    transition: transform 0.25s ease;
}
.journal-cover a:hover img {
    transform: scale(1.05);
}
.journal-info { 
    flex: 1; 
}
.journal-info h3 { 
    font-size: 1.1rem; 
    margin: 0 0 0.5rem 0; 
}
.journal-info h3 a { 
    color: #006400; 
    text-decoration: none; 
}
.journal-info h3 a:hover { 
    text-decoration: underline; 
}
.journal-years { 
    font-size: 0.95rem; 
    color: #555; 
    margin: 0; 
}

/* =========================================================================
   13. FAJA DE EVENTOS (HOMEPAGE)
   ========================================================================= */
.events-strip {
    padding: 2rem 1rem;
    margin-top: 2rem;
    background-color: rgba(230, 240, 230, 0.7);
    border-top: 1px solid rgba(0, 70, 0, 0.2);
    border-bottom: 1px solid rgba(0, 70, 0, 0.2);
}
.events-logos {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}
.event-logo-link {
    flex-shrink: 1;
    padding: 0 1rem;
}
.event-logo-link img {
    max-height: 90px; 
    width: auto;
    max-width: 100%;
    opacity: 0.85;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.event-logo-link:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* =========================================================================
   14. FAJA DE INSTITUCIONES (HOMEPAGE)
   ========================================================================= */
.institutions-strip {
    padding: 2rem 1rem;
    background-color: rgba(230, 240, 230, 0.7);
    border-bottom: 1px solid rgba(0, 70, 0, 0.2);
}
.institutions-logos {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.institution-logo-link {
    text-align: center;
}
.institution-logo-link img {
    height: 80px;
    width: auto;
    opacity: 0.85;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.institution-logo-link:hover img {
    transform: scale(1.1);
    opacity: 1;
}
.sbm-logo img {
    height: 110px; 
}
.twas-logo img {
    height: 90px;
}

/* =========================================================================
   15. PÁGINA DE SUPERVISIÓN
   ========================================================================= */
.supervisor-section { margin-bottom: 3rem; }
.supervisor-section h3 { color: #2E8B57; font-size: 1.8rem; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; margin-bottom: 1.5rem; }
.supervisor-section h4 { color: #006400; font-size: 1.3rem; margin-top: 2rem; margin-bottom: 1rem; }
.alumni-list, .alumni-list-simple { list-style: none; padding-left: 0; }
.alumni-list li { padding-left: 20px; position: relative; margin-bottom: 1rem; line-height: 1.6; }
.alumni-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid #a7c957; }
.alumni-list-simple li { line-height: 1.7; }

/* =========================================================================
   16. PÁGINA DE CHARLAS (TALKS)
   ========================================================================= */
.talks-section {
    padding-top: 2rem;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
}
.talks-section h3 {
    font-size: 1.6rem;
    color: #006400;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}
.talk-icon {
    margin-right: 0.5rem;
}
.talk-list {
    list-style-type: square;
    padding-left: 25px;
    margin: 0;
}
.talk-list li {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.talk-item-date {
    font-weight: bold;
}
.talk-item-event {
    margin: 0;
}
.talk-item-event a {
    font-weight: bold;
}
.talk-item-title {
    margin-top: 0.25rem;
}
.slides-link {
    margin-left: 0.5rem;
    font-weight: bold;
}

/* =========================================================================
   17. ESTILOS PARA CELULARES (RESPONSIVE)
   ========================================================================= */
@media (max-width: 768px) {
    /* --- AJUSTES GENERALES --- */
    .container, .main-content-grid {
        padding: 1rem;
    }
    .header-container h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    .content-section h2 {
        font-size: 1.6rem;
    }
    .research-section h3, .supervisor-section h3, .talks-section h3 {
        font-size: 1.4rem;
    }

    /* --- MENÚ DE NAVEGACIÓN --- */
    .main-nav-bar {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-list ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .nav-list a.active {
        border-bottom: none;
    }
    .sub-menu-header ul {
        gap: 10px;
    }
    .sub-menu-header a {
        padding: 6px 12px;
        font-size: 0.9em;
    }


    /* --- COLUMNAS DE PÁGINA PRINCIPAL --- */
    .main-content-grid {
        flex-direction: column;
    }

    /* --- FAJA DE EVENTOS --- */
    .events-logos, .institutions-logos {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .event-logo-link img, .institution-logo-link img {
        max-height: 50px;
    }

    /* --- PÁGINA DE COMITÉS EDITORIALES --- */
    .journal-list {
        grid-template-columns: 1fr;
    }
    .journal-entry {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    /* --- PÁGINA DE PUBLICACIONES --- */
    .publication-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .publication-list li::before {
        margin-bottom: 0.5rem;
    }
}