@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Libre+Caslon+Display&display=swap');

/* ==================================================
   SECCIÓN DE NOTICIAS
================================================== */

.news-section {
  width: 100%;
  padding: 110px 24px;
  background:
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #eef6ff 48%,
      #f9fcff 100%
    );
  color: #10233f;
}

.news-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}


/* ==================================================
   ENCABEZADO
================================================== */

.news-heading {
  position: relative;
  max-width: 820px;
  margin-bottom: 58px;
  padding-left: 24px;
}

.news-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    #7fb7e8,
    #b9d8f4
  );
  border-radius: 20px;
}

.news-eyebrow {
  display: inline-block;
  margin-bottom: 14px;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  color: #6294c3;
}

.news-heading h2 {
  margin: 0 0 18px;

  font-family: "Libre Caslon Display", serif;
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;

  color: #15375e;
}

.news-heading p {
  margin: 0;
  max-width: 680px;

  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;

  color: #6a829c;
}


/* ==================================================
   LISTADO DE NOTICIAS
================================================== */

.news-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}


/* ==================================================
   TARJETA
================================================== */

.news-card {
  position: relative;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(153, 190, 224, 0.32);

  border-radius: 20px;

  box-shadow:
    0 8px 30px rgba(29, 75, 115, 0.05),
    0 2px 8px rgba(29, 75, 115, 0.03);

  backdrop-filter: blur(12px);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 4px;
  height: 100%;

  background: linear-gradient(
    180deg,
    #8ac1ed,
    #c4def4
  );

  opacity: 0;

  transition: opacity 0.35s ease;
}

.news-card:hover {
  transform: translateY(-4px);

  border-color: rgba(110, 164, 211, 0.45);

  box-shadow:
    0 20px 50px rgba(29, 75, 115, 0.10),
    0 6px 18px rgba(29, 75, 115, 0.05);
}

.news-card:hover::before {
  opacity: 1;
}


/* ==================================================
   LINK COMPLETO
================================================== */

.news-link {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;

  width: 100%;
  padding: 20px;

  text-decoration: none;
  color: inherit;
}


/* ==================================================
   IMAGEN
================================================== */

.news-image {
  position: relative;

  width: 100%;
  height: 205px;

  overflow: hidden;

  border-radius: 14px;

  background: #e8f2fb;
}

.news-image::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(14, 58, 96, 0.02),
    rgba(14, 58, 96, 0.12)
  );

  pointer-events: none;
}

.news-image img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;

  transition:
    transform 0.7s cubic-bezier(.16,.84,.44,1),
    filter 0.4s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.055);
}


/* ==================================================
   CONTENIDO
================================================== */

.news-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-right: 20px;
}


/* ==================================================
   TÍTULO DE LA NOTICIA
================================================== */

.news-content h3 {
  margin: 0 0 13px;

  font-family: "Libre Caslon Display", serif;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;

  color: #173b63;

  transition: color 0.3s ease;
}

.news-card:hover .news-content h3 {
  color: #2c6fa8;
}


/* ==================================================
   DESCRIPCIÓN
================================================== */

.news-description {
  margin: 0 0 23px;
  max-width: 720px;

  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  line-height: 1.75;
  font-weight: 400;

  color: #698198;
}


/* ==================================================
   AUTOR Y FECHA
================================================== */

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;

  color: #8ba2b8;
}

.news-author {
  color: #47749e;
  font-weight: 600;
}

.news-separator {
  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: #a9c8e3;
}


/* ==================================================
   PAGINACIÓN
================================================== */

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 10px;

  margin-top: 55px;
}

.news-page-button {
  min-width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 14px;

  border-radius: 50px;

  border: 1px solid rgba(129, 174, 213, 0.40);

  background: rgba(255, 255, 255, 0.75);

  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;

  color: #5b82a7;

  cursor: pointer;

  box-shadow:
    0 4px 14px rgba(42, 91, 131, 0.05);

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.news-page-button:hover {
  transform: translateY(-2px);

  background: #eaf5ff;

  border-color: #87b9e2;

  color: #295f8e;
}

.news-page-button.active {
  background: linear-gradient(
    135deg,
    #4d8fc4,
    #72b2df
  );

  border-color: transparent;

  color: #ffffff;

  box-shadow:
    0 8px 20px rgba(62, 124, 174, 0.22);
}


/* ==================================================
   ELEMENTOS OCULTOS
================================================== */

.news-card.news-hidden {
  display: none;
}

.news-card.news-visible {
  animation: newsFade 0.5s ease;
}

@keyframes newsFade {

  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* ==================================================
   RESPONSIVE TABLET
================================================== */

@media (max-width: 850px) {

  .news-section {
    padding: 80px 20px;
  }

  .news-link {
    grid-template-columns: 240px 1fr;
    gap: 25px;
  }

  .news-image {
    height: 170px;
  }

}


/* ==================================================
   RESPONSIVE MÓVIL
================================================== */

@media (max-width: 650px) {

  .news-section {
    padding: 65px 16px;
  }

  .news-heading {
    padding-left: 18px;
    margin-bottom: 40px;
  }

  .news-heading h2 {
    font-size: 42px;
  }

  .news-link {
    grid-template-columns: 130px 1fr;
    gap: 17px;

    padding: 14px;
  }

  .news-image {
    height: 115px;
    border-radius: 11px;
  }

  .news-content {
    padding-right: 2px;
  }

  .news-content h3 {
    font-size: 20px;
    margin-bottom: 8px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
  }

  .news-description {
    margin-bottom: 12px;

    font-size: 12px;
    line-height: 1.5;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
  }

  .news-meta {
    font-size: 9px;
    gap: 6px;
  }

}


/* ==================================================
   MÓVILES PEQUEÑOS
================================================== */

@media (max-width: 430px) {

  .news-heading h2 {
    font-size: 37px;
  }

  .news-link {
    grid-template-columns: 108px 1fr;
    gap: 14px;
  }

  .news-image {
    height: 96px;
  }

  .news-description {
    display: none;
  }

  .news-content h3 {
    font-size: 18px;
  }

}