/* ================================
   HOME HEADER CON INVESTIGACIONES
   ================================ */
.home-header-container {
  position: relative;
  min-height: 750px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Imagen de fondo */
.home-investigaciones{
  width: 100%;
}

.home-investigaciones__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-investigaciones__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.home-investigaciones__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-investigaciones__veil {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

/* Grid principal: titulo (izq) + feed (der) */
.home-investigaciones__grid {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 1fr 590px !important;
  gap: 2rem;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.home-investigaciones__grid.wrap-xl {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}

/* Columna izquierda (titulo, subtitulo, barras) */
.home-investigaciones__content {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-left: 70px;
  max-width: 800px;
  width: 100%;      
}

/* Texto */
.home-investigaciones__pretitle {
  font-size: 1.4rem;
  margin-bottom: .5rem;
  color: #fff;
  font-weight: 300;
  text-transform: uppercase;
}

.home-investigaciones__title {
  font-family: "Lora", serif;
  font-size: 3.7rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.home-investigaciones__bars {
  display: flex;
  gap: 50px;
  margin-top: 1rem;
}

.home-investigaciones__bars span {
  display: block;
  width: 105px;
  height: 230px;
  background-color: #cb227e;
}

.home-investigaciones__feed {
  background: rgba(0,0,0,0.6); 
  padding: 2rem;
  width: 100%;            
  height: 80%;            
  display: flex;
  flex-direction: column;
  justify-content: center; 
  overflow: hidden;        
  align-self: stretch;    
  overflow-y: auto; 
  margin-top: auto;
}

.home-investigaciones__feed-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  height: 550px;
  padding-right: 0.5rem; 

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-investigaciones__feed-inner::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.feed-inner__titulo{
  color: white;
  letter-spacing: 1px;
  font-weight: 100;
}

/* Tarjetas del feed */
.investigacion-card__title a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color .3s ease;
}

.investigacion-card__title a:hover {
  color: #ffcc00;
}

.investigacion-card__excerpt {
  color: #ccc;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  display: -webkit-box;      
  -webkit-line-clamp: 2;    
  -webkit-box-orient: vertical;
  overflow: hidden;           
  text-overflow: ellipsis;     
}

@media (max-width: 1092px) {
  /* Grid a una sola columna */
  .home-investigaciones__grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* Ajuste del contenido de la izquierda */
  .home-investigaciones__content {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    padding-top: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 91px;
    margin-bottom: 42px;
    text-align: center;
  }

  .home-investigaciones__title {
    font-size: 2.4rem;
  }

  .home-investigaciones__pretitle {
    font-size: 1rem;
  }


  .home-investigaciones__bars {
    gap: 20px;
  }

  .home-investigaciones__bars span {
    width: 60px;
    height: 150px;
  }

  /* Feed debajo del contenido */
  .home-investigaciones__feed {
    padding: 1.5rem;
    height: auto;
    max-height: 400px;
  }

  .home-investigaciones__feed-inner {
    height: auto;
    max-height: 350px;
  }
}

