/* ═══════════════════════════════════════════════════════════
   MCM 2026 — Premium Design System
   Mobile-first. Written for production.
   ══════════════════════════════════════════════════════════ */

/* ── FONTS: REDOB (custom typeface) ────────────────────────
   Regular (sharp) cut, used for display and body alike. */
@font-face {
  font-family: 'REDOB';
  src: url('fonts/REDOB-REDOBRegular.otf') format('opentype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  /* Color */
  --c-bg:         #050505;
  --c-bg-2:       #0F0F0F;
  --c-bg-3:       #171717;
  --c-surface:    #1C1C1C;
  --c-border:     rgba(255 255 255 / 0.07);
  --c-border-hi:  rgba(255 255 255 / 0.14);
  --c-muted:      #6B6B6B;
  --c-sub:        rgba(255 255 255 / 0.55);
  --c-white:      #FFFFFF;
  --c-off:        #F0F0F0;
  --c-orange:     #E5000A;
  --c-orange-lt:  #FF2222;
  --c-orange-dk:  #B30000;
  --c-orange-dim: rgba(229 0 10 / 0.10);
  --c-green:      #22C55E;
  --c-green-dim:  rgba(34 197 94 / 0.12);

  /* Light section overrides (applied via .light class) */
  --c-lt-bg:      #FFFFFF;
  --c-lt-text:    #0A0A0A;
  --c-lt-sub:     #5A5A5A;
  --c-lt-border:  rgba(0 0 0 / 0.08);
  --c-lt-surface: #F5F5F5;

  /* Typography */
  --f-display: 'REDOB', system-ui, sans-serif;
  --f-body:    'REDOB', system-ui, sans-serif;

  /* Spacing (8pt grid) */
  --sp-1:  4px;  --sp-2:  8px;  --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-7: 28px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radius */
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 9999px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --dur-fast:  180ms;
  --dur-mid:   320ms;
  --dur-slow:  600ms;

  /* Layout */
  --nav-h:        60px;    /* mobile top bar */
  --bottom-nav-h: 72px;   /* mobile bottom nav */
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --safe-top:     env(safe-area-inset-top, 0px);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Smooth scroll respects reduced-motion via JS */
}
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
  /* Bottom padding for mobile nav */
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
/* Hide JS-only elements before JS loads */
.js-only { display: none; }

/* ── FOCUS STYLES (accessibility) ───────────────────────── */
:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--c-orange);
  color: var(--c-white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.br-md { display: none; }

/* ── EYEBROW ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255 255 255 / 0.60);
  margin-bottom: var(--sp-4);
}
.eyebrow--dark { color: rgba(0 0 0 / 0.45); }

/* ── SECTION TITLE ───────────────────────────────────────── */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.section-title--dark { color: var(--c-lt-text); }
.section-title--em {
  font-style: italic;
  color: var(--c-white);
}
.section-sub {
  font-size: 15px;
  color: var(--c-sub);
  max-width: 520px;
  margin-bottom: var(--sp-10);
  line-height: 1.65;
}
.section-sub--dark { color: var(--c-lt-sub); }
.section { padding-block: var(--sp-16); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 15px 28px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    transform  var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    color      var(--dur-fast);
  /* Minimum touch target */
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary {
  background: var(--c-orange);
  color: var(--c-white);
  box-shadow: 0 4px 24px rgba(229 0 10 / 0.35);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--c-orange-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(229 0 10 / 0.5);
}
.btn--ghost {
  background: rgba(255 255 255 / 0.06);
  color: var(--c-white);
  border: 1.5px solid rgba(255 255 255 / 0.18);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: rgba(255 255 255 / 0.12);
  border-color: rgba(255 255 255 / 0.35);
}
.btn--white {
  background: var(--c-white);
  color: var(--c-orange-dk);
  box-shadow: 0 4px 24px rgba(0 0 0 / 0.25);
}
.btn--white:hover, .btn--white:focus-visible {
  background: var(--c-off);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0 0 0 / 0.35);
}
.btn--outline-dark {
  background: transparent;
  color: var(--c-lt-text);
  border: 1.5px solid rgba(0 0 0 / 0.2);
}
.btn--outline-dark:hover, .btn--outline-dark:focus-visible {
  background: var(--c-lt-text);
  color: var(--c-white);
  border-color: var(--c-lt-text);
}
.btn--hero { padding: 17px 32px; font-size: 15px; min-height: 54px; }

/* ── HERO ANIMATIONS (CSS pura, sin JS) ─────────────────── */
/* El hero es visible al cargar — no espera IntersectionObserver */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim {
  animation: heroIn 0.75s var(--ease-out) both;
}
.hero-anim--d1 { animation-delay: 0.10s; }
.hero-anim--d2 { animation-delay: 0.22s; }
.hero-anim--d3 { animation-delay: 0.36s; }
.hero-anim--d4 { animation-delay: 0.52s; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim { animation: none; opacity: 1; transform: none; }
}

/* ── REVEAL ANIMATIONS (secciones bajo el fold, requiere JS) */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity  var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.reveal-up.in { opacity: 1; transform: translateY(0); }

.reveal-clip {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition:
    opacity    var(--dur-slow) var(--ease-out),
    clip-path  var(--dur-slow) var(--ease-out);
}
.reveal-clip.in { opacity: 1; clip-path: inset(0 0 0% 0); }

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }
.delay-4 { transition-delay: 400ms; }

/* ═══════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding-top: var(--safe-top);
  background: rgba(5 5 5 / 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background var(--dur-mid) var(--ease-out),
    backdrop-filter var(--dur-mid);
}
.topbar.pinned {
  background: rgba(5 5 5 / 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--c-border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: var(--sp-8);
}
.topbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar__logo-img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.topbar__nav {
  display: none; /* hidden on mobile */
  gap: var(--sp-8);
  margin-inline-start: auto;
}
.topbar__nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-sub);
  transition: color var(--dur-fast);
  padding-block: var(--sp-2);
}
.topbar__nav-link:hover, .topbar__nav-link.active { color: var(--c-white); }
.topbar__cta {
  display: none; /* hidden on mobile */
  margin-inline-start: auto;
  padding: 10px 20px;
  font-size: 13px;
  min-height: 40px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-12);
  overflow: hidden;
}

/* ── Carrusel de fondo ── */
.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transform: scale(1.07);
  transition: opacity 0.9s ease-in-out;
  will-change: opacity, transform;
}
.hero__carousel-slide.active {
  opacity: 1;
  animation: kenBurns 3s var(--ease-out) both;
}
@keyframes kenBurns {
  from { transform: scale(1.07); }
  to   { transform: scale(1.00); }
}

/* Carousel dot navigation */
.hero__carousel-dots {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255 255 255 / 0.4);
  cursor: pointer;
  padding: 0;
  transition: all var(--dur-mid) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.hero-dot.active {
  background: var(--c-white);
  width: 24px;
  border-radius: var(--r-pill);
}
.hero-dot:hover { background: rgba(255 255 255 / 0.7); }

/* ── Overlay: muy sutil, solo para legibilidad del texto inferior ── */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(5 5 5 / 0.15) 0%,
    rgba(5 5 5 / 0.05) 40%,
    rgba(5 5 5 / 0.25) 65%,
    rgba(5 5 5 / 0.78) 100%
  );
}

/* ── MCM grande al centro (como el sitio oficial) ── */
.hero__mcm-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(120px, 24vw, 360px);
  color: rgba(255 255 255 / 0.30);
  letter-spacing: -0.03em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  transform-origin: center center;
}

/* ── Grain de textura premium ── */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.hero__layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding-top: calc(var(--nav-h) + var(--safe-top) + var(--sp-8));
  width: 100%;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255 255 255 / 0.65);
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.hero__dot {
  width: 7px; height: 7px;
  background: rgba(255 255 255 / 0.7);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}
.hero__sep { color: rgba(255 255 255 / 0.25); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255 255 255 / 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(255 255 255 / 0); }
}

/* ── Tagline bar: full-width split right below the hero ── */
.hero-tagline {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.hero-tagline__left {
  flex: 1;
  background: #0d0d0d;
  color: #fff;
  padding: 20px 28px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(13px, 2vw, 20px);
  letter-spacing: 0.03em;
  text-align: center;
}
.hero-tagline__right {
  flex: 1;
  background: #f0f0f0;
  color: #0d0d0d;
  padding: 20px 28px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(13px, 2vw, 20px);
  letter-spacing: 0.03em;
  text-align: center;
}

@media (min-width: 580px) {
  .hero-tagline { flex-direction: row; }
  .hero-tagline__left {
    text-align: right;
    padding: 24px 48px 24px 32px;
  }
  .hero-tagline__right {
    text-align: left;
    padding: 24px 32px 24px 48px;
  }
}

/* ── CTA + Countdown bar below tagline ── */
.hero-action-bar {
  background: var(--c-bg);
  display: flex;
  justify-content: center;
  padding: var(--sp-8) var(--sp-5);
  border-bottom: 1px solid rgba(255 255 255 / 0.07);
}
.hero-action-bar__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}
.hero-action-bar__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}
.hero-action-bar__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-action-bar__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-12);
  }
}

.hero__sub {
  font-size: 15px;
  color: var(--c-sub);
  line-height: 1.65;
  max-width: 400px;
  margin-bottom: var(--sp-8);
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}

/* Countdown */
.countdown {
  display: flex;
  align-items: stretch;
  gap: var(--sp-1);
}
.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255 255 255 / 0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 12px;
  flex: 1;
  min-width: 0;
}
.countdown__num {
  font-family: var(--f-display);
  font-size: clamp(22px, 6vw, 38px);
  font-weight: 900;
  line-height: 1;
  color: var(--c-white);
  font-variant-numeric: tabular-nums;
}
.countdown__lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: var(--sp-1);
}
.countdown__colon {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--c-orange);
  align-self: center;
  padding-bottom: var(--sp-5);
  flex-shrink: 0;
}

/* ── Hero visual (athlete + sponsor) ── */
.hero__visual {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.hero__athlete-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 20px 60px rgba(0 0 0 / 0.55),
    0 0 0 1px rgba(255 255 255 / 0.06);
  transform: rotate(-1.5deg);
  transform-origin: bottom center;
  transition: transform var(--dur-slow) var(--ease-out);
}
.hero__athlete-card:hover { transform: rotate(-0.5deg) scale(1.01); }

.hero__athlete-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero__sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  align-self: center;
  margin-inline: auto;
  background: rgba(255 255 255 / 0.06);
  border: 1px solid rgba(255 255 255 / 0.18);
  border-radius: var(--r-xl);
  padding: 32px 48px;
  margin-top: var(--sp-8);
  width: fit-content;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255 255 255 / 0.06), 0 16px 48px rgba(0 0 0 / 0.4);
}
.hero__sponsor-top {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__sponsor-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255 255 255 / 0.55);
  white-space: nowrap;
}
.hero__sponsor-divider {
  width: 100%;
  height: 1px;
  background: rgba(255 255 255 / 0.15);
}
.hero__garmin-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 20px 52px;
  display: flex;
  align-items: center;
  line-height: 0;
  box-shadow: 0 4px 24px rgba(0 0 0 / 0.3);
}
.hero__garmin-img {
  height: 64px;
  width: auto;
  display: block;
}
.hero__sponsor-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255 255 255 / 0.35);
  white-space: nowrap;
}

/* Hero aside (columna derecha, solo desktop) */
.hero__aside { display: none; }
/* Garmin mobile: visible por defecto; desktop: oculto */
.hero__sponsor--desktop { display: none; }

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  z-index: 3;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--c-orange), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE STRIP
══════════════════════════════════════════════════════════ */
.marquee-strip {
  background: var(--c-orange);
  overflow: hidden;
  padding-block: 13px;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.marquee-content span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
  padding-inline: 20px;
  white-space: nowrap;
}
.marquee-dot {
  font-size: 8px !important;
  padding-inline: 0 !important;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════
   EVENTO
══════════════════════════════════════════════════════════ */
.evento { background: var(--c-bg-2); }
.evento__layout { display: flex; flex-direction: column; gap: var(--sp-10); }
.evento__text {
  font-size: 16px;
  color: var(--c-sub);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
  max-width: 520px;
}
.evento__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.info-tile {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  min-width: 0;             /* permite que la celda shrinkee */
  transition: border-color var(--dur-fast), transform var(--dur-mid) var(--ease-out);
}
.info-tile:hover {
  border-color: rgba(229 0 10 / 0.3);
  transform: translateY(-3px);
}
.info-tile__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-orange-dim);
  color: var(--c-orange);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.info-tile__icon svg { width: 18px; height: 18px; }
.info-tile__text { min-width: 0; }   /* permite que el texto haga wrap */
.info-tile__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.info-tile__value {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════
   SELLOS OFICIALES
══════════════════════════════════════════════════════════ */
.sellos { background: var(--c-bg); }
.sellos__inner { text-align: center; }
.sellos__inner .section-sub { margin-inline: auto; }
.sellos__img-wrap {
  max-width: 1560px;
  margin-inline: auto;
  margin-top: var(--sp-10);
  padding-inline: var(--sp-5);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-6);
}
.sellos__img {
  width: 100%;
  max-width: 720px;
  flex: 1 1 640px;
  border-radius: var(--r-xl);
  box-shadow: 0 8px 40px rgba(0 0 0 / 0.35);
}

/* ═══════════════════════════════════════════════════════════
   FOTOGRAFÍA OFICIAL (dark section)
══════════════════════════════════════════════════════════ */
.fotografia { background: var(--c-bg); }
.fotografia__inner { text-align: center; }
.fotografia__inner .section-sub { margin-inline: auto; }

.fotografia__content {
  margin-top: var(--sp-10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}
.fotografia__logo-wrap {
  flex: 0 1 320px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0 0 0 / 0.35);
}
.fotografia__logo {
  width: 100%;
  display: block;
}

.fotografia__prices {
  flex: 1 1 380px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.price-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  text-align: left;
}
.price-tile--early {
  border-color: rgba(34 197 94 / 0.4);
  background: var(--c-green-dim);
}
.price-tile__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-sub);
}
.price-tile--early .price-tile__badge { color: var(--c-green); }
.price-tile__amount {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--c-white);
  line-height: 1.2;
}
.price-tile__note {
  font-size: 13px;
  color: var(--c-sub);
}

.fotografia__cta { margin-top: var(--sp-8); }

@media (min-width: 768px) {
  .fotografia__content { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   CATEGORÍAS (light section)
══════════════════════════════════════════════════════════ */
.categorias {
  position: relative;
  background: linear-gradient(180deg, #f6f6f6 0%, #fafafa 12%, #ffffff 32%);
  padding-bottom: 0;
}
.categorias::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0 0 0 / 0.07), transparent);
  pointer-events: none;
}
/* ── Category image grid ── */
.cat-img-grid {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 var(--sp-5) var(--sp-10);
}
.cat-img-link {
  display: block;
  flex: 0 0 auto;
  width: clamp(140px, 18vw, 220px);
  transition: transform 0.3s var(--ease-out);
  border-radius: 20px;
  overflow: hidden;
}
.cat-img-link:hover {
  transform: translateY(-8px) scale(1.04);
}
.cat-img-link img {
  width: 100%;
  aspect-ratio: 11 / 20;
  object-fit: cover;
  display: block;
}

@media (max-width: 580px) {
  .cat-img-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--sp-6);
    -webkit-overflow-scrolling: touch;
  }
  .cat-img-link {
    scroll-snap-align: center;
    width: 160px;
    flex-shrink: 0;
  }
}

.cat-scroll-wrap { position: relative; }
.cat-scroll-arrow { display: none; }
@media (max-width: 580px) {
  .cat-scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 42%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: var(--r-pill);
    background: rgba(10 10 10 / 0.65);
    color: #fff;
    pointer-events: none;
    z-index: 2;
    transition: opacity var(--dur-mid) var(--ease-out);
    animation: cat-scroll-arrow-nudge 1.6s ease-in-out infinite;
  }
  .cat-scroll-arrow svg { width: 18px; height: 18px; }
  .cat-scroll-arrow.is-hidden { opacity: 0; }
}
@keyframes cat-scroll-arrow-nudge {
  0%, 100% { transform: translateY(-50%) translateX(0); opacity: 1; }
  50%      { transform: translateY(-50%) translateX(5px); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-scroll-arrow { animation: none; }
}

.categorias__head {
  margin-bottom: var(--sp-10);
  text-align: center;
}
@media (min-width: 640px) {
  .categorias__head { text-align: left; }
}
.categorias__head .section-title { margin-bottom: var(--sp-4); }
.categorias__head .eyebrow { margin-bottom: var(--sp-3); }
.categorias__lede {
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .categorias__lede { margin-inline: 0; }
}
.categorias__highlight {
  display: block;
  margin-top: var(--sp-3);
  font-weight: 600;
  color: var(--c-lt-text);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(229 0 10 / 0.06) 0%, rgba(229 0 10 / 0.02) 100%);
  border: 1px solid rgba(229 0 10 / 0.12);
  box-shadow: 0 1px 0 rgba(255 255 255 / 0.8) inset;
}

/* Horizontal scroll container */
.cat-scroll-wrapper { overflow: hidden; }
.cat-scroll-inner {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: var(--sp-5);
  padding-bottom: var(--sp-10);
  /* Fade edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 85%,
    transparent 100%
  );
}
.cat-scroll-inner::-webkit-scrollbar { display: none; }

/* Per-category accent colors */
.cat-card--4k  { --cat-accent: #22c55e; --cat-accent-dark: #15803d; --cat-glow: rgba(34 197 94 / 0.25); }
.cat-card--10k { --cat-accent: #3b82f6; --cat-accent-dark: #1d4ed8; --cat-glow: rgba(59 130 246 / 0.25); }
.cat-card--15k { --cat-accent: #a855f7; --cat-accent-dark: #7c3aed; --cat-glow: rgba(168 85 247 / 0.25); }
.cat-card--21k { --cat-accent: #e5000a; --cat-accent-dark: #9f0007; --cat-glow: rgba(229 0 10 / 0.30); }
.cat-card--42k { --cat-accent: #f59e0b; --cat-accent-dark: #b45309; --cat-glow: rgba(245 158 11 / 0.25); }

.cat-card {
  flex: 0 0 calc(82vw);
  max-width: 318px;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid rgba(0 0 0 / 0.06);
  border-radius: var(--r-xl);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
  box-shadow:
    0 1px 0 rgba(255 255 255 / 0.9) inset,
    0 12px 40px rgba(0 0 0 / 0.06);
}
.cat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0 0 0 / 0.08);
  box-shadow:
    0 1px 0 rgba(255 255 255 / 0.95) inset,
    0 24px 56px var(--cat-glow),
    0 8px 24px rgba(0 0 0 / 0.08);
}

.cat-card--featured {
  border-color: rgba(229 0 10 / 0.22);
  box-shadow:
    0 0 0 1px rgba(229 0 10 / 0.12),
    0 1px 0 rgba(255 255 255 / 0.9) inset,
    0 16px 48px rgba(229 0 10 / 0.14);
}
.cat-card--featured:hover {
  border-color: rgba(229 0 10 / 0.35);
  box-shadow:
    0 0 0 1px rgba(229 0 10 / 0.2),
    0 1px 0 rgba(255 255 255 / 0.95) inset,
    0 28px 64px rgba(229 0 10 / 0.22);
}

/* Colored cap (top section) */
.cat-card__cap {
  padding: var(--sp-7) var(--sp-7) var(--sp-6);
  background: linear-gradient(135deg, var(--cat-accent) 0%, var(--cat-accent-dark) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  position: relative;
  /* Decorative circle */
}
.cat-card__cap::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255 255 255 / 0.07);
  pointer-events: none;
}

.cat-card__badge {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  background: rgba(255 255 255 / 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255 255 255 / 0.35);
  z-index: 1;
}

.cat-card__level {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255 255 255 / 0.80);
  align-self: flex-start;
  padding-top: 6px;
}

.cat-card__km {
  font-family: var(--f-display);
  font-size: 58px;
  font-weight: 900;
  line-height: 0.85;
  color: #fff;
  letter-spacing: -0.03em;
}
.cat-card__km small {
  font-size: 0.32em;
  color: rgba(255 255 255 / 0.65);
  font-weight: 700;
  letter-spacing: 0;
}

/* Card body */
.cat-card__body {
  padding: var(--sp-6) var(--sp-7) var(--sp-7);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  flex: 1;
}

.cat-card__desc {
  font-size: 13.5px;
  color: var(--c-lt-sub);
  line-height: 1.6;
}

.cat-card__perks {
  display: flex; flex-direction: column; gap: var(--sp-2);
  flex: 1;
}
.cat-card__perks li {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-lt-text);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  line-height: 1.45;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(0 0 0 / 0.05);
}
.cat-card__perks li:last-child { border-bottom: none; padding-bottom: 0; }
.cat-card__perks li:first-child { padding-top: 0; }
.cat-card__perks li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 1px;
  border-radius: 7px;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
  color: #fff;
  font-family: var(--f-body);
  background: linear-gradient(145deg, var(--cat-accent) 0%, var(--cat-accent-dark) 100%);
  box-shadow: 0 2px 8px var(--cat-glow);
}

.btn--cat {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--cat-accent);
  border: 1.5px solid var(--cat-accent);
  transition: all var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  margin-top: auto;
}
.btn--cat:hover, .btn--cat:focus-visible {
  background: var(--cat-accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--cat-glow);
  transform: translateY(-1px);
}

.btn--cat-solid {
  background: linear-gradient(145deg, var(--cat-accent) 0%, var(--cat-accent-dark) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px var(--cat-glow);
}
.btn--cat-solid:hover, .btn--cat-solid:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 8px 28px var(--cat-glow);
  transform: translateY(-2px);
}

/* Scroll dots indicator */
.cat-scroll-hint {
  display: flex;
  justify-content: center;
  padding-block: var(--sp-4) var(--sp-10);
}
.cat-scroll-dots {
  display: flex;
  gap: var(--sp-2);
}
.cat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0 0 0 / 0.15);
  transition: all var(--dur-mid);
}
.cat-dot.active {
  background: var(--c-orange);
  width: 20px;
  border-radius: var(--r-pill);
}

/* ═══════════════════════════════════════════════════════════
   RECORRIDO (light section)
══════════════════════════════════════════════════════════ */
.recorrido {
  background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 55%, #f5f5f5 100%);
}
.recorrido .section-title { color: var(--c-lt-text); }

/* ── Embedded map ── */
.map-embed {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(0 0 0 / 0.10);
  margin-bottom: var(--sp-5);
  aspect-ratio: 16 / 9;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.map-embed__footer {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--sp-8);
}

@media (max-width: 580px) {
  .map-embed { aspect-ratio: 4 / 3; }
}

.route-tabs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-1);
}
.route-tabs::-webkit-scrollbar { display: none; }

.route-tab {
  flex-shrink: 0;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--c-lt-border);
  color: var(--c-lt-sub);
  background: transparent;
  transition: all var(--dur-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.route-tab:hover { border-color: rgba(229 0 10 / 0.5); color: var(--c-lt-text); }
.route-tab.active, .route-tab[aria-selected="true"] {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(229 0 10 / 0.3);
}

.map-panel {
  background: var(--c-lt-surface);
  border: 1.5px solid var(--c-lt-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-6);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-panel__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-12) var(--sp-6);
  text-align: center;
}
.map-icon-svg {
  width: 52px; height: 52px;
  color: var(--c-orange);
  opacity: 0.7;
}
.map-panel__inner p {
  font-size: 15px;
  color: var(--c-lt-sub);
  max-width: 280px;
}

.route-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  /* deja espacio para que los botones flotantes fijos (WhatsApp/IG/FB)
     nunca tapen el texto de la tarjeta */
  padding-right: 76px;
}
.route-hl {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--c-lt-surface);
  border: 1px solid var(--c-lt-border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-lt-text);
}
.route-hl__icon {
  width: 20px; height: 20px;
  color: var(--c-orange);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   CTA SECTION
══════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-16);
  text-align: center;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-orange-dk) 0%, var(--c-orange) 60%, #FF2020 100%);
  z-index: 0;
}
.cta-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
}
.cta-section__title {
  font-family: var(--f-display);
  font-size: clamp(36px, 9vw, 72px);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: var(--c-white);
  margin-bottom: var(--sp-4);
}
.cta-section__sub {
  font-size: 15px;
  color: rgba(255 255 255 / 0.8);
  margin-bottom: var(--sp-8);
}

/* ═══════════════════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════════════════ */
.contacto { background: var(--c-bg-2); }
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  min-height: 80px;
  transition:
    border-color var(--dur-fast),
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.contact-card:hover, .contact-card:focus-visible {
  border-color: rgba(229 0 10 / 0.35);
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(0 0 0 / 0.3);
}
.contact-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--c-orange-dim);
  color: var(--c-orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card__icon--wa {
  background: var(--c-green-dim);
  color: var(--c-green);
}
.contact-card__text { flex: 1; }
.contact-card__text h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.contact-card__text p  { font-size: 13px; color: var(--c-muted); }
.contact-card__arrow { color: var(--c-muted); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  padding-block: var(--sp-12);
}
.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--sp-3);
  width: fit-content;
}
.footer__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.footer__tagline {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
}
.footer__col { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-1);
}
.footer__col a {
  font-size: 14px;
  color: rgba(255 255 255 / 0.5);
  transition: color var(--dur-fast);
  padding-block: 2px;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.footer__col a:hover { color: var(--c-white); }

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding-block: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
}
.footer__bottom p { font-size: 12px; color: var(--c-muted); }
.footer__back-top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: var(--sp-2) var(--sp-4);
  transition: all var(--dur-fast);
  min-height: 36px;
}
.footer__back-top:hover { color: var(--c-white); border-color: var(--c-border-hi); }

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAV (mobile only)
══════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  background: rgba(10 10 10 / 0.96);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-top: 1px solid var(--c-border);
  padding-bottom: var(--safe-bottom);
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  overflow: hidden;
  width: 100%;
  /* Empieza oculto debajo de la pantalla */
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-nav.is-visible {
  transform: translateY(0);
}
.bottom-nav__item {
  flex: 1;
  min-width: 0;           /* permite que flex shrinkee por debajo del contenido */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding-top: var(--sp-2);
  padding-inline: var(--sp-1);
  color: var(--c-muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
  min-height: var(--bottom-nav-h);
  position: relative;
}
/* Etiqueta no desborda */
.bottom-nav__item span {
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bottom-nav__item::after {
  content: '';
  position: absolute;
  inset: -4px;
}
.bottom-nav__item svg {
  transition: transform var(--dur-fast) var(--ease-out);
}
.bottom-nav__item.active,
.bottom-nav__item:focus-visible {
  color: var(--c-white);
}
.bottom-nav__item:active svg { transform: scale(0.88); }

/* Central CTA button in bottom nav */
.bottom-nav__item--cta {
  background: var(--c-orange);
  color: var(--c-white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding-inline: var(--sp-2);
  flex: 1.3;                /* ligeramente más ancho, pero no tanto */
  box-shadow: 0 -4px 20px rgba(229 0 10 / 0.35);
  transition: background var(--dur-fast);
}
.bottom-nav__item--cta:active { background: var(--c-orange-lt); }

/* ═══════════════════════════════════════════════════════════
   TABLET — 640px
══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  :root { --nav-h: 68px; }
  .br-md { display: inline; }
  .container { padding-inline: var(--sp-8); }

  .hero__ctas { flex-direction: row; }
  .hero__layout { padding-bottom: var(--sp-16); }

  .evento__grid { grid-template-columns: repeat(4, 1fr); }

  .cat-card { flex: 0 0 calc(50% - 24px); max-width: 360px; }

  .route-highlights { grid-template-columns: repeat(4, 1fr); padding-right: 0; }

  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-card:nth-child(3) { grid-column: 1 / -1; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP — 1024px
══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  :root {
    --nav-h: 72px;
    --bottom-nav-h: 0px;
  }

  body { padding-bottom: 0; }

  /* Show desktop nav, hide bottom nav */
  .topbar__nav { display: flex; }
  .topbar__cta { display: inline-flex; margin-inline-start: 0; }
  .bottom-nav  { display: none; }

  /* Hero */
  .hero { align-items: stretch; }

  /* Layout: dos columnas — texto izq, espacio derecho */
  .hero__layout {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 0;
    max-width: 100%;
    padding-bottom: var(--sp-20);
    align-items: end;
  }

  /* Columna izquierda: todo el texto */
  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--sp-4);
  }

  .hero__eyebrow { font-size: 13px; margin-bottom: var(--sp-5); }
  .hero__split-left,
  .hero__split-right { font-size: 18px; }
  .hero__sub {
    font-size: 17px;
    max-width: 480px;
    margin-bottom: var(--sp-8);
  }
  .hero__ctas { flex-direction: row; margin-bottom: var(--sp-8); }

  /* Columna derecha: visible en desktop */
  .hero__aside {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: var(--sp-4);
  }
  /* Switch de Garmin: móvil oculto, desktop visible */
  .hero__sponsor--mobile  { display: none; }
  .hero__sponsor--desktop { display: flex; }

  /* Overlay desktop: muy sutil, solo zona inferior para texto */
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(5 5 5 / 0.10) 0%,
      rgba(5 5 5 / 0.02) 40%,
      rgba(5 5 5 / 0.20) 65%,
      rgba(5 5 5 / 0.75) 100%
    );
  }

  /* Evento */
  .evento__layout { flex-direction: row; gap: var(--sp-16); }
  .evento__lead   { flex: 0 0 320px; }
  .evento__body   { flex: 1; }

  /* Categories */
  .cat-scroll-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: visible;
    mask-image: none;
    -webkit-mask-image: none;
    padding-bottom: var(--sp-12);
    gap: var(--sp-4);
    padding-inline: var(--sp-5);
    max-width: 1200px;
    margin-inline: auto;
  }
  .cat-card {
    flex: none;
    max-width: none;
    scroll-snap-align: none;
  }
  .cat-scroll-hint { display: none; }

  /* Route */
  .map-panel { min-height: 360px; }

  /* Contact */
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card:nth-child(3) { grid-column: auto; }
  .contact-card:hover { transform: translateY(-4px); }

  /* Footer */
  .footer__top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-12); }
}

/* ═══════════════════════════════════════════════════════════
   WIDE — 1280px
══════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .container { padding-inline: var(--sp-10); }
  .hero__layout { max-width: 960px; }
  .hero__split-left,
  .hero__split-right { font-size: 20px; padding: 16px 34px; }
  .hero__sub { font-size: 19px; max-width: 580px; }
}

/* ═══════════════════════════════════════════════════════════
   GALERÍA DE EVENTOS
══════════════════════════════════════════════════════════ */
.galeria { background: var(--c-bg); overflow: hidden; }
.galeria .section-sub { margin-bottom: 0; }

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 260px;
  gap: 4px;
  margin-top: var(--sp-10);
  /* Pattern: items 1 and 6 span 2 cols */
}
.galeria__item {
  position: relative;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
}
/* Wide items */
.galeria__item:nth-child(1),
.galeria__item:nth-child(6) {
  grid-column: span 2;
  grid-row: span 1;
}
/* Tall portrait image — taller cell */
.galeria__item:nth-child(2) {
  grid-row: span 2;
}
.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.7s var(--ease-out);
}
/* First image: restore natural center crop */
.galeria__item:nth-child(1) img {
  object-position: center center;
}
.galeria__item:hover img { transform: scale(1.06); }

/* Caption overlay on hover */
.galeria__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-4) var(--sp-5) var(--sp-3);
  background: linear-gradient(to top, rgba(0 0 0 / 0.75) 0%, transparent 100%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255 255 255 / 0.9);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity var(--dur-mid) var(--ease-out),
    transform var(--dur-mid) var(--ease-out);
}
.galeria__item:hover .galeria__caption {
  opacity: 1;
  transform: translateY(0);
}

.galeria__footer {
  margin-top: var(--sp-10);
  display: flex;
  justify-content: center;
}

@media (min-width: 640px) {
  .galeria__grid { grid-auto-rows: 320px; }
}

@media (min-width: 1024px) {
  .galeria__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 380px;
    gap: 6px;
  }
  /* On desktop: item 1 spans 2 cols, item 6 spans 2 cols */
  .galeria__item:nth-child(1),
  .galeria__item:nth-child(6) {
    grid-column: span 2;
  }
  .galeria__caption { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   BOTONES FLOTANTES SOCIALES
══════════════════════════════════════════════════════════ */
.float-social {
  position: fixed;
  right: 20px;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 16px);
  z-index: 190;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Botón base — círculo perfecto (mismo ancho y alto + border-radius 50%) */
.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(0 0 0 / 0.30);
  transition:
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}
.float-btn__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Contenedor WhatsApp: tooltip CTA fuera del círculo */
.float-social__wa {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.float-wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: #1e1e1e;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid rgba(255 255 255 / 0.12);
  box-shadow:
    0 4px 20px rgba(0 0 0 / 0.25),
    0 0 0 1px rgba(0 0 0 / 0.06) inset;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-mid) var(--ease-out),
    visibility 0s linear var(--dur-mid);
  z-index: 2;
}
/* Flecha hacia el botón */
.float-wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 8px;
  border-style: solid;
  border-color: transparent transparent transparent #1a1a1a;
  filter: drop-shadow(1px 0 0 rgba(0 0 0 / 0.06));
}
.float-social__wa:hover .float-wa-tooltip,
.float-social__wa:focus-within .float-wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-mid) var(--ease-out),
    visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .float-wa-tooltip {
    transition: opacity var(--dur-fast);
    transform: translateY(-50%);
  }
  .float-social__wa:hover .float-wa-tooltip,
  .float-social__wa:focus-within .float-wa-tooltip {
    transform: translateY(-50%);
  }
}

/* WhatsApp — círculo como IG/FB */
.float-btn--whatsapp {
  background: #1e1e1e;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0 0 0 / 0.35);
}
.float-btn--whatsapp:hover,
.float-btn--whatsapp:focus-visible {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 32px rgba(0 0 0 / 0.40);
}

/* Instagram */
.float-btn--instagram {
  background: #1e1e1e;
  color: #fff;
}
.float-btn--instagram:hover,
.float-btn--instagram:focus-visible {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0 0 0 / 0.40);
}

/* Facebook */
.float-btn--facebook {
  background: #1e1e1e;
  color: #fff;
}
.float-btn--facebook:hover,
.float-btn--facebook:focus-visible {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0 0 0 / 0.40);
}


/* Desktop: sube por encima del footer, sin bottom-nav */
@media (min-width: 1024px) {
  .float-social {
    bottom: 32px;
    right: 28px;
    gap: 12px;
  }
  .float-btn {
    width: 54px;
    height: 54px;
  }
  .float-btn__icon { width: 24px; height: 24px; }
}
