/*
  Grupo Attia — Noticias
  Estilos propios de esta subpágina. Tokens, reset, header y footer se heredan
  de assets/css/ (sistema compartido); aquí vive solo lo específico de esta página.
*/

/* ---------- 0 · Utilidades de sección (equivalentes a sections.css del Home) ---------- */
.section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- 1 · Hero ---------- */
.noticias-hero {
  position: relative;
  background: var(--navy);
  padding-top: calc(var(--header-height) + clamp(2rem, 6vw, 3.5rem));
  padding-bottom: clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(245, 245, 245, 0.08);
}

.noticias-hero__content .eyebrow {
  margin-bottom: 1rem;
}

.noticias-hero__title {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  max-width: 20ch;
  margin-bottom: 0.85rem;
}

.noticias-hero__subtitle {
  color: rgba(245, 245, 245, 0.85);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  max-width: 56ch;
}

/* ---------- 2 · Galería editorial ---------- */
.news-editorial {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(200px, 15vw, 250px);
  grid-auto-flow: dense;
  gap: clamp(1rem, 2vw, 1.75rem);
}

/* Variantes de tamaño: definen únicamente el espacio que ocupa cada pieza en
   la retícula. El tamaño real en pantalla lo da la combinación de columnas
   (ancho) y filas (alto, clamp(200px,15vw,250px) por fila). */
.news-piece--feature {
  grid-column: span 4;
  grid-row: span 2;
}

.news-piece--tall {
  grid-column: span 2;
  grid-row: span 2;
}

.news-piece--wide {
  grid-column: span 4;
  grid-row: span 1;
}

.news-piece--standard {
  grid-column: span 2;
  grid-row: span 1;
}

/* ---------- 3 · Pieza editorial (no es una "tarjeta" con caja/sombra) ---------- */
.news-piece__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-piece__frame {
  position: absolute;
  inset: 0;
  background: var(--neutral);
}

.news-piece__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-piece__link:hover .news-piece__frame img,
.news-piece__link:focus-visible .news-piece__frame img {
  transform: scale(1.045);
}

/* Velo: legible de entrada (no depende del hover) y se refuerza levemente
   al interactuar, en vez de aparecer de la nada. */
.news-piece__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 24, 33, 0.85) 0%, rgba(15, 24, 33, 0.18) 52%, rgba(15, 24, 33, 0) 72%);
  transition: background 400ms ease;
}

.news-piece__link:hover .news-piece__scrim,
.news-piece__link:focus-visible .news-piece__scrim {
  background: linear-gradient(0deg, rgba(15, 24, 33, 0.92) 0%, rgba(15, 24, 33, 0.3) 52%, rgba(15, 24, 33, 0.04) 72%);
}

.news-piece__body {
  position: absolute;
  z-index: 2;
  left: clamp(1.1rem, 2.5vw, 1.75rem);
  right: clamp(1.1rem, 2.5vw, 1.75rem);
  bottom: clamp(1.1rem, 2.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-piece__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.news-piece__date {
  color: rgba(245, 245, 245, 0.72);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.news-piece__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.25;
  transition: transform 400ms ease;
}

.news-piece--feature .news-piece__title {
  font-size: clamp(23px, 2.4vw, 34px);
  max-width: 20ch;
}

.news-piece__link:hover .news-piece__title,
.news-piece__link:focus-visible .news-piece__title {
  transform: translateY(-2px);
}

/* ---------- 4 · Responsive ---------- */
@media (max-width: 900px) {
  .news-editorial {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .news-piece {
    grid-row: auto;
  }

  .news-piece--feature,
  .news-piece--wide {
    grid-column: span 2;
  }

  .news-piece--tall,
  .news-piece--standard {
    grid-column: span 1;
  }

  .news-piece__link {
    height: auto;
  }

  .news-piece--feature .news-piece__link {
    aspect-ratio: 16 / 11;
  }

  .news-piece--wide .news-piece__link {
    aspect-ratio: 16 / 9;
  }

  .news-piece--tall .news-piece__link {
    aspect-ratio: 3 / 4;
  }

  .news-piece--standard .news-piece__link {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 560px) {
  .news-editorial {
    grid-template-columns: 1fr;
  }

  .news-piece--feature,
  .news-piece--wide,
  .news-piece--tall,
  .news-piece--standard {
    grid-column: span 1;
  }

  .news-piece--feature .news-piece__link {
    aspect-ratio: 4 / 3;
  }

  .news-piece--wide .news-piece__link {
    aspect-ratio: 16 / 10;
  }

  .news-piece--tall .news-piece__link {
    aspect-ratio: 3 / 4;
  }

  .news-piece--standard .news-piece__link {
    aspect-ratio: 5 / 4;
  }
}

/* ---------- 5 · Cierre / CTA ----------
   Resto del componente compartido vía assets/css/base.css; aquí solo el
   ancho de título propio de esta página. */
.cta-final h2 {
  max-width: 24ch;
}
