/* Splash Informinas — boot tecnológico */
.app-splash {
  --splash-orange: #F08030;
  --splash-navy: #2A2D88;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #25287A 0%, #2A2D88 55%, #32359A 100%);
  color: #fff;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.app-splash__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.app-splash__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.14;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.05);
}

.app-splash__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(70, 74, 180, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(240, 128, 48, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(37, 40, 122, 0.55) 0%, rgba(42, 45, 136, 0.72) 55%, rgba(37, 40, 122, 0.82) 100%);
}

.app-splash__frame {
  position: absolute;
  inset: 1.25rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  pointer-events: none;
}

.app-splash__frame::before,
.app-splash__frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--splash-orange);
  opacity: 0.85;
}

.app-splash__frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0.35rem 0 0 0;
  box-shadow: -2px -2px 12px rgba(240, 128, 48, 0.25);
}

.app-splash__frame::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 0.35rem 0;
  box-shadow: 2px 2px 12px rgba(240, 128, 48, 0.25);
}

.app-splash__corner {
  position: absolute;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 2px solid var(--splash-orange);
  opacity: 0.85;
  pointer-events: none;
}

.app-splash__corner--tr {
  top: calc(1.25rem - 1px);
  right: calc(1.25rem - 1px);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 0.35rem 0 0;
}

.app-splash__corner--bl {
  bottom: calc(1.25rem - 1px);
  left: calc(1.25rem - 1px);
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 0.35rem;
}

.app-splash__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  width: min(420px, 88vw);
  animation: splashIn 0.55s ease-out both;
}

.app-splash__logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.app-splash__logo-wrap::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 128, 48, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.app-splash__logo {
  position: relative;
  width: min(240px, 68vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(240, 128, 48, 0.25)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.app-splash__status {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-splash__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "JetBrains Mono", "Chakra Petch", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.app-splash__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.app-splash__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--splash-orange);
  box-shadow: 0 0 8px rgba(240, 128, 48, 0.9);
  animation: splashBlink 1s steps(2, end) infinite;
  flex-shrink: 0;
}

.app-splash__msg {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-splash__pct {
  color: var(--splash-orange);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.app-splash__bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-splash__bar-fill {
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #E06E1C, var(--splash-orange), #FFB06A);
  box-shadow: 0 0 14px rgba(240, 128, 48, 0.65);
  transition: width 0.25s ease;
}

.app-splash__bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-100%);
  animation: splashShine 1.4s ease-in-out infinite;
}

.app-splash__boot {
  margin: 0;
  font-family: "JetBrains Mono", "Chakra Petch", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  text-transform: uppercase;
}

@keyframes splashIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes splashBlink {
  50% { opacity: 0.2; }
}

@keyframes splashShine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .app-splash__label::before,
  .app-splash__bar-fill::after {
    animation: none;
  }
}
