/* ============================================================
   LNS · Liga Nacional de Skatecross — estilos de marca
   Paleta extraída de assets/imgs (verde #15794A, rojo #C8202C,
   crema #EDE7D9, tinta #141210).
   Tailwind (Play CDN) aporta utilidades; aquí van componentes,
   texturas grunge y overrides.
   ============================================================ */

:root {
  --lns-green: #15794A;
  --lns-red: #C8202C;
  --lns-cream: #EDE7D9;
  --lns-ink: #141210;
}

html { -webkit-tap-highlight-color: transparent; }
body { text-rendering: optimizeLegibility; }

/* Anton ya viene en mayúsculas; asegurar tracking parejo */
.font-display { letter-spacing: 0.01em; }

/* --------- Navbar links --------- */
.nav-link {
  position: relative;
  color: rgba(237, 231, 217, 0.75);
  transition: color 0.2s ease;
  cursor: pointer;
}
.nav-link:hover { color: var(--lns-cream); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 0;
  background: var(--lns-red);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  color: rgba(237, 231, 217, 0.8);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.mobile-link:hover { background: rgba(255,255,255,0.05); color: var(--lns-cream); }

/* Navbar al hacer scroll (clase añadida por JS) */
#nav-shell.scrolled {
  background: rgba(20, 18, 16, 0.92);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
}

/* --------- Botones --------- */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.25rem;
  border-radius: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--lns-red), var(--lns-red-dark, #8E1A22));
  box-shadow: 0 8px 24px -8px rgba(200, 32, 44, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(200, 32, 44, 0.75);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--lns-cream);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(237, 231, 217, 0.25);
}
.btn-ghost:hover {
  background: rgba(21, 121, 74, 0.18);
  border-color: var(--lns-green);
  transform: translateY(-2px);
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: 3px solid var(--lns-cream);
  outline-offset: 2px;
}

/* --------- Encabezados de sección --------- */
.section-eyebrow {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--lns-red);
}
.section-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--lns-cream);
}

/* --------- Feature cards --------- */
.feature-card {
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20, 18, 16, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 121, 74, 0.6);
  background: rgba(21, 121, 74, 0.08);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem; width: 3rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(200,32,44,0.2), rgba(21,121,74,0.2));
  color: var(--lns-cream);
  border: 1px solid rgba(255,255,255,0.1);
}
.feature-title {
  margin-top: 1.1rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.feature-text {
  margin-top: 0.5rem;
  color: rgba(237, 231, 217, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------- Event cards --------- */
.event-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(20, 18, 16, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 32, 44, 0.6);
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 4.5rem; width: 4.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--lns-green), var(--lns-green-deep, #0C3B2C));
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
}

/* --------- Footer / social --------- */
.footer-link {
  color: rgba(237, 231, 217, 0.7);
  transition: color 0.2s ease;
  cursor: pointer;
}
.footer-link:hover { color: var(--lns-red); }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem; width: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--lns-cream);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.social-btn:hover {
  background: var(--lns-red);
  color: #fff;
  transform: translateY(-2px);
}

/* --------- Fondo grunge en CSS (reemplaza fondo.png ~2.5MB) --------- */
.grunge-bg {
  background-color: var(--lns-ink);
  background-image:
    radial-gradient(120% 80% at 8% 0%, rgba(21, 121, 74, 0.55), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(142, 26, 34, 0.55), transparent 55%),
    radial-gradient(60% 60% at 50% 40%, rgba(0, 0, 0, 0.5), transparent 70%);
}

/* Rinde solo lo visible: baja el costo de pintado en scroll */
.cv-auto {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* --------- Glows decorativos (radial-gradient, sin filter: blur)
   filter: blur() con radios grandes provoca recuadros negros en
   GPUs móviles; el gradiente radial da el mismo efecto sin costo. */
.glow-green {
  background: radial-gradient(circle at 50% 50%, rgba(21, 121, 74, 0.4), transparent 65%);
}
.glow-red {
  background: radial-gradient(circle at 50% 55%, rgba(200, 32, 44, 0.22), transparent 60%);
}
.glow-map {
  background: radial-gradient(circle at 50% 50%, rgba(21, 121, 74, 0.2), transparent 65%);
}

/* --------- Video hero (chroma key en canvas) --------- */
#hero-video canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* --------- Reveal (animación de entrada por JS/Motion) --------- */
[data-reveal] { opacity: 0; }

/* --------- Mapa 2D de México (SVG) --------- */
/* Sin filter: drop-shadow — en GPUs móviles rasteriza el SVG completo
   y lo pinta como un rectángulo negro. La sombra va en el contenedor. */
.mx-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.mx-state {
  fill: rgba(21, 121, 74, 0.28);
  stroke: rgba(21, 121, 74, 0.95);
  stroke-width: 1;
  stroke-linejoin: round;
  transition: fill 0.2s ease;
}
.mx-state:hover { fill: rgba(21, 121, 74, 0.4); }
.mx-state.active {
  fill: rgba(200, 32, 44, 0.35);
  stroke: var(--lns-red);
  stroke-width: 1.6;
}
.mx-pin { cursor: pointer; outline: none; }
.mx-pin-dot {
  fill: var(--lns-red);
  stroke: #fff;
  stroke-width: 1.5;
  transition: fill 0.2s ease;
}
.mx-pin-pulse { fill: var(--lns-red); }
.mx-pin:hover .mx-pin-dot,
.mx-pin:focus-visible .mx-pin-dot { fill: #e8352f; }
.mx-pin:focus-visible .mx-pin-hit {
  stroke: var(--lns-cream);
  stroke-width: 2;
}
.mx-pin.selected .mx-pin-dot {
  fill: #fff;
  stroke: var(--lns-red);
  stroke-width: 3;
}

/* --------- Accesibilidad: reduce motion --------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .animate-bounce, .animate-pulse { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
