/* Logo NQS con el triángulo de la Q girando, como en nqsuite.io (portada 23/11: logo_q.py).
   Mismas piezas (Q sin triángulo + triángulo aparte), misma posición y el mismo giro: quieto y, cada 5 s, una vuelta
   de 360° que arranca despacio y se acelera (0,95 s). Con «reducir movimiento» no gira.
   Uso: <span class="nqs-marca" style="--ancho:160px"><span class="nqs-marca__lienzo">
          <img src="/web/pwa/marca/logo-sin-triangulo.webp" alt="NQS"><i class="nqs-marca__tri"></i></span></span> */
.nqs-marca { position: relative; display: inline-block; width: var(--ancho, 160px); aspect-ratio: 1 / .42; overflow: hidden; }
.nqs-marca__lienzo { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1; transform: translateY(-50%); }
.nqs-marca__lienzo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nqs-marca__tri { position: absolute; left: 47.5%; top: 40.875%; width: 13.25%; height: 13.25%;
  background: url(/web/pwa/marca/triangulo.webp) center / contain no-repeat; pointer-events: none;
  animation: nqsQGira 5s linear infinite; will-change: transform; }
@keyframes nqsQGira { 0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(.55, 0, .8, .75); } 19%, 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nqs-marca__tri { animation: none; } }

/* Pantalla de carga (index.html + carga.js), basada en la de nqsuite.io: círculo de carga y triángulo que acelera; al
   terminar, el triángulo se deshace en polvo estelar (con un resplandor suave) y se abre el gráfico. */
.nqs-carga { position: fixed; inset: 0; z-index: 2147483000; background: #131722; display: grid; place-items: center;
  transition: background-color 1.1s ease; }
.nqs-carga.fuera { background-color: rgba(19, 23, 34, 0); pointer-events: none; transition-delay: .35s; }
.nqs-carga__logo { position: relative; width: clamp(220px, 32vw, 400px); aspect-ratio: 1; transition: opacity .5s ease; }
.nqs-carga.fuera .nqs-carga__logo { opacity: 0; }
.nqs-carga__polvo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nqs-carga__marca { position: absolute; inset: 14%; }
.nqs-carga__logo img, .nqs-carga__aro { position: absolute; display: block; }
.nqs-carga__base, .nqs-carga__aro { inset: 0; width: 100%; height: 100%; }
.nqs-carga__tri { left: 47.5%; top: 40.875%; width: 13.25%; height: 13.25%; will-change: transform; }
.nqs-carga__aro { transform: rotate(-90deg); overflow: visible; }
.nqs-carga__aro circle { fill: none; stroke-width: .9; }
.nqs-carga__pista { stroke: rgba(255, 255, 255, .09); }
.nqs-carga__arco { stroke: #22d3ee; stroke-linecap: round; filter: drop-shadow(0 0 2.4px rgba(34, 211, 238, .75)); }
/* Resplandor suave donde estaba el triángulo (no un destello) */
.nqs-carga__brillo { position: fixed; left: 50%; top: 50%; width: 26vmax; height: 26vmax; margin: -13vmax 0 0 -13vmax; border-radius: 50%;
  pointer-events: none; opacity: 0; transform: scale(.1);
  background: radial-gradient(circle, rgba(220,245,255,.42) 0%, rgba(120,220,245,.16) 22%, rgba(34,211,238,.05) 45%, rgba(34,211,238,0) 65%); }
.nqs-carga.fuera .nqs-carga__brillo { animation: nqsBrillo 1.6s ease-out forwards; }
@keyframes nqsBrillo { 0% { opacity: 0; transform: scale(.1); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
