/* Pantalla de carga con el logo animado (17/11/2026). Va en archivo aparte (sin estilos en línea) para respetar la política de seguridad. */
#splash { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; align-content: center; gap: 26px; background: #fff; transition: opacity .45s ease; }
html[data-theme="dark"] #splash { background: #0D1730; }
#splash.fuera { opacity: 0; pointer-events: none; }
#splash .sp-logo { position: relative; width: min(72vw, 340px); aspect-ratio: 1600 / 471; animation: sp-respira 2.4s ease-in-out 1.6s infinite; }
#splash .sp-logo img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; will-change: transform, opacity; }
html[data-theme="dark"] #splash .sp-azul { filter: brightness(0) invert(1); }
/* cada letra entra con su propio movimiento y un pequeño rebote */
#splash.go .sp-u  { transform-origin: 12% 60%; animation: sp-izq .7s cubic-bezier(.2,1.4,.4,1) .00s both; }
#splash.go .sp-n  { transform-origin: 28% 70%; animation: sp-izq .7s cubic-bezier(.2,1.4,.4,1) .10s both; }
#splash.go .sp-a  { transform-origin: 44% 90%; animation: sp-salta .75s cubic-bezier(.2,1.5,.4,1) .24s both; }
#splash.go .sp-p1 { transform-origin: 61% 20%; animation: sp-cae .7s cubic-bezier(.2,1.5,.4,1) .38s both; }
#splash.go .sp-p2 { transform-origin: 76% 20%; animation: sp-cae .7s cubic-bezier(.2,1.5,.4,1) .48s both; }
#splash.go .sp-i  { transform-origin: 87% 100%; animation: sp-crece .5s cubic-bezier(.2,1.4,.4,1) .60s both; }
#splash.go .sp-punto { transform-origin: 89% 17%; animation: sp-gota .8s cubic-bezier(.3,1.6,.5,1) .86s both; }
#splash.go .sp-r  { animation: sp-aparece .5s ease 1.15s both; }
#splash .sp-barra { width: min(40vw, 170px); height: 4px; border-radius: 4px; background: rgba(2,17,92,.12); overflow: hidden; opacity: 0; animation: sp-aparece .4s ease 1.2s forwards; }
html[data-theme="dark"] #splash .sp-barra { background: rgba(255,255,255,.18); }
#splash .sp-barra i { display: block; width: 40%; height: 100%; border-radius: 4px; background: #ff5000; animation: sp-corre 1.1s ease-in-out infinite; }
/* marcas con una sola imagen (Durán, UniApp) */
#splash .sp-una { position: absolute; inset: 0; opacity: 0; }
#splash.go .sp-una { animation: sp-sube .7s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes sp-izq    { 0% { opacity: 0; transform: translateX(-70px) scale(.8); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes sp-salta  { 0% { opacity: 0; transform: translateY(40px) scale(.4) rotate(-10deg); } 100% { opacity: 1; transform: none; } }
@keyframes sp-cae    { 0% { opacity: 0; transform: translateY(-90px) scaleY(1.25) scaleX(.85); } 100% { opacity: 1; transform: none; } }
@keyframes sp-crece  { 0% { opacity: 0; transform: scaleY(0); } 100% { opacity: 1; transform: none; } }
@keyframes sp-gota   { 0% { opacity: 0; transform: translateY(-160px) scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes sp-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-sube   { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes sp-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes sp-corre  { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) {
  #splash .sp-logo, #splash .sp-logo img, #splash .sp-barra i { animation: none !important; opacity: 1 !important; transform: none !important; }
}
