/* GENERAL */ 
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f7f7f7;
  color: #333;
}

/* HEADER */
h2 {
  font-size: 2rem;
  color: #072268;
  text-align: center;
  margin-bottom: 20px;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #072268;
  padding: 20px 30px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo-nav {
  height: 40px;
  margin-right: 10px;
}

.titulo-nav {
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  gap: 12px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #00AEEF;
}

.nav-social i {
  color: white;
  font-size: 20px;
  margin-left: 10px;
}

.separator {
  color: #ffffffa0;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

/* BOTÓN ADMIN & REGISTRO */
.admin-btn,
.registro-btn {
  background-color: #00AEEF;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.admin-btn:hover {
  background-color: #007fad;
}

.registro-btn {
  background-color: #28a745;
}

.registro-btn:hover {
  background-color: #1f7c32;
}

.nav-social a img {
  height: 24px;
  margin-left: 12px;
}

/* HERO */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-con-imagen {
  background-image: url('../img/Banner.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f5f5f5;
  width: 100%;
  min-height: 100vh;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.subtitulo {
  font-size: 1.6rem;
  margin-bottom: 30px;
}

/* CONTADOR */
.contador {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
  font-size: 1.2rem;
  flex-wrap: wrap;
}

.contador div {
  text-align: center;
  background-color: #00AEEF;
  padding: 20px;
  border-radius: 12px;
  min-width: 100px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contador span {
  display: block;
  font-size: 3rem;
  font-weight: bold;
}

/* FORMULARIO */
form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

label {
  font-weight: bold;
  display: block;
  margin-top: 1rem;
}

input, select {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.btn, .boton-inscripcion {
  background: #00AEEF;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  margin-top: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-weight: bold;
  transition: background 0.3s ease;
  font-size: 1.1rem;
  min-width: 180px;
}

.btn:hover, .boton-inscripcion:hover {
  background: #007fad;
}

#mensajeCedula {
  color: red;
  margin-top: 0.5rem;
  display: none;
}

#mensaje_error {
  margin-top: 1rem;
}

/* SECCIONES */
.seccion {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.seccion h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #072268;
  text-align: center;
}

.seccion ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seccion p {
  line-height: 1.6;
  margin-bottom: 20px;
}

/* FONDO KIT */
.fondo-azul {
  background-color: #f0f8ff;
  border-top: 2px solid #00AEEF;
  border-bottom: 2px solid #00AEEF;
}

/* IMÁGENES */
.imagen-kit,
.imagen-ruta {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ZOOM para la imagen de la ruta */
.imagen-ruta {
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.imagen-ruta:hover {
  transform: scale(1.5);
  z-index: 10;
}

/* BANNER FINAL */
.footer-banner {
  width: 100%;
  background-color: #072268;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contenedor-banner-final {
  width: 100%;
  max-width: 1400px;
  overflow: hidden;
}

.banner-final-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* BOTÓN HAMBURGUESA (solo móvil) */
.mobile-menu-toggle {
  display: none;
}

#menuBtn {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px 20px;
}

/* MENÚ MÓVIL */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: #072268;
  padding: 10px 0;
  text-align: center;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  padding: 10px 0;
  font-size: 1.2rem;
  border-top: 1px solid #ffffff33;
}

.mobile-nav a:hover {
  background-color: #00aeef33;
}

.mobile-nav.show {
  display: flex;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-social {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    justify-content: flex-end;
    background-color: #072268;
    padding: 10px 20px;
  }

  .contador {
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    margin: 20px 0;
  }

  .contador div {
    min-width: 70px;
    padding: 12px;
  }

  .contador span {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .subtitulo {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .botones-centrados {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 1rem;
  }

  .btn-igual,
  .btn,
  .boton-inscripcion,
  .registro-btn {
    font-size: 0.9rem !important;
    padding: 10px 16px !important;
    min-width: 140px !important;
  }

  .overlay-con-imagen {
    background-image: url('../img/Banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 600px;
    padding: 0 15px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .imagen-ruta:hover {
    transform: scale(1.1);
  }

  .banner-final-img {
    object-fit: contain;
  }

/* CORRECCIÓN: Eliminar espacio entre navbar y héroe en todas las vistas */
.overlay-con-imagen {
  margin-top: -5px;
}

@media (max-width: 768px) {
  .overlay-con-imagen {
    margin-top: -5px;
  }
}

}
