/* ============================= */
/* 6. NEWS / NOTICIAS */
/* ============================= */
.news {
  background-color: var(--bg-light);
  padding: 60px 0;
  font-family: var(--font-primary);
}

.news-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.news-title {
  font-weight: 700 !important;
  font-size: 2rem !important;
  color: var(--primary-color) !important;
  text-align: center !important;
  margin-bottom: 40px !important;
}

/* === Grid de noticias === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  /* Make cards equal height */
  padding: 0 1rem;
}

/* === Tarjeta === */
.noticia-card {
  background: #fff;
  border-radius: 20px;
  /* Modernized radius */
  box-shadow: 0 4px 15px var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.noticia-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow-hover);
}

/* === Imagen === */
.noticia-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* === Contenido === */
.noticia-content {
  flex-grow: 1;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.noticia-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.noticia-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
}

.noticia-descripcion {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
  flex-grow: 1;
}

/* === Botón === */
.noticia-btn {
  width: 85%;
  align-self: center;
  margin: 20px 0;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  border-radius: var(--btn-radius, 8px);
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.noticia-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* === Footer general === */
.news-footer {
  text-align: center;
  margin-top: 40px;
}

/* ============================== */
/* ESTILOS - DETALLE DE NOTICIA   */
/* ============================== */

.news-detail-container {
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafc;
  padding: 60px 20px;
  color: #333;
}

.news-detail-article {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 40px 50px;
  transition: all 0.3s ease;
}

.news-detail-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ======= Título y fecha ======= */
.news-detail-title {
  font-size: 2.2rem;
  color: #004b87;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.news-detail-date {
  text-align: center;
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 25px;
}

/* ======= Imagen ======= */
.news-detail-image {
  text-align: center;
  margin: 30px 0;
}

.news-detail-image img {
  width: 100%;
  max-width: 750px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ======= Contenido ======= */
.news-detail-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.news-detail-content strong {
  color: #004b87;
}

.news-detail-list {
  list-style: disc;
  padding-left: 30px;
  margin: 15px 0;
}

.news-detail-list li {
  margin-bottom: 8px;
}

/* ======= Subtítulos ======= */
.news-detail-subtitle {
  font-size: 1.5rem;
  color: #006bb3;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

/* ======= Responsivo ======= */
@media (max-width: 768px) {
  .news-detail-article {
    padding: 25px;
  }

  .news-detail-title {
    font-size: 1.8rem;
  }

  .news-detail-image img {
    max-width: 100%;
  }
}