#noticias .card-img-top {
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

#noticias .card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

#noticias .card-text {
  font-size: 0.95rem;
  color: #444;
}

#noticias .btn-outline-primary {
  border-radius: 20px;
  font-size: 0.85rem;
}


.noticias-encabezado {
  background: url('../img/noticias-portada.jpg') center center / cover no-repeat;
  height: 300px;
  position: relative;
  background-attachment: fixed;
}

.noticias-encabezado::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0,0,0,0.6);
}

.noticias-encabezado .container {
  position: relative;
  z-index: 2;
}



  .noticia-img {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }

  .card-img-top.noticia-img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .noticia-img {
  transform: scale(1.05);
}

.noticia-img {
  filter: brightness(0.95);
}
.card:hover .noticia-img {
  filter: brightness(1.05);
}


/* Fondo con textura o color elegante */
.noticias-encabezado {
  background: linear-gradient(
    rgba(0, 123, 255, 0.55),  /* azul claro con transparencia */
    rgba(0, 123, 255, 0.55)
  ), url('../img/noticias-portada.jpg') center/cover no-repeat;
  min-height: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.seccion-noticias {
  background-color: #f8f9fa;
}

.noticias-encabezado h2 {
  font-family: 'Georgia', serif;
  letter-spacing: 1px;
  color: #fff;
}

.noticias-encabezado p {
  color: #f0f0f0;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Animaciones si usas Animate.css (opcional) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');
