/* =========================
    SECCIÓN NOTICIAS (LISTADO) – BLOQUE ORIGINAL
   ========================= */

.section-news {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4.2rem;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.6), transparent 55%),
    #050509;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.section-news__inner {
  position: relative;
}

.news__header {
  text-align: left;
  margin-bottom: 2.3rem;
}

.news__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.news__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news__subtitle {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Grid de tarjetas */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Tarjeta de noticia */

.news-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 5px;
  border: 1px solid rgba(30, 64, 175, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.news-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Imagen */

.news-card__figure {
  margin: 0;
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
}

.news-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cuerpo */

.news-card__body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Meta (fecha + tag) */

.news-card__meta {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.news-card__dot {
  margin: 0 0.3rem;
}

.news-card__tag {
  color: var(--color-primary);
}

/* Título + extracto */

.news-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.news-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.news-card__more {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

/* Hover */

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(251, 190, 36, 0.6);
}

.news-card:hover .news-card__title {
  color: var(--color-text);
}

.news-card:hover .news-card__more {
  color: var(--color-primary);
}

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

.section-news-single {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4.2rem;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.6), transparent 55%),
    #050509;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.section-news-single__inner {
  position: relative;
  max-width: 800px;
}

/* Cabecera noticia */

.news-single__header {
  margin-bottom: 1.6rem;
}

.news-single__meta {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

.news-single__dot {
  margin: 0 0.3rem;
}

.news-single__tag {
  color: var(--color-primary);
}

.news-single__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Imagen principal */

.news-single__figure {
  margin: 0 0 1.4rem;
}

.news-single__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.news-single__caption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Contenido */

.news-single__content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.news-single__content p {
  margin: 0 0 0.9rem;
}

.news-single__content h2,
.news-single__content h3 {
  margin: 1.7rem 0 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text);
}

.news-single__content a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(225, 29, 72, 0.6);
}

.news-single__content a:hover {
  color: #fecaca;
  border-color: #fecaca;
}

@media (max-width: 600px) {
  .section-news,
  .section-news-single {
    padding: 3.2rem 0 3.4rem;
  }

  .news-single__title {
    font-size: 1.7rem;
    letter-spacing: 0.14em;
  }
}

/* ============================================
   NOTICIAS – LISTADO + TEASER LANDING (UNIFICADO)
   ============================================ */

/* LISTADO GENERAL (página noticias.html) */

.section-news {
  position: relative;
  z-index: 1;
  padding: 8rem 0 4rem;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.6), transparent 55%),
    #050509;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.section-news__inner {
  position: relative;
}

.news__header {
  margin-bottom: 2rem;
}

.news__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.news__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* GRID DE TARJETAS – PÁGINA NOTICIAS */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* TARJETA BASE (se usa en listado y en teaser landing) */

.news-card {
  background: #020617;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.news-card__image-link {
  display: block;
}

.news-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.news-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
}

.news-card__meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.news-card__tag {
  font-weight: 600;
  color: var(--color-primary);
}

.news-card__date {
  opacity: 0.85;
}

.news-card__title {
  margin: 0;
  font-size: 1rem;
}

.news-card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.news-card__title a:hover {
  color: var(--color-primary);
}

.news-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.news-card__more {
  margin-top: auto;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.news-card__more::after {
  content: "→";
  font-size: 0.9rem;
}

/* Hover general */

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  border-color: rgba(248, 250, 252, 0.4);
}

.news-card:hover .news-card__image {
  transform: scale(1.05);
}

/* ==============================
   TEASER NOTICIAS EN LA LANDING
   ============================== */

.section-news-teaser {
  margin-top: 3.4rem;
  padding: 1rem 0 0;
  border-top: 0 solid rgba(15, 23, 42, 0.9);
}

.section-news-teaser__inner {
  position: relative;
  text-align: right;
}

.news-teaser__header {
  margin-bottom: 1.8rem;
}

.news-teaser__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.news-teaser__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.news-teaser__subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Carrusel horizontal de noticias (landing) */

.news-teaser-carousel {
  position: relative;
}

.news-teaser-grid {
  margin-top: 1.6rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 0 0.6rem;
  scroll-snap-type: x mandatory;
}

/* Ocultar scrollbar, pero permitir scroll táctil/ratón */
.news-teaser-grid::-webkit-scrollbar {
  display: none;
}
.news-teaser-grid {
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

/* Cada tarjeta teaser “ancla” en el carrusel */
.news-card--teaser {
  flex: 0 0 280px;
  scroll-snap-align: center;
}

/* ✅ Dots del carrusel de noticias */

.news-teaser__dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition:
    background-color 0.18s ease,
    opacity 0.18s ease,
    transform 0.12s ease;
}

.carousel-dot.is-active {
  background: rgba(248, 250, 252, 0.9);
  opacity: 1;
  transform: scale(1.15);
}

/* Botón Ver todas las noticias */

.news-teaser__footer {
  margin-top: 2rem;
  margin-bottom: 60px;
  text-align: right;
}

/* RESPONSIVE NOTICIAS */

@media (max-width: 900px) {
  .section-news {
    padding: 3.6rem 0 3.6rem;
  }

  .news-grid {
    gap: 1.6rem;
  }

  .news-teaser-grid {
    margin-top: 1.4rem;
  }

  .news-card--teaser {
    flex: 0 0 240px;
  }
}

@media (max-width: 600px) {
  .section-news {
    padding: 3.2rem 0 3.4rem;
  }

  .news__title {
    font-size: 1.7rem;
    letter-spacing: 0.14em;
  }

  .news-teaser__title {
    font-size: 1.6rem;
    letter-spacing: 0.14em;
  }

  .news-card--teaser {
    flex: 0 0 210px;
  }
}
