/* Adaptado del Loader de CRM-Cobranza; solo transform y opacity animados. */
.cg-carga-pantalla {
    position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
    padding: 24px; pointer-events: none;
    background: radial-gradient(120% 80% at 50% 35%, #0b1322 0%, #050810 60%, #030712 100%);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.cg-carga-pantalla[hidden] { display: none !important; }
.cg-carga { display: flex; flex-direction: column; align-items: center; gap: 16px; user-select: none; }
.cg-carga-escena { position: relative; display: grid; place-items: center; width: 84px; height: 84px; }
.cg-carga-brillo {
    position: absolute; inset: -22%; border-radius: 50%;
    background: radial-gradient(circle, rgb(0 119 192 / 55%), transparent 68%);
    filter: blur(6px); animation: cg-carga-brillar 2s ease-in-out infinite;
}
.cg-carga-anillo {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 90deg, transparent 0deg, rgb(0 119 192 / 12%) 130deg, #2a9ae6 290deg, #0077c0 360deg);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 calc(100% - 4px));
    animation: cg-carga-girar 1.1s linear infinite;
}
.cg-carga-orbita { position: absolute; inset: 0; animation: cg-carga-girar 2.4s linear infinite reverse; }
.cg-carga-orbita::before {
    content: ""; position: absolute; top: -3px; left: 50%; width: 7px; height: 7px;
    margin-left: -3.5px; border-radius: 50%; background: #2a9ae6; box-shadow: 0 0 10px 2px rgb(42 154 230 / 85%);
}
.cg-carga-placa {
    position: relative; width: 72%; height: 72%; border-radius: 24%; overflow: hidden;
    background: #fff; box-shadow: 0 12px 32px -8px rgb(0 0 0 / 55%);
    animation: cg-carga-respirar 2s ease-in-out infinite;
}
.cg-carga-placa img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cg-carga-destello {
    position: absolute; inset: 0 auto 0 0; width: 45%;
    background: linear-gradient(100deg, transparent, rgb(255 255 255 / 70%), transparent);
    transform: translateX(-160%) skewX(-18deg); animation: cg-carga-barrer 2.6s ease-in-out .4s infinite;
}
.cg-carga-marca { color: #f1f5f9; font-size: 1.1rem; font-weight: 650; letter-spacing: .04em; }
.cg-carga-texto { display: inline-flex; align-items: baseline; color: #94a3b8; font-size: .85rem; font-weight: 600; }
.cg-carga-puntos { display: inline-flex; margin-left: 1px; }
.cg-carga-puntos i { width: .32em; font-style: normal; animation: cg-carga-punto 1.4s ease-in-out infinite; }
.cg-carga-puntos i:nth-child(2) { animation-delay: .2s; }
.cg-carga-puntos i:nth-child(3) { animation-delay: .4s; }
.cg-carga-puntos i::before { content: "."; }
@keyframes cg-carga-girar { to { transform: rotate(360deg); } }
@keyframes cg-carga-respirar { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes cg-carga-brillar { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: .7; transform: scale(1.08); } }
@keyframes cg-carga-barrer { 0% { transform: translateX(-160%) skewX(-18deg); } 55%, 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes cg-carga-punto { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .cg-carga *, .cg-carga *::before { animation: none !important; }
    .cg-carga-orbita, .cg-carga-destello { display: none; }
    .cg-carga-brillo { opacity: .4; }
}
@media print { .cg-carga-pantalla { display: none !important; } }
