/* ============ RESET GENERAL ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #0b0b0b;
  color: #fff;
  overflow-x: hidden;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  flex-wrap: wrap; /* permite que el contador y el logo bajen si no caben */
}
.logo img {
  width: 180px;
  height: auto;
  max-width: 100%;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.nav-menu a:hover {
  color: #ff00ff;
}

/* ============ HAMBURGUESA ============ */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

/* ============ SECCIONES CON IMÁGENES ============ */
section {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #0b0b0b;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Usa aspect-ratio para mantener proporciones de cada imagen */
.hero       { background-image: url('images/inicio.png'); aspect-ratio: 1920/1228; margin-top: 100px; }
.inscripciones { background-image: url('images/inscripciones.png'); aspect-ratio: 1921/808; }
.precios    { background-image: url('images/precios.png'); aspect-ratio: 1696/1686; }
.categorias { background-image: url('images/categorias.png'); aspect-ratio: 1921/1304; }
.expo       { background-image: url('images/expo.png'); aspect-ratio: 1921/719; }
.recorrido  { background-image: url('images/recorrido.png'); aspect-ratio: 1921/1556; }
.premios    { background-image: url('images/premios.png'); aspect-ratio: 1921/3578; }
.normas     { background-image: url('images/normas.png'); aspect-ratio: 1921/1590; }

/* ============ CONTADOR (DOS LÍNEAS EN RECUADRO) ============ */
.header-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
  border: 2px solid #00FFFF;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 10px rgba(0,255,255,0.4), inset 0 0 10px rgba(255,0,255,0.3);
  line-height: 1.2;
  flex-shrink: 0;
}

.header-countdown .countdown-label {
  color: #FF00FF;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.header-countdown .countdown-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.header-countdown #days,
.header-countdown #hours,
.header-countdown #minutes,
.header-countdown #seconds {
  color: #00FFFF;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0,255,255,0.6);
}
.header-countdown .unit {
  color: #FF00FF;
  font-size: 0.8rem;
  font-weight: 600;
}
.header-countdown:hover {
  box-shadow: 0 0 15px rgba(0,255,255,0.8), inset 0 0 15px rgba(255,0,255,0.4);
  transform: scale(1.03);
}

/* ============ FOOTER ============ */
footer {
  background: #000;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #333;
}
footer a {
  color: #00ffff;
  text-decoration: none;
}

/* ============ RESPONSIVE ============ */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  .logo img { width: 150px; }
  .navbar { padding: 0.8rem 1.2rem; }
  .nav-menu ul { gap: 1rem; }
  .header-countdown { margin-left: 0.5rem; padding: 0.4rem 0.8rem; }
  .header-countdown .countdown-label { font-size: 0.8rem; }
  .header-countdown #days,
  .header-countdown #hours,
  .header-countdown #minutes,
  .header-countdown #seconds { font-size: 1rem; }
  section { background-size: cover; } /* llena mejor en pantallas intermedias */
}

/* Móviles */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .logo img { width: 140px; }
  .header-countdown {
    margin: 0.5rem 0;
    width: 100%;
    align-self: center;
    text-align: center;
  }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: 70%;
    background: rgba(0,0,0,0.95);
    transition: 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-menu.active { right: 0; }
  .nav-menu ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

  section {
    aspect-ratio: auto;
    background-size: cover; /* usa cover para que se adapte a móvil */
    min-height: 300px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
  .logo img { width: 120px; }
  .header-countdown { padding: 0.3rem 0.5rem; }
  .header-countdown .countdown-label { font-size: 0.7rem; }
  .header-countdown #days,
  .header-countdown #hours,
  .header-countdown #minutes,
  .header-countdown #seconds { font-size: 0.9rem; }
  section { min-height: 240px; }
}

/* ─── Botón centrado Inscribirme ─────────────────────────── */
.inscripciones {
  position: relative;
  text-align: center;
  padding: 4rem 0;
}

.btn-inscribirme {
  display: inline-block;
  background: linear-gradient(90deg, #ff00ff, #ff8800);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: glowPulse 2s infinite;
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.4);
}

.btn-inscribirme:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(255, 136, 0, 0.7);
}

/* Animación suave de brillo */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.4),
                0 0 20px rgba(255, 136, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6),
                0 0 60px rgba(255, 136, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.4),
                0 0 20px rgba(255, 136, 0, 0.3);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .btn-inscribirme {
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
  }
}