/* --- Loader Inicial Premium (Minimalist SaaS Aesthetic) --- */

#loading-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  background-image: radial-gradient(circle at center, #ffffff 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease-out;
}

.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 250px;
  width: 80%;
}

.loading-logo {
  width: 120px;
  height: auto;
  animation: logoPulse 2.5s ease-in-out infinite;
}

.loading-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Barra de progreso minimalista */
.loading-progress-container {
  width: 100%;
  height: 2px;
  background-color: #f1f3f5;
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.loading-progress-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #519de1, transparent);
  animation: progressBar 1.8s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.loading-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #adb5bd;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Animaciones */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes progressBar {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsividad */
@media (max-width: 600px) {
  .loading-logo {
    width: 100px;
  }
  .loading-text {
    font-size: 0.75rem;
  }
}