/* ===================================
   MEJORAS PARA NOTICIAS DE ÚLTIMA HORA
   =================================== */

/* Asegurar altura uniforme en las tarjetas de noticias */
#news .news-sec {
  display: flex;
  margin-bottom: 30px;
}

#news .news-info {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* Wrapper de imagen con posición relativa */
#news .news-info .image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Contenedor de imagen con altura fija y object-fit cover */
#news .news-info img.img-responsive {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* data-meta debajo de la imagen */
#news .news-info .data-meta {
  position: static;
  width: 100%;
  flex-shrink: 0;
}

/* Asegurar que el contenido tenga altura mínima */
#news .news-info h2 {
  min-height: 60px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

#news .news-info p {
  flex-grow: 1;
  min-height: 80px;
  margin-bottom: 15px;
}

/* Botón al final */
#news .news-info .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  #news .news-info .image-wrapper {
    height: 200px;
  }

  #news .news-info h2 {
    min-height: auto;
    font-size: 18px;
  }

  #news .news-info p {
    min-height: 60px;
  }
}

@media (max-width: 767px) {
  #news .news-sec {
    margin-bottom: 40px;
  }

  #news .news-info .image-wrapper {
    height: 220px;
  }
}
