@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-primary: #4d848a;
    --color-oliva: #588048;
    --color-musgo: #99ae67;
    --color-verde-oscuro: #293426;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 56px; /* Same as body padding-top */
}

body {
    padding-top: 56px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

body {
    font-family: 'Montserrat', sans-serif;
}

section {
    padding: 80px 0;
}

.section-dark {
    background-color: #f8f9fa;
}

#mainCarousel {
    margin-top: 0; /* Remove the margin to place carousel directly below navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

 /* CAROUSEL DEL INDEX */

.carousel-item {
    height: 80vh;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-title {
    margin-bottom: 1.5rem;
}

.carousel-subtitle {
    max-width: 800px;
}

.carousel-caption h3 {
    font-size: 2.5rem;
    font-weight: 400; 
    text-transform: uppercase;
    letter-spacing: 1px; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.4rem;
    font-weight: 400;
    padding: 0 15%;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;

}

 /*  MENU */

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 70px;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}


.custom-navbar {
    padding: 0.6rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-navbar .nav-link {
    font-family: 'Montserrat', sans-serif;
    color: #4a4a4a !important;
    font-weight: 500;
    padding: 0.8rem 2rem; 
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* Añadir padding al texto del menú */
.custom-navbar .nav-link span {
    padding: 0 0.8rem;
}

/* Añadir borde izquierdo al primer elemento */
.custom-navbar .navbar-nav > .nav-item:first-child .nav-link {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* Remover borde derecho del último elemento */
.custom-navbar .navbar-nav > .nav-item:last-child .nav-link {
    border-right: none;
}

/* Aplicar la linea a todos los elementos del menu menos al que tiene subitems */
.custom-navbar .nav-item:not(.dropdown) .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; 
    bottom: 0;
    left: 50%;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.custom-navbar .nav-item:not(.dropdown) .nav-link:hover::after,
.custom-navbar .nav-item:not(.dropdown) .nav-link:focus::after {
    width: 80%;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
    color:var(--color-primary) !important;
}

.custom-navbar .nav-link:hover span {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.custom-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.custom-navbar .dropdown-item {
    font-family: 'Montserrat', sans-serif;
    color: #4a4a4a;
    padding: 0.7rem 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.custom-navbar .dropdown-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 1.5rem;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.custom-navbar .dropdown-item:hover::after,
.custom-navbar .dropdown-item:focus::after {
    width: calc(100% - 3rem);
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
    background-color: transparent;
    color: var(--color-primary);
}

.custom-navbar .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
}

.custom-navbar .nav-link[href="#contacto"] {
    color: var(--color-primary) !important;
}

.custom-navbar .nav-link[href="#contacto"]:hover {
    color: #4fb3bf !important;
}

.custom-navbar .nav-link[href="#footer"] {
    background-color: var(--color-primary);
    color: white !important;
    transition: all 0.3s ease;
}

.custom-navbar .nav-link[href="#footer"]:hover {
    background-color: white;
    color: var(--color-primary) !important;

}

.custom-navbar .nav-link[href="#footer"]:hover span {
    color: var(--color-primary);
}


/* LOGO ECOSON */

.ecoson-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

@media (max-width: 992px) {
    .ecoson-logo {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .ecoson-logo {
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .ecoson-logo {
        max-width: 250px;
    }
}


/* TITULOS DE SECTIONS */
section h2 {
    font-weight: 500;
    font-size: 1.5rem; 
    position: relative;
    display: block;
    text-align: left;  
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: #3e3e3e;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;  
    transform: none; 
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

 /* INTEGRANTES SECTION */

.section-integrantes .card {
    transition: none;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5; 
}

.section-integrantes .card:hover {
    transform: none;
}

.section-integrantes .card-img-top {
    height: 100%;
    object-fit: cover;
    transition: none;
}

.section-integrantes .card:hover .card-img-top {
    transform: none;
}

.section-integrantes .card-link {
    text-decoration: none;
    color: inherit;
}

.section-integrantes .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-primary);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.section-integrantes .card:hover .card-overlay {
    opacity: 0.90;
}

.section-integrantes .card-overlay .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-integrantes .card-overlay .card-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-integrantes .card-overlay .card-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.section-integrantes .card-subtitle {
    font-size: 0.9rem;
}

.section-integrantes .card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-integrantes .card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-integrantes .card-title a:hover {
    color: var(--color-primary);
}


/* fuente montserrat */
.montserrat-text {
    font-family: 'Montserrat', sans-serif;
}

/* espaciados para utilizar */
.py-7 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mb-7 {
    margin-bottom: 4rem;
}

.quienes-somos-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    color: #333;
}

/* Boton Ecoson */
.boton-ecoson {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    padding: 1.2rem 2rem;
    margin-top: 3rem; 
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 0;
}

.boton-ecoson:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.boton-ecoson i {
    transition: transform 0.3s ease;
}

.boton-ecoson:hover i {
    transform: rotate(180deg);
}

.boton-ecoson:active i {
    animation: pulse 0.5s ease;
}

.lineas-investigacion {
    background-color: #f8f9fa;
}

 .boton-lineas-investigaciones{
    font-size: 0.8rem;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 0;
}

.boton-lineas-investigaciones:hover {
    background-color: white;
    color: var(--color-primary);
}

.boton-lineas-investigaciones i {
    transition: transform 0.3s ease;
}

.boton-lineas-investigaciones:hover i {
    transform: rotate(180deg);
}

.boton-lineas-investigaciones:active i {
    animation: pulse 0.5s ease;
}

 /* SECTION CONTADOR */

.counter-section {
    height: auto;
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('../img/background-1.jpg');
    position: relative;
    color: white;
    padding: 100px 0;
}

.counter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.counter-section .container {
    position: relative;
    z-index: 1;
}

.counter-box {
    text-align: center;
    padding: 20px;
    position: relative;
}

.counter-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.counter-content::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 1);
}

.counter-box:last-child .counter-content::after {
    display: none;
}

.counter-info {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.counter-icon {
    font-size: 3.5rem;
    color: #f3f4f5;
    margin-top: 1.5rem;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 5px;
    color: #f3f4f5;
    line-height: 1;
}

.counter-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .counter-box {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .counter-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .counter-info {
        text-align: center;
        align-items: center;
    }
    
    section h2,
    section p,
    .publication-item,
    .info-integrante .lead,
    .info-integrante h2,
    .linea-content,
    .featured-publications .card-body,
    .valor-card {
        text-align: center;
    }

    section h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .publication-icons {
        justify-content: center;
    }

    .year-filter {
        margin-left: auto;
        margin-right: auto;
    }

    .integrante-profile-image {
        margin-left: auto;
        margin-right: auto;
    }

    .counter-content::after {
        right: 0;
        top: auto;
        bottom: -20px;
        width: 50%;
        height: 1px;
        transform: translateX(50%);
        background-color: rgba(255, 255, 255, 1); /* Added solid white for mobile too */
    }

     /* INTEGRANTES PAGE */

    .intengrante-page {
        padding-top: 80px; 
    }

    .intengrante-page h2 {
        font-size: 1.8rem; 
    }

    .intengrante-page .lead {
        font-size: 1rem;  
        line-height: 1.6;
    }

    .intengrante-page .text-muted {
        font-size: 0.9rem;  
    }

    .publication-item {
        padding: 1rem;
    }

    .publication-text {
        font-size: 0.9rem;
    }

    .publication-title {
        display: block;
        margin: 0.5rem 0;
    }

    .publications-header {
        height: 40vh;
    }

    .header-title {
        font-size: 2rem;
    }

    .publication-item .d-flex {
        flex-direction: column;
    }

    .publication-icons {
        margin-top: 1rem;
        justify-content: flex-start;
    }

    .section-integrantes .card-overlay {
        opacity: 0.90;
        top: auto;
        bottom: 0;
        height: 25%;
        justify-content: flex-end;
        padding: 0.5rem;
        background: linear-gradient(to bottom, 
            rgba(77, 132, 138, 0) 0%,
            rgba(77, 132, 138, 0.90) 40%,
            rgba(77, 132, 138, 0.95) 100%
        );
        padding-bottom: 0.8rem;
    }

    .section-integrantes .card-overlay .card-title {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
        font-weight: 600;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

    .section-integrantes .card-overlay .card-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .section-integrantes .card-overlay .card-text {
        display: none;
    }
}

@media (max-width: 576px) {
    .counter-section {
        padding: 60px 0;
    }

    .counter-icon {
        font-size: 2rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .counter-text {
        font-size: 0.9rem;
    }

   
    .publication-item {
        padding: 0.8rem;
        border-left-width: 5px;
    }

    .publication-text {
        font-size: 0.85rem;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .publication-icons a {
        font-size: 1.1rem;
    }
}

/* Integrante Info Styles */
.info-integrante {
    padding: 60px 0;
}

.info-integrante .integrante-img {
    width: 320px;
    height: 400px;
    object-fit: cover;
}

.info-integrante h2 {
    color: #333;
    font-weight: 700;
}

.info-integrante .lead {
    color: #666;
    line-height: 1.8;
}

.info-integrante .text-muted {
    color: #888 !important;
}

.integrante-profile-image {
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.integrante-profile-image:hover {
    transform: scale(1.02);
}

.btn-ecoson {
    
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-ecoson:hover {
    background-color: var(--color-primary);
    color: var(--color-primary);
    color: white;
}


/* featured-publications section */
.featured-publications {
    background-color: #ffffff;
    padding: 80px 0;
}

.featured-publications .card {
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
    height: 500px; /* Fixed height for all cards */
}

.featured-publications .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0);
    height: 300px; 
    transition: background-color 0.3s ease;
}

.featured-publications .card:hover::after {
    background-color: rgba(77, 132, 138, 0.8);
}

.featured-publications .card > a {
    color: inherit;
    text-decoration: none;
}

.featured-publications .card:hover {
    transform: translateY(-10px);
}

.featured-publications .card-img-top {
    height: 300px;
    object-fit: cover;
    transition: filter 0.3s ease;
    position: relative;
}

.featured-publications .card:hover .card-img-top {
    filter: brightness(1);
}

.featured-publications .card-body {
    padding: 1.5rem;
    height: 200px; /* Fixed height for card body */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.featured-publications .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-verde-oscuro);
    margin-bottom: 0.5rem;
}

.featured-publications .card-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.featured-publications .publication-meta {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
}

.featured-publications .journal-name {
    font-style: italic;
}

.featured-publications .btn-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
    padding: 1.2rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 0;
}

.featured-publications .btn-primary:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.featured-publications .btn-primary i {
    transition: transform 0.3s ease;
}

.featured-publications .btn-primary:hover i {
    transform: rotate(180deg);
}

/* Optional: add a pulse effect when hovering */
@keyframes pulse {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.featured-publications .btn-primary:active i {
    animation: pulse 0.5s ease;
}


/* Lineas de Investigacion section */
.lineas-container {
    display: flex;
    width: 100%;
    height: auto;
    gap: 0;
    flex-wrap: wrap;
}

.linea-item {
    position: relative;
    overflow: hidden;
    border: 2px solid white;
    transition: border-color 0.3s ease;
    height: 400px;
}

.linea-item.linea-large {
    flex: 0 0 66.666%; /* 2/3 width */
}

.linea-item.linea-small {
    flex: 0 0 33.333%; /* 1/3 width */
}

.linea-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.linea-item:hover img {
    transform: scale(1.2);
}

.linea-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.linea-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.linea-item h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.linea-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: auto; 
}

.linea-content .boton-lineas-investigaciones {
    align-self: flex-start;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .lineas-container {
        flex-direction: column;
        height: auto;
    }
    
    .linea-item,
    .linea-item.linea-large,
    .linea-item.linea-small {
        flex: 0 0 100%;
        height: 400px;
        margin-bottom: 0;
    }

    .linea-content {
        padding: 1.5rem;
        text-align: center;
    }

    .linea-content .boton-lineas-investigaciones {
        align-self: center;
    }

    .linea-item h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .linea-item,
    .linea-item.linea-large,
    .linea-item.linea-small {
        height: 300px;
    }

    .linea-content {
        padding: 1rem;
    }

    .linea-item h3 {
        font-size: 1.2rem;
    }

    .linea-item p {
        font-size: 0.85rem;
    }
}

/* FOOTER */
.footer-logo {
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--color-primary);
    filter: brightness(110%);
    transform: translateY(-3px);
}

.footer-first-block {
    padding-top: 10rem !important;
    padding-bottom: 6rem !important;
}

.footer-links li a {
    transition: opacity 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links li a:before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.footer-links li a:hover {
    opacity: 0.8;
}

.footer-custom {
    position: relative;
}

.footer-title {
    color: var(--color-primary);
}

.footer-icon {
    color: var(--color-primary);
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-primary);
    opacity: 0.1;
}

.footer-links li a {
    transition: color 0.3s ease;
    position: relative;
    padding-left: 15px;
    color: #495057;
}

.footer-links li a:before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.footer-links li a:hover {
    color: var(--color-primary);
}

.social-links a {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #3a666b !important; /* Versión más oscura del --color-primary (#4d848a) */
}

.footer-bottom {
    border-top: 1px solid var(--color-primary);
    opacity: 0.8;
}

.footer-bottom p.text-muted {
    font-weight: 500;
    opacity: 0.9;
    color: #222222 !important;
}


/* ---------------------------------------------------------------*/
/*--------------------PAGES---------------------------------------*/
/* ---------------------------------------------------------------*/


/* ---------------------------------*/
/* PAGE QUIENES SOMOS               */
/* ---------------------------------*/

/* QUIENES SOMOS PAGE */
.quienes-somos-page {
    padding-top: 120px;
}

.valor-card {
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.valor-card h3 {
    color: var(--color-primary);
    font-weight: 600;
}

/* Misión y Visión Cards */
.mission-card, .vision-card {
    background-color: var(--color-primary);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mission-card:hover, .vision-card:hover {
    transform: translateY(-5px);
}

.mission-card h2::after, .vision-card h2::after {
    background-color: white;
}

/* Valores Cards */
.valor-card {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.valor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.valor-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.valor-icon i {
    font-size: 2rem;
    color: white;
}

/* Quienes Somos Responsive Styles */
@media (max-width: 992px) {
    .quienes-somos-page {
        padding-top: 80px;
    }

    .mission-card, .vision-card {
        margin-bottom: 2rem;
    }
    
    .valor-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .quienes-somos-page {
        padding-top: 60px;
    }

    .valor-card {
        padding: 1.5rem;
    }

    .valor-icon {
        width: 60px;
        height: 60px;
    }

    .valor-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .quienes-somos-page .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .mission-card, .vision-card {
        padding: 1.5rem;
    }

    .valor-card h3 {
        font-size: 1.25rem;
    }

    .valor-card p {
        font-size: 0.9rem;
    }
}


/* ---------------------------------*/
/* PAGE INTEGRANTES                 */
/* ---------------------------------*/

.intengrante-page {
    min-height: 80vh;
    padding-top: 120px; 
    padding-bottom: 60px;
}

.intengrante-page h2 {
    text-align: left;
    font-weight: 700; 
}

.intengrante-page h2::after {
    left: 0;
    transform: none;
}

.intengrante-page {
    padding-top: 60px;
}

.intengrante-page h2 {
    font-size: 1.5rem;
}

.intengrante-page .lead {
    font-size: 0.95rem;
    line-height: 1.5;
}

.intengrante-page .text-muted {
    font-size: 0.85rem;
}

.integrante-profile-image {
    width: 280px;  /* Slightly smaller image */
    height: 350px;
}


/* ---------------------------------*/
/* PAGE PUBLICACIONES     */
/* ---------------------------------*/

.publications-list {
    list-style: none;
    padding: 0;
}

.year-separator {
    font-size: 1.5rem;
    font-weight: 500;
    color:  #222222;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #222222;
}

.publication-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.3rem;
    transition: background-color 0.3s ease;
    border-left: 9px solid transparent;
}

.publication-item:nth-child(3n+1) {
    border-left-color: var(--color-primary);
}

.publication-item:nth-child(3n+2) {
    border-left-color: var(--color-musgo);
}

.publication-item:nth-child(3n) {
    border-left-color: var(--color-verde-oscuro);
}

.publication-item:hover {
    background-color: #f3f4f5;
}

.publication-text {
    margin-bottom: 0.5rem;
}

.publication-icons {
    display: flex;
    gap: 1rem;
}

.publication-icons a {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.publication-icons a:hover {
    color: var(--color-verde-oscuro);
}

.year-filter {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 33.333%;
}

.year-filter .filter-title {
    display: block;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.year-filter select {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background-color: white;
}

@media (max-width: 768px) {
    .year-filter {
        max-width: 100%;
    }
}

.publication-title {
    font-weight: 600;
}

.publications-header {
    background-image: url('../img/background-3.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    color: white;
    margin-bottom: 2rem;
    height: 50vh;
}

.publications-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.publications-header .container {
    position: relative;
    z-index: 1;
}

.publications-header .header-title {
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    padding-bottom: 1.5rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.publications-header .header-title::after {
    display: none;
}

@media (max-width: 768px) {
    .publications-header {
        height: 40vh;
    }
    .publications-header .header-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .publications-header {
        height: 30vh;
    }
    .publications-header .header-title {
        font-size: 1.5rem;
    }
}

/* ---------------------------------*/
/* PAGE LINEAS DE INVESTIGACION     */
/* ---------------------------------*/

/* Lineas de Investigacion Responsive Styles */
.investigacion-header {
    background-image: url('../img/background-1.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    color: white;
    margin-bottom: 2rem;
    height: 50vh;
}

.investigacion-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.investigacion-header .container {
    position: relative;
    z-index: 1;
}

.investigacion-header .header-title {
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    padding-bottom: 1.5rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.research-line-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lineas-detalle p {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 300;
    text-align: justify;
}

.contenido-linea {
    padding: 3rem;
}

/* Ajustes para textos del carrusel en pantallas chicas */
@media (max-width: 576px) {

  .carousel-caption .carousel-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .carousel-caption .carousel-subtitle p {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }
  .carousel-caption strong {
    font-size: 0.95rem;
  }
}