/* Indicador de carga con la marca SypplyNet (reemplaza el circulo grande de MudBlazor). */
.sn-cargando {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* La marca aparece despues de 180 ms: si la pagina carga rapido, nunca se ve.
   El fondo NO se retrasa, asi no asoma el blanco del navegador. */
.sn-cargando > * {
    opacity: 0;
    animation: sn-cargando-in .35s ease .18s forwards;
}

.sn-cargando--pantalla {
    height: 100vh;
    width: 100%;
    background: var(--sn-bg, #F8FAFC);
}

.sn-cargando--bloque {
    min-height: 220px;
    width: 100%;
    padding: 32px 0;
}

.sn-cargando__marca {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -.02em;
    color: var(--sn-text, #1A2332);
    animation: sn-cargando-in .35s ease .18s forwards, sn-cargando-pulso 2.2s ease-in-out 1s infinite;
}

.sn-cargando__marca strong {
    font-weight: 800;
    color: var(--sn-accent, #F97316);
}

.sn-cargando--bloque .sn-cargando__marca { font-size: 20px; }

.sn-cargando__barra {
    position: relative;
    width: 132px;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--sn-border, rgba(100, 116, 139, .25));
}

.sn-cargando__barra span {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--sn-accent, #F97316), transparent);
    animation: sn-cargando-barra 1.15s cubic-bezier(.45, 0, .25, 1) infinite;
}

.sn-cargando__texto {
    font-size: 12px;
    color: var(--sn-text-2, #64748B);
}

@keyframes sn-cargando-in { to { opacity: 1; } }
@keyframes sn-cargando-pulso { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
@keyframes sn-cargando-barra { 0% { left: -45%; } 100% { left: 103%; } }

/* Quien prefiere menos movimiento ve una barra fija, sin animaciones. */
@media (prefers-reduced-motion: reduce) {
    .sn-cargando > *, .sn-cargando__marca, .sn-cargando__barra span { animation: none; opacity: 1; }
    .sn-cargando__barra span { left: 29%; }
}
