/**
 * Bienvenida — overlay corporativo Minimal Fleet.
 * En /flotillas: se muestra en cada carga de la página (sin sessionStorage).
 */

body.mcd-splash-open {
  overflow: hidden;
}

#mcd-welcome-splash {
  --mcd-splash-gold: #d4af37;
  --mcd-splash-gold-soft: #f2dc78;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1.25rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  text-align: center;
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(59, 130, 246, 0.06), transparent 45%),
    linear-gradient(168deg, #05070c 0%, #0f172a 42%, #0a0e16 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.97);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.55s;
}

#mcd-welcome-splash.mcd-splash--ready {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

#mcd-welcome-splash.mcd-splash--exit {
  opacity: 0;
  transform: translate3d(0, -18px, 0) scale(1.03);
  pointer-events: none;
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.7s;
}

#mcd-welcome-splash.mcd-splash--exit.mcd-splash--gone {
  visibility: hidden;
}

#mcd-welcome-splash .mcd-splash__inner {
  max-width: min(92vw, 40rem);
}

#mcd-welcome-splash .mcd-splash__brand {
  font-family: Inter, "Open Sans", system-ui, sans-serif;
  font-size: clamp(0.65rem, 1.8vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
  margin: 0 0 1.35rem;
}

#mcd-welcome-splash .mcd-splash__rule {
  width: min(12rem, 40vw);
  height: 2px;
  margin: 0 auto 1.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--mcd-splash-gold), var(--mcd-splash-gold-soft), var(--mcd-splash-gold), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 0.5s ease 0.15s,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

#mcd-welcome-splash.mcd-splash--ready .mcd-splash__rule {
  opacity: 1;
  transform: scaleX(1);
}

#mcd-welcome-splash .mcd-splash__title {
  font-family: Inter, "Open Sans", system-ui, sans-serif;
  font-size: clamp(2.35rem, 9vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 0.85rem;
  background: linear-gradient(115deg, #f8fafc 0%, var(--mcd-splash-gold-soft) 38%, var(--mcd-splash-gold) 52%, #fde68a 78%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
}

#mcd-welcome-splash .mcd-splash__tag {
  font-family: Inter, "Open Sans", system-ui, sans-serif;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.72);
  margin: 0;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
  #mcd-welcome-splash {
    transition-duration: 0.01ms !important;
  }

  #mcd-welcome-splash .mcd-splash__rule {
    transition-duration: 0.01ms !important;
  }
}
