/* ─────────────────────────────────────────
   VARIABLES GLOBALES (Custom Properties)
   Se usan en todo el CSS con var(--nombre)
   Cambiar acá afecta a todo el sitio.
───────────────────────────────────────── */
:root {
  --black: #050505;
  /* fondo principal de la página */
  --deep: #0a0a0f;
  /* fondo de secciones alternas */
  --blue: #00aaff;
  /* azul principal / acento */
  --blue-mid: #0077cc;
  /* azul medio para gradientes */
  --blue-dark: #003a66;
  /* azul oscuro para fondos */
  --red: #cc1122;
  /* rojo (actualmente no usado en UI) */
  --red-bright: #ff1a2e;
  /* rojo brillante */
  --white: #f0f4ff;
  /* blanco con tinte azulado */
  --gray: #8899aa;
  /* gris para textos secundarios */
  --card-bg: rgba(0, 10, 30, 0.85);
  /* fondo de tarjetas semitransparente */
  --glow-blue: 0 0 24px rgba(0, 170, 255, 0.45);
  /* sombra brillante azul */
  --glow-red: 0 0 24px rgba(255, 26, 46, 0.45);
  /* sombra brillante roja */
}

/* Reset universal: elimina márgenes/paddings por defecto del navegador
   box-sizing: border-box hace que el padding no agrande el elemento */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Activa el scroll suave al hacer click en links de ancla (#section) */
html {
  scroll-behavior: smooth;
}

/* Estilo base del body: fondo oscuro, fuente Rajdhani, sin scroll horizontal */
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  overflow-x: hidden;
  /* evita scroll horizontal por desbordamientos */
}

/* ─── NOISE OVERLAY ───────────────────────────────────────────────────
   Pseudo-elemento que cubre toda la pantalla con una textura de ruido SVG.
   Está fijo (fixed) y encima de todo (z-index: 9999).
   pointer-events: none → no interfiere con clicks del usuario.
   Genera el efecto de "pantalla de cine" o grano de película.
───────────────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .4;
}

/* ─── NAVBAR ─────────────────────────────────────────────────────────
   Fija en la parte superior (position: fixed), siempre visible.
   backdrop-filter: blur → efecto de vidrio esmerilado sobre el contenido.
   z-index: 100 → encima de las secciones pero debajo del noise overlay.
───────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(5, 5, 5, 0.92);
  /* fondo oscuro semitransparente */
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  /* desenfoca lo que hay detrás */
  border-bottom: 1px solid rgba(0, 170, 255, 0.18);
  /* línea azul sutil */
}

/* Logo del navbar: imagen circular giratoria + texto con gradiente */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* lo hace circular */
  object-fit: cover;
  filter: drop-shadow(var(--glow-blue));
  animation: spin 16s linear infinite;
  /* gira lentamente, definido en @keyframes */
}

.nav-logo span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  /* Texto con gradiente: se aplica como fondo y se recorta al texto */
  background: linear-gradient(90deg, var(--blue), #fff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Botón de tres puntos que abre/cierra el menú de navegación.
   z-index: 120 → encima del menú desplegable (119) */
.menu-toggle {
  position: relative;
  z-index: 120;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  /* lo hace circular */
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background .25s, transform .25s;
}

.menu-toggle:hover {
  background: rgba(0, 170, 255, 0.12);
  transform: translateY(-1px);
}

/* Cada punto del botón (hay 3 spans dentro del botón) */
.menu-toggle span {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  display: block;
}

/* Menú desplegable: por defecto invisible (opacity:0, visibility:hidden).
   Cuando el JS agrega la clase .open al <nav>, se hace visible con animación.
   Se usa opacity+visibility en lugar de display:none para poder animar. */
.nav-links {
  position: absolute;
  top: 72px;
  /* justo debajo del navbar */
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  min-width: 240px;
  width: min(280px, 92vw);
  /* min() toma el valor más chico */
  background: rgba(0, 4, 16, 0.96);
  border: 1px solid rgba(0, 170, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  /* invisible */
  visibility: hidden;
  /* inaccesible por teclado/mouse */
  pointer-events: none;
  /* no recibe clicks */
  transform: translateY(-10px);
  /* levemente arriba (para la animación) */
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 119;
}

/* Estado abierto: JS agrega .open al <nav> al hacer click en el botón */
nav.open .nav-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  /* baja a su posición normal */
}

/* Resalta el botón cuando el menú está abierto */
nav.open .menu-toggle {
  background: rgba(0, 170, 255, 0.18);
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color .25s, background .25s;
  padding: 10px 14px;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--blue);
  background: rgba(0, 170, 255, 0.08);
}

.nav-links a.nav-active {
  color: var(--blue);
  background: rgba(0, 170, 255, 0.12);
  border-left: 2px solid var(--blue);
}

/* ─── HERO COMPACTO — Página de Posiciones ───────────────────────── */
.posiciones-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  overflow: hidden;
}

.posiciones-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0, 100, 200, 0.28) 0%, transparent 70%),
    linear-gradient(180deg, #050518 0%, #000408 100%);
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.posiciones-hero-content {
  position: relative;
  z-index: 2;
}

.posiciones-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin: 12px 0 10px;
  background: linear-gradient(180deg, #fff 30%, rgba(0, 170, 255, 0.65) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.posiciones-hero-title span {
  background: linear-gradient(135deg, var(--blue), #7de8ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.posiciones-hero-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(180, 210, 255, 0.65);
  letter-spacing: 1px;
}



/* ─── HERO ─────────────────────────────────────────────────────────
   Sección de pantalla completa (100vh) que actúa como portada del sitio.
   position: relative para que los hijos absolutos (bg, grid) queden dentro.
───────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  /* ocupa toda la altura de la pantalla */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  /* padding-top extra por el navbar fijo */
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

/* Fondo del hero: capas de gradientes radiales y lineales superpuestos */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* cubre todo el hero, detrás del contenido */
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 100, 200, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(204, 17, 34, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #050518 0%, #000408 100%);
}

/* Cuadrícula decorativa sobre el fondo, con máscara radial para que se desvanezca */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 170, 255, 0.06) 1px, transparent 1px),
    /* líneas horizontales */
    linear-gradient(90deg, rgba(0, 170, 255, 0.06) 1px, transparent 1px);
  /* líneas verticales */
  background-size: 60px 60px;
  /* tamaño de cada celda de la grilla */
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  /* La máscara hace que la grilla sea visible en el centro y se desvanezca en los bordes */
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(260px, 55vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 40px rgba(0, 170, 255, 0.6)) drop-shadow(0 0 80px rgba(204, 17, 34, 0.3));
  animation: float 4s ease-in-out infinite;
}

/* Animación de flotación: el logo del hero sube y baja suavemente */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Animación de giro: usada en el logo del navbar */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.hero-tag {
  position: relative;
  z-index: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 32px;
  border: 1px solid rgba(0, 170, 255, 0.35);
  padding: 5px 18px;
  border-radius: 2px;
  background: rgba(0, 170, 255, 0.06);
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(52px, 10vw, 110px);
  font-weight: 900;
  line-height: .9;
  text-transform: uppercase;
  margin-top: 16px;
  text-shadow: 0 0 60px rgba(0, 170, 255, 0.5);
  background: linear-gradient(180deg, #fff 30%, rgba(0, 170, 255, 0.6) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title::after {
  content: '';
  position: absolute;
  inset: -22% -12%;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(0, 170, 255, 0.35), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.85;
  filter: blur(18px);
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 4px;
}

.hero-desc {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(200, 220, 255, 0.7);
  line-height: 1.65;
}

.hero-badges {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 170, 255, 0.08);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 2px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}

.badge-link {
  text-decoration: none;
}

.badge .icon {
  font-size: 18px;
}

.hero-cta {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all .25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  box-shadow: var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 170, 255, 0.7);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ─── SECTION ─── */
section {
  padding: 90px 40px;
  position: relative;
  isolation: isolate;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 170, 255, 0.09), transparent 70%);
  opacity: 0.65;
  z-index: -1;
}

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
}

.section-title span {
  color: var(--blue);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
  margin: 16px 0 36px;
}

/* ─── CAMPEONATOS ───────────────────────────────────────────────────
   Grid de tarjetas que se adapta automáticamente al ancho disponible.
   auto-fit + minmax: si hay espacio, pone varias columnas; si no, apila.
───────────────────────────────────────────────────────────────────── */
#campeonatos {
  background: var(--deep);
}

.champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  /* responsive automático */
  gap: 24px;
  margin-top: 16px;
}

.champ-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid rgba(0, 170, 255, 0.12);
  transition: transform .3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow .3s, border-color .3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  --gx: 50%;
  --gy: 50%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.champ-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.22), transparent 40%);
  opacity: 0;
  transition: opacity .25s;
}

.champ-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-blue);
}

.champ-card:hover::after {
  opacity: 1;
}

.champ-card-header {
  padding: 28px 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.champ-icon {
  font-size: 44px;
  line-height: 1;
}

.champ-cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  background: rgba(0, 170, 255, 0.15);
  border: 1px solid rgba(0, 170, 255, 0.35);
  color: var(--blue);
}

.champ-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin: 16px 28px 6px;
}

.champ-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 28px;
}

.champ-img {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid rgba(0, 170, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.champ-img img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.champ-card:hover .champ-img img {
  transform: scale(1.06);
}

/* Info overlay shown on hover */
.champ-img::after {
  content: 'VER MÁS DETALLES ➔';
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 8, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.champ-card:hover .champ-img::after {
  opacity: 1;
}

.champ-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
}

/* Colores de acento por disciplina:
   Motocross → azul | Enduro → verde | Supercross → naranja
   Cada clase modifica la barra lateral, badges, bordes y texto del subtítulo y overlay */
.card-mx {
  border-color: rgba(0, 170, 255, 0.15);
}

.card-mx:hover {
  border-color: rgba(0, 170, 255, 0.45);
}

.card-mx .champ-img::after {
  color: #00aaff;
  text-shadow: 0 0 10px rgba(0, 170, 255, 0.4);
}

.card-mx .champ-bar {
  background: linear-gradient(180deg, #00aaff, #0044cc);
}

.card-enduro {
  border-color: rgba(0, 204, 136, 0.15);
}

.card-enduro:hover {
  border-color: rgba(0, 204, 136, 0.45);
  box-shadow: 0 0 24px rgba(0, 204, 136, 0.35);
}

.card-enduro .champ-bar {
  background: linear-gradient(180deg, #00cc88, #006644);
}

.card-enduro .champ-cat-badges .cat-badge {
  background: rgba(0, 204, 136, 0.15);
  border-color: rgba(0, 204, 136, 0.35);
  color: #00cc88;
}

.card-enduro .champ-sub {
  color: #00cc88;
}

.card-enduro .champ-img {
  border-top-color: rgba(0, 204, 136, 0.12);
}

.card-enduro .champ-img::after {
  color: #00cc88;
  text-shadow: 0 0 10px rgba(0, 204, 136, 0.4);
}

.card-sx {
  border-color: rgba(255, 170, 0, 0.15);
}

.card-sx:hover {
  border-color: rgba(255, 170, 0, 0.45);
  box-shadow: 0 0 24px rgba(255, 170, 0, 0.35);
}

.card-sx .champ-bar {
  background: linear-gradient(180deg, #ffaa00, #cc6600);
}

.card-sx .champ-cat-badges .cat-badge {
  background: rgba(255, 170, 0, 0.15);
  border-color: rgba(255, 170, 0, 0.35);
  color: #ffaa00;
}

.card-sx .champ-sub {
  color: #ffaa00;
}

.card-sx .champ-img {
  border-top-color: rgba(255, 170, 0, 0.12);
}

.card-sx .champ-img::after {
  color: #ffaa00;
  text-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
}

/* ─── CALENDARIO ────────────────────────────────────────────────────
   Sistema de pestañas (tabs): cada botón muestra un panel distinto.
   Solo el panel con .active es visible (display: block).
   Los colores de cada tab cambian según la disciplina.
───────────────────────────────────────────────────────────────────── */
#calendario {
  background: #000408;
}

.schedule-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  position: relative;
  padding-bottom: 8px;
}

.schedule-tabs::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 170, 255, 0.35), rgba(0, 170, 255, 0.08), transparent);
}

.tab-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  background: rgba(0, 170, 255, 0.06);
  border: 1px solid rgba(0, 170, 255, 0.2);
  color: var(--gray);
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.t-icon {
  font-size: 1.3em;
  line-height: 1;
}

.tab-btn::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: .85;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.tab-btn.active,
.tab-btn:hover {
  background: rgba(0, 170, 255, 0.15);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: inset 0 0 24px rgba(0, 170, 255, 0.12);
}

@media (max-width: 650px) {
  .schedule-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }
  .schedule-tabs .tab-btn {
    flex: 1 1 calc(50% - 8px);
    padding: 10px;
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}

.tab-btn.active::after,
.tab-btn:hover::after {
  transform: scaleX(1);
}

.tab-btn.tab-enduro.active,
.tab-btn.tab-enduro:hover {
  background: rgba(0, 204, 136, 0.15);
  border-color: #00cc88;
  color: #fff;
}

.tab-btn.tab-sx.active,
.tab-btn.tab-sx:hover {
  background: rgba(255, 170, 0, 0.15);
  border-color: #ffaa00;
  color: #fff;
}

.tab-btn.tab-arena.active,
.tab-btn.tab-arena:hover {
  background: rgba(255, 87, 34, 0.15);
  border-color: #ff5722;
  color: #fff;
}

/* Los paneles están ocultos por defecto; solo el activo se muestra */
.schedule-panel {
  display: none;
  position: relative;
}

.schedule-panel.active {
  display: block;
}

.fecha-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 700px;
}

.fecha-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 170, 255, 0.15);
  transition: transform .2s, border-color .25s, box-shadow .25s;
  position: relative;
  transform-style: preserve-3d;
  --fx: 50%;
  --fy: 50%;
  background: linear-gradient(90deg, rgba(0, 170, 255, 0.03), rgba(0, 8, 25, 0.35));
}

.fecha-item::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--fx) var(--fy), rgba(255, 255, 255, 0.18), transparent 42%);
  opacity: 0;
  transition: opacity .25s;
}

.fecha-item:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 26px rgba(0, 170, 255, 0.13);
  border-color: rgba(0, 170, 255, 0.32);
}

.fecha-item:hover::after {
  opacity: 1;
}

.fecha-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex: 1;
  background: rgba(0, 5, 20, 0.6);
  padding: 16px 24px;
}

.fecha-track {
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-transform: none;
  padding-right: 24px;
}

.fecha-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 20px;
  background: rgba(0, 170, 255, 0.12);
  color: var(--blue);
  min-width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid rgba(0, 170, 255, 0.2);
}

.fecha-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 24px;
  margin: 0;
  flex: 1;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fecha-item.past .fecha-date {
  opacity: .4;
}

/* Próxima fecha: resaltada con fondo más brillante */
.fecha-item.next .fecha-num {
  background: rgba(0, 170, 255, 0.3);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(0, 170, 255, 0.4);
}

.fecha-item.next .fecha-date {
  color: var(--blue);
}

/* Etiqueta "Próxima" que pulsa para llamar la atención */
.next-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 3px 10px;
  margin: 0;
  background: var(--blue);
  color: #000;
  border-radius: 2px;
  text-transform: uppercase;
  animation: pulse 1.5s ease-in-out infinite;
  white-space: nowrap;
}

/* Animación de parpadeo para el badge "Próxima" */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: .6;
  }
}

/* enduro / sx colors */
.schedule-panel.panel-enduro .fecha-num {
  color: #00cc88;
  background: rgba(0, 204, 136, 0.1);
  border-right-color: rgba(0, 204, 136, 0.2);
}

.schedule-panel.panel-enduro .fecha-item {
  border-color: rgba(0, 204, 136, 0.15);
}

.schedule-panel.panel-enduro .fecha-item.next .fecha-num {
  background: rgba(0, 204, 136, 0.3);
}

.schedule-panel.panel-enduro .fecha-item.next .fecha-date {
  color: #00cc88;
}

.schedule-panel.panel-enduro .next-badge {
  background: #00cc88;
}

.schedule-panel.panel-sx .fecha-num {
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.1);
  border-right-color: rgba(255, 170, 0, 0.2);
}

.schedule-panel.panel-sx .fecha-item {
  border-color: rgba(255, 170, 0, 0.15);
}

.schedule-panel.panel-sx .fecha-item.next .fecha-num {
  background: rgba(255, 170, 0, 0.3);
}

.schedule-panel.panel-sx .fecha-item.next .fecha-date {
  color: #ffaa00;
}

.schedule-panel.panel-sx .next-badge {
  background: #ffaa00;
}

/* Arena Series (naranja rojizo) */
.panel-arena .fecha-num {
  border-right-color: rgba(255, 87, 34, 0.2);
}
.panel-arena .fecha-item {
  border-color: rgba(255, 87, 34, 0.15);
}
.panel-arena .fecha-item.next .fecha-num {
  background: rgba(255, 87, 34, 0.3) !important;
  color: #fff !important;
  box-shadow: inset 0 0 20px rgba(255, 87, 34, 0.4);
}
.panel-arena .fecha-item.next .fecha-date {
  color: #ff9800;
}
.panel-arena .next-badge {
  background: #ff9800;
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.5);
  color: #111;
}

.fecha-item.is-entering {
  animation: calIn .52s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes calIn {
  from {
    opacity: 0;
    transform: translateX(-14px) translateY(8px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0);
  }
}

/* ─── BANNER DE POSICIONES (index.html) ─── */
.posiciones-banner-section {
  padding: 0;
  background: transparent;
}

.posiciones-banner-wrap {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 80px 40px;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(0, 80, 200, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, #000408 0%, #010a1a 50%, #000408 100%);
}

/* Grid decorativo de fondo */
.pb-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,170,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

/* Destellos laterales */
.pb-glow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.pb-glow-left  { left: -80px;  background: radial-gradient(circle, rgba(0,100,255,0.25), transparent 70%); }
.pb-glow-right { right: -80px; background: radial-gradient(circle, rgba(0,200,255,0.15), transparent 70%); }

/* Contenedor interno centrado */
.pb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
}

/* Ícono trofeo */
.pb-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 170, 255, 0.1);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--blue);
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.2);
  animation: pb-pulse 3s ease-in-out infinite;
}

.pb-icon svg {
  width: 36px;
  height: 36px;
}

@keyframes pb-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(0,170,255,0.2); }
  50%       { box-shadow: 0 0 48px rgba(0,170,255,0.45); }
}

/* Título */
.pb-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 4px 0 18px;
  color: #fff;
}

.pb-title span {
  display: block;
  background: linear-gradient(135deg, var(--blue) 0%, #7de8ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Descripción */
.pb-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(180, 210, 255, 0.6);
  line-height: 1.65;
  margin-bottom: 36px;
}

/* Stats */
.pb-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 44px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(0,170,255,0.15);
  border-radius: 8px;
  overflow: hidden;
}

.pb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 36px;
  gap: 4px;
}

.pb-stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(0,170,255,0.15);
  flex-shrink: 0;
}

.pb-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--blue) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pb-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(150, 190, 255, 0.55);
}

/* Botón CTA */
.pb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #0055cc, var(--blue));
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 30px rgba(0, 130, 255, 0.45);
}

.pb-btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12) 100%);
  pointer-events: none;
}

.pb-btn-text { position: relative; z-index: 1; }
.pb-btn svg  { position: relative; z-index: 1; transition: transform 0.3s; }

.pb-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 50px rgba(0, 170, 255, 0.65);
}

.pb-btn:hover svg { transform: translateX(5px); }

@media (max-width: 768px) {
  .posiciones-banner-wrap { min-height: 380px; padding: 60px 24px; }
  .pb-stat { padding: 14px 20px; }
  .pb-stats { gap: 0; }
}




.standings-panel {
  display: none;
  position: relative;
}

.standings-panel.active {
  display: block;
}

.standings-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid rgba(0, 170, 255, 0.15);
  border-radius: 4px;
  background: var(--card-bg);
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}

.standings-table th, 
.standings-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.standings-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0, 170, 255, 0.08);
  border-bottom: 1px solid rgba(0, 170, 255, 0.2);
}

.standings-table tbody tr:hover {
  background: rgba(0, 170, 255, 0.04);
}

.standings-table td.pos {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  width: 60px;
  color: var(--white);
}

/* Destacar top 3 */
.standings-table tr:nth-child(1) td.pos { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); } /* Oro */
.standings-table tr:nth-child(2) td.pos { color: #c0c0c0; text-shadow: 0 0 10px rgba(192, 192, 192, 0.3); } /* Plata */
.standings-table tr:nth-child(3) td.pos { color: #cd7f32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.3); } /* Bronce */

.standings-table td.pts {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--blue);
  text-align: right;
  width: 80px;
}

.standings-table td.pilot {
  font-weight: 600;
}

.standings-table td.team {
  font-size: 14px;
  color: var(--gray);
  padding: 10px 18px;
}

/* Links de Equipos interactivos en la tabla */
.standings-team-link {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--gray);
  font-weight: 600;
  transition: color 0.25s, transform 0.25s;
  padding: 4px 8px;
  margin-left: -8px;
  border-radius: 6px;
}

.standings-team-link:hover {
  transform: translateX(4px);
}

.standings-team-link span {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  transition: border-color 0.25s;
}

.standings-team-link:hover span {
  border-bottom-color: currentColor;
}

.standings-team-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 12px;
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  mix-blend-mode: screen;
  transition: filter 0.25s, transform 0.25s;
}

.standings-team-particular {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

/* Hover effects scoped by discipline */
#standings-mx .standings-team-link:hover {
  color: var(--white);
}
#standings-mx .standings-team-link img {
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.2);
}
#standings-mx .standings-team-link:hover img {
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(0, 170, 255, 0.65);
  filter: brightness(1.2) drop-shadow(0 0 4px var(--blue));
  transform: scale(1.1);
}

#standings-enduro .standings-team-link:hover {
  color: var(--white);
}
#standings-enduro .standings-team-link img {
  box-shadow: 0 0 8px rgba(0, 204, 136, 0.2);
}
#standings-enduro .standings-team-link:hover img {
  border-color: #00cc88;
  box-shadow: 0 0 12px rgba(0, 204, 136, 0.65);
  filter: brightness(1.2) drop-shadow(0 0 4px #00cc88);
  transform: scale(1.1);
}

#standings-sx .standings-team-link:hover {
  color: var(--white);
}
#standings-sx .standings-team-link img {
  box-shadow: 0 0 8px rgba(255, 170, 0, 0.2);
}
#standings-sx .standings-team-link:hover img {
  border-color: #ffaa00;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.65);
  filter: brightness(1.2) drop-shadow(0 0 4px #ffaa00);
  transform: scale(1.1);
}

.standings-table td.bike {
  font-weight: 500;
  font-size: 14px;
  color: rgba(200, 220, 255, 0.7);
}

/* Disciplinas específicas de Posiciones */
.standings-panel.panel-enduro th {
  color: #00cc88;
  background: rgba(0, 204, 136, 0.08);
  border-bottom-color: rgba(0, 204, 136, 0.2);
}
.standings-panel.panel-enduro td.pts {
  color: #00cc88;
}
.standings-panel.panel-enduro .standings-table-wrap {
  border-color: rgba(0, 204, 136, 0.15);
}
.standings-panel.panel-enduro tbody tr:hover {
  background: rgba(0, 204, 136, 0.04);
}

.standings-panel.panel-sx th {
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.08);
  border-bottom-color: rgba(255, 170, 0, 0.2);
}
.standings-panel.panel-sx td.pts {
  color: #ffaa00;
}
.standings-panel.panel-sx .standings-table-wrap {
  border-color: rgba(255, 170, 0, 0.15);
}
.standings-panel.panel-sx tbody tr:hover {
  background: rgba(255, 170, 0, 0.04);
}

.standings-category-group {
  margin-bottom: 12px;
}

/* ─── ACORDEÓN ─── */
.standings-accordion {
  border: 1px solid rgba(0,170,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.standings-accordion:hover,
.standings-accordion.acc-open {
  border-color: rgba(0,170,255,0.28);
}

/* Header */
.standings-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.35);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  color: inherit;
  font: inherit;
}
.standings-acc-header:hover {
  background: rgba(0,170,255,0.06);
}
.acc-open .standings-acc-header {
  background: rgba(0,170,255,0.05);
  border-bottom: 1px solid rgba(0,170,255,0.1);
}

/* Dentro del header: título a la izquierda, meta a la derecha */
.standings-acc-header .standings-category-title {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 18px;
}

.acc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.acc-count {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(150,190,255,0.5);
  white-space: nowrap;
}
.acc-open .acc-count {
  color: rgba(150,190,255,0.75);
}

.acc-chevron {
  color: rgba(150,190,255,0.45);
  transition: transform 0.3s, color 0.2s;
}
.standings-acc-header:hover .acc-chevron,
.acc-open .acc-chevron {
  color: rgba(150,190,255,0.9);
}

/* Body colapsable */
.standings-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.standings-acc-body .standings-table-wrap {
  border: none;
  border-radius: 0;
  margin-top: 0;
}

/* Colores de acordeón por disciplina */
.standings-panel.panel-enduro .standings-accordion:hover,
.standings-panel.panel-enduro .standings-accordion.acc-open {
  border-color: rgba(0,204,136,0.28);
}
.standings-panel.panel-enduro .standings-acc-header:hover {
  background: rgba(0,204,136,0.05);
}
.standings-panel.panel-enduro .acc-open .standings-acc-header {
  background: rgba(0,204,136,0.04);
  border-bottom-color: rgba(0,204,136,0.12);
}

.standings-panel.panel-sx .standings-accordion:hover,
.standings-panel.panel-sx .standings-accordion.acc-open {
  border-color: rgba(255,170,0,0.28);
}
.standings-panel.panel-sx .standings-acc-header:hover {
  background: rgba(255,170,0,0.05);
}
.standings-panel.panel-sx .acc-open .standings-acc-header {
  background: rgba(255,170,0,0.04);
  border-bottom-color: rgba(255,170,0,0.12);
}

/* Mobile */
@media (max-width: 640px) {
  .standings-acc-header { padding: 14px 14px; }
  .acc-count { display: none; }
}


.standings-category-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--white);
  border-left: 3px solid currentColor;
  padding-left: 10px;
}
#standings-mx .standings-category-title { color: var(--blue); }
#standings-enduro .standings-category-title { color: #00cc88; }
#standings-sx .standings-category-title { color: #ffaa00; }

/* ─── COMMUNITY ─── */
#comunidad {
  background: var(--deep);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 3px;
  text-decoration: none;
  color: var(--white);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all .25s;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 170, 255, 0.4);
  background: rgba(0, 20, 50, 0.9);
}

.social-icon {
  font-size: 30px;
  line-height: 1;
}

.social-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-handle {
  font-size: 13px;
  color: var(--gray);
  margin-top: 2px;
}

/* ─── CONTACT ─── */
#contacto {
  background: #000408;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
}

.contact-info h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact-info p {
  color: rgba(200, 220, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-detail .di {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: rgba(0, 170, 255, 0.1);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail .dt {
  font-weight: 600;
  font-size: 15px;
}

.contact-detail .dt span {
  display: block;
  font-size: 12px;
  color: var(--gray);
  font-weight: 400;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  margin-top: 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #00cc88, #00aa77);
  color: #fff;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}

.contact-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 204, 136, 0.2);
  opacity: .95;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.whatsapp-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wa-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 3px;
  background: rgba(37, 211, 102, 0.06);
  border: 1px solid rgba(37, 211, 102, 0.2);
  text-decoration: none;
  color: var(--white);
  transition: all .25s;
}

.wa-card:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.5);
  transform: translateX(4px);
}

.wa-icon {
  font-size: 26px;
  margin-top: 2px;
}

.wa-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wa-desc {
  font-size: 13px;
  color: var(--gray);
  margin-top: 3px;
  line-height: 1.5;
}

/* ─── SPONSORS ─────────────────────────────────────────────────────
   Sección de sponsors con tarjetas animadas.
   Cada tarjeta muestra el logo del sponsor con un efecto de brillo
   y enlace a su red social.
───────────────────────────────────────────────────────────────────── */
#sponsors {
  background: #000408;
  position: relative;
  overflow: hidden;
}

#sponsors::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0, 170, 255, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(0, 100, 200, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Carrusel sponsors ── */
.sponsors-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 12px;
  padding: 12px 0;
}

/* Fade lateral */
.sponsors-carousel::before,
.sponsors-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.sponsors-carousel::before {
  left: 0;
  background: linear-gradient(to right, #000408, transparent);
}
.sponsors-carousel::after {
  right: 0;
  background: linear-gradient(to left, #000408, transparent);
}

.sponsors-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: sponsorsScroll 24s linear infinite;
}

.sponsors-carousel:hover .sponsors-track {
  animation-play-state: paused;
}

@keyframes sponsorsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Mantener .sponsors-grid como alias por compatibilidad con JS de tilt */
.sponsors-grid { display: contents; }

.sponsor-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 22px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(0,20,40,0.95) 0%, rgba(0,10,25,0.98) 100%);
  border: 1px solid rgba(0, 170, 255, 0.14);
  text-decoration: none;
  color: var(--white);
  transition: all .35s ease;
  overflow: hidden;
  flex-shrink: 0;
  width: 190px;
  --gx: 50%;
  --gy: 50%;
  box-shadow: 0 0 0 0 rgba(0,170,255,0);
}

/* Brillo decorativo superior */
.sponsor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity .35s;
}

.sponsor-card:hover::before {
  opacity: 1;
}

.sponsor-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.22), transparent 40%);
  opacity: 0;
  transition: opacity .25s;
}

.sponsor-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(0, 170, 255, 0.5);
  box-shadow: 0 8px 40px rgba(0, 170, 255, 0.25), 0 0 60px rgba(0, 170, 255, 0.12), inset 0 1px 0 rgba(0,170,255,0.2);
}

.sponsor-card:hover::after {
  opacity: 1;
}

.sponsor-logo {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 170, 255, 0.2));
  transition: filter .35s, transform .35s;
}

.sponsor-card:hover .sponsor-logo {
  filter: drop-shadow(0 0 20px rgba(0, 170, 255, 0.4));
  transform: scale(1.05);
}

.sponsor-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

.sponsor-handle {
  font-size: 13px;
  color: var(--gray);
  margin-top: -10px;
  text-align: center;
}

.sponsor-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  background: rgba(0, 170, 255, 0.08);
  border: 1px solid rgba(0, 170, 255, 0.25);
  color: var(--blue);
  margin-top: -4px;
}

/* ─── RULES ─── */
#reglamento {
  background: var(--deep);
}

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
}

.rules-col h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(200, 220, 255, 0.75);
}

.rule-item .ri {
  font-size: 17px;
  margin-top: 1px;
}

/* ─── FOOTER ─── */
footer {
  background: #000;
  border-top: 1px solid rgba(0, 170, 255, 0.12);
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 36px;
  opacity: .85;
}

.footer-logo span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.5);
}

.footer-copy {
  font-size: 13px;
  color: var(--gray);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav {
    padding: 12px 24px;
  }

  .nav-links {
    right: 14px;
    width: min(320px, 90vw);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
  }

  .nav-links {
    right: 10px;
    width: min(90vw, 320px);
  }

  section {
    padding: 60px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── SCROLL REVEAL ────────────────────────────────────────────────
   Los elementos con .reveal comienzan invisibles y desplazados hacia abajo.
   El IntersectionObserver en JS agrega .visible cuando entran al viewport,
   disparando la transición de aparición con efecto de subida suave.
───────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  /* estado inicial: invisible y bajo */
  filter: blur(8px);
  transition: opacity .65s ease, transform .65s ease, filter .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* estado final: visible */

/* ─── ANTIGRAVITY ─────────────────────────────────────────────────── */
.hero-bg,
.hero-grid {
  inset: -40px;
  /* margen extra para no mostrar bordes al mover con parallax */
  will-change: transform;
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.hero-logo-wrap {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.champ-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.sponsor-card {
  transform-style: preserve-3d;
  will-change: transform;
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-grid,
  .hero-logo-wrap,
  .champ-card,
  .sponsor-card,
  .fecha-item {
    transform: none !important;
    transition: none !important;
  }

  .fecha-item.is-entering {
    animation: none;
  }

  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero-logo,
  .next-badge,
  .nav-logo img {
    animation: none;
  }
}

/* ─── MODAL EQUIPOS ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #060a14;
  border: 1px solid rgba(0, 170, 255, 0.25);
  border-radius: 10px;
  width: min(720px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 170, 255, 0.08);
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.modal-overlay.open .modal {
  transform: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 32px 22px;
  border-bottom: 1px solid rgba(0, 170, 255, 0.12);
  position: sticky;
  top: 0;
  background: #060a14;
  z-index: 1;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-icon { font-size: 36px; line-height: 1; }

.modal-champ-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-champ-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 2px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}

.modal-close:hover {
  background: rgba(255, 60, 60, 0.18);
  border-color: rgba(255, 60, 60, 0.45);
}

.modal-body { padding: 26px 32px 36px; }

.modal-cat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.modal-tab-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  background: rgba(0, 170, 255, 0.06);
  border: 1px solid rgba(0, 170, 255, 0.2);
  color: var(--gray);
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
}

.modal-tab-btn.active,
.modal-tab-btn:hover {
  background: rgba(0, 170, 255, 0.15);
  border-color: var(--blue);
  color: var(--white);
}

.modal-cat-panel { display: none; }
.modal-cat-panel.active { display: block; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 170, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s;
}

.team-card:hover { border-color: rgba(0, 170, 255, 0.35); }

.team-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 18px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}

.team-card-header::after {
  content: '▾';
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 16px;
  color: var(--blue);
  transition: transform .3s;
}

.team-card.open .team-card-header::after {
  transform: rotate(180deg);
}

.team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  text-align: center;
}

/* ── Acordeón detalle ── */
.team-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.team-card.open .team-detail {
  max-height: 800px;
}

.team-detail-inner {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(0, 170, 255, 0.1);
}

.team-section {
  margin-top: 14px;
}

.team-section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue);
  opacity: 0.6;
  margin-bottom: 6px;
}

.pilot-list { display: flex; flex-direction: column; gap: 5px; }

.pilot-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(200, 220, 255, 0.85);
}

.pilot-item::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
}

.no-teams {
  text-align: center;
  color: var(--gray);
  font-size: 15px;
  padding: 40px 0;
}

.champ-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 170, 255, 0.05);
  border-top: 1px solid rgba(0, 170, 255, 0.12);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.card-mx:hover .champ-card-footer {
  background: var(--blue);
  color: #000;
  border-top-color: var(--blue);
}

.card-enduro .champ-card-footer {
  color: #00cc88;
  background: rgba(0, 204, 136, 0.05);
  border-top-color: rgba(0, 204, 136, 0.12);
}

.card-enduro:hover .champ-card-footer {
  background: #00cc88;
  color: #000;
  border-top-color: #00cc88;
}

.card-sx .champ-card-footer {
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.05);
  border-top-color: rgba(255, 170, 0, 0.12);
}

.card-sx:hover .champ-card-footer {
  background: #ffaa00;
  color: #000;
  border-top-color: #ffaa00;
}

.modal-enduro .modal-champ-sub { color: #00cc88; }
.modal-enduro .modal-tab-btn.active,
.modal-enduro .modal-tab-btn:hover {
  background: rgba(0, 204, 136, 0.15);
  border-color: #00cc88;
}
.modal-enduro .team-name { color: #00cc88; border-bottom-color: rgba(0, 204, 136, 0.15); }
.modal-enduro .team-card { border-color: rgba(0, 204, 136, 0.14); }
.modal-enduro .team-card:hover { border-color: rgba(0, 204, 136, 0.35); }
.modal-enduro .pilot-item::before { background: #00cc88; }

.modal-sx .modal-champ-sub { color: #ffaa00; }
.modal-sx .modal-tab-btn.active,
.modal-sx .modal-tab-btn:hover {
  background: rgba(255, 170, 0, 0.15);
  border-color: #ffaa00;
}
.modal-sx .team-name { color: #ffaa00; border-bottom-color: rgba(255, 170, 0, 0.15); }
.modal-sx .team-card { border-color: rgba(255, 170, 0, 0.14); }
.modal-sx .team-card:hover { border-color: rgba(255, 170, 0, 0.35); }
.modal-sx .pilot-item::before { background: #ffaa00; }

/* ─── VILLA LA ANGOSTURA SPOTLIGHT ─── */
.arg-spotlight {
  position: relative;
  background: linear-gradient(135deg, #0f0002 0%, #1a0005 60%, #0d0010 100%);
  border-top: 2px solid #e8002d;
  border-bottom: 2px solid rgba(232,0,45,0.25);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.arg-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 30% 50%, rgba(232,0,45,0.08), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.arg-spotlight-video-wrap {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.arg-spotlight-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
}

.arg-spotlight-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, #000a00 100%);
  pointer-events: none;
}

.arg-spotlight-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px 48px 36px;
  gap: 20px;
}

.arg-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #e8002d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.arg-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: #e8002d;
  flex-shrink: 0;
}

.arg-flag {
  font-size: 22px;
  line-height: 1;
}

.arg-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--white);
}

.arg-title span {
  color: #e8002d;
  display: block;
}

.arg-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: -8px;
}

.arg-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,0,45,0.1);
  border: 1px solid rgba(232,0,45,0.35);
  border-radius: 4px;
  padding: 8px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e8002d;
  width: fit-content;
}

.arg-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.arg-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 66px;
  padding: 14px 10px;
  background: rgba(232,0,45,0.06);
  border: 1px solid rgba(232,0,45,0.22);
  border-radius: 4px;
}

.arg-countdown-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: 2px;
}

.arg-countdown-lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e8002d;
}

.arg-countdown-sep {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: rgba(232,0,45,0.3);
  margin-bottom: 16px;
  user-select: none;
}

.arg-home-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(232,0,45,0.18), rgba(232,0,45,0.04));
  border-left: 3px solid #e8002d;
  border-radius: 0 4px 4px 0;
  padding: 10px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  width: fit-content;
}

.arg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.arg-btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8002d;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.arg-btn-register:hover {
  background: #c20026;
  transform: translateY(-2px);
}

.arg-volume-ctrl {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 6px 8px;
  backdrop-filter: blur(4px);
  overflow: hidden;
  width: 32px;
  transition: width 0.3s ease;
}

.arg-volume-ctrl:hover {
  width: 148px;
  gap: 8px;
}

.arg-vol-icon {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.arg-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  outline: none;
  cursor: pointer;
}

.arg-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.arg-vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
}

.arg-more-info {
  margin-top: 4px;
}

.arg-more-info-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}

.arg-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arg-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 9px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.arg-social-link:hover {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
  .arg-spotlight { grid-template-columns: 1fr; }
  .arg-spotlight-video-wrap { min-height: 220px; max-height: 280px; }
  .arg-spotlight-video-wrap::after { background: linear-gradient(0deg, #000a00 0%, transparent 60%); }
  .arg-spotlight-info { padding: 32px 20px; }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .arg-countdown-num { font-size: 28px; }
  .arg-countdown-unit { min-width: 52px; padding: 10px 8px; }
}

/* ─── PRÓXIMA CARRERA / COUNTDOWN ─── */
.next-race-strip {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(0, 4, 16, 0.98), rgba(0, 15, 40, 0.98));
  border-top: 1px solid rgba(0, 170, 255, 0.1);
  border-bottom: 1px solid rgba(0, 170, 255, 0.1);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.next-race-strip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
}

.next-race-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0, 170, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.next-race-info { padding-left: 12px; }

.next-race-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.next-race-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.next-race-date-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gray);
  margin-top: 6px;
  text-transform: uppercase;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 72px;
  padding: 16px 12px;
  background: rgba(0, 170, 255, 0.06);
  border: 1px solid rgba(0, 170, 255, 0.18);
  border-radius: 4px;
}

.countdown-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: 2px;
}

.countdown-lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
}

.countdown-sep {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: rgba(0, 170, 255, 0.35);
  margin-bottom: 18px;
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 768px) {
  .next-race-strip { padding: 28px 20px 28px 24px; flex-direction: column; align-items: flex-start; }
  .countdown { gap: 6px; }
  .countdown-unit { min-width: 60px; padding: 12px 8px; }
  .countdown-num { font-size: 32px; }
  #back-to-top { bottom: 20px; right: 20px; }
}

/* ─── EQUIPOS & PILOTOS ─── */
#equipos { background: var(--deep); }

.equipo-panel { display: none; }
.equipo-panel.active { display: block; }

.team-logo {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 0 10px rgba(0, 170, 255, 0.2));
}

.pilot-tbd {
  opacity: 0.45;
  font-style: italic;
}

.team-ig-section { margin-top: 14px; }

.team-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #e1306c;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity .2s;
}

.team-ig-link:hover { opacity: 1; }

.team-ig-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

#equipo-enduro .team-name { color: #00cc88; }
#equipo-enduro .team-card { border-color: rgba(0, 204, 136, 0.14); }
#equipo-enduro .team-card:hover { border-color: rgba(0, 204, 136, 0.35); }
#equipo-enduro .team-card.open { border-color: rgba(0, 204, 136, 0.5); }
#equipo-enduro .team-section-label { color: #00cc88; }
#equipo-enduro .pilot-item::before { background: #00cc88; }
#equipo-enduro .team-card-header::after { color: #00cc88; }
#equipo-enduro .team-detail-inner { border-top-color: rgba(0, 204, 136, 0.15); }

#equipo-sx .team-name { color: #ffaa00; }
#equipo-sx .team-card { border-color: rgba(255, 170, 0, 0.14); }
#equipo-sx .team-card:hover { border-color: rgba(255, 170, 0, 0.35); }
#equipo-sx .team-card.open { border-color: rgba(255, 170, 0, 0.5); }
#equipo-sx .team-section-label { color: #ffaa00; }
#equipo-sx .pilot-item::before { background: #ffaa00; }
#equipo-sx .team-card-header::after { color: #ffaa00; }
#equipo-sx .team-detail-inner { border-top-color: rgba(255, 170, 0, 0.15); }

/* --- Animación de Destello y Enfoque de Equipo --- */
@keyframes team-card-highlight {
  0% {
    box-shadow: 0 0 0 rgba(0, 170, 255, 0);
    transform: scale(1);
  }
  30% {
    box-shadow: 0 0 35px var(--glow-color, rgba(0, 170, 255, 0.75));
    border-color: var(--border-color, rgba(0, 170, 255, 0.95));
    transform: scale(1.04);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 170, 255, 0);
    transform: scale(1);
  }
}

.team-card.highlight-flash {
  animation: team-card-highlight 1.5s ease-out;
  z-index: 10;
}

#equipo-mx .team-card.highlight-flash {
  --glow-color: rgba(0, 170, 255, 0.75);
  --border-color: rgba(0, 170, 255, 0.95);
}

#equipo-enduro .team-card.highlight-flash {
  --glow-color: rgba(0, 204, 136, 0.75);
  --border-color: rgba(0, 204, 136, 0.95);
}

#equipo-sx .team-card.highlight-flash {
  --glow-color: rgba(255, 170, 0, 0.75);
  --border-color: rgba(255, 170, 0, 0.95);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — TABLA DE POSICIONES
   ≤ 640px: tabla → cards apiladas (pos | piloto + equipo | puntos)
   641–900px: tabla compacta, texto más pequeño
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  /* Sección: menos padding */
  #posiciones, .camp-standings-section { padding: 40px 12px; }

  /* Tabs: scroll horizontal sin saltos */
  .schedule-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .schedule-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { flex-shrink: 0; font-size: 13px; padding: 9px 14px; }

  /* Wrapper sin bordes laterales */
  .standings-table-wrap {
    overflow-x: visible;
    border-radius: 0;
    border-left: none;
    border-right: none;
    background: transparent;
  }

  /* Ocultar thead */
  .standings-table thead { display: none; }

  /* Tabla en bloque */
  .standings-table,
  .standings-table tbody { display: block; width: 100%; }

  /* Cada fila = card */
  .standings-table tbody tr {
    position: relative;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(0,170,255,0.12);
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 14px 14px 14px 68px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas: "pilot pts" "team pts";
    column-gap: 10px;
    row-gap: 2px;
    transition: border-color 0.25s, background 0.25s;
  }
  .standings-table tbody tr:hover {
    background: rgba(0,170,255,0.06);
    border-color: rgba(0,170,255,0.28);
  }

  /* Número de posición a la izquierda */
  .standings-table td.pos {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    background: rgba(0,0,0,0.25);
    border-right: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px 0 0 10px;
    padding: 0;
  }
  .standings-table tr:nth-child(1) td.pos { background: rgba(255,215,0,0.08); color: #ffd700; }
  .standings-table tr:nth-child(2) td.pos { background: rgba(192,192,192,0.08); color: #c0c0c0; }
  .standings-table tr:nth-child(3) td.pos { background: rgba(205,127,50,0.08); color: #cd7f32; }

  /* Piloto */
  .standings-table td.pilot,
  .standings-table td.col-pilot {
    grid-area: pilot;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    padding: 0;
    border-bottom: none;
    align-self: end;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Equipo */
  .standings-table td.team,
  .standings-table td.col-team {
    grid-area: team;
    font-size: 12px;
    color: rgba(150,190,255,0.6);
    padding: 0;
    border-bottom: none;
    align-self: start;
  }
  .standings-team-logo { width: 18px; height: 18px; margin-right: 4px; }
  .standings-team-link { margin-left: 0; padding: 0; font-size: 12px; }
  .standings-table td.col-team .team-logo-wrap { display: none; }

  /* Moto: oculta en mobile */
  .standings-table td.bike,
  .standings-table td.col-bike { display: none; }

  /* Puntos */
  .standings-table td.pts,
  .standings-table td.col-pts {
    grid-area: pts;
    align-self: center;
    text-align: right;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 900;
    padding: 0;
    border-bottom: none;
    white-space: nowrap;
  }
  .pts-label { font-size: 11px; font-weight: 500; opacity: 0.5; display: block; line-height: 1; }

  /* Colores de pts por disciplina */
  .standings-panel.panel-enduro .standings-table td.pts { color: #00cc88; }
  .standings-panel.panel-sx     .standings-table td.pts { color: #ffaa00; }

  /* Quitar borde en celdas (el tr ya tiene border) */
  .standings-table td { border-bottom: none; }

  /* Título de categoría */
  .standings-category-group { margin-bottom: 18px; }
  .standings-category-title { font-size: 15px; margin-bottom: 8px; padding-left: 10px; }

  /* pos-badge para páginas de campeonato */
  .standings-table td.col-pos {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    border-right: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px 0 0 10px;
    padding: 0;
  }
  .pos-badge { font-size: 20px; }
}

/* Tablet intermedia: tabla compacta */
@media (min-width: 641px) and (max-width: 900px) {
  .standings-table th,
  .standings-table td { padding: 10px 10px; font-size: 13px; }
  .standings-table td.pos  { font-size: 16px; width: 44px; }
  .standings-table td.pts,
  .standings-table td.col-pts { font-size: 16px; width: 64px; }
  .standings-team-logo { width: 28px; height: 28px; margin-right: 6px; }
  .standings-table td.bike,
  .standings-table td.col-bike {
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }
}

/* --- NEW STANDINGS DARK UI --- */
.cat-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.cat-pill-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cat-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.cat-pill-btn.active {
  background: #00cc88;
  border-color: #00cc88;
  color: #000;
}
.cat-list-panel {
  display: none;
}
.cat-list-panel.active {
  display: block;
}
.standings-new-card {
  display: flex;
  align-items: center;
  background: rgba(20, 20, 22, 0.8);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.standings-new-card:first-child {
  background: linear-gradient(90deg, rgba(30, 26, 15, 0.9) 0%, rgba(20, 20, 22, 0.8) 100%);
  border-left: 3px solid #ffd700;
}
.pos-medal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: #000;
  background: #ccc;
  margin-right: 16px;
  flex-shrink: 0;
}
.pos-medal.pos-1 { background: #ffd700; }
.pos-medal.pos-2 { background: #e0e0e0; }
.pos-medal.pos-3 { background: #cd7f32; }
.pos-medal:not(.pos-1):not(.pos-2):not(.pos-3) {
  background: transparent;
  color: #fff;
}
.pilot-shield {
  width: 40px;
  height: 40px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M12 2L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-3z"/></svg>') no-repeat center center;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
}
/* Red shield for 1st place */
.standings-new-card:first-child .pilot-shield {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d32f2f"><path d="M12 2L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-3z"/></svg>') no-repeat center center;
}
.shield-text {
  color: #000;
  font-weight: 800;
  font-size: 14px;
  margin-top: -2px; /* Visual centering inside shield */
}
.standings-new-card:first-child .shield-text {
  color: #fff;
}
.pilot-name {
  flex-grow: 1;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.pts-value {
  color: #00cc88;
  font-weight: 700;
  font-size: 18px;
}
.pts-label {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .standings-new-card { padding: 10px 12px; }
  .pos-medal { width: 28px; height: 28px; font-size: 12px; margin-right: 10px; }
  .pilot-shield { width: 32px; height: 32px; margin-right: 10px; }
  .pilot-name { font-size: 14px; }
  .pts-value { font-size: 16px; }
}

/* --- ARENA SERIES TRACK CARDS --- */
.track-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.track-card {
  position: relative;
  background: #1a1a1c;
  border-radius: 12px;
  overflow: hidden;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.track-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 87, 34, 0.15);
  border-color: rgba(255, 87, 34, 0.4);
}

.track-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.track-card:hover .track-card-bg {
  opacity: 0.8;
  transform: scale(1.05);
}

/* Background Gradients to simulate track environments */
.track-bg-1 {
  background: linear-gradient(135deg, #2c2518 0%, #1a1511 100%);
}
.track-bg-2 {
  background: linear-gradient(135deg, #332115 0%, #16120e 100%);
}
.track-bg-3 {
  background: linear-gradient(135deg, #382c16 0%, #12100a 100%);
}

.track-card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.track-badge {
  align-self: flex-start;
  background: #ff5722;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.3);
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.track-name {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.track-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 0;
  font-weight: 500;
}

.track-date {
  color: #ff9800;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.t-icon {
  font-size: 14px;
}

.track-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 16px;
  background: rgba(255, 87, 34, 0.15);
  color: #ff5722;
  border: 1px solid rgba(255, 87, 34, 0.4);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  width: fit-content;
}

.track-link-btn:hover {
  background: #ff5722;
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}
