:root {
  --bg: #11131a;
  --bg-glow: #1a1d28;
  --ink: #ececf1;
  --muted: #8a8d9a;
  --accent: #f5b942;      /* amarillo construcción */
  --track: #2a2e3a;       /* parte tenue del anillo */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 30%, var(--bg-glow), var(--bg) 70%);
  color: var(--ink);
  font-family: var(--display);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.stage {
  text-align: center;
  padding: 24px;
}

/* ============ SPINNER ============ */
.spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 44px;
}

.ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* el "track" tenue de fondo + un segmento de color que gira */
  border: 5px solid var(--track);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============ TEXTO ============ */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 42ch;
  margin: 0 auto;
}

/* Puntos suspensivos animados */
.dots span {
  opacity: 0;
  animation: blink 1.5s infinite;
}
.dots span:nth-child(1) { animation-delay: 0s; }
.dots span:nth-child(2) { animation-delay: 0.25s; }
.dots span:nth-child(3) { animation-delay: 0.5s; }

@keyframes blink {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* Accesibilidad: respeta movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .ring { animation-duration: 2.5s; }
  .dots span { animation: none; opacity: 1; }
}
