﻿/* ============================================================
   LOADING SPLASH - Pantalla de carga global
   ============================================================ */

#loading-splash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ls-bg, #0a0e14);
  opacity: 1;
  transition: opacity .35s ease;
}
#loading-splash.hidden {
  opacity: 0;
  pointer-events: none;
}
.ls-inner {
  text-align: center;
  padding: 20px;
  animation: lsFadeIn .5s ease-out;
}
@keyframes lsFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ls-logo {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 14px;
  animation: lsPulse 2s ease-in-out infinite;
}
.ls-logo img {
  max-width: 180px;
  max-height: 180px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  animation: lsPulse 2s ease-in-out infinite;
}
@keyframes lsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .75; transform: scale(.96); }
}
.ls-text {
  font-size: 14px;
  color: #a0a8b8;
  letter-spacing: 1px;
  font-family: inherit;
}
.ls-bar {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  margin: 18px auto 0;
  overflow: hidden;
}
.ls-bar-fill {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #80e0ff, #d4a574);
  border-radius: 3px;
  animation: lsSlide 1.4s ease-in-out infinite;
}
@keyframes lsSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* Variantes de estilo */
.ls-dots .ls-logo { animation: lsPulse 1.2s infinite; }
.ls-spin .ls-logo { animation: lsSpin 1.6s linear infinite; }
@keyframes lsSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* SPLASH-NUCLEAR-FIX: cuando .hidden, el splash DEBE desaparecer */
#loading-splash.hidden,
.loading-splash.hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}