/* ============================================
   FroggyPixel — Route Loader (LIGHT)
   Solo para transición entre páginas
   ============================================ */

/* ─────────────────────────────────────────────
   Animations
   ───────────────────────────────────────────── */

@keyframes fp-orbit {
  to { transform: rotate(360deg); }
}

@keyframes fp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .fp-orbit-ring,
  .fp-orbit-img {
    animation: none !important;
  }
}

/* ─────────────────────────────────────────────
   Orbit loader core
   ───────────────────────────────────────────── */

.fp-orbit-loader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-orbit-img {
  border-radius: 50%;
  object-fit: contain;
  animation: fp-pulse 2.8s ease-in-out infinite;
}

.fp-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: fp-orbit 3s linear infinite;
}

.fp-orbit-dot {
  position: absolute;
  border-radius: 50%;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.fp-dot-pink {
  width: 10px;
  height: 10px;
  background: #ED93B1;
}

.fp-dot-purple {
  width: 8px;
  height: 8px;
  background: #AFA9EC;
  top: -4px;
}

.fp-dot-green {
  width: 6px;
  height: 6px;
  background: #5DCAA5;
  top: -3px;
}

/* ─────────────────────────────────────────────
   Loader wrapper
   ───────────────────────────────────────────── */

.fp-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.fp-loader-text {
  font-size: 0.86rem;
  color: rgba(30, 41, 59, 0.72);
  letter-spacing: 0.02em;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

/* ─────────────────────────────────────────────
   Full-page overlay (LIGHT)
   ───────────────────────────────────────────── */

.fp-loading-overlay.route-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  pointer-events: all;
}

.fp-loading-overlay.route-loading.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
