@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&family=Montserrat:wght@300;700&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-bg:         #08080F;
  --clr-violet:     #4F2BFF;
  --clr-magenta:    #C023E8;
  --clr-orange:     #FF6B00;
  --clr-red:        #FF1A1A;
  --clr-cyan:       #00D4FF;
  --clr-white:      #FFFFFF;
  --clr-muted:      rgba(255,255,255,0.55);

  --font-display:   'Rajdhani', sans-serif;
  --font-body:      'Montserrat', sans-serif;

  --clr-gold:       #FFC738;
}

html, body {
  height: 100%;
  width: 100%;
}

html {
  overflow-x: hidden;
}

body {
  background-color: var(--clr-bg);
  font-family: var(--font-body);
  color: var(--clr-white);
  min-height: 100%;
  overflow-x: hidden;
}

/* ─── Canvas de rayas (detrás de todo) ─────────────────────── */
#speed-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Resplandor de fondo ───────────────────────────────────── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 40% at 50% 38%,
      rgba(79, 43, 255, 0.18) 0%,
      transparent 70%),
    radial-gradient(ellipse 40% 30% at 65% 38%,
      rgba(255, 107, 0, 0.12) 0%,
      transparent 70%);
}

/* ─── Layout principal ──────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  padding: 0 24px;
  width: 100%;
  max-width: 900px;
  min-height: 100vh;
  margin: 0 auto;
}

/* ─── Logo ──────────────────────────────────────────────────── */
.logo-wrap {
  position: relative;
  width: min(560px, 88vw);
  animation: logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-wrap img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 32px rgba(79, 43, 255, 0.45))
          drop-shadow(0 0 16px rgba(255, 107, 0, 0.30));
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(0.88) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Tagline ───────────────────────────────────────────────── */
.tagline {
  margin-top: 20px;
  max-width: 560px;
  animation: fade-up 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tagline p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.82rem, 2vw, 1.02rem);
  line-height: 1.72;
  color: var(--clr-muted);
  letter-spacing: 0.01em;
}

.tagline p strong {
  font-weight: 500;
  color: var(--clr-white);
}

.tagline .separator-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(79, 43, 255, 0.6) 20%,
    rgba(0, 212, 255, 0.4) 50%,
    rgba(255, 107, 0, 0.6) 80%,
    transparent);
  margin-bottom: 18px;
}

/* ─── Botones ───────────────────────────────────────────────── */
.btn-group {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fade-up 0.9s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 42px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.18s;
  background: rgba(255,255,255,0.12);
}

.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Registro — degradado violeta-magenta */
.btn-primary {
  background: linear-gradient(110deg, var(--clr-violet) 0%, var(--clr-magenta) 100%);
  color: var(--clr-white);
  box-shadow:
    0 0 20px rgba(79, 43, 255, 0.45),
    0 4px 16px rgba(192, 35, 232, 0.30);
}
.btn-primary:hover {
  box-shadow:
    0 0 32px rgba(79, 43, 255, 0.65),
    0 6px 24px rgba(192, 35, 232, 0.45);
}

/* Login — borde degradado naranja-rojo */
.btn-secondary {
  background: transparent;
  color: var(--clr-white);
  box-shadow: inset 0 0 0 1.5px transparent;
  position: relative;
}
.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 1.5px;
  background: linear-gradient(110deg, var(--clr-orange), var(--clr-red));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-secondary:hover {
  box-shadow: 0 0 22px rgba(255, 107, 0, 0.35);
}

/* ─── Animaciones de entrada ────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .logo-wrap, .tagline, .btn-group { animation: none; opacity: 1; }
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .btn { padding: 12px 32px; font-size: 0.95rem; }
  .btn-group { gap: 12px; }
  .tagline { margin-top: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   Sección "¡Comencemos con la Carrera"
═══════════════════════════════════════════════════════════ */
.race-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  text-align: center;
}

/* Título con aparición letra por letra */
.race-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  letter-spacing: 0.02em;
  color: var(--clr-white);
  margin-bottom: 28px;
}

.race-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  white-space: pre;
}

.race-title.in-view .letter {
  animation: letter-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes letter-in {
  to { opacity: 1; transform: translateY(0); }
}

.race-sub {
  max-width: 720px;
  margin: 0 auto 30px;
  opacity: 0;
  transform: translateY(16px);
}

.race-section.in-view .race-sub {
  animation: fade-up 0.8s 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.race-sub-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--clr-white);
  margin-bottom: 10px;
}

.race-sub-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.85rem, 1.9vw, 1rem);
  line-height: 1.7;
  color: var(--clr-muted);
}

.race-caption {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  color: var(--clr-muted);
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
}

.race-section.in-view .race-caption {
  animation: fade-up 0.8s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.race-caption code {
  font-family: monospace;
  color: var(--clr-cyan);
  background: rgba(0, 212, 255, 0.10);
  padding: 1px 6px;
  border-radius: 3px;
}

/* Cuadro / tabla con efecto de aparición */
.race-table-wrap {
  border: 1px solid rgba(79, 43, 255, 0.55);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(79, 43, 255, 0.06), rgba(8, 8, 15, 0.4));
  box-shadow:
    0 0 40px rgba(79, 43, 255, 0.15),
    inset 0 0 60px rgba(79, 43, 255, 0.04);
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px) scale(0.97);
}

.race-section.in-view .race-table-wrap {
  animation: box-in 0.9s 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes box-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.race-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.race-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.race-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-white);
  background: rgba(79, 43, 255, 0.14);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(79, 43, 255, 0.4);
  white-space: nowrap;
}

.race-table thead th.col-cat { width: 1%; }

.race-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  vertical-align: middle;
}

.race-table tbody tr:last-child td { border-bottom: none; }

.race-table .lvl1-row .cat-cell,
.race-table tbody .cat-cell {
  position: relative;
  background: rgba(79, 43, 255, 0.10);
  padding-left: 22px;
  text-align: left;
  border-right: 3px solid var(--clr-gold);
}

.race-table tbody .lvl-row .cat-cell.single {
  background: rgba(79, 43, 255, 0.16);
}

.cat-badge {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--clr-gold);
  white-space: nowrap;
}

.cat-badge.sm { font-size: clamp(0.78rem, 1.7vw, 0.9rem); }

.cat-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--clr-white);
  margin-top: 2px;
}

.cat-desc {
  display: block;
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--clr-muted);
  margin-top: 6px;
  max-width: 130px;
  line-height: 1.4;
}

.pct-cell {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--clr-white);
  text-align: center;
}

.coin-cell {
  text-align: center;
  white-space: nowrap;
}

.coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--clr-gold) 70%);
  font-size: 0.85rem;
  box-shadow: 0 0 10px rgba(255, 199, 56, 0.5);
}

.coin-label {
  display: block;
  font-size: 0.65rem;
  color: var(--clr-muted);
  margin-top: 4px;
}

.cond-cell {
  text-align: left;
  color: var(--clr-muted);
  font-weight: 300;
  line-height: 1.5;
}

.cond-cell .hl {
  color: var(--clr-gold);
  font-weight: 600;
}

.cond-note {
  display: inline-block;
  font-size: 0.78em;
  color: var(--clr-muted);
  margin-top: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .race-title .letter,
  .race-sub,
  .race-caption,
  .race-table-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Responsive: sección Carrera ───────────────────────────── */
@media (max-width: 640px) {
  .race-section { padding: 24px 14px 70px; }
  .race-table { min-width: 560px; }
  .cat-desc { display: none; }
  .cat-tag { margin-top: 1px; }
}

/* ═══════════════════════════════════════════════════════════
   Sección "¿Cómo Funciona?"
═══════════════════════════════════════════════════════════ */

.how-section{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:60px 20px 120px;
  display:flex;
  align-items:center;
  gap:60px;
}


/* ──────────────────────────────────────────────
   Columna izquierda
────────────────────────────────────────────── */

.how-shields{
  flex:0 0 auto;
  width:min(620px,44vw);

  /* Desplazamiento permanente hacia la izquierda */
  margin-left:-200px;

  opacity:0;
  transform:translateX(-140px);
}

.how-section.in-view .how-shields{
  animation:slide-in-left .9s .1s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes slide-in-left{

  to{
      opacity:1;
      transform:translateX(-100px);
  }

}


.how-shields picture{
  display:block;
  width:100%;
}

.shields-img{
  width:100%;
  height:auto;
  display:block;

  filter:
      drop-shadow(0 0 30px rgba(79,43,255,.35))
      drop-shadow(0 0 12px rgba(255,107,0,.18));
}


/* ──────────────────────────────────────────────
   Columna derecha
────────────────────────────────────────────── */

.how-content{
  flex:1 1 auto;
  opacity:0;
  transform:translateX(40px);
}

.how-section.in-view .how-content{
  animation:slide-in-right .9s .25s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes slide-in-right{

  to{
      opacity:1;
      transform:translateX(0);
  }

}


/* ──────────────────────────────────────────────
   Título
────────────────────────────────────────────── */

.how-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2rem,5vw,3.2rem);
  letter-spacing:.01em;
  color:var(--clr-white);
  margin-bottom:32px;
  line-height:1.1;
}

.how-title .letter{
  display:inline-block;
  opacity:0;
  transform:translateY(18px);
  white-space:pre;
}

.how-title.in-view .letter{
  animation:letter-in .55s cubic-bezier(.22,1,.36,1) forwards;
}


/* ──────────────────────────────────────────────
   Texto
────────────────────────────────────────────── */

.how-body{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.how-body p{
  font-family:var(--font-body);
  font-weight:300;
  font-size:clamp(.82rem,1.7vw,.97rem);
  line-height:1.78;
  color:var(--clr-muted);
  letter-spacing:.01em;
}

.how-body p strong{
  font-weight:700;
  color:var(--clr-white);
}


/* ──────────────────────────────────────────────
   Reduced Motion
────────────────────────────────────────────── */

@media(prefers-reduced-motion:reduce){

.how-shields,
.how-content,
.how-title .letter{

    animation:none!important;
    opacity:1!important;
    transform:none!important;

}

}


/* ──────────────────────────────────────────────
   Responsive Tablet
────────────────────────────────────────────── */

@media(max-width:768px){

.how-section{

    flex-direction:column;
    gap:36px;
    padding:40px 20px 80px;
    text-align:center;

}

.how-shields{

    margin-left:0;
    width:min(340px,80vw);
    transform:translateY(-30px);

}

.how-section.in-view .how-shields{

    animation:slide-in-top .9s .1s cubic-bezier(.22,1,.36,1) forwards;

}

@keyframes slide-in-top{

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

}

.how-content{

    transform:translateY(30px);

}

.how-section.in-view .how-content{

    animation:slide-in-bottom .9s .25s cubic-bezier(.22,1,.36,1) forwards;

}

@keyframes slide-in-bottom{

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

}

.how-body p{

    text-align:left;

}

}


/* ──────────────────────────────────────────────
   Responsive Mobile
────────────────────────────────────────────── */

@media(max-width:480px){

.how-section{

    padding:30px 14px 60px;
    gap:28px;

}

.how-shields{

    margin-left:0;
    width:min(280px,88vw);

}

.how-title{

    font-size:clamp(1.7rem,7vw,2.4rem);

}

}
/* ═══════════════════════════════════════════════════════════
   Delays escalonados por letra (.l-N)
   race-title: paso 0.035s | how-title: paso 0.04s
   Cubre hasta 60 caracteres por título
═══════════════════════════════════════════════════════════ */
.race-title.in-view .l-0 { animation-delay: 0.0s; }
.how-title.in-view  .l-0 { animation-delay: 0.0s; }
.race-title.in-view .l-1 { animation-delay: 0.035s; }
.how-title.in-view  .l-1 { animation-delay: 0.04s; }
.race-title.in-view .l-2 { animation-delay: 0.07s; }
.how-title.in-view  .l-2 { animation-delay: 0.08s; }
.race-title.in-view .l-3 { animation-delay: 0.105s; }
.how-title.in-view  .l-3 { animation-delay: 0.12s; }
.race-title.in-view .l-4 { animation-delay: 0.14s; }
.how-title.in-view  .l-4 { animation-delay: 0.16s; }
.race-title.in-view .l-5 { animation-delay: 0.175s; }
.how-title.in-view  .l-5 { animation-delay: 0.2s; }
.race-title.in-view .l-6 { animation-delay: 0.21s; }
.how-title.in-view  .l-6 { animation-delay: 0.24s; }
.race-title.in-view .l-7 { animation-delay: 0.245s; }
.how-title.in-view  .l-7 { animation-delay: 0.28s; }
.race-title.in-view .l-8 { animation-delay: 0.28s; }
.how-title.in-view  .l-8 { animation-delay: 0.32s; }
.race-title.in-view .l-9 { animation-delay: 0.315s; }
.how-title.in-view  .l-9 { animation-delay: 0.36s; }
.race-title.in-view .l-10 { animation-delay: 0.35s; }
.how-title.in-view  .l-10 { animation-delay: 0.4s; }
.race-title.in-view .l-11 { animation-delay: 0.385s; }
.how-title.in-view  .l-11 { animation-delay: 0.44s; }
.race-title.in-view .l-12 { animation-delay: 0.42s; }
.how-title.in-view  .l-12 { animation-delay: 0.48s; }
.race-title.in-view .l-13 { animation-delay: 0.455s; }
.how-title.in-view  .l-13 { animation-delay: 0.52s; }
.race-title.in-view .l-14 { animation-delay: 0.49s; }
.how-title.in-view  .l-14 { animation-delay: 0.56s; }
.race-title.in-view .l-15 { animation-delay: 0.525s; }
.how-title.in-view  .l-15 { animation-delay: 0.6s; }
.race-title.in-view .l-16 { animation-delay: 0.56s; }
.how-title.in-view  .l-16 { animation-delay: 0.64s; }
.race-title.in-view .l-17 { animation-delay: 0.595s; }
.how-title.in-view  .l-17 { animation-delay: 0.68s; }
.race-title.in-view .l-18 { animation-delay: 0.63s; }
.how-title.in-view  .l-18 { animation-delay: 0.72s; }
.race-title.in-view .l-19 { animation-delay: 0.665s; }
.how-title.in-view  .l-19 { animation-delay: 0.76s; }
.race-title.in-view .l-20 { animation-delay: 0.7s; }
.how-title.in-view  .l-20 { animation-delay: 0.8s; }
.race-title.in-view .l-21 { animation-delay: 0.735s; }
.how-title.in-view  .l-21 { animation-delay: 0.84s; }
.race-title.in-view .l-22 { animation-delay: 0.77s; }
.how-title.in-view  .l-22 { animation-delay: 0.88s; }
.race-title.in-view .l-23 { animation-delay: 0.805s; }
.how-title.in-view  .l-23 { animation-delay: 0.92s; }
.race-title.in-view .l-24 { animation-delay: 0.84s; }
.how-title.in-view  .l-24 { animation-delay: 0.96s; }
.race-title.in-view .l-25 { animation-delay: 0.875s; }
.how-title.in-view  .l-25 { animation-delay: 1.0s; }
.race-title.in-view .l-26 { animation-delay: 0.91s; }
.how-title.in-view  .l-26 { animation-delay: 1.04s; }
.race-title.in-view .l-27 { animation-delay: 0.945s; }
.how-title.in-view  .l-27 { animation-delay: 1.08s; }
.race-title.in-view .l-28 { animation-delay: 0.98s; }
.how-title.in-view  .l-28 { animation-delay: 1.12s; }
.race-title.in-view .l-29 { animation-delay: 1.015s; }
.how-title.in-view  .l-29 { animation-delay: 1.16s; }
.race-title.in-view .l-30 { animation-delay: 1.05s; }
.how-title.in-view  .l-30 { animation-delay: 1.2s; }
.race-title.in-view .l-31 { animation-delay: 1.085s; }
.how-title.in-view  .l-31 { animation-delay: 1.24s; }
.race-title.in-view .l-32 { animation-delay: 1.12s; }
.how-title.in-view  .l-32 { animation-delay: 1.28s; }
.race-title.in-view .l-33 { animation-delay: 1.155s; }
.how-title.in-view  .l-33 { animation-delay: 1.32s; }
.race-title.in-view .l-34 { animation-delay: 1.19s; }
.how-title.in-view  .l-34 { animation-delay: 1.36s; }
.race-title.in-view .l-35 { animation-delay: 1.225s; }
.how-title.in-view  .l-35 { animation-delay: 1.4s; }
.race-title.in-view .l-36 { animation-delay: 1.26s; }
.how-title.in-view  .l-36 { animation-delay: 1.44s; }
.race-title.in-view .l-37 { animation-delay: 1.295s; }
.how-title.in-view  .l-37 { animation-delay: 1.48s; }
.race-title.in-view .l-38 { animation-delay: 1.33s; }
.how-title.in-view  .l-38 { animation-delay: 1.52s; }
.race-title.in-view .l-39 { animation-delay: 1.365s; }
.how-title.in-view  .l-39 { animation-delay: 1.56s; }
.race-title.in-view .l-40 { animation-delay: 1.4s; }
.how-title.in-view  .l-40 { animation-delay: 1.6s; }
.race-title.in-view .l-41 { animation-delay: 1.435s; }
.how-title.in-view  .l-41 { animation-delay: 1.64s; }
.race-title.in-view .l-42 { animation-delay: 1.47s; }
.how-title.in-view  .l-42 { animation-delay: 1.68s; }
.race-title.in-view .l-43 { animation-delay: 1.505s; }
.how-title.in-view  .l-43 { animation-delay: 1.72s; }
.race-title.in-view .l-44 { animation-delay: 1.54s; }
.how-title.in-view  .l-44 { animation-delay: 1.76s; }
.race-title.in-view .l-45 { animation-delay: 1.575s; }
.how-title.in-view  .l-45 { animation-delay: 1.8s; }
.race-title.in-view .l-46 { animation-delay: 1.61s; }
.how-title.in-view  .l-46 { animation-delay: 1.84s; }
.race-title.in-view .l-47 { animation-delay: 1.645s; }
.how-title.in-view  .l-47 { animation-delay: 1.88s; }
.race-title.in-view .l-48 { animation-delay: 1.68s; }
.how-title.in-view  .l-48 { animation-delay: 1.92s; }
.race-title.in-view .l-49 { animation-delay: 1.715s; }
.how-title.in-view  .l-49 { animation-delay: 1.96s; }
.race-title.in-view .l-50 { animation-delay: 1.75s; }
.how-title.in-view  .l-50 { animation-delay: 2.0s; }
.race-title.in-view .l-51 { animation-delay: 1.785s; }
.how-title.in-view  .l-51 { animation-delay: 2.04s; }
.race-title.in-view .l-52 { animation-delay: 1.82s; }
.how-title.in-view  .l-52 { animation-delay: 2.08s; }
.race-title.in-view .l-53 { animation-delay: 1.855s; }
.how-title.in-view  .l-53 { animation-delay: 2.12s; }
.race-title.in-view .l-54 { animation-delay: 1.89s; }
.how-title.in-view  .l-54 { animation-delay: 2.16s; }
.race-title.in-view .l-55 { animation-delay: 1.925s; }
.how-title.in-view  .l-55 { animation-delay: 2.2s; }
.race-title.in-view .l-56 { animation-delay: 1.96s; }
.how-title.in-view  .l-56 { animation-delay: 2.24s; }
.race-title.in-view .l-57 { animation-delay: 1.995s; }
.how-title.in-view  .l-57 { animation-delay: 2.28s; }
.race-title.in-view .l-58 { animation-delay: 2.03s; }
.how-title.in-view  .l-58 { animation-delay: 2.32s; }
.race-title.in-view .l-59 { animation-delay: 2.065s; }
.how-title.in-view  .l-59 { animation-delay: 2.36s; }

/* ═══════════════════════════════════════════════════════════
   Sección "¿Cómo Participar?"
═══════════════════════════════════════════════════════════ */
.part-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 120px;
  text-align: center;
}

/* ── Título letra a letra ── */
.part-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  letter-spacing: 0.01em;
  color: var(--clr-white);
  margin-bottom: 28px;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
}

.part-section.in-view .part-title {
  animation: fade-up 0.7s 0s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.part-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  white-space: pre;
}

.part-title.in-view .letter {
  animation: letter-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Intro text ── */
.part-intro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.82rem, 1.7vw, 0.97rem);
  line-height: 1.78;
  color: var(--clr-muted);
  max-width: 780px;
  margin: 0 auto 48px;
  opacity: 0;
  transform: translateY(16px);
}

.part-section.in-view .part-intro {
  animation: fade-up 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Grid de 5 columnas (2 filas) ── */
.part-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

/* ── Card individual ── */
.pool-card {
  background: linear-gradient(160deg, rgba(79,43,255,0.10) 0%, rgba(8,8,15,0.55) 100%);
  border: 1px solid rgba(79, 43, 255, 0.50);
  border-radius: 14px;
  padding: 0 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  box-shadow:
    0 0 20px rgba(79, 43, 255, 0.10),
    inset 0 0 30px rgba(79, 43, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pool-card:hover {
  border-color: rgba(192, 35, 232, 0.70);
  box-shadow: 0 0 32px rgba(192, 35, 232, 0.22);
}

/* Aparición escalonada de cada card */
.part-section.in-view .pool-card {
  animation: box-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.part-section.in-view .pool-card:nth-child(1)  { animation-delay: 0.10s; }
.part-section.in-view .pool-card:nth-child(2)  { animation-delay: 0.18s; }
.part-section.in-view .pool-card:nth-child(3)  { animation-delay: 0.26s; }
.part-section.in-view .pool-card:nth-child(4)  { animation-delay: 0.34s; }
.part-section.in-view .pool-card:nth-child(5)  { animation-delay: 0.42s; }
.part-section.in-view .pool-card:nth-child(6)  { animation-delay: 0.50s; }
.part-section.in-view .pool-card:nth-child(7)  { animation-delay: 0.58s; }
.part-section.in-view .pool-card:nth-child(8)  { animation-delay: 0.66s; }
.part-section.in-view .pool-card:nth-child(9)  { animation-delay: 0.74s; }
.part-section.in-view .pool-card:nth-child(10) { animation-delay: 0.82s; }

/* ── Badge escudo POOL N ── */
.pool-badge {
  width: 72px;
  height: 80px;
  margin: -28px auto 14px;
  background: linear-gradient(160deg, #6B3FFF 0%, #4F2BFF 100%);
  clip-path: polygon(50% 0%, 100% 18%, 100% 68%, 50% 100%, 0% 68%, 0% 18%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  filter: drop-shadow(0 0 10px rgba(79, 43, 255, 0.60));
  position: relative;
}

/* Borde luminoso del escudo */
.pool-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 18%, 100% 68%, 50% 100%, 0% 68%, 0% 18%);
  background: linear-gradient(160deg, rgba(192,35,232,0.6), transparent 60%);
  pointer-events: none;
}

.pool-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--clr-white);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.pool-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--clr-gold);
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* ── Etiqueta "PAGAS / RECIBES" ── */
.pool-label-pay,
.pool-label-get {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.52rem, 1.1vw, 0.65rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pool-label-pay { color: var(--clr-violet); margin-top: 4px; }
.pool-label-get { color: var(--clr-violet); margin-top: 4px; }

/* ── Montos ── */
.pool-pay,
.pool-get {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
  margin: 0;
}

.pool-pay {
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  color: var(--clr-white);
}

.pool-get {
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: var(--clr-gold);
}

/* ── Iconos de moneda ── */
.pool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pool-icon-tether {
  background: radial-gradient(circle at 35% 30%, #5bc98e, #26a17b 70%);
  color: #fff;
  box-shadow: 0 0 8px rgba(38,161,123,0.55);
}

.pool-icon-dollar {
  background: radial-gradient(circle at 35% 30%, #ffe08a, var(--clr-gold) 70%);
  color: #1a0a00;
  box-shadow: 0 0 8px rgba(255,199,56,0.55);
}

/* ── Divisor entre bloques ── */
.pool-divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,43,255,0.5), transparent);
  margin: 12px 0;
}

/* ── Footer nota ── */
.part-footer {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
}

.part-section.in-view .part-footer {
  animation: fade-up 0.8s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.part-footer-icon {
  font-size: 1rem;
  color: var(--clr-muted);
  flex-shrink: 0;
}

.part-highlight {
  color: var(--clr-magenta);
  font-weight: 700;
}

/* ── Delays letra a letra para part-title ── */
.part-title.in-view .l-0  { animation-delay: 0.00s; }
.part-title.in-view .l-1  { animation-delay: 0.04s; }
.part-title.in-view .l-2  { animation-delay: 0.08s; }
.part-title.in-view .l-3  { animation-delay: 0.12s; }
.part-title.in-view .l-4  { animation-delay: 0.16s; }
.part-title.in-view .l-5  { animation-delay: 0.20s; }
.part-title.in-view .l-6  { animation-delay: 0.24s; }
.part-title.in-view .l-7  { animation-delay: 0.28s; }
.part-title.in-view .l-8  { animation-delay: 0.32s; }
.part-title.in-view .l-9  { animation-delay: 0.36s; }
.part-title.in-view .l-10 { animation-delay: 0.40s; }
.part-title.in-view .l-11 { animation-delay: 0.44s; }
.part-title.in-view .l-12 { animation-delay: 0.48s; }
.part-title.in-view .l-13 { animation-delay: 0.52s; }
.part-title.in-view .l-14 { animation-delay: 0.56s; }
.part-title.in-view .l-15 { animation-delay: 0.60s; }
.part-title.in-view .l-16 { animation-delay: 0.64s; }
.part-title.in-view .l-17 { animation-delay: 0.68s; }
.part-title.in-view .l-18 { animation-delay: 0.72s; }
.part-title.in-view .l-19 { animation-delay: 0.76s; }
.part-title.in-view .l-20 { animation-delay: 0.80s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .part-title,
  .part-title .letter,
  .part-intro,
  .pool-card,
  .part-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── Responsive: ¿Cómo Participar? ── */
@media (max-width: 1024px) {
  .part-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .pool-badge { width: 62px; height: 70px; }
}

@media (max-width: 860px) {
  .part-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 560px) {
  .part-section { padding: 40px 14px 80px; }
  .part-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .pool-card { padding: 0 12px 16px; }
  .pool-pay { font-size: 0.82rem; }
  .pool-get { font-size: 0.88rem; }
}

@media (max-width: 360px) {
  .part-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pool-num { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════════
   Sección "Preguntas Frecuentes"
═══════════════════════════════════════════════════════════ */
.faq-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 20px 130px;
  text-align: center;
}

/* ── Título letra a letra ── */
.faq-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.6vw, 2.7rem);
  letter-spacing: 0.02em;
  color: var(--clr-white);
  margin-bottom: 36px;
}

.faq-title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  white-space: pre;
}

.faq-title.in-view .letter {
  animation: letter-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Cuadro con la lista de preguntas ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
}

.faq-section.in-view .faq-list {
  animation: box-in 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Item individual ── */
.faq-item {
  border: 1px solid rgba(79, 43, 255, 0.45);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(79,43,255,0.07) 0%, rgba(8,8,15,0.5) 100%);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(79, 43, 255, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(192, 35, 232, 0.6);
  box-shadow: 0 0 26px rgba(192, 35, 232, 0.16);
}

.faq-item.open {
  border-color: rgba(0, 212, 255, 0.55);
}

/* ── Botón / cabecera de la pregunta ── */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  text-align: left;
  font-family: var(--font-body);
  color: var(--clr-white);
}

.faq-question:focus-visible {
  outline: 2px solid var(--clr-cyan);
  outline-offset: -2px;
}

.faq-q-text {
  font-weight: 700;
  font-size: clamp(0.88rem, 1.9vw, 1.02rem);
  line-height: 1.5;
}

/* ── Icono +/− ── */
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clr-white);
  background: linear-gradient(135deg, var(--clr-violet), var(--clr-magenta));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(135deg);
  background: linear-gradient(135deg, var(--clr-orange), var(--clr-red));
}

/* ── Respuesta con animación de expansión suave (grid-rows trick) ── */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p,
.faq-answer ul {
  padding: 0 22px 20px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  line-height: 1.75;
  color: var(--clr-muted);
}

.faq-answer p + p { padding-top: 0; }
.faq-answer p:has(+ ul) { padding-bottom: 10px; }

.faq-answer ul {
  list-style: none;
  padding-left: 22px;
}

.faq-answer ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.faq-answer ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-violet), var(--clr-magenta));
}

.faq-ul-pools {
  columns: 2;
  column-gap: 24px;
}

.faq-answer code {
  font-family: monospace;
  color: var(--clr-cyan);
  background: rgba(0, 212, 255, 0.10);
  padding: 1px 6px;
  border-radius: 3px;
}

.faq-answer strong {
  color: var(--clr-white);
  font-weight: 700;
}

.faq-highlight {
  color: var(--clr-gold);
  font-weight: 600;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .faq-title,
  .faq-title .letter,
  .faq-list {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .faq-answer,
  .faq-icon {
    transition: none !important;
  }
}

/* ── Responsive: Preguntas Frecuentes ── */
@media (max-width: 560px) {
  .faq-section { padding: 40px 14px 90px; }
  .faq-question { padding: 15px 16px; gap: 12px; }
  .faq-answer p,
  .faq-answer ul { padding: 0 16px 16px; }
  .faq-icon { width: 24px; height: 24px; font-size: 0.95rem; }
  .faq-ul-pools { columns: 1; }
}

/* ═══════════════════════════════════════════════════════════
   Footer: redes sociales, contrato y copyright
═══════════════════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-top: 1px solid rgba(79, 43, 255, 0.25);
}

/* ── Redes sociales ── */
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--clr-white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.18s;
}

.social-btn:hover::after { opacity: 1; }
.social-btn:hover { transform: translateY(-2px); }
.social-btn:active { transform: translateY(0); }

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Colores por red */
.social-telegram {
  background: linear-gradient(135deg, #229ED9 0%, #1a86bb 100%);
  border-color: rgba(34, 158, 217, 0.4);
  box-shadow: 0 0 16px rgba(34, 158, 217, 0.20);
}
.social-telegram:hover {
  box-shadow: 0 0 28px rgba(34, 158, 217, 0.40);
  border-color: rgba(34, 158, 217, 0.70);
}

.social-x {
  background: linear-gradient(135deg, #1d1d1d 0%, #111 100%);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.06);
}
.social-x:hover {
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.40);
}

.social-youtube {
  background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
  border-color: rgba(255, 0, 0, 0.35);
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.18);
}
.social-youtube:hover {
  box-shadow: 0 0 28px rgba(255, 0, 0, 0.38);
  border-color: rgba(255, 0, 0, 0.65);
}

.social-instagram {
  background: linear-gradient(135deg, #833AB4 0%, #C13584 50%, #E1306C 100%);
  border-color: rgba(193, 53, 132, 0.40);
  box-shadow: 0 0 16px rgba(193, 53, 132, 0.18);
}
.social-instagram:hover {
  box-shadow: 0 0 28px rgba(193, 53, 132, 0.38);
  border-color: rgba(193, 53, 132, 0.70);
}

.social-facebook {
  background: linear-gradient(135deg, #1877F2 0%, #155fc2 100%);
  border-color: rgba(24, 119, 242, 0.40);
  box-shadow: 0 0 16px rgba(24, 119, 242, 0.18);
}
.social-facebook:hover {
  box-shadow: 0 0 28px rgba(24, 119, 242, 0.38);
  border-color: rgba(24, 119, 242, 0.70);
}

/* ── Dirección del contrato ── */
.footer-contract {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-contract-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.footer-contract-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(79, 43, 255, 0.45);
  background: rgba(79, 43, 255, 0.07);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.footer-contract-link:hover {
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
  background: rgba(0, 212, 255, 0.06);
}

.footer-contract-prefix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--clr-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 212, 255, 0.12);
  white-space: nowrap;
}

.footer-contract-addr {
  font-family: monospace;
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  color: var(--clr-muted);
  letter-spacing: 0.03em;
  word-break: break-all;
}

.footer-ext-icon {
  width: 14px;
  height: 14px;
  color: var(--clr-cyan);
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.18s;
}
.footer-contract-link:hover .footer-ext-icon { opacity: 1; }

/* ── Copyright ── */
.footer-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.30);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-footer { padding: 36px 16px 48px; gap: 24px; }
  .footer-socials { gap: 10px; }
  .social-btn { padding: 10px 14px; font-size: 0.82rem; }
  .social-icon { width: 16px; height: 16px; }
  .footer-contract-addr { font-size: 0.64rem; }
}

@media (max-width: 400px) {
  .social-btn span { display: none; }
  .social-btn { padding: 12px; border-radius: 50%; width: 46px; height: 46px; justify-content: center; }
  .social-icon { width: 20px; height: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .social-btn, .footer-contract-link { transition: none; }
}
