/* ================================================================
   WEBAPP: Loading Overlay - MODO OSCURO
   ================================================================ */

#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.3s ease;
}
#loading-overlay.ocultando {
  opacity: 0;
  pointer-events: none;
}

.carga-spinner {
  width: 52px; height: 52px;
  border: 4px solid #2a2a4a;
  border-top-color: #ce93d8;
  border-radius: 50%;
  animation: girar 0.8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.carga-titulo { font-size: 20px; font-weight: bold; color: #ce93d8; }
.carga-subtitulo { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: -16px; }

.carga-pasos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 280px;
}

.carga-paso {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.carga-paso.activo { color: rgba(206, 147, 216, 0.9); font-weight: bold; }
.carga-paso.listo  { color: rgba(129, 199, 132, 0.9); }

.paso-icono {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #2a2a4a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.3s;
}
.carga-paso.activo .paso-icono {
  border-color: #6a1b9a;
  background: rgba(106, 27, 154, 0.2);
  color: rgba(206, 147, 216, 0.9);
}
.carga-paso.listo .paso-icono {
  border-color: #2e7d32;
  background: rgba(46, 125, 50, 0.2);
  color: rgba(129, 199, 132, 0.9);
}
