/* ====================== 
   Página de NOTICIAS
   ====================== */

/* Intro de la página */
.news-intro p {
  color: var(--muted);
  line-height: 1.7;
}

/* Barra de herramientas: orden */
.news-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.news-sort-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.news-sort-select {
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--fg);
}

/* Grid de noticias: usa las utilidades grid / grid--3 del base */
.news-grid {
  margin-top: 1rem;
}

/* Ajustes de las tarjetas de noticias en esta página */
.news-grid .card--news {
  background: var(--card);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.75rem 2rem;
  min-height: 250px;
}

.news-grid .card--news h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.7rem;
  font-size: 1.17rem;   /* antes 1.05rem */
  line-height: 1.3;
}

.news-grid .card--news p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Enlace "Leer noticia completa" */
.news-grid .card--news .news-more {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--dorado);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.news-grid .card--news .news-more:hover {
  border-color: var(--dorado);
}

/* Ocultar noticias extra por defecto */
.news-grid .card--news.is-hidden {
  display: none;
}

/* Botón "ver más" */
.news-show-more {
  margin: 2rem auto 0;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.news-show-more:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

#noticias {
  padding-bottom: 4.2rem;
}

.news-back {
  color: #d4af37;
  text-decoration: none;
  font-weight: 500;
}

.news-back:hover {
  color: #b9932a; /* un dorado un poco más oscuro para hover, opcional */
}


/* Responsive */
@media (max-width: 900px) {
  .news-intro {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 640px) {
  #noticias .section__header {
    margin-top: 18px;
  }
  
  #noticias .section__header h2 {
    text-align: left;
  }

  .news-intro p {
    text-align: left;
    font-size: 0.95rem;
  }

  .news-toolbar {
    justify-content: flex-start;
  }
}
