/* ====== MODALES DE LOGIN Y REGISTRO ====== */
.modal {
  display: none; /* 🔒 Oculto por defecto */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-contenido h2 {
  color: #0a1833;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  text-align: center;
}

.modal-contenido form input {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-contenido form input:focus {
  outline: none;
  border-color: #0a1833;
}

.modal-contenido button.btn-primary {
  width: 100%;
  padding: 0.8rem;
  background: #0a1833;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-contenido button.btn-primary:hover {
  background: #14294d;
}

.modal-contenido p {
  text-align: center;
  font-size: 0.95rem;
}

.modal-contenido a {
  color: #0a1833;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

.modal .cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #0a1833;
  cursor: pointer;
}

/* Animación de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
