* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: 'Roboto', sans-serif; 
}

body { 
  line-height: 1.6; 
  color: #333; 
  scroll-behavior: smooth; 
}

a { 
  text-decoration: none; 
  color: inherit; 
}

button { 
  cursor: pointer; 
}

/* HEADER */
header {
  background-image: url('images/hero.jpeg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  color: white; 
  text-align: center; 
  position: relative;
}

header::after {
  content: ''; 
  position: absolute; 
  top:0; 
  left:0; 
  width:100%; 
  height:100%; 
  background: rgba(0,0,0,0.5);
}

header .content { 
  position: relative; 
  z-index: 2; 
}

header h1 { 
  font-size: 3rem; 
  margin-bottom: 20px; 
  animation: fadeUp 1s ease forwards; 
  opacity:0; 
}

header p { 
  font-size: 1.5rem; 
  margin-bottom: 30px; 
  animation: fadeUp 1.5s ease forwards; 
  opacity:0; 
}

header a { 
  padding: 12px 35px; 
  background: #ff4b2b; 
  color: white; 
  border-radius: 5px; 
  font-weight: bold; 
  animation: fadeUp 2s ease forwards; 
  opacity:0; 
}

@keyframes fadeUp {
  to { opacity:1; transform: translateY(0); }
  from { opacity:0; transform: translateY(20px); }
}

/* SECCIONES */
section { 
  padding: 80px 20px; 
  max-width: 1200px; 
  margin: auto; 
}

h2 { 
  font-size: 2.5rem; 
  margin-bottom: 20px; 
  text-align:center; 
  color:#ff4b2b; 
}

p { 
  margin-bottom: 15px; 
}

/* GRID */
.grid { 
  display: grid; 
  gap: 20px; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
}

/* EVENTOS */
.evento { 
  background: #f4f4f4; 
  padding: 20px; 
  border-radius: 8px; 
  transition: transform 0.3s; 
}

.evento:hover { 
  transform: translateY(-5px); 
}

.evento a { 
  display: inline-block; 
  margin-top:10px; 
  padding:8px 20px; 
  background:#ff4b2b; 
  color:white; 
  border-radius:5px; 
}

/* TESTIMONIOS */
.testimonial { 
  background:#fff3f0; 
  padding:20px; 
  border-radius:8px; 
}

/* GALERÍA */
.gallery { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); 
  gap:15px; 
}

.gallery img { 
  width:100%; 
  border-radius:8px; 
  transition: transform 0.3s; 
  cursor:pointer; 
}

.gallery img:hover { 
  transform: scale(1.05); 
}

/* FORMULARIO */
form { 
  display: flex; 
  flex-direction: column; 
  gap:10px; 
  max-width:600px; 
  margin:auto; 
}

input, select, textarea { 
  padding:12px; 
  border-radius:5px; 
  border:1px solid #ccc; 
  width:100%; 
}

button.submit { 
  padding:12px; 
  background:#ff4b2b; 
  color:white; 
  border:none; 
  border-radius:5px; 
  font-weight:bold; 
}

#mensaje { 
  text-align:center; 
  margin-top:15px; 
  color:green; 
  font-weight:bold; 
}

/* FOOTER */
footer { 
  background: #222; 
  color:white; 
  text-align:center; 
  padding:30px 20px; 
}

footer a { 
  color:#ff4b2b; 
  margin:0 10px; 
}

/* ANIMACIÓN SCROLL */
.fade-scroll { 
  opacity:0; 
  transform: translateY(20px); 
  transition: all 0.8s ease-out; 
}

.fade-scroll.show { 
  opacity:1; 
  transform: translateY(0); 
}

/* === GALERÍA UNIFORME Y LIGHTBOX === */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 30px;
}

.gallery img {
  width: 100%;
  height: 200px; /* uniforma el alto */
  object-fit: cover; /* recorta sin deformar */
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Lightbox (solo aparece cuando se abre una imagen) */
.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none; /* No bloquea clics cuando está oculto */
  transition: opacity 0.3s ease;
  z-index: 999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255,255,255,0.3);
}


/* === Mensajes de error visual === */
.error-msg {
  color: #ff3b3b;
  font-size: 0.85em;
  margin: 4px 0 10px 0;
  display: block;
  min-height: 16px;
}

input.error, select.error {
  border-color: #ff3b3b;
  background-color: #fff0f0;
}






#inscripcionForm {
  position: relative;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 1;
}

#inscripcionForm::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('images/zombie.jpg'); /* tu imagen */
  background-size: cover;
  background-position: center;
  opacity: 0.3; /* ajusta la opacidad */
  z-index: -1; /* detrás del formulario */
}


#inscripcionForm input,
#inscripcionForm select,
#inscripcionForm textarea {
  background-color: rgba(255, 255, 255, 0.85); /* semi-transparente */
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  width: 100%;
  margin-bottom: 15px;
}


/* Contenedor del checkbox */
.checkbox-container {
  display: inline-block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  user-select: none;
  color: #333;
}

/* Checkbox oculto nativo */
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Estilo para la etiqueta del checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px; /* separación entre checkbox y texto */
  font-size: 1rem; /* tamaño del texto */
  color: rgba(255, 255, 255, 0.8); /* color más claro */
  cursor: pointer;
}

/* Aumentar el tamaño del checkbox */
#acepta_terminos {
  width: 25px;
  height: 25px;
  accent-color: #ff6b6b; /* color del check */
  cursor: pointer;
}

/* Contenedor flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  padding: 10px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 1000;
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: transform 0.2s, opacity 0.2s;
  max-width: 90%;       /* No exceda ancho de pantalla */
}

.whatsapp-float:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.whatsapp-float img {
  width: 40px;
  height: 40px;
}

.whatsapp-text {
  font-size: 14px;
  white-space: nowrap;
}

/* Ajuste para móviles */
@media (max-width: 480px) {
  .whatsapp-float {
    padding: 8px 10px;
    gap: 6px;
  }
  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }
  .whatsapp-text {
    font-size: 12px;
  }
}



/* Fondo del modal */
.modal-terminos {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0; /* equivale a top:0, left:0, right:0, bottom:0 */
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

/* Cuadro de contenido */
.modal-terminos-content {
  background-color: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: left;
  animation: slideUp 0.3s ease;
}

/* Botón de cierre */
.close-terminos {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  font-weight: bold;
}

.close-terminos:hover {
  color: #e74c3c;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsivo */
@media (max-width: 600px) {
  .modal-terminos-content {
    width: 95%;
    padding: 20px;
    font-size: 15px;
    max-height: 85vh;
  }

  .close-terminos {
    font-size: 24px;
    top: 8px;
    right: 10px;
  }

  .modal-terminos ol {
    padding-left: 18px;
  }
}


footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}

footer p {
  margin: 5px 0;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: #fff;
  margin: 0 10px;
  font-size: 24px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ffcc00; /* color al pasar el mouse */
}


#ver-terminos {
  color: #007BFF; /* 🔹 Azul profesional */
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

#ver-terminos:hover {
  color: #0056b3; /* Azul más oscuro al pasar el cursor */
  border-bottom: 1px solid #0056b3;
}

