/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
}

/* FONDO CON CAPA OSCURA E IMAGEN */
body {
  background: 
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("../assets/images/celeste.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* CONTENEDOR DE PANTALLAS */
.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
}

.screen.active {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CAJA DE EDAD (DISEÑO BASE PARA PC) */
.box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px 60px;
  border-radius: 25px;
  text-align: center;
  width: 100%;
  max-width: 450px; /* Tamaño máximo en PC */
  color: white;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.box h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.box p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* INPUT */
.box input {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: none;
  font-size: 1.1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  outline: none;
}

/* BOTÓN */
.box button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: #00AEEF;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.box button:hover {
  background: #0066CC;
  transform: scale(1.03);
}

/* =============================================
   MÓVIL Y TABLETS (Media Queries)
   ============================================= */

/* Para Tablets (Pantallas menores a 768px) */
@media (max-width: 768px) {
  .box {
    max-width: 380px;
    padding: 40px 45px;
  }
  
  .box h2 {
    font-size: 1.8rem;
  }
}

/* Para Celulares (Pantallas menores a 480px) */
@media (max-width: 480px) {
  .box {
    max-width: 90%; /* Se adapta al ancho del celular */
    padding: 30px 25px;
    border-radius: 20px;
  }

  .box h2 {
    font-size: 1.5rem;
  }

  .box p {
    font-size: 1rem;
  }

  .box input, .box button {
    padding: 12px;
    font-size: 1rem;
  }
}