/* Pantalla splash al entrar */
body.splash-active {
  overflow: hidden;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, var(--color-primary, #16a34a) 130%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.app-splash.app-splash-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-splash-inner {
  text-align: center;
  color: #fff;
  padding: 32px;
  animation: splash-pop 0.6s ease-out;
}

@keyframes splash-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.app-splash-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.app-splash-logo img {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}

.app-splash-logo .app-icon {
  color: #fff;
  font-size: 48px !important;
}

.app-splash-title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.app-splash-sub {
  margin: 10px 0 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-splash-loader {
  width: 40px;
  height: 4px;
  margin: 28px auto 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  position: relative;
}

.app-splash-loader::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: #fff;
  border-radius: 4px;
  animation: splash-bar 1.2s ease-in-out infinite;
}

@keyframes splash-bar {
  0% { left: -40%; }
  100% { left: 100%; }
}
