.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  z-index: 1080; /* por encima de modals si hace falta */
  backdrop-filter: blur(2px);
}

.loading-card {
  min-width: 280px; max-width: 90vw;
  background: #fff; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  padding: 20px 24px; text-align: center;
}

.loading-title {
  font-weight: 700; color: #198754; /* success */
  font-size: 1.1rem; margin-top: 8px;
}

.loading-text { color: #555; margin-top: 6px; font-size: .98rem; }

.loading-spinner {
  width: 40px; height: 40px; margin: 0 auto;
  border: 3px solid rgba(25,135,84,.2);
  border-top-color: #198754; border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Puntitos animados */
.loading-dots::after {
  content: "";
  animation: dots 1.2s steps(3, end) infinite;
}
@keyframes dots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}

/* Opcional: deshabilitar scroll cuando está visible */
body.loading-no-scroll { overflow: hidden; }