/* Critical startup styles: available before Angular and its stylesheet load. */
#flety-splash {
  --splash-bg: #0b1b30;
  --splash-text: #edf2f8;
  --splash-muted: #a3b4ca;
  --splash-green: #2fc48c;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--splash-bg);
  color: var(--splash-text);
  font-family: 'Montserrat', system-ui, sans-serif;
  text-align: center;
  transition:
    opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 700ms;
}
html[data-tema='claro'] #flety-splash {
  --splash-bg: #f4f6fa;
  --splash-text: #0e2846;
  --splash-muted: #5a6e8c;
  --splash-green: #0b7554;
}
/* Installed launch keeps the native splash background (manifest: light, like the app's default). */
html[data-pwa='true'] #flety-splash {
  --splash-bg: #f4f6fa;
  --splash-text: #0e2846;
  --splash-muted: #5a6e8c;
  --splash-green: #0b7554;
}
#flety-splash[hidden] {
  display: none;
}
#flety-splash::before {
  content: '';
  position: absolute;
  width: min(90vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  animation: splash-breathe 3s ease-in-out infinite alternate;
}
.splash-content {
  position: relative;
  padding: 32px 24px;
}
.splash-emblem {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 26px;
  border-radius: 34px;
  background: #e6e9f0; /* Niebla: el isotipo color va sobre niebla */
  box-shadow:
    0 18px 60px #03281d26,
    0 0 0 10px #169c6c08,
    0 0 0 11px #169c6c14;
  animation: splash-arrive 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.splash-emblem img {
  display: block;
}
.splash-name {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  animation: splash-arrive 650ms 80ms both;
}
.splash-name span {
  color: var(--splash-green);
}
.splash-tagline {
  margin: 14px 0 30px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--splash-muted);
  animation: splash-arrive 650ms 140ms both;
}
.splash-track {
  width: 76px;
  height: 3px;
  margin: auto;
  overflow: hidden;
  border-radius: 8px;
  background: #1d9e751f;
}
.splash-track span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--splash-green);
  animation: splash-travel 1400ms ease-in-out infinite;
}
.splash-footer {
  position: absolute;
  bottom: max(32px, env(safe-area-inset-bottom));
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.6px;
  color: var(--splash-muted);
}
#flety-splash.splash-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-error {
  max-width: 280px;
  color: var(--splash-muted);
  font-size: 14px;
  line-height: 1.6;
}
.splash-retry {
  min-height: 44px;
  padding: 10px 24px;
  border: 0;
  border-radius: 14px;
  background: #16805e;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}
.splash-retry:focus-visible {
  outline: 3px solid var(--splash-green);
  outline-offset: 4px;
}
#flety-splash.splash-failed .splash-track {
  display: none;
}
#flety-splash.splash-failed::before {
  animation: none;
}
@keyframes splash-arrive {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes splash-breathe {
  to {
    transform: scale(1.15);
    opacity: 0.65;
  }
}
@keyframes splash-travel {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(210%);
  }
}
@media (prefers-reduced-motion: reduce) {
  #flety-splash,
  #flety-splash *,
  #flety-splash::before {
    animation: none;
    transition: none;
  }
}
@media (max-height: 450px) {
  .splash-emblem {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    margin-bottom: 12px;
  }
  .splash-emblem img {
    width: 76px;
    height: 76px;
  }
  .splash-name {
    font-size: 32px;
  }
  .splash-tagline {
    margin: 8px 0 16px;
  }
  .splash-footer {
    display: none;
  }
}
