/* ==========================================================================
   BICICUENCA VIP - SISTEMA DE ESTILOS CINEMATOGRAFICOS
   Paleta: Negro (#050505, #0D0D10) | Rojo (#E50914, #FF1A24) | Blanco (#FFFFFF)
   Regla fundamental: Cero emojis. Estilo editorial, técnico y de alta ingeniería.
   ========================================================================== */

:root {
  /* Color Tokens */
  --bg-deep: #050505;
  --bg-surface: #0e0e11;
  --bg-card: rgba(18, 18, 22, 0.75);
  --bg-card-hover: rgba(28, 28, 34, 0.85);
  --bg-card-active: rgba(229, 9, 20, 0.08);

  --red-core: #E50914;
  --red-neon: #FF1E27;
  --red-dark: #8A0007;
  --red-glow: rgba(229, 9, 20, 0.45);
  --red-glow-subtle: rgba(229, 9, 20, 0.18);

  --text-pure: #FFFFFF;
  --text-muted: #A1A1AA;
  --text-subtle: #71717A;
  --text-faint: #3F3F46;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.2);
  --border-red: rgba(229, 9, 20, 0.5);
  --border-red-active: #FF1E27;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Transitions & Radii */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-pure);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Canvas & Atmospheric Glow */
.cinema-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  top: -10vw;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--red-glow-subtle) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  animation: pulseAmbient 12s ease-in-out infinite alternate;
}

@keyframes pulseAmbient {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  100% { transform: scale(1.25) translate(-5vw, 5vw); opacity: 0.9; }
}

/* ==========================================================================
   HEADER & VIP STATUS BAR
   ========================================================================== */
.vip-header {
  display: none !important;
}

.floating-audio-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 14, 18, 0.88);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s var(--ease-cinematic);
}

.floating-audio-btn:hover {
  color: var(--text-pure);
  border-color: var(--red-neon);
  box-shadow: 0 0 20px var(--red-glow);
  transform: scale(1.08);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-crest {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1A1A1E, #0A0A0C);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-neon);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.25);
}

.crest-icon {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--text-pure);
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red-neon);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid var(--border-red);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s var(--ease-cinematic);
}

.hud-pill:hover {
  background: var(--red-core);
  box-shadow: 0 0 20px var(--red-glow);
  transform: translateY(-1px);
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--red-neon);
  box-shadow: 0 0 8px var(--red-neon);
  animation: beaconPulse 1.6s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 12px var(--red-neon); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.audio-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-cinematic);
}

.audio-btn:hover {
  color: var(--text-pure);
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.1);
}

.audio-icon {
  width: 18px;
  height: 18px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   STEPPER NAVIGATION (ONBOARDING WIZARD)
   ========================================================================== */
.stepper-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.stepper-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.stepper-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-glass);
  transform: translateY(-50%);
  z-index: 1;
}

.stepper-bar {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-neon));
  box-shadow: 0 0 10px var(--red-glow);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.5s var(--ease-cinematic);
  width: 0%;
}

.step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.node-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-subtle);
  transition: all 0.4s var(--ease-cinematic);
}

.node-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
  text-transform: uppercase;
  transition: color 0.4s;
}

/* Stepper Node States */
.step-node.active .node-num {
  border-color: var(--red-neon);
  color: var(--text-pure);
  background: radial-gradient(circle, #2A0406 0%, #0D0D10 100%);
  box-shadow: 0 0 16px var(--red-glow);
  transform: scale(1.1);
}

.step-node.active .node-label {
  color: var(--text-pure);
}

.step-node.completed .node-num {
  border-color: var(--red-core);
  background: var(--red-core);
  color: var(--text-pure);
}

.step-node.completed .node-label {
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .node-label {
    display: none;
  }
  .node-num {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   WIZARD CONTAINER & STEP BEHAVIORS
   ========================================================================== */
.wizard-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  min-height: calc(100vh - 160px);
}

.wizard-step {
  display: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-cinematic), transform 0.5s var(--ease-cinematic);
}

.wizard-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: stepEntrance 0.6s var(--ease-cinematic) forwards;
}

@keyframes stepEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Step Headers Common */
.step-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.step-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red-neon);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.step-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Action Buttons Common */
.wizard-nav-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  gap: 16px;
}

.wizard-nav-actions.dual {
  justify-content: space-between;
}

.btn-primary-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--red-neon) 0%, var(--red-dark) 100%);
  color: var(--text-pure);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-cinematic);
  box-shadow: 0 4px 24px var(--red-glow);
}

.btn-primary-vip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-primary-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(229, 9, 20, 0.65);
}

.btn-primary-vip:hover::before {
  left: 100%;
}

.btn-primary-vip:active {
  transform: translateY(0);
}

.btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease-cinematic);
}

.btn-primary-vip:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost-vip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s var(--ease-cinematic);
}

.btn-ghost-vip:hover {
  color: var(--text-pure);
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.04);
}

.btn-arrow-back {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-cinematic);
}

.btn-ghost-vip:hover .btn-arrow-back {
  transform: translateX(-4px);
}

/* ==========================================================================
   STEP 1: CINEMATIC HERO
   ========================================================================== */
.cinematic-hero {
  text-align: center;
  padding: clamp(30px, 8vh, 70px) 0 20px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.tag-line {
  width: 16px;
  height: 2px;
  background-color: var(--red-neon);
}

.tag-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-pure);
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.hero-title-red {
  color: transparent;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--red-neon) 40%, var(--red-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  filter: drop-shadow(0 0 24px var(--red-glow));
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-specs-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin: 0 auto 40px;
  max-width: 720px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.spec-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.spec-num {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: 0.05em;
}

.spec-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.spec-divider {
  width: 1px;
  height: 48px;
  background: var(--border-glass);
  margin: 0 16px;
}

@media (max-width: 640px) {
  .hero-specs-strip {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .spec-divider {
    width: 60%;
    height: 1px;
    margin: 4px auto;
  }
}

/* ==========================================================================
   STEP 2: VIP PRIVILEGES GRID (ANIMATED CARDS)
   ========================================================================== */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.perk-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  overflow: hidden;
  transition: all 0.4s var(--ease-cinematic);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: perkReveal 0.6s var(--ease-cinematic) forwards;
  animation-delay: var(--card-delay, 0s);
}

@keyframes perkReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.perk-card:hover {
  border-color: var(--border-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 24px var(--red-glow-subtle);
}

.perk-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-neon), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.perk-card:hover .perk-accent {
  opacity: 1;
}

.perk-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-neon);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.perk-card:hover .perk-icon-wrap {
  background: var(--red-core);
  color: var(--text-pure);
  box-shadow: 0 0 20px var(--red-glow);
}

.perk-svg {
  width: 26px;
  height: 26px;
}

.perk-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red-neon);
  margin-bottom: 8px;
}

.perk-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text-pure);
}

.perk-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   STEP 3: CATEGORIES SELECTOR WITH DYNAMIC ANIMATIONS
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.category-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  cursor: pointer;
  transition: all 0.35s var(--ease-cinematic);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

.category-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.cat-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.category-card.selected {
  border-color: var(--border-red-active);
  background: rgba(22, 10, 12, 0.85);
  box-shadow: 0 0 32px var(--red-glow), inset 0 0 16px rgba(229, 9, 20, 0.15);
  transform: translateY(-6px) scale(1.02);
}

.category-card.selected .cat-glow {
  opacity: 1;
}

.cat-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  background: var(--red-core);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-pure);
}

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cat-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-subtle);
}

.cat-km {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red-neon);
}

.cat-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.cat-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 48px;
}

/* Elevation SVG Graph */
.elevation-visualizer {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 20px;
}

.elevation-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.elev-val {
  color: var(--text-pure);
  font-weight: 700;
}

.elev-svg {
  width: 100%;
  height: 50px;
  overflow: visible;
}

.elev-area {
  fill: rgba(229, 9, 20, 0.12);
}

.elev-stroke {
  fill: none;
  stroke: var(--red-neon);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawElev 2s var(--ease-cinematic) forwards;
}

.category-card:hover .elev-stroke,
.category-card.selected .elev-stroke {
  stroke: #FFFFFF;
  filter: drop-shadow(0 0 6px var(--red-neon));
}

@keyframes drawElev {
  to {
    stroke-dashoffset: 0;
  }
}

.cat-specs {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.cat-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-spec-k {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
}

.cat-spec-v {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-pure);
}

.cat-action-flag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.flag-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.category-card.selected .flag-text {
  color: var(--red-neon);
}

.flag-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
  position: relative;
  transition: all 0.3s;
}

.category-card.selected .flag-radio {
  border-color: var(--red-neon);
  background: var(--red-neon);
  box-shadow: 0 0 10px var(--red-neon);
}

.category-card.selected .flag-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FFFFFF;
}

/* Category Feedback Bar */
.cat-feedback-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 500px;
  margin: 28px auto 0;
  padding: 12px 24px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-full);
  animation: fadeIn 0.4s ease;
}

.feedback-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-neon);
  box-shadow: 0 0 8px var(--red-neon);
}

.feedback-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-pure);
}

/* ==========================================================================
   STEP 4: REGISTRATION FORM & NUMERIC PHONE
   ========================================================================== */
.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.required-indicator {
  color: var(--red-neon);
}

.optional-indicator {
  font-size: 0.65rem;
  color: var(--text-subtle);
}

.input-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-cinematic);
}

.input-field-wrap:focus-within {
  border-color: var(--red-neon);
  box-shadow: 0 0 16px var(--red-glow-subtle);
  background: rgba(10, 10, 12, 0.8);
}

.input-field-wrap.error-state {
  border-color: #FF3344;
  box-shadow: 0 0 12px rgba(255, 51, 68, 0.3);
}

.field-icon {
  width: 20px;
  height: 20px;
  color: var(--text-subtle);
  margin-left: 14px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.input-field-wrap:focus-within .field-icon {
  color: var(--red-neon);
}

.text-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 14px 14px 12px;
  color: var(--text-pure);
  font-family: var(--font-display);
  font-size: 0.95rem;
  outline: none;
}

.text-input::placeholder {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

/* Phone input with Ecuador prefix */
.phone-wrap {
  padding-left: 0;
}

.phone-prefix {
  padding: 0 12px 0 14px;
  border-right: 1px solid var(--border-glass);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-neon);
  display: flex;
  align-items: center;
  height: 100%;
}

.phone-input {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.input-caption {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.error-hint {
  display: none;
  font-size: 0.72rem;
  color: #FF4D5E;
  font-weight: 500;
}

.input-group.has-error .error-hint {
  display: block;
}

/* Category summary pill in form */
.cat-summary-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  gap: 12px;
}

.cat-pill-tag {
  background: var(--red-core);
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.cat-pill-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cat-pill-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-pure);
}

.cat-pill-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cat-pill-edit {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s;
}

.cat-pill-edit:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Checkbox */
.terms-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
}

.checkbox-custom input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass-hover);
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-svg {
  width: 14px;
  height: 14px;
  stroke: transparent;
  transition: stroke 0.2s;
}

.checkbox-custom input:checked + .checkbox-box {
  background: var(--red-core);
  border-color: var(--red-neon);
  box-shadow: 0 0 10px var(--red-glow);
}

.checkbox-custom input:checked + .checkbox-box .check-svg {
  stroke: #FFFFFF;
}

.terms-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}

/* ==========================================================================
   STEP 5: 3D HOLOGRAPHIC VIP PASS CREDENTIAL
   ========================================================================== */
.vip-card-perspective {
  perspective: 1200px;
  max-width: 580px;
  margin: 0 auto 40px;
}

.vip-pass-card {
  position: relative;
  background: linear-gradient(145deg, #141418 0%, #08080A 50%, #1A0507 100%);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--red-glow-subtle);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.card-shimmer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(229, 9, 20, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 52%,
    transparent 65%
  );
  transform: rotate(25deg);
  pointer-events: none;
  animation: shimmerPass 6s infinite ease-in-out;
}

@keyframes shimmerPass {
  0% { transform: translateY(-30%) rotate(25deg); }
  50% { transform: translateY(30%) rotate(25deg); }
  100% { transform: translateY(-30%) rotate(25deg); }
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.card-org {
  display: flex;
  flex-direction: column;
}

.card-brand {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-pure);
}

.card-dept {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red-neon);
}

.card-badge-vip {
  padding: 6px 14px;
  background: var(--red-core);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #FFFFFF;
  box-shadow: 0 0 14px var(--red-glow);
}

.card-id-block {
  background: rgba(0, 0, 0, 0.6);
  border: 1px dashed var(--border-red);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 24px;
}

.card-id-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 6px;
}

.card-id-value {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: #FFFFFF;
  text-shadow: 0 0 14px var(--red-glow);
}

.card-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.card-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-k {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-subtle);
}

.detail-v {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-pure);
}

.card-footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.security-stamp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-neon);
}

.stamp-icon {
  width: 16px;
  height: 16px;
}

.card-barcode {
  width: 90px;
  height: 24px;
}

.bar-lines {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #FFFFFF,
    #FFFFFF 2px,
    transparent 2px,
    transparent 4px,
    #FFFFFF 4px,
    #FFFFFF 7px,
    transparent 7px,
    transparent 9px
  );
  opacity: 0.7;
}

/* Actions Panel */
.pass-actions-panel {
  max-width: 860px;
  margin: 0 auto;
}

.panel-heading {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.action-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s var(--ease-cinematic);
}

.action-card:hover {
  border-color: var(--border-red);
  transform: translateY(-2px);
}

.act-card-header {
  display: flex;
  gap: 16px;
}

.act-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.act-card-icon svg {
  width: 22px;
  height: 22px;
}

.cal-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #FFFFFF;
}

.gpx-icon {
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid var(--border-red);
  color: var(--red-neon);
}

.act-card-info {
  display: flex;
  flex-direction: column;
}

.act-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red-neon);
  margin-bottom: 4px;
}

.act-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.act-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--red-neon) 0%, var(--red-dark) 100%);
  color: #FFFFFF;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px var(--red-glow);
  width: 100%;
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--red-glow);
}

.gpx-btn-group {
  display: flex;
  gap: 10px;
}

.btn-action-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-pure);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.btn-action-ghost:hover {
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.08);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Raffle Info Strip */
.raffle-info-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(14, 14, 18, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

@media (max-width: 640px) {
  .raffle-info-strip {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

.raffle-pulse-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.beacon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red-neon);
  box-shadow: 0 0 12px var(--red-neon);
  animation: beaconPulse 1.4s infinite;
}

.raffle-text-area {
  flex: 1;
}

.raffle-headline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  display: block;
  margin-bottom: 4px;
}

.raffle-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.btn-test-raffle {
  background: transparent;
  border: 1px solid var(--border-red);
  color: var(--red-neon);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.btn-test-raffle:hover {
  background: var(--red-core);
  color: #FFFFFF;
  box-shadow: 0 0 14px var(--red-glow);
}

/* ==========================================================================
   MODAL DIALOGS (STRAVA INSTRUCTION & RAFFLE CONTROL)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.3s var(--ease-cinematic);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #0E0E12;
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--red-glow-subtle);
  animation: modalPop 0.35s var(--ease-spring);
  overflow: hidden;
}

@keyframes modalPop {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-neon), var(--red-dark));
}

.modal-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--border-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-neon);
  margin-bottom: 16px;
}

.modal-svg {
  width: 24px;
  height: 24px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.modal-body-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.instruction-box {
  background: rgba(229, 9, 20, 0.07);
  border-left: 3px solid var(--red-neon);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0;
}

.inst-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--red-neon);
  display: block;
  margin-bottom: 4px;
}

.inst-text {
  color: #FFFFFF;
  font-size: 0.88rem;
  line-height: 1.5;
}

.modal-note {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Raffle Control specific modal styling */
.control-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-close-modal:hover {
  color: #FFFFFF;
}

.btn-close-modal svg {
  width: 20px;
  height: 20px;
}

.my-id-status {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.status-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.status-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red-neon);
  letter-spacing: 0.1em;
}

.control-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.full-btn {
  width: 100%;
}

.draw-result-box {
  background: rgba(229, 9, 20, 0.08);
  border: 1px dashed var(--border-red);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.draw-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 4px;
}

.draw-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  display: block;
}

.draw-status {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   FULLSCREEN TAKEOVER: PANTALLA DE GANADOR VIP
   ========================================================================== */
.winner-takeover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #050505;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: winnerEntrance 0.7s var(--ease-spring) forwards;
}

@keyframes winnerEntrance {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

.winner-ambient-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(229, 9, 20, 0.45) 0%, transparent 70%);
  animation: strobeRed 1.2s infinite alternate;
  pointer-events: none;
}

@keyframes strobeRed {
  0% { opacity: 0.3; transform: scale(0.95); }
  100% { opacity: 0.85; transform: scale(1.1); filter: blur(30px); }
}

.winner-laser-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(229, 9, 20, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 9, 20, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.winner-container {
  position: relative;
  z-index: 10;
  max-width: 620px;
  width: 100%;
  background: rgba(14, 14, 18, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 2px solid var(--red-neon);
  box-shadow: 0 0 60px var(--red-glow), inset 0 0 30px rgba(229, 9, 20, 0.2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
}

.winner-badge-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid var(--red-neon);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  box-shadow: 0 0 20px var(--red-glow);
}

.winner-trophy-svg {
  width: 22px;
  height: 22px;
  color: var(--red-neon);
}

.winner-ribbon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #FFFFFF;
}

.winner-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.winner-highlight {
  color: transparent;
  background: linear-gradient(135deg, #FFFFFF, var(--red-neon));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 30px var(--red-glow);
}

.winner-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
}

.winner-card-box {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.win-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}

.win-card-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.win-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
  letter-spacing: 0.12em;
}

.win-v {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
}

.win-prize {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--red-neon);
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px var(--red-glow);
}

.winner-claim-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
  margin-bottom: 28px;
}

.claim-icon {
  width: 24px;
  height: 24px;
  color: var(--red-neon);
  flex-shrink: 0;
}

.claim-icon svg {
  width: 100%;
  height: 100%;
}

.claim-text {
  font-size: 0.8rem;
  color: var(--text-pure);
  line-height: 1.45;
}

.btn-winner-dismiss {
  width: 100%;
  padding: 16px;
  background: #FFFFFF;
  color: #050505;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-winner-dismiss:hover {
  background: var(--red-neon);
  color: #FFFFFF;
  box-shadow: 0 0 24px var(--red-glow);
}

/* ==========================================================================
   TOAST SHELF
   ========================================================================== */
.toast-shelf {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  background: rgba(18, 18, 22, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  animation: toastSlide 0.3s var(--ease-spring);
  pointer-events: auto;
}

@keyframes toastSlide {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-neon);
  box-shadow: 0 0 8px var(--red-neon);
}

/* ==========================================================================
   LOOKUP & PREVENT DUPLICATES MODAL STYLES (SSR PROXY INTEGRATION)
   ========================================================================== */
.hero-lookup-wrap,
.form-lookup-strip {
  text-align: center;
  margin-top: 18px;
}

.btn-text-lookup {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.btn-text-lookup:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

.btn-mini-icon {
  width: 14px;
  height: 14px;
  color: var(--red-neon);
}

.lookup-input-box {
  display: flex;
  gap: 10px;
  margin: 18px 0 20px;
}

@media (max-width: 540px) {
  .lookup-input-box {
    flex-direction: column;
  }
}

.lookup-input-box .input-field-wrap {
  flex: 1;
}

.lookup-btn {
  padding: 12px 24px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.lookup-result {
  background: rgba(229, 9, 20, 0.07);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 16px;
  animation: fadeIn 0.3s ease;
}

.lookup-found-badge {
  display: inline-block;
  background: var(--red-core);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.lookup-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-glass);
}

.lookup-detail-row:last-of-type {
  border-bottom: none;
}

.lk-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-subtle);
}

.lk-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
}

.lk-val.highlight {
  color: var(--red-neon);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.lookup-empty {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: 16px;
}

/* Button Loading State */
.btn-primary-vip.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-primary-vip.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

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

/* ==========================================================================
   CINEMATIC INTRO SPLASH SCREEN (CARGA -> LOGO CENTRAL -> GAD CHIQUINTAD)
   ========================================================================== */
body.splash-active {
  overflow: hidden !important;
}

.intro-splash {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(circle at 50% 45%, #16161c 0%, #050505 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.75s var(--ease-cinematic), transform 0.75s var(--ease-cinematic);
}

.intro-splash.splash-dismissed {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.splash-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(229, 9, 20, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

/* Skip Intro Button */
.splash-skip-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.splash-skip-btn svg {
  width: 14px;
  height: 14px;
}

.splash-skip-btn:hover {
  color: #FFFFFF;
  border-color: var(--red-core);
  background: rgba(229, 9, 20, 0.15);
  transform: translateY(-1px);
}

/* Base Phase Container */
.splash-phase {
  position: absolute;
  width: 90%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.6s var(--ease-cinematic), transform 0.6s var(--ease-cinematic);
  padding: 24px;
}

.splash-phase.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* FASE 1: PRELOADER CIRCULAR */
.splash-loader-circle {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.loader-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.loader-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
}

.loader-meter {
  fill: none;
  stroke: var(--red-neon);
  stroke-width: 4.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px var(--red-glow));
  transition: stroke-dashoffset 0.15s ease-out;
}

.loader-center-content {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.loader-bike-icon {
  width: 26px;
  height: 26px;
  color: var(--red-neon);
  filter: drop-shadow(0 0 6px var(--red-glow));
  animation: pulseBike 1.2s infinite ease-in-out alternate;
}

@keyframes pulseBike {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.08); opacity: 1; }
}

.loader-percent {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: 0.05em;
}

.splash-loading-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.splash-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red-neon);
}

.splash-status-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 380px;
  line-height: 1.4;
  min-height: 2.8em;
  transition: opacity 0.2s ease;
}

/* FASE 2: LOGO CENTRAL BICICUENCA */
.splash-brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.splash-crest-emblem {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #222228, #0D0D11);
  border: 1.5px solid rgba(229, 9, 20, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px var(--red-glow);
  animation: emblemFloat 2s ease-in-out infinite alternate;
}

@keyframes emblemFloat {
  0% { transform: translateY(0); box-shadow: 0 0 25px var(--red-glow); }
  100% { transform: translateY(-6px); box-shadow: 0 0 45px var(--red-neon); }
}

.splash-crest-svg {
  width: 52px;
  height: 52px;
  color: var(--red-neon);
}

.splash-crest-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--red-neon));
}

.emblem-halo {
  position: absolute;
  inset: -12px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(229, 9, 20, 0.3);
  animation: rotateHalo 20s linear infinite;
  pointer-events: none;
}

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

.splash-title {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--text-pure);
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
  margin-top: 4px;
}

.splash-edition-chip {
  display: inline-block;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--border-red);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  color: var(--red-neon);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* FASE 3: GAD MUNICIPAL DE CHIQUINTAD */
.splash-gad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gad-heraldic-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  color: #FFD700;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.gad-icon {
  width: 18px;
  height: 18px;
  color: #FFD700;
}

.gad-lead-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.gad-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  background: linear-gradient(135deg, #FFFFFF 30%, #D4D4D8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.gad-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 440px;
  line-height: 1.5;
}

.gad-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--border-red);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 6px;
}

.gad-location-tag svg {
  width: 16px;
  height: 16px;
  color: var(--red-neon);
}

/* ==========================================================================
   LIVE EVENT COUNTDOWN TIMER HUD (HERO SECTION)
   ========================================================================== */
.event-countdown-card {
  width: 100%;
  max-width: 740px;
  background: rgba(14, 14, 18, 0.85);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 36px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 26px rgba(229, 9, 20, 0.16);
  margin: 32px auto 36px auto;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.event-countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-neon), transparent);
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 14px;
  text-align: center;
}

@media (min-width: 768px) {
  .event-countdown-card {
    padding: 28px 42px;
    margin: 36px auto;
  }
  .countdown-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    text-align: center;
  }
  .cd-live-badge {
    justify-self: start;
  }
  .cd-label {
    justify-self: center;
    text-align: center;
  }
  .cd-date-target {
    justify-self: end;
    text-align: right;
  }
}

.cd-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid var(--border-red);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.cd-pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--red-neon);
  box-shadow: 0 0 8px var(--red-neon);
  animation: beaconPulse 1.4s infinite;
}

.cd-badge-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-pure);
}

.cd-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.cd-date-target {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red-neon);
}

.countdown-digits-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.5vw, 20px);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(22, 22, 28, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px clamp(12px, 2.5vw, 20px);
  min-width: clamp(65px, 16vw, 95px);
  transition: all 0.3s ease;
}

.countdown-unit:hover {
  border-color: rgba(229, 9, 20, 0.4);
  background: rgba(28, 28, 36, 0.95);
  transform: translateY(-2px);
}

.cd-num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1;
}

.cd-num.cd-neon {
  color: var(--red-neon);
  text-shadow: 0 0 14px var(--red-glow);
}

.cd-txt {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-subtle);
  margin-top: 6px;
}

.countdown-separator {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red-core);
  opacity: 0.6;
}

.countdown-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}

.cd-footer-icon {
  width: 15px;
  height: 15px;
  color: var(--red-neon);
  flex-shrink: 0;
}

/* ==========================================================================
   ILUSTRATED GPX GUIDE (3 VISUAL STEPS IN STEP 5)
   ========================================================================== */
.gpx-visual-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 22px 0;
  padding: 16px;
  background: rgba(10, 10, 14, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.visual-step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.visual-step-card:hover {
  background: rgba(229, 9, 20, 0.06);
  border-color: rgba(229, 9, 20, 0.3);
  transform: translateY(-2px);
}

.visual-step-card.featured {
  border-color: rgba(229, 9, 20, 0.4);
  background: rgba(229, 9, 20, 0.04);
}

.step-badge-num {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red-core);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-illustration {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* Illu 1: File icon */
.file-icon-illu {
  position: relative;
  color: var(--text-pure);
}

.file-icon-illu .illu-svg {
  width: 38px;
  height: 38px;
  color: var(--red-neon);
}

.file-icon-illu .gpx-tag {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red-core);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* Illu 2: Mini Phone Mockup with Strava */
.phone-mockup-mini {
  width: 36px;
  height: 52px;
  background: #0A0A0E;
  border: 1.5px solid var(--border-glass-hover);
  border-radius: 7px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.phone-screen-mini {
  width: 100%;
  height: 100%;
  background: #18181E;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.app-icon-strava {
  width: 22px;
  height: 22px;
  background: #FC4C02;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 0 8px rgba(252, 76, 2, 0.6);
}

.app-icon-strava svg {
  width: 14px;
  height: 14px;
}

.tap-finger-indicator {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-neon);
  box-shadow: 0 0 6px var(--red-neon);
  animation: beaconPulse 1.2s infinite;
}

/* Illu 3: Telemetry Graph & Check */
.route-telemetry-illu {
  position: relative;
  width: 50px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-elev-graph {
  width: 100%;
  height: 100%;
  color: var(--red-neon);
}

.ready-check-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.ready-check-badge svg {
  width: 11px;
  height: 11px;
}

.step-title-mini {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.step-caption {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.step-arrow-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-core);
  opacity: 0.4;
}

.step-arrow-flow svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   GPX & STRAVA POPUP MODAL (CLEAN DARK VIP DESIGN - NO COLORFUL BUBBLES)
   ========================================================================== */
.gpx-popup-card {
  max-width: 520px;
  background: #0E0E12;
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.15);
  padding: clamp(20px, 4vw, 32px);
}

.modal-gpx-route-info {
  margin: 16px 0 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.route-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--border-red);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  color: var(--red-neon);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-info-badge svg {
  width: 16px;
  height: 16px;
}

.route-info-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.modal-gpx-steps-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 22px;
}

.gpx-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.gpx-step-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.gpx-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red-core);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.4);
}

.gpx-step-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.gpx-step-detail .step-lbl {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-pure);
  letter-spacing: 0.01em;
}

.gpx-step-detail .step-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.modal-gpx-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.modal-gpx-actions .btn-primary-vip,
.modal-gpx-actions .btn-ghost-vip {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
}

.btn-text-close {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 6px;
  margin-top: 4px;
  transition: color 0.2s ease;
}

.btn-text-close:hover {
  color: var(--text-pure);
}

/* ==========================================================================
   LOADER LOGO ICON (PHASE 1 PRELOADER)
   ========================================================================== */
.loader-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.85));
  animation: loaderLogoBreath 2s ease-in-out infinite alternate;
  margin-bottom: 2px;
}

@keyframes loaderLogoBreath {
  0% { transform: scale(0.92); filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.6)); }
  100% { transform: scale(1.08); filter: drop-shadow(0 0 16px rgba(229, 9, 20, 1)); }
}

/* ==========================================================================
   SUCCESS CELEBRATION OVERLAY ("¡HECHO!")
   ========================================================================== */
.success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease forwards;
}

.success-card-pop {
  background: #0E0E14;
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 42px);
  text-align: center;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(16, 185, 129, 0.25);
  animation: scalePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scalePop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-checkmark-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.success-checkmark-svg {
  width: 100%;
  height: 100%;
  stroke: #10B981;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 #10B981;
  animation: fillGreen .4s ease-in-out .4s forwards, scaleCheck .3s ease-in-out .9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  stroke: #10B981;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

.success-ribbon {
  display: inline-block;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10B981;
  color: #10B981;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.success-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}

.success-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 20px 0;
}

.success-ticket-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
  letter-spacing: 0.05em;
}

.ticket-v {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--red-neon);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   POST-REGISTRATION ONBOARDING CARDS (CALENDAR & GPX STRAVA)
   ========================================================================== */
.onboarding-card-box {
  max-width: 520px;
  background: #0E0E14;
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 36px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(229, 9, 20, 0.18);
  position: relative;
}

.onboarding-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.onboarding-slide.active {
  display: flex;
}

.onboarding-step-indicator {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--red-neon);
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--border-red);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.onboarding-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.onboarding-icon-wrap.calendar-icon-wrap {
  background: rgba(229, 9, 20, 0.15);
  border: 1.5px solid var(--border-red);
  color: var(--red-neon);
}

.onboarding-icon-wrap.strava-icon-wrap {
  background: rgba(252, 76, 2, 0.15);
  border: 1.5px solid rgba(252, 76, 2, 0.4);
  color: #FC4C02;
}

.onboarding-svg {
  width: 28px;
  height: 28px;
}

.onboarding-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 800;
  color: var(--text-pure);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.onboarding-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 18px 0;
}

.onboarding-highlight-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ob-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}

.ob-code {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red-neon);
  letter-spacing: 0.12em;
}

.onboarding-telemetry-badge {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 22px;
}

.ob-tel-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ob-tel-k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
}

.ob-tel-v {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
}

.ob-tel-v.highlight {
  color: var(--red-neon);
}

.ob-tel-divider {
  width: 1px;
  height: 32px;
  background: var(--border-glass);
}

.onboarding-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.device-lock-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.device-lock-tag .lock-icon {
  width: 14px;
  height: 14px;
  color: var(--red-neon);
  flex-shrink: 0;
}

.single-device-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE ADAPTATIONS
   ========================================================================== */
@media (max-width: 640px) {
  .gpx-visual-guide {
    flex-direction: column;
    gap: 16px;
  }

  .countdown-digits-grid {
    gap: 6px;
  }

  .countdown-unit {
    min-width: 58px;
    padding: 8px 6px;
  }

  .countdown-separator {
    font-size: 1.3rem;
  }

  .single-device-actions {
    flex-direction: column;
    align-items: stretch;
  }
}



