/* =======================================================
   NOTICIA: Premio Vida (sección en la home + página propia)
   Usa las variables --rosa, --verde y --glow-rosa de styles.css
   ======================================================= */

/* ================= SECCIÓN EN LA HOME ================= */

.section-noticia {
  background: linear-gradient(180deg, #000 0%, #0b0220 50%, #000 100%);
  padding: 140px 8% 160px;
}

.section-noticia > h2 {
  font-size: 2.6rem;
  margin-bottom: 50px;
}

.noticia-card {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  align-items: center;
  text-align: left;
}

.noticia-texto {
  position: relative;
  z-index: 3; /* por encima de los degradados de .section::before/::after */
}

.noticia-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid var(--verde);
  background: rgba(39, 245, 118, 0.1);
  color: var(--verde);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.noticia-titular {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  color: white;
  margin: 18px 0 15px;
}

.noticia-titular span {
  color: var(--rosa);
}

.noticia-resumen {
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 10px;
}

a.boton-noticia {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border-radius: 10px;
  border: 2px solid #ff4da6;
  background: transparent;
  color: #ff4da6;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: none;
  box-shadow: var(--glow-rosa);
  transition: all 0.3s ease;
}

a.boton-noticia:hover {
  color: black;
  background: #ff4da6;
  transform: translateY(-2px);
  box-shadow:
    0 0 10px #ff4da6,
    0 0 20px #ff4da6,
    0 0 40px #bf006d;
}

/* ================= CARRUSEL (común a home y noticia) ================= */

.news-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid rgba(191, 0, 109, 0.45);
  box-shadow: var(--glow-rosa);
  background: #111;
  z-index: 3;
}

.news-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease-in-out, transform 5s ease;
}

.news-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Puntos */
.news-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

/* Se anulan los estilos globales de "button" de styles.css */
button.news-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  transition: background 0.3s, transform 0.3s;
}

button.news-dot:hover {
  opacity: 1;
  transform: scale(1.3);
  box-shadow: none;
}

button.news-dot.active {
  background: var(--rosa);
  transform: scale(1.3);
}

/* Flechas */
button.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.1rem;
  box-shadow: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
}

.news-carousel:hover button.news-arrow {
  opacity: 1;
}

button.news-arrow:hover {
  background: var(--rosa);
  opacity: 1;
  transform: translateY(-50%);
  box-shadow: none;
}

button.news-prev { left: 12px; }
button.news-next { right: 12px; }

/* ================= PÁGINA DE LA NOTICIA ================= */

.noticia-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 160px 8% 90px;
  text-align: left;
}

.noticia-page h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: 1px;
  line-height: 1.25;
  color: white;
  margin: 18px 0 35px;
}

.noticia-page h1 span {
  color: var(--rosa);
}

.news-carousel.news-carousel-grande {
  aspect-ratio: 3 / 4;
  max-width: 460px;
  margin: 0 auto 45px;
}

.noticia-cuerpo p {
  color: #ccc;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.noticia-cuerpo p.noticia-lead {
  font-size: 1.2rem;
  color: white;
}

.noticia-cuerpo strong {
  color: white;
}

.noticia-cuerpo a {
  color: var(--verde);
}

.noticia-cuerpo p.noticia-cierre {
  color: var(--rosa);
  font-weight: bold;
  margin-top: 30px;
}

/* ================= MÓVIL ================= */

@media (max-width: 900px) {
  .section-noticia {
    padding: 180px 8%;
  }

  .section-noticia > h2 {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .noticia-card {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .noticia-page {
    padding-top: 140px;
  }

  /* En móvil no hay hover: las flechas siempre visibles pero discretas */
  button.news-arrow {
    opacity: 0.8;
    width: 34px;
    height: 34px;
  }

  .news-carousel.news-carousel-grande {
    max-width: 360px;
  }
}