body {
  font-family: "Oswald", Arial, sans-serif;
  /* background: #f9f9f9; */
  background: url(background.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  text-transform: uppercase; /* opcional, da el estilo Villarreal */
}

h2, h3 {
  color: #002244;
  font-weight: 500;
}

.texto-legal {
  font-family:  Arial, sans-serif !important;
  line-height: 25px;
}

button {
  background: #fdd835;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  font-family: "Oswald", Arial, sans-serif;
}

.contenedor {
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  padding: 40px;
  width: 90%;
  max-width: 585px;
  text-align: center;
  font-family: "Oswald", Arial, sans-serif;
}

input {
  /* width: 100%; */
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: "Oswald", Arial, sans-serif;
}

#user, #pass {
    width: 100%;
}

button:hover {
  background: #ffeb3b;
}

.pantalla {
  display: none;
}

.pantalla.activa {
  display: block;
}

.codigo {
  font-size: 1.5em;
  color: #002244;
  font-weight: bold;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
  margin: 10px 0;
}

.msg {
  margin-top: 10px;
  color: red;
}

.ayuda {
  display: block;
  margin-top: 15px;
  color: #002244;
  font-size: 0.9em;
  text-decoration: underline;
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-contenido {
  margin: auto;
  display: block;
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.modal-contenido img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.cerrar {
  color: #333;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-right: 10px;
}


/* Alinear checkbox y texto */
.consentimiento {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.consentimiento input[type="checkbox"] {
  transform: scale(1.3);
  cursor: pointer;
}

.consentimiento label {
  font-size: 0.95em;
  color: #002244;
  cursor: pointer;
}

/* Móviles medianos (≤ 768px) */
@media (max-width: 768px) {
  body {
    padding: 20px;
    height: auto;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .contenedor {
    width: 100%;
    max-width: 100%;
    padding: 25px;
    box-shadow: none;
  }

  h2 {
    font-size: 1.3em;
  }

  input, button {
    font-size: 1em;
  }

  .codigo {
    font-size: 1.5em;
    padding: 8px 10px;
  }

  .modal-contenido {
    max-width: 90%;
    padding: 5px;
  }
}

/* Móviles pequeños (≤ 480px) */
@media (max-width: 480px) {
  h2 {
    font-size: 1.1em;
  }

  input, button {
    font-size: 0.9em;
    padding: 10px;
  }

  .codigo {
    font-size: 1.3em;
  }

  .consentimiento {
    flex-direction: row;
/*     justify-content: flex-start;
 */  }

  .ayuda {
    font-size: 0.8em;
  }
}