/* ═══════════════════════════════════════════════════════════════
   VIBRA WELCOME — Premium Animated Splash v1.0
   "Los primeros 3 segundos definen si vuelves"
   ═══════════════════════════════════════════════════════════════ */

/* ─── Splash Overlay ──────────────────────────────────────── */
#vw-splash {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(160deg, #0a0a1a 0%, #0d1117 40%, #1a0a2e 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

#vw-splash.vw-fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ─── Particle Field (Background) ─────────────────────────── */
.vw-particle-field {
  position: absolute; inset: 0;
  overflow: hidden;
}

.vw-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.4);
  animation: vw-float 4s ease-in-out infinite;
}

.vw-particle:nth-child(odd) {
  background: rgba(59, 130, 246, 0.3);
  animation-duration: 5s;
}

.vw-particle:nth-child(3n) {
  background: rgba(236, 72, 153, 0.3);
  width: 3px; height: 3px;
  animation-duration: 6s;
}

@keyframes vw-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}

/* ─── Pulse Rings ─────────────────────────────────────────── */
.vw-pulse-rings {
  position: absolute;
  width: 200px; height: 200px;
}

.vw-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 50%;
  animation: vw-ring-expand 3s ease-out infinite;
}

.vw-ring:nth-child(2) { animation-delay: 0.6s; }
.vw-ring:nth-child(3) { animation-delay: 1.2s; }
.vw-ring:nth-child(4) { animation-delay: 1.8s; }

@keyframes vw-ring-expand {
  0% { transform: scale(0.3); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ─── Logo Container ──────────────────────────────────────── */
.vw-logo-container {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  animation: vw-logo-enter 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes vw-logo-enter {
  0% { opacity: 0; transform: translateY(30px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Logo Icon ───────────────────────────────────────────── */
.vw-logo-icon {
  width: 80px; height: 80px;
  border-radius: 24px;
  background: linear-gradient(135deg, #a855f7, #6366f1, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.4),
              0 0 80px rgba(99, 102, 241, 0.2);
  animation: vw-icon-glow 2s ease-in-out infinite alternate;
}

@keyframes vw-icon-glow {
  0% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.4), 0 0 80px rgba(99, 102, 241, 0.2); }
  100% { box-shadow: 0 0 60px rgba(168, 85, 247, 0.6), 0 0 120px rgba(99, 102, 241, 0.3); }
}

/* ─── Title ───────────────────────────────────────────────── */
.vw-splash-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, #c4b5fd, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: vw-title-enter 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

@keyframes vw-title-enter {
  0% { opacity: 0; transform: translateY(10px); letter-spacing: 0.1em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: -0.02em; }
}

/* ─── Tagline ─────────────────────────────────────────────── */
.vw-splash-tagline {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px; font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: vw-tag-enter 0.8s 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes vw-tag-enter {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── City Pulse Line ─────────────────────────────────────── */
.vw-city-pulse {
  position: absolute; bottom: 120px;
  width: 200px; height: 40px; z-index: 2;
  animation: vw-pulse-enter 1s 1s ease-out forwards;
  opacity: 0;
}

.vw-city-pulse svg {
  width: 100%; height: 100%;
}

.vw-pulse-line {
  fill: none;
  stroke: url(#vw-pulse-grad);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: vw-draw-pulse 2s 1.2s ease-out forwards;
}

@keyframes vw-pulse-enter {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes vw-draw-pulse {
  0% { stroke-dashoffset: 400; }
  100% { stroke-dashoffset: 0; }
}

/* ─── Loading Bar ─────────────────────────────────────────── */
.vw-loading-bar {
  position: absolute; bottom: 80px;
  width: 120px; height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px; overflow: hidden;
  z-index: 2;
  animation: vw-bar-enter 0.5s 1.5s ease-out forwards;
  opacity: 0;
}

@keyframes vw-bar-enter {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.vw-loading-fill {
  width: 0; height: 100%;
  background: linear-gradient(90deg, #a855f7, #3b82f6);
  border-radius: 3px;
  animation: vw-fill 1.5s 1.6s ease-in-out forwards;
}

@keyframes vw-fill {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ─── Bottom Branding ─────────────────────────────────────── */
.vw-splash-brand {
  position: absolute; bottom: 40px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px; font-weight: 500;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: vw-brand-enter 0.6s 2s ease-out forwards;
  opacity: 0;
}

@keyframes vw-brand-enter {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* ─── City Skyline Silhouette ─────────────────────────────── */
.vw-skyline {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px; z-index: 1;
  opacity: 0.08;
}

.vw-skyline svg {
  width: 100%; height: 100%;
}
