/* =========================================
   CABECERA DE NOTICIAS
========================================= */

.news-page-hero {
  padding: 165px 0 85px;

  background:
    linear-gradient(
      135deg,
      var(--primary-dark),
      var(--primary)
    );

  color: white;
}

.news-page-hero span {
  display: block;

  margin-bottom: 12px;

  font-size: 0.8rem;
  font-weight: 800;

  letter-spacing: 0.16em;

  text-transform: uppercase;

  color: rgba(255,255,255,0.7);
}

.news-page-hero h1 {
  max-width: 800px;

  font-size: clamp(
    3rem,
    7vw,
    5.5rem
  );

  line-height: 1;

  color: white;
}

.news-page-hero p {
  max-width: 650px;

  margin-top: 22px;

  font-size: 1.05rem;

  color: rgba(255,255,255,0.72);
}


/* =========================================
   CONTROLES
========================================= */

.news-page-content {
  padding: 90px 0 120px;
}

.news-controls {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 45px;
}

.news-search {
  position: relative;

  flex: 1;

  max-width: 500px;
}

.news-search input {
  width: 100%;

  padding: 15px 20px;

  border:
    1px solid
    var(--border);

  border-radius: 50px;

  outline: none;

  background: white;

  font-size: 0.95rem;

  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.news-search input:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 4px
    rgba(16,60,104,0.08);
}


.news-categories {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.news-category-button {
  padding: 10px 18px;

  border:
    1px solid
    var(--border);

  border-radius: 50px;

  background: white;

  color: var(--text);

  font-weight: 600;

  transition: 0.2s ease;
}

.news-category-button:hover {
  border-color: var(--primary);

  color: var(--primary);
}

.news-category-button.active {
  background: var(--primary);

  border-color: var(--primary);

  color: white;
}


/* =========================================
   NOTICIA DESTACADA
========================================= */

.featured-news {
  display: grid;

  grid-template-columns:
    1.3fr 1fr;

  min-height: 500px;

  margin-bottom: 65px;

  overflow: hidden;

  border-radius: 30px;

  background: var(--primary-dark);

  box-shadow: var(--shadow);
}

.featured-news-image {
  min-height: 500px;

  background:
    linear-gradient(
      135deg,
      #d9e3ed,
      #bccddd
    );

  overflow: hidden;
}

.featured-news-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.featured-news-content {
  display: flex;

  flex-direction: column;
  justify-content: center;

  padding: 55px;

  color: white;
}

.featured-news-category {
  display: inline-block;

  margin-bottom: 12px;

  color:
    rgba(
      255,
      255,
      255,
      0.65
    );

  font-size: 0.75rem;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.featured-news-date {
  margin-bottom: 18px;

  color:
    rgba(
      255,
      255,
      255,
      0.55
    );

  font-size: 0.85rem;
}

.featured-news h2 {
  margin-bottom: 20px;

  font-size: clamp(
    2rem,
    4vw,
    3.2rem
  );

  color: white;
}

.featured-news p {
  margin-bottom: 30px;

  color:
    rgba(
      255,
      255,
      255,
      0.7
    );
}

.featured-news-link {
  align-self: flex-start;

  padding: 12px 22px;

  border-radius: 50px;

  background: white;

  color: var(--primary-dark);

  font-weight: 700;
}


/* =========================================
   GRID
========================================= */

.all-news-title {
  margin-bottom: 30px;

  font-family:
    "Playfair Display",
    serif;

  font-size: 2.2rem;

  color: var(--primary-dark);
}

.news-page-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 25px;
}

.news-page-card {
  overflow: hidden;

  border:
    1px solid
    var(--border);

  border-radius: 24px;

  background: white;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.news-page-card:hover {
  transform:
    translateY(-7px);

  box-shadow: var(--shadow);
}

.news-page-card-image {
  position: relative;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #e4ebf2,
      #ccd9e5
    );
}

.news-page-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.5s ease;
}

.news-page-card:hover
.news-page-card-image img {
  transform: scale(1.04);
}

.news-page-card-category {
  position: absolute;

  top: 15px;
  left: 15px;

  padding: 6px 11px;

  border-radius: 50px;

  background:
    rgba(
      8,
      41,
      69,
      0.85
    );

  color: white;

  backdrop-filter: blur(8px);

  font-size: 0.68rem;
  font-weight: 700;

  text-transform: uppercase;
}

.news-page-card-content {
  padding: 25px;
}

.news-page-card-date {
  display: block;

  margin-bottom: 10px;

  color: var(--primary);

  font-size: 0.75rem;
  font-weight: 700;

  text-transform: uppercase;
}

.news-page-card h3 {
  margin-bottom: 12px;

  font-size: 1.15rem;

  line-height: 1.35;

  color: var(--primary-dark);
}

.news-page-card p {
  color: var(--text-light);

  font-size: 0.88rem;
}

.news-page-card-link {
  display: inline-block;

  margin-top: 15px;

  color: var(--primary);

  font-size: 0.88rem;
  font-weight: 700;
}


/* =========================================
   CARGAR MÁS
========================================= */

.load-more-wrapper {
  margin-top: 50px;

  text-align: center;
}

.load-more-button {
  padding: 13px 28px;

  border: none;

  border-radius: 50px;

  background: var(--primary);

  color: white;

  font-weight: 700;
}

.load-more-button:hover {
  background: var(--primary-dark);
}


/* =========================================
   SIN RESULTADOS
========================================= */

.news-empty {
  grid-column: 1 / -1;

  padding: 70px 30px;

  border:
    1px dashed
    var(--border);

  border-radius: 25px;

  text-align: center;

  color: var(--text-light);

  background: var(--background);
}


/* =========================================
   NOTICIA INDIVIDUAL
========================================= */

.article-page {
  padding:
    150px 0
    120px;
}

.article-header {
  max-width: 900px;

  margin:
    0 auto
    50px;

  text-align: center;
}

.article-category {
  display: inline-block;

  margin-bottom: 15px;

  color: var(--primary);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.article-header h1 {
  margin-bottom: 20px;

  font-size: clamp(
    2.8rem,
    6vw,
    5rem
  );

  line-height: 1.04;

  color: var(--primary-dark);
}

.article-date {
  color: var(--text-light);

  font-size: 0.9rem;
}

.article-main-image {
  max-width: 1150px;

  margin:
    0 auto
    60px;

  overflow: hidden;

  border-radius: 30px;

  background: var(--background);
}

.article-main-image img {
  width: 100%;

  max-height: 700px;

  object-fit: cover;
}

.article-content {
  max-width: 760px;

  margin: auto;

  font-size: 1.06rem;

  line-height: 1.9;

  color: #394554;
}

.article-content p {
  margin-bottom: 25px;
}

.article-gallery {
  max-width: 1150px;

  margin:
    70px auto 0;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 15px;
}

.article-gallery img {
  width: 100%;
  height: 300px;

  object-fit: cover;

  border-radius: 18px;
}

.article-back {
  max-width: 760px;

  margin:
    55px auto 0;
}

.article-back a {
  color: var(--primary);

  font-weight: 700;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (
  max-width: 950px
) {

  .featured-news {
    grid-template-columns: 1fr;
  }

  .featured-news-image {
    min-height: 380px;
  }

  .news-page-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .article-gallery {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (
  max-width: 650px
) {

  .news-page-hero {
    padding:
      140px 0
      65px;
  }

  .news-controls {
    flex-direction: column;

    align-items: stretch;
  }

  .news-search {
    max-width: none;
  }

  .featured-news-content {
    padding: 35px 28px;
  }

  .featured-news-image {
    min-height: 280px;
  }

  .news-page-grid {
    grid-template-columns: 1fr;
  }

  .article-page {
    padding:
      130px 0
      80px;
  }

  .article-gallery {
    grid-template-columns: 1fr;
  }

}