/* ===== ESTILOS GENERALES ===== */


  /* ===== CAROUSEL PRINCIPAL ===== */
.carousel-video-wrapper {
    height: 700px;
    overflow: hidden;
}

.carousel-video {
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 0;
}

.carousel-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.carousel-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.carousel-btn {
    background-color: #007BC0;
    color: #fff;
    border-radius: 40px;
    padding: 10px 32px;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Añade esta línea */
}

.carousel-btn:hover {
    background-color: #fff;
    color: #007BC0;
    transform: translateY(-2px);
    border: 1px solid #007BC0;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-imagen {
    height: 700px;
    object-fit: cover;
    min-height: 400px;
}

/* ===== BANNER HOME ===== */
.banner-single {
    position: relative;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.banner-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.banner-content .container {
    color: #fff;
}

.banner-eyebrow {
font-family: 'Roboto';
    font-weight: 700;
    font-style: Bold;
    font-size: 32px;

    line-height: 130%;
    letter-spacing: 0%;

    margin-bottom: 12px;
}

.banner-logo {
    width: 420px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}

.banner-partner-title {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.banner-description {
    margin: 0;
    font-family: 'Roboto';
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0%;
    text-align: center;

    opacity: 0.95;
}


     .titulo__secciones {
            font-family: 'Roboto';
            font-weight: 500;
            font-size: 24px;
            line-height: 100%;
            letter-spacing: 0%;
            color: #000;
        }

.contenido__descripcion {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: 'Regular';
    font-size: 24px;

    line-height: normal;
    letter-spacing: 0%;


}

   .bg-home {
    background-color: #EEEEEE;
    display: flex;
    align-items: center;
    min-height: 600px;
    }

    @media (max-width: 768px) {
        .bg-home {
            min-height: auto;
            padding: 40px 20px;
        }

    .titulo__secciones {
         font-family: 'Roboto';
        font-weight: 500;
        font-size: 20px;
        line-height: 100%;
        letter-spacing: 0%;
        color: #000;
        }

.contenido__descripcion {
    font-family: 'Roboto';
    font-weight: 400;
    font-style: 'Regular';
    font-size: 18px;

    line-height: normal;
    letter-spacing: 0%;


}
    }

/* ===== NEWS ===== */
.news-header {
      background: linear-gradient(to bottom, #006BB5, #0085CC);
    color: #fff;
    padding: 20px 0;
}

.news-title {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.news-card {
    display: block;
    background: #EEEEEEEE;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    overflow: hidden;
    text-decoration: none;
    color: #111;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
    background-color: #007BC0;
    color: #fff;
}

.news-card:hover .news-card__body {
    background-color: #007BC0;
}

.news-card:hover .news-card__title,
.news-card:hover .news-card__text,
.news-card:hover .news-card__title-sm,
.news-card:hover .news-card__text-sm {
    color: #fff;
}

.news-card__image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.news-card__image--featured {
    height: 320px;
}

.news-card__body {
    padding: 16px;
    background-color: #EEEEEEEE;
}

.news-card__title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 12px;
    color: #000;
}

.news-card__text {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    margin: 0;
}

.news-card__title-sm {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px;
    color: #000;
}

.news-card__text-sm {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

/* ===== MEMBERS (People) ===== */
.members-section {
    /* contenedor de la lista */
}

.member-card {
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e3e3e3;
}

.member-avatar img {
    width: 184px;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    background: #f5f5f5;
}

.member-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-name {
    margin: 0 0 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.member-degree {
    font-weight: 600;
}

.member-email {
    color: #007BC0;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 500;
}

.member-email::before {
    content: " | ";
    color: #999;
    margin-right: 10px;
}

.member-bio {
    margin: 0 0 8px;
    color: #333;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.member-readmore {
    display: inline-block;
    color: #007BC0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 8px;
}

.member-readmore:hover {
    text-decoration: underline;
}

/* Estilos para el desplegable de biografías */
.member-bio-container {
    position: relative;
    margin-bottom: 10px;
}

.member-bio p {
    margin: 0;
    line-height: 1.6;
}

.member-bio-toggle {
    background: none;
    border: none;
    color: #007BC0;
    font-weight: 600;
    font-size: 14px;
    padding: 0;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.member-bio-toggle:hover {
    color: #005f8c;
    text-decoration: underline;
}

.member-bio-toggle:focus {
    outline: none;
}

/* Transición suave para el desplegable */
.member-bio-full {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== PEOPLE DETAIL ===== */
.people-detail__title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #000;
    margin: 28px 0 10px;
    line-height: 1.2;
}

.people-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 16px;
}

.people-list li {
    margin: 8px 0;
    color: #000;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.people-list li strong {
    font-weight: 700;
}

.people-affiliation {
    color: #555;
    font-style: italic;
}

/* ===== PAPERS ===== */
    .paper-card {
        background: #EEEEEE;
        border: 3px solid transparent;
        border-radius: 8px;
        padding: 16px;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        transition: border-color .2s ease, box-shadow .2s ease;
      
    }
    
    .card-link {
        text-decoration: none;
        color: inherit;
        display: block;
        height: 100%;
    }
    
    .card-link:hover {
        text-decoration: none;
    }
    
    .card-link:hover .paper-card {
        background-color: #007BC0;
        color: #fff;
    }
    
    .card-link:hover .paper-year,
    .card-link:hover .paper-cite,
    .card-link:hover .paper-doi {
        color: #fff;
    }

    .paper-year {

        font-family: 'Roboto', sans-serif;
        font-weight: 700;
        font-size: 24px;
        color: #000;
        padding: 6px 10px;
        width: fit-content;
    }

    .paper-content { flex: 1 1 auto; }

    .paper-cite {
        margin: 0;
      font-family: 'Roboto';
        font-weight: 400;
        font-style: 'Regular';
        font-size: 24px;
        line-height: 140%;
        letter-spacing: 0%;

    }

    .paper-doi {
        margin-top: 12px;

        border-radius: 6px;
        padding: 6px 10px;
        width: fit-content;
        color: #000;
    }

    .paper-doi a {
        color: #000;
            font-size: 24px;
        text-decoration: none;
        font-weight: 600;
    }

    .paper-doi a:hover {
        text-decoration: underline;
    }


/* ===== BRANDS (clientes) ===== */
.brands-carousel {
  margin-top: 10px;
}
.brands-carousel .slick-slide {
  margin: 0 24px; /* más separación entre logos */
}
.brands-carousel .slick-list {
  margin: 0 -24px; /* compensar el margen de slides */
}
.brand-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 0; /* más aire vertical */
}
.brand-item__image {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.brand-item__image:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.02);
}

/* Flechas Slick */
.brands-carousel .slick-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  z-index: 2;
}
.brands-carousel .slick-prev::before,
.brands-carousel .slick-next::before {
  color: #007BC0;
  font-size: 24px;
  line-height: 34px;
}
.brands-carousel .slick-prev { left: -10px; }
.brands-carousel .slick-next { right: -10px; }
.brands-carousel .slick-arrow.slick-disabled {
  opacity: .35;
}

/* Responsive ajuste de altura de logos */
@media (max-width: 992px) {
  .brands-carousel .slick-slide { margin: 0 18px; }
  .brands-carousel .slick-list { margin: 0 -18px; }
}
@media (max-width: 576px) {
  .brands-carousel .slick-slide { margin: 0 10px; }
  .brands-carousel .slick-list { margin: 0 -10px; }
  .brand-item__image { max-height: 44px; }
}

/* Responsive */
@media (max-width: 768px) {

    .banner-single { min-height: 420px; height: auto; }
    .banner-content { padding: 32px 0; }
    .banner-logo { width: 160px; height: 80px; }
    .banner-description { margin-top: 12px; }
}

@media (max-width: 992px) {
    .carousel-video-wrapper,
    .carousel-imagen {
        height: 520px;
    }
    .news-card__image--featured { height: 260px; }
}

@media (max-width: 768px) {
    .carousel-video-wrapper,
    .carousel-imagen {
        height: 380px;
    }
    .carousel-caption { padding: 1.5rem; }
    .home-intro__content {
        padding: 2.5rem 1.75rem;
        min-height: auto;
    }
    .home-intro__media { min-height: 280px; }
    .projects-cta { min-height: 240px; }
    .news-title { font-size: 24px; }
    .news-card__image { height: 160px; }
    .news-card__image--featured { height: 220px; }
    .member-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .member-avatar {
        margin-bottom: 8px;
    }
    .member-avatar img {
        width: 160px;
        height: 200px;
    }
    .member-body {
        align-items: center;
    }
    .member-bio {
        text-align: center;
    }
    .member-email {
        margin: 8px 0 0;
        margin-left: 0;
        display: inline-block;
    }
    .member-email::before {
        content: '';
        margin: 0;
    }
}

@media (max-width: 576px) {
    .carousel-video-wrapper,
    .carousel-imagen {
        height: 300px;
    }
    .home-intro__content { padding: 2rem 1.5rem; }
    .projects-cta { min-height: 220px; }
    .member-card {
        flex-direction: column;
        gap: 12px;
    }
    .member-avatar img {
        width: 120px;
        height: 150px;
    }
    .member-body {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .home-intro__media,
    .home-intro__content {
        min-height: 600px;
    }
    .pdf-container {
        padding-bottom: 80%;
    }
}

/* PROJECTS */
    .project-header {
        background-color: #f8f9fa;
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .project-title {
        font-family: 'Roboto';
        font-weight: 700;
        font-size: 42px;
        color: #007BC0;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .pdf-container {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 141.42%; /* Relación de aspecto para un documento A4 (1:1.414) */
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border-radius: 8px;
        margin-bottom: 30px;
    }
    
    .pdf-iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }
    
    @media (min-width: 768px) {
        .pdf-container {
            padding-bottom: 80%; /* Menos alto en pantallas medianas */
        }
    }
    
    @media (min-width: 992px) {
        .pdf-container {
            padding-bottom: 65%; /* Menos alto en pantallas grandes */
        }
    }
    
    .pdf-fallback {
        background: #f8f9fa;
        height: 500px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        border-radius: 8px;
    }
    
    .btn-download {
        background: #ffffff;
        border: 1px solid #007BC0;
        color: #007BC0;
        padding: 10px 20px;
        text-decoration: none;
        font-size: 16px;
        border-radius: 30px;
        transition: background 0.3s;
        margin-top: 20px;
        display: inline-block;
    }
    
    .btn-download:hover {
        background: #005f8c;
        color: #ffffff;
        text-decoration: none;
    }