/* =============================================================================
   Splash screen — RondaSp (copia local del proyecto, NO depende de la librería).
   Colores de marca RondaSp: fondo oscuro + acento ámbar #F39C12 (no azul).
   Es CSS estático (se aplica antes de Angular), por eso los colores van hardcodeados.
   ============================================================================= */
body core-splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Fondo oscuro de la app + glow ámbar sutil detrás del logo. */
  background-color: #0f172a;
  background-image: radial-gradient(
    circle at 50% 42%,
    rgba(243, 156, 18, 0.12) 0%,
    transparent 55%
  );
  color: #f8fafc;
  z-index: 999999;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body core-splash-screen img {
  width: 96px;
  max-width: 96px;
  filter: drop-shadow(0 8px 26px rgba(243, 156, 18, 0.35));
}

body core-splash-screen .spinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  width: 56px;
}

body core-splash-screen .spinner > div {
  width: 12px;
  height: 12px;
  /* Acento de marca RondaSp (ámbar) — antes era azul #6366f1. */
  background-color: #f39c12;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: fuse-bouncedelay 1s infinite ease-in-out both;
  animation: fuse-bouncedelay 1s infinite ease-in-out both;
}

body core-splash-screen .spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

body core-splash-screen .spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes fuse-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes fuse-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

body:not(.core-splash-screen-hidden) {
  overflow: hidden;
}

body.core-splash-screen-hidden core-splash-screen {
  visibility: hidden;
  opacity: 0;
}
