/* ===== Noticias ===== */

/* Contenedor de lista */
.noticias-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Noticia destacada (la primera) */
.noticia-destacada {
  margin-bottom: 40px;
}

.noticia-destacada .card-vertical {
  max-width: 100%;
  margin: 0 auto;
}

.noticia-destacada img {
  width: 100%;
  max-height: 320px;       /* controla el alto máximo */
  object-fit: cover;       /* recorta proporcionalmente */
  border-radius: var(--radius);
}

.noticia-destacada .card-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 12px;
}

.noticia-destacada .card-subtitle {
  font-size: 1rem;
  color: var(--gris-oscuro);
  margin-bottom: 12px;
}

/* Noticias normales (card-horizontal) */
.noticia .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.noticia .card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.noticia .card-subtitle {
  font-size: 0.9rem;
  color: var(--gris-oscuro);
  margin-bottom: 12px;
}

.noticia p {
  margin-bottom: 16px;
  line-height: 1.5;
  color: var(--cge-negro);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botón dentro de noticia */
.noticia .btn {
  align-self: flex-start;
}

/* ===== Responsive ===== */

/* Móvil */
@media (max-width: 768px) {
  .noticia .card-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .noticia .card-subtitle {
    text-align: center;
    margin-bottom: 12px;
  }

  .noticia p {
    text-align: center;
  }

  .noticia .btn {
    margin: 0 auto;
  }

  .noticia-destacada .card-title {
    text-align: center;
  }

  .noticia-destacada img {
    max-height: 220px;   /* más pequeño en móvil */
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .noticias-lista {
    gap: 0;
  }

  .noticia .card-title {
    font-size: 1.25rem;
  }

  .noticia-destacada img {
    max-height: 280px;   /* ajusta en tablet */
  }
}

.espaciador-header {
  display: block;
  width: 100%;
  height: 40px;        /* grosor del header */
  background: transparent; /* o un color si quieres que se vea */
}