
/* Modal Styles */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 99999; /* Subirlo aún más */
  justify-content: center;
  align-items: center;
}
.modal {
  z-index: 2147483647; /* Valor máximo seguro para browsers */
}


.modal-content {
  position: relative;   /* ✅ Necesario para posicionar la X dentro */
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  width: 30%;
  max-width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}


/* Animación */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Botón de cerrar */

.close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  z-index: 100000; /* ✅ Encima de todo dentro del modal */
}

.close:hover {
  color: #000;
}


/* Inputs */
.form-group {
  margin: 15px 0;
  text-align: left;
}
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
}
input:focus {
  border-color: #007bff;
  outline: none;
}

/* Botón principal */
button {
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 15px;
  transition: background 0.3s;
}
button:hover {
  background: #0056b3;
}
@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  animation: fadeInZoom 0.3s ease; /* Se aplica al abrir */
}
.nuevo-login {
  text-align: center;
  margin-top: 40px;
}

#openModalBtn {
  background: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

#openModalBtn:hover {
  background: #0056b3;
}
