html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('../img/moto.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Oscurecer fondo */
  backdrop-filter: blur(4px);
  z-index: 1;
}

.contenedor {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  color: #fff;
  animation: fadeSlideUp 1s ease forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Resto de estilos */
.logo-superior {
  width: 200px;
  margin-bottom: 1rem;
}

.cabecera h1 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.cabecera p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

select {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  width: 100%;
  margin-bottom: 1rem;
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mensaje {
  font-size: 1rem;
  color: #39FF14;
}

.intro {
  font-size: 1.2rem;
  margin: 2rem 0 1rem 0;
}

.boton-tienda {
  display: inline-block;
  background: #39FF14;
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.boton-tienda:hover {
  background: #fff;
  color: #2c3e50;
}

/* Animación Entrada */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 70%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-contenido h2 {
  margin-top: 0;
  color: #2c3e50;
}

.modal-contenido p {
  margin: 1rem 0;
  color: #555;
}

.boton-modal {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  color: #000;
  background-color: #39FF14;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.boton-modal:hover {
  background-color: #333;
  color: #fff;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

/* Input de nueva ciudad con mismo estilo que el select */
input {
  height: auto !important;
  padding: 0.75rem !important;
  font-size: 1rem !important;
  border-radius: 10px !important;
  width: 90% !important;
  max-width: 350px !important;
  display: block !important;
  margin: 0 auto 1rem auto !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1)  !important;
  background: #fff !important;
  color: #000 !important;
  outline: none !important;
  border: none !important;
}


/* Botón de registrar ciudad igual al de tienda */
.btn-seguir {
  display: block;
  background: #39FF14;
  color: #000;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  width: 40%; /* mismo ancho que el input */
  margin: 0 auto; /* centrado */
}

.btn-seguir:hover {
  background: #fff;
  color: #2c3e50;
}

/* Estilo especial solo para la modal de nueva ciudad */
.modal-ciudad .modal-contenido {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  color: #000;
}

.modal-ciudad {
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-ciudad.show {
  display: flex;
}


/* Responsive Tablets (<= 768px) */
@media (max-width: 768px) {
  .contenedor {
    padding: 1.5rem;
    max-width: 350px;
  }

  .logo-superior {
    width: 200px;
  }

  .cabecera h1 {
    font-size: 1.8rem;
  }

  .intro {
    font-size: 1rem;
  }
}

/* Responsive Móviles (<= 480px) */
@media (max-width: 480px) {
  .contenedor {
    padding: 1rem;
    max-width: 320px;
  }

  .logo-superior {
    width: 200px;
  }

  .cabecera h1 {
    font-size: 1.5rem;
  }

  .intro {
    font-size: 0.9rem;
  }

  .boton-tienda {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}
