/* --------------------------------------------- */
/* 🔵 ESTILOS GENERALES RESPONSIVE */
/* --------------------------------------------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f8fa;
  margin: 0;
  padding: 20px; /* evita que los bordes se peguen en móvil */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  box-sizing: border-box;
}

/* --------------------------------------------- */
/* 🚫 Ocultar verificación de edad */
/* --------------------------------------------- */
#age-banner,
#mensaje-menor {
  display: none !important;
}

/* Mostrar siempre aviso y formulario */
#form-container,
#aviso {
  display: block !important;
}

/* --------------------------------------------- */
/* 🟠 Aviso + Formulario */
/* --------------------------------------------- */
#form-container {
  background-color: #ffffff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 10;
  margin-top: 20px;
  box-sizing: border-box;
}

#aviso {
  background-color: #fff3e0;
  color: #d32f2f;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
}

/* --------------------------------------------- */
/* 📝 Textos y campos */
/* --------------------------------------------- */
#form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

/* --------------------------------------------- */
/* 🔘 BOTONES */
/* --------------------------------------------- */
button {
  margin-top: 10px;
  padding: 12px 20px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
  width: 100%;
  font-size: 16px;
}

button:hover {
  background-color: #005fa3;
}

button[onclick="reiniciarEdad()"] {
  margin-top: 20px;
  background-color: #f44336;
}

button[onclick="reiniciarEdad()"]:hover {
  background-color: #d32f2f;
}

/* --------------------------------------------- */
/* 📱 RESPONSIVE DESIGN */
/* --------------------------------------------- */

/* Tablets → tamaño más cómodo */
@media (max-width: 768px) {
  #form-container, #aviso {
    max-width: 90%;
    padding: 20px;
  }

  body {
    padding: 10px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  #form-container, #aviso {
    max-width: 100%;
    padding: 15px;
  }

  input, textarea, select {
    font-size: 14px;
  }

  button {
    font-size: 15px;
  }

  h2 {
    font-size: 20px;
  }
}
