/* BodegaFlex POS — Ventana «Cargando…» (js/cargando.js). Va encima de todo, también de las pantallas del plan. */
#bf-cargando {
  --bf-cargando-tarjeta: #ffffff;
  --bf-cargando-texto: #0f172a;
  position: fixed;
  inset: 0;
  z-index: 2147483400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  animation: bf-cargando-aparece 0.2s ease-out;
}
html[data-tema="noche"] #bf-cargando {
  --bf-cargando-tarjeta: #1e293b;
  --bf-cargando-texto: #e2e8f0;
  background: rgba(2, 6, 23, 0.6);
}
#bf-cargando .bf-cargando-tarjeta {
  background: var(--bf-cargando-tarjeta);
  color: var(--bf-cargando-texto);
  border-radius: 18px;
  padding: 18px 22px 16px;
  min-width: 200px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
#bf-cargando .bf-cargando-escenario {
  width: 160px;
  height: 110px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding-bottom: 18px;
}
#bf-cargando .bf-cargando-escenario.bf-cargando-libre {
  display: block;
  padding: 0;
}
#bf-cargando .bf-cargando-texto {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}
/* Animación de reserva: tres pelotitas que brincan, pom pom pom */
#bf-cargando .bf-cargando-pelota {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  animation: bf-cargando-brinco 0.9s ease-in-out infinite;
}
#bf-cargando .bf-cargando-pelota:nth-child(2) { background: #16a34a; animation-delay: 0.15s; }
#bf-cargando .bf-cargando-pelota:nth-child(3) { background: #2563eb; animation-delay: 0.3s; }

@keyframes bf-cargando-brinco {
  0%, 100% { transform: translateY(0) scale(1.15, 0.85); }
  45% { transform: translateY(-46px) scale(0.95, 1.05); }
}
@keyframes bf-cargando-aparece {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #bf-cargando, #bf-cargando .bf-cargando-pelota { animation: none; }
}
