h1 {
  font-family: 'Anton', sans-serif;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 50px rgba(255, 215, 0, 0.6), 0 0 10px rgba(255, 215, 0, 0.5);
  font-size: 3rem;
}

.stat-title {
  text-align: center;
  font-family: 'Anton', sans-serif;
  color: var(--gold);
  font-size: 2.3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-shadow: none;
}

/* 🔘 Botón principal */
.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--gold);
  color: #0d0d0d;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta:hover {
  background: #d0ac45;
}

/* ============================= */
/* 🎯 HERO TIPO GIMNASIO CON FONDO OSCURO */
/* ============================= */

.hero-dark {
  position: relative;
  background: url('/img/fondo.webp') no-repeat center center/cover;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  color: white;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-family: 'Anton', sans-serif;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 15px var(--gold);
}

.hero-content p {
  margin: 1.5rem 0;
  font-size: 1rem;
  font-weight: 300;
  color: #ccc;
}

.btn-hero {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid white;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-hero:hover {
  border: 2px solid var(--gold);
  background-color: var(--gold);
  color: var(--dark);
}

/* ================================= */
/* TARJETAS GLOBALES */
/* ================================= */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card-glow {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(191, 154, 51, 0.2);
}

.card-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(191, 154, 51, 0.4);
}

/* ================================= */
/* SECCIÓN STATS MEJORADA */
/* ================================= */

.bouncing-arrow {
  display: inline-block;
  margin-left: 1rem;
  height: 3rem;
  animation: bounceY 2s infinite;
  transform: translateY(0);
}


.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 6rem;
}

.stat-box {
  width: 200px;
  height: 170px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem 1.5rem;
  text-align: center;
}

.stat-box h3 {
  font-size: 4.5rem;
  font-family: 'Anton', sans-serif;
  color: black;
  text-shadow:
    -2px -2px 0 var(--gold),
    2px -2px 0 var(--gold),
    -2px 2px 0 var(--gold),
    2px 2px 0 var(--gold),
    0 0 10px rgba(191, 154, 51, 0.6);
  line-height: 1;
  transform: translateY(-50px)
}

.stat-box p {
  font-weight: bold;
  color: #eee;
  font-size: 1rem;
  margin-top: 0.5rem;
  transform: translateY(-30px)
}

.stat-box span {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.2rem;
  margin-top: 0.25rem;
  transform: translateY(-15px)
}

/* Sección general */
.last-video-section {
  padding: 4rem 2rem;
  max-width: 1500px;
  margin: auto;
}

/* Título */
.last-video-title {
  font-family: 'Anton', sans-serif;
  font-size: 2.3rem;
  color: var(--gold);
  margin-bottom: 2rem;
  text-align: center;
}

.video-wrapper {
  position: relative;
  width: 900px;
  height: 506px;
  margin: 0 auto;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 900px;
  height: 506px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}



/* Sección general */
.news-section {
  padding: 4rem 2rem;
  max-width: 1500px;
  margin: auto;
}

/* Título */
.news-title {
  font-family: 'Anton', sans-serif;
  font-size: 2.3rem;
  color: var(--gold);
  margin-bottom: 2rem;
  text-align: center;
}

/* Tarjeta */
.news-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: scale(1.02);
}

/* Etiqueta */
.news-card .tag {
  background-color: crimson;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 0.3rem;
}

/* Fecha */
.news-card .date {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

/* Título */
.news-card .headline {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Leer más */
.news-card .read-more {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--gold);
  text-decoration: none;
}

.news-card .read-more:hover {
  text-decoration: underline;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Capa oscura encima de la imagen */
  z-index: 0;
}

.news-card>* {
  position: relative;
  z-index: 1;
}

/* 🔁 Wrapper principal del carrusel */
.news-carousel-loop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

/* 🎞️ Contenedor horizontal de las noticias */
.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
}

.carousel-track .news-card {
  /* En PC: hasta 2 tarjetas en pantalla */
  flex: 0 0 clamp(260px, 45vw, 500px);
  max-width: clamp(260px, 45vw, 500px);
}

/* Móvil: una tarjeta ocupa casi todo el ancho */
@media (max-width: 768px) {
  .carousel-track .news-card {
    flex: 0 0 85vw;
    max-width: 85vw;
  }

   .carousel-track {
    margin: 0 auto;
  }

  .news-carousel-loop {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}


/* ⬅️➡️ Flechas de navegación */
.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.news-arrow.left {
  left: 0.5rem;
}

.news-arrow.right {
  right: 0.5rem;
}

.news-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.overlay-card {
  background: #111;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  color: white;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  overflow: hidden;
  padding-bottom: 2rem;
  text-align: left;
}

.overlay-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.overlay-card .tag {
  background: #e61b4c;
  color: white;
  display: block;
  padding: 0.3rem 1rem;
  font-weight: bold;
  width: 95%;
  margin: 1rem auto 1.5rem auto;
  border-radius: 0.3rem;
  text-align: left;
}


.overlay-card .date {
  display: block;
  margin: 0.3rem 1.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.overlay-card h3 {
  margin: 0.5rem 1.5rem;
  font-size: 1.3rem;
}

.overlay-card p {
  margin: 1rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.overlay-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.7rem 2rem;
  background: var(--gold);
  color: black;
  font-weight: bold;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  margin-top: 1rem;
}

.overlay-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

/* ============================= */
/* 🤝 COLABORADORES / PATROCINADORES */
/* ============================= */

.colaboradores {
  padding: 3rem 2rem;
  background: hsla(0, 0%, 5%, 0.75);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.colab-texto h2 {
  color: var(--gold);
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.colab-texto p {
  color: #bbb;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.colab-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 2rem;
}

.colab-track {
  display: flex;
  width: max-content;
  animation: scroll-left 25s linear infinite;
}

.colab-track a {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0rem 5rem 0rem;
}

.colab-track img {
  width: 6rem;
  opacity: 0.7;
  filter: grayscale(1) brightness(2.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.colab-track img:hover {
  transform: scale(1.1);
  opacity: 1;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-30%);
  }
}


@keyframes bounceY {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 900px) {
  .news-row {
    flex-direction: column;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-carrusel-wrapper {
    flex: 1 1 auto;
  }
}

@media (max-width: 768px) {
  .hero-dark {
    height: 60vh;
    clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn-hero {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .stat-box {
    width: 80%;
    height: auto;
    padding: 1rem;
  }

  .news-card {
    height: 250px;
  }

  .carousel-track .news-card {
    flex: 0 0 85vw;
    max-width: 85vw;
  }

  .news-arrow {
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
  }

  .colab-track a {
    margin: 0 2rem;
  }

  .colab-track img {
    width: 4rem;
  }
}

