/* Pista, web pública. Sin dependencias ni build. */

@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-Italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;
  --paper: #FBFAF7;
  --surface: #FFFFFF;
  --surface-muted: #F2F0EA;
  --ink: #121411;
  --ink-2: #5E6159;
  --ink-3: #8A8D83;
  --line: #E6E3DB;
  --court: #143F31;
  --court-deep: #0F3227;
  --on-court: #F5F2EA;
  --on-court-2: rgb(245 242 234 / 76%);
  --volt: #D7F24B;
  --clay: #D9643A;
  --danger: #C8432F;
  --seam: var(--paper);
  --focus: #143F31;
  --header-bg: rgb(251 250 247 / 86%);
  --shadow-float: 0 1px 2px rgb(18 20 17 / 6%), 0 18px 40px -18px rgb(18 20 17 / 28%);
  --shadow-phone: 0 2px 4px rgb(18 20 17 / 6%), 0 40px 80px -30px rgb(18 20 17 / 38%);

  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --num: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --max: 1180px;
  --r-card: 24px;
  --r-photo: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E100E;
    --surface: #181B18;
    --surface-muted: #232723;
    --ink: #F3F0E7;
    --ink-2: #A7AAA0;
    --ink-3: #82857C;
    --line: #2B2F2B;
    --court: #1B4D3D;
    --court-deep: #143F31;
    --clay: #E2754C;
    --danger: #E5604B;
    --focus: #D7F24B;
    --header-bg: rgb(14 16 14 / 80%);
    --shadow-float: 0 1px 2px rgb(0 0 0 / 30%), 0 18px 40px -18px rgb(0 0 0 / 70%);
    --shadow-phone: 0 2px 4px rgb(0 0 0 / 30%), 0 40px 80px -30px rgb(0 0 0 / 80%);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}
.on-court :focus-visible { --focus: #D7F24B; }

::selection { background: var(--volt); color: #121411; }

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

.skip {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */

.display {
  font-family: var(--serif);
  font-size: clamp(58px, 10.4vw, 144px);
  line-height: .92;
  letter-spacing: -.025em;
}
.h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.02em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1;
  letter-spacing: -.018em;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.08;
}
.display em, .h1 em, .h2 em, .h3 em { font-style: italic; }

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.kicker-num {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.kicker-num::after {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: currentColor;
  opacity: .5;
}
.on-court .kicker, .on-court .kicker-num { color: var(--on-court-2); }

.num {
  font-family: var(--num);
  font-weight: 800;
  font-stretch: condensed;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---------- Wordmark ---------- */

.wm { display: block; overflow: visible; }
.wm .seam, .ball .seam { stroke: var(--seam); stroke-linecap: round; }
.ball { display: block; overflow: visible; width: 24px; height: 24px; flex: none; }

.wm-inline {
  display: inline-block;
  width: 1.825em;
  height: 1.028em;
  margin-left: -.06em;
  vertical-align: -.215em;
}
.wm-inline .seam { stroke-width: .9; }

.nowrap { white-space: nowrap; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 17px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; box-shadow: 0 10px 24px -14px rgb(18 20 17 / 60%); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn-block { width: 100%; }
.on-court .btn { background: var(--on-court); color: #121411; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .2s;
}
.store:hover { box-shadow: 0 12px 28px -14px rgb(18 20 17 / 60%); }
.store:active { transform: scale(.97); }
.store-ball { width: 30px; height: 30px; flex: none; --seam: var(--ink); }
.store-text { display: grid; line-height: 1.1; }
.store-text small { font-size: 12px; opacity: .78; letter-spacing: .01em; }
.store-text span { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.on-court .store { background: var(--on-court); color: #121411; }
.on-court .store-ball { --seam: #F5F2EA; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand { display: inline-flex; padding: 6px 0; color: var(--ink); }
.brand .wm { height: 38px; width: auto; aspect-ratio: 182.5 / 102.8; }
.brand .wm .seam { stroke-width: 1.8; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.lang {
  display: inline-grid;
  place-items: center;
  min-width: 40px; height: 40px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.lang:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }

@media (max-width: 820px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: clamp(40px, 7vw, 88px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero .display { margin-bottom: 28px; }
.hero .lede { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero-note { margin: 0; font-size: 14px; color: var(--ink-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
}

/* Teléfono ilustrado */

.hero-visual { position: relative; display: grid; place-items: center; padding: 20px 0 40px; }
.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 9 / 18.6;
  padding: 10px;
  border-radius: 52px;
  background: #121411;
  box-shadow: var(--shadow-phone);
}
.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 43px;
  background: var(--paper);
  padding: 46px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  width: 92px; height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #121411;
}
.p-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.p-name { font-family: var(--serif); font-size: 34px; line-height: 1; }
.p-meta { font-size: 12px; color: var(--ink-2); }
.p-photo {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--r-photo);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 0%, rgb(255 255 255 / 14%), transparent 60%),
    linear-gradient(160deg, #1B4D3D, #0F3227);
}
.p-photo svg.court { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-badge {
  position: absolute;
  left: 12px; top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgb(18 20 17 / 55%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #F5F2EA;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.like {
  position: absolute;
  right: 12px; bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #121411;
  box-shadow: var(--shadow-float);
}
.like svg { width: 20px; height: 20px; }
.like svg path { fill: transparent; stroke: currentColor; stroke-width: 1.8; transition: fill .2s; }
.like.is-liked { background: var(--volt); }
.like.is-liked svg path { fill: #121411; stroke: #121411; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 600;
}
.chip-main { background: var(--ink); color: var(--paper); }
.chip-dot {
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--volt);
  color: #121411;
  font-size: 10px;
  font-weight: 800;
}
.prompt {
  position: relative;
  padding: 14px 56px 14px 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.prompt-q { display: block; font-size: 11px; color: var(--ink-2); margin-bottom: 4px; }
.prompt-a { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.prompt .like { right: 10px; bottom: 10px; width: 36px; height: 36px; box-shadow: inset 0 0 0 1px var(--line); }
.prompt .like svg { width: 16px; height: 16px; }

.float {
  position: absolute;
  z-index: 2;
  max-width: 230px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  font-size: 14px;
  line-height: 1.35;
}
.float-label {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.float-like { left: max(0px, calc(50% - 300px)); top: 26%; }
.float-plan { right: max(0px, calc(50% - 300px)); bottom: 12%; display: flex; gap: 12px; align-items: center; }
.float-plan b { display: block; font-size: 14px; }
.float-plan span { font-size: 12px; color: var(--ink-2); }
.float-plan .ball { width: 34px; height: 34px; --seam: var(--surface); }

@media (max-width: 520px) {
  .float { max-width: 190px; font-size: 13px; padding: 12px 14px; }
  .float-like { left: 0; top: 18%; }
  .float-plan { right: 0; bottom: 0; }
  .hero-visual { padding-bottom: 76px; }
}

/* Cinta de deportes */

.ticker {
  margin-top: clamp(40px, 6vw, 72px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-flex; padding: 18px 0; }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-stretch: expanded;
  color: var(--ink-2);
}
.ticker-track span::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: inset 0 0 0 1px rgb(18 20 17 / 18%);
}

/* ---------- Secciones ---------- */

.section { padding-block: clamp(72px, 10vw, 136px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { margin-top: 18px; }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}
.feature-grid.flip .feature-copy { order: 2; }
.feature-copy .h2 { margin-bottom: 22px; }
.feature-copy p { color: var(--ink-2); max-width: 32em; }
.feature-copy p strong { color: var(--ink); font-weight: 600; }
.feature-visual { position: relative; display: grid; place-items: center; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid.flip .feature-copy { order: 0; }
}

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: inset 0 0 0 1px rgb(18 20 17 / 20%);
}

.card {
  width: min(100%, 440px);
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
}
.card-label {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-stretch: expanded;
  color: var(--ink-2);
}

/* Deportes y nivel */
.sport-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.sport-row:first-of-type { border-top: 0; padding-top: 0; }
.sport-row .chip-dot { width: 24px; height: 24px; font-size: 12px; }
.sport-row .chip-dot.muted { background: var(--surface-muted); color: var(--ink-2); }
.sport-name { font-family: var(--serif); font-size: 26px; line-height: 1; }
.lanes { display: inline-flex; align-items: flex-end; gap: 4px; }
.lanes i {
  display: block;
  width: 8px;
  border-radius: 3px;
  background: var(--surface-muted);
}
.lanes i:nth-child(1) { height: 12px; }
.lanes i:nth-child(2) { height: 18px; }
.lanes i:nth-child(3) { height: 24px; }
.lanes[data-level="1"] i:nth-child(-n+1),
.lanes[data-level="2"] i:nth-child(-n+2),
.lanes[data-level="3"] i:nth-child(-n+3) { background: var(--ink); }
.level-text { display: block; font-size: 12px; color: var(--ink-2); text-align: right; margin-top: 4px; }

.verified {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--court);
  color: var(--on-court);
}
.verified .card-label { grid-column: 1 / -1; margin-bottom: 6px; color: var(--on-court-2); }
.verified .num { font-size: 44px; line-height: 1; }
.verified small { display: block; font-size: 12px; color: var(--on-court-2); }

/* Likes con comentario */
.achievement {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: 20px;
  background: var(--court);
  color: var(--on-court);
  overflow: hidden;
}
.achievement svg.lanes-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.achievement > * { position: relative; }
.achievement .card-label { color: var(--on-court-2); margin-bottom: 8px; }
.achievement .ach-title { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin: 0 0 14px; }
.achievement .num { font-size: 64px; line-height: .9; }
.achievement .like { position: absolute; right: 16px; bottom: 16px; }
.comment {
  position: relative;
  margin: -14px 0 0 auto;
  width: 86%;
  padding: 16px 18px;
  border-radius: 20px 20px 6px 20px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-float);
  z-index: 1;
}
.comment small { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.comment p { margin: 0; font-size: 16px; line-height: 1.4; }
.ace-tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--volt);
  color: #121411;
  font-size: 12px; font-weight: 700;
}
.ace-tag svg { width: 18px; height: 18px; --seam: #D7F24B; }

/* Chat y planes */
.chat { display: grid; gap: 8px; }
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.35;
}
.bubble.them { background: var(--surface-muted); border-bottom-left-radius: 6px; }
.bubble.me { justify-self: end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; }
.plan-invite {
  justify-self: end;
  width: 88%;
  margin-top: 6px;
  padding: 18px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan-invite .card-label { margin-bottom: 8px; }
.plan-title { font-family: var(--serif); font-size: 28px; line-height: 1.05; margin: 0 0 6px; }
.plan-meta { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.plan-actions { display: flex; gap: 8px; }
.plan-actions span {
  flex: 1;
  display: grid; place-items: center;
  min-height: 40px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: var(--ink); color: var(--paper);
}
.plan-actions span + span { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

.open-plans { margin-top: clamp(56px, 7vw, 96px); }
.open-plans-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.open-plans-grid .h3 { margin-bottom: 14px; }
.open-plans-grid p { color: var(--ink-2); }
@media (max-width: 900px) { .open-plans-grid { grid-template-columns: 1fr; } }

.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan-date {
  display: grid;
  place-items: center;
  height: 64px;
  border-radius: 14px;
  background: var(--surface-muted);
  line-height: 1;
}
.plan-date small { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.plan-date .num { font-size: 28px; }
.plan-row b { display: block; font-size: 16px; font-weight: 600; }
.plan-row span { font-size: 13px; color: var(--ink-2); }
.spots {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 12px !important;
  font-weight: 700;
  color: var(--ink) !important;
  white-space: nowrap;
}
.spots.full { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2) !important; }
@media (max-width: 420px) {
  .plan-row { grid-template-columns: 52px 1fr; }
  .plan-date { height: 52px; }
  .plan-row .spots { grid-column: 2; justify-self: start; }
}

/* Dorsal de fundador */
.bib {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1.32;
  padding: 26px 30px;
  border-radius: 14px;
  background: var(--volt);
  color: #121411;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: rotate(-3deg);
  box-shadow: 0 30px 60px -30px rgb(18 20 17 / 45%), inset 0 0 0 1px rgb(18 20 17 / 8%);
  transition: transform .5s var(--spring);
}
.bib:hover { transform: rotate(0deg) translateY(-4px); }
.bib::before, .bib::after, .bib .pins::before, .bib .pins::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgb(18 20 17 / 35%);
}
.bib::before { left: 14px; top: 14px; }
.bib::after { right: 14px; top: 14px; }
.bib .pins::before { left: 14px; bottom: 14px; }
.bib .pins::after { right: 14px; bottom: 14px; }
.bib-top, .bib-bottom {
  display: flex;
  justify-content: space-between;
  padding-inline: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-stretch: expanded;
}
.bib-number {
  align-self: center;
  justify-self: center;
  font-size: clamp(96px, 16vw, 150px);
  line-height: .85;
}
.bib-bottom .wm { height: 22px; width: auto; aspect-ratio: 182.5 / 102.8; --seam: #D7F24B; }
.bib-bottom .wm circle { fill: #121411; }

.invite-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 15px;
}
.invite-note strong { color: var(--ink); }

/* Cifras */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat .num { display: block; font-size: clamp(56px, 7vw, 96px); line-height: .9; }
.stat p { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); max-width: 15em; }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Bloques en verde pista */
.on-court {
  background: var(--court);
  color: var(--on-court);
  --seam: var(--court);
}
.on-court .lede, .on-court p { color: var(--on-court-2); }
.on-court a { color: var(--on-court); }
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgb(245 242 234 / 16%);
}
.safety-item { padding: 28px; background: var(--court); }
.safety-item h3 { font-family: var(--serif); font-size: 28px; line-height: 1.05; margin-bottom: 10px; color: var(--on-court); }
.safety-item p { margin: 0; }
.safety-item svg { width: 28px; height: 28px; margin-bottom: 18px; color: #D7F24B; }
@media (max-width: 720px) { .safety-grid { grid-template-columns: 1fr; } }
.court-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.section.on-court { position: relative; overflow: hidden; border-top: 0; }
.section.on-court > .container { position: relative; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 32px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* Preguntas */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--volt); box-shadow: none; }
.faq details[open] summary::after {
  background:
    linear-gradient(#121411, #121411) center / 12px 1.5px no-repeat,
    linear-gradient(#121411, #121411) center / 1.5px 12px no-repeat,
    var(--volt);
}
.faq .answer { padding: 0 52px 24px 0; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Cierre */
.closing { text-align: left; }
.closing-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.closing .h1 { max-width: 12em; }

/* ---------- Pie ---------- */

.site-footer {
  padding: 64px 0 40px;
  background: var(--court-deep);
  color: var(--on-court);
  --seam: var(--court-deep);
  --focus: #D7F24B;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand .wm { height: 52px; width: auto; aspect-ratio: 182.5 / 102.8; margin-bottom: 14px; color: var(--on-court); }
.footer-brand .wm .seam { stroke-width: 1.4; }
.footer-brand p { color: var(--on-court-2); font-family: var(--serif); font-size: 24px; line-height: 1.1; margin: 0; }
.footer-col h2 {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-court-2);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--on-court); text-decoration: none; font-size: 15px; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgb(245 242 234 / 16%);
  font-size: 13px;
  color: var(--on-court-2);
}
.footer-bottom a { color: var(--on-court); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Páginas de texto (legal, soporte) ---------- */

.doc-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.doc-hero .h1 { margin-bottom: 18px; max-width: 14em; }
.doc-meta { font-size: 14px; color: var(--ink-2); margin: 0; }
.doc-hero .lede { margin-top: 20px; margin-bottom: 0; }

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 10vw, 120px);
}
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.toc summary {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  cursor: default; list-style: none; margin-bottom: 12px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--ink-3); min-width: 1.6em; }
.toc a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 16px 20px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .toc summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; }
  .toc summary::after { content: "+"; font-size: 18px; line-height: 1; }
  .toc[open] summary::after { content: "\2212"; }
  .toc[open] summary { margin-bottom: 12px; }
}

.prose { max-width: 70ch; }
.prose > section { padding-top: 8px; margin-bottom: 48px; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.05;
  margin: 0 0 18px;
}
.prose h3 { font-size: 18px; font-weight: 650; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose a { color: var(--ink); }
.prose code { font-size: .92em; padding: 2px 6px; border-radius: 6px; background: var(--surface-muted); }

.summary-box {
  margin-bottom: 48px;
  padding: 26px 28px;
  border-radius: var(--r-card);
  background: var(--court);
  color: var(--on-court);
  --seam: var(--court);
}
.summary-box h2 { color: var(--on-court); font-size: 30px; margin-bottom: 14px; }
.summary-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.summary-box li { position: relative; padding-left: 26px; color: var(--on-court-2); margin: 0; }
.summary-box li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 12px; height: 12px; border-radius: 50%; background: #D7F24B;
}
.summary-box strong { color: var(--on-court); }

.id-card {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0 0 1em;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
}
.id-card dt { color: var(--ink-2); }
.id-card dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .id-card { grid-template-columns: 1fr; gap: 2px; } .id-card dd { margin-bottom: 10px; } }

.table-wrap { margin: 0 0 1.4em; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.data-table thead th {
  border-top: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  padding-top: 0;
}
.data-table td { color: var(--ink-2); }
.data-table td:first-child { color: var(--ink); font-weight: 600; width: 30%; }
@media (max-width: 680px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100% !important; }
  .data-table tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .data-table td { border: 0; padding: 4px 0; }
  .data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
    margin-bottom: 2px;
  }
}

.callout {
  margin: 0 0 1.4em;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 15px;
}
.callout p { color: var(--ink); margin: 0; }
.callout p + p { margin-top: .6em; }

.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 64px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px; top: 16px;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--volt);
  color: #121411;
  font: 800 14px/1 var(--num);
}
.path {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-weight: 600; color: var(--ink);
}
.path span { padding: 2px 10px; border-radius: 999px; background: var(--surface-muted); font-size: .92em; }

/* Tarjetas de soporte */
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 56px; }
.help-card {
  display: block;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.help-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ink-2); }
.help-card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; margin-bottom: 8px; }
.help-card span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 820px) { .help-grid { grid-template-columns: 1fr; } }

.contact-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 56px;
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--court);
  color: var(--on-court);
  --focus: #D7F24B;
}
.contact-band h2 { font-family: var(--serif); font-size: 32px; line-height: 1.05; margin: 0 0 6px; color: var(--on-court); }
.contact-band p { margin: 0; color: var(--on-court-2); }
.contact-band .btn { background: var(--on-court); color: #121411; }

/* ---------- Páginas de enlace (plan, invitación, 404) ---------- */

.share-main {
  min-height: calc(100vh - 68px);
  min-height: calc(100svh - 68px);
  display: grid;
  align-content: start;
  padding: clamp(28px, 6vw, 72px) 0 72px;
}
.share-wrap { width: 100%; max-width: 560px; margin-inline: auto; padding-inline: var(--gutter); }
.share-card {
  padding: clamp(24px, 4vw, 36px);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-float);
}
.share-card + .share-card { margin-top: 16px; }
.share-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.pill-dark { background: var(--ink); color: var(--paper); }
.pill-clay { background: color-mix(in srgb, var(--clay) 18%, transparent); color: var(--ink); }
.pill svg { width: 16px; height: 16px; }
.share-title { font-family: var(--serif); font-size: clamp(40px, 8vw, 56px); line-height: 1; letter-spacing: -.015em; margin: 0 0 22px; overflow-wrap: anywhere; }
.facts { display: grid; gap: 0; margin: 0 0 22px; }
.fact { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.fact svg { width: 22px; height: 22px; margin-top: 1px; color: var(--ink-2); }
.fact b { display: block; font-weight: 600; }
.fact span, .fact a { font-size: 15px; color: var(--ink-2); }
.spots-bar { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.spots-bar i { width: 18px; height: 8px; border-radius: 4px; background: var(--ink); }
.spots-bar i.free { background: var(--volt); box-shadow: inset 0 0 0 1px rgb(18 20 17 / 18%); }
.share-desc { color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 22px; }
.share-actions { display: grid; gap: 10px; }
.share-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-2); text-align: center; }
.state-title { font-family: var(--serif); font-size: clamp(36px, 7vw, 48px); line-height: 1.02; margin: 18px 0 12px; }
.state-text { color: var(--ink-2); margin-bottom: 24px; }

.skeleton { display: grid; gap: 14px; }
.skeleton i { display: block; height: 16px; border-radius: 8px; background: var(--surface-muted); position: relative; overflow: hidden; }
.skeleton i.big { height: 44px; width: 80%; border-radius: 12px; }
.skeleton i.pill-s { height: 28px; width: 34%; border-radius: 999px; }
.skeleton i.short { width: 55%; }
.skeleton i::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 45%), transparent);
  animation: shimmer 1.4s infinite;
}
@media (prefers-color-scheme: dark) { .skeleton i::after { background: linear-gradient(90deg, transparent, rgb(255 255 255 / 6%), transparent); } }
@keyframes shimmer { to { transform: translateX(100%); } }

.loader-court { width: 72px; height: 44px; margin: 6px auto 0; }
.loader-court .track { fill: none; stroke: var(--line); stroke-width: 3; }
.loader-court .dot { fill: var(--volt); offset-path: path("M14 6H58A16 16 0 0 1 58 38H14A16 16 0 0 1 14 6Z"); animation: lap 1.6s linear infinite; }
@keyframes lap { to { offset-distance: 100%; } }

.code-bib {
  position: relative;
  margin: 8px 0 18px;
  padding: 28px 20px 22px;
  border-radius: 18px;
  background: var(--volt);
  color: #121411;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgb(18 20 17 / 8%);
}
.code-bib small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.code-value {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--num);
  font-weight: 800;
  font-stretch: condensed;
  font-size: clamp(54px, 15vw, 88px);
  line-height: 1;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}
.code-bib::before, .code-bib::after {
  content: ""; position: absolute; top: 12px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgb(18 20 17 / 35%);
}
.code-bib::before { left: 12px; }
.code-bib::after { right: 12px; }
.copy-status { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }

.out-ball { width: 96px; height: 96px; margin-bottom: 8px; }

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes like-pop {
  0% { transform: scale(1); }
  40% { transform: scale(.86); }
  70% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
  .float-like { animation: rise .8s var(--ease) .5s both, drift 7s ease-in-out 1.4s infinite; }
  .float-plan { animation: rise .8s var(--ease) .7s both, drift 8s ease-in-out 1.8s infinite; }
  .phone .like.auto { animation: like-pop .5s var(--spring) 1.6s both, like-bg .2s linear 1.75s both; }
  .phone .like.auto svg path { animation: like-heart .2s linear 1.75s both; }
  .ticker-track { animation: marquee 48s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }

  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .08s; }
  .js .reveal.d2 { transition-delay: .16s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rise { animation: fade .2s both; }
  .js .reveal { opacity: 1; transform: none; }
  .bib, .bib:hover { transform: rotate(-3deg); }
  .skeleton i::after { display: none; }
  .loader-court .dot { animation: none; offset-distance: 12%; }
}

@keyframes like-bg { from { background: #FFFFFF; } to { background: #D7F24B; } }
@keyframes like-heart { from { fill: transparent; } to { fill: #121411; } }

@media print {
  .site-header, .site-footer, .toc, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; }
}

/* Pelota grande en tarjetas de estado (404, plan no encontrado) */
.share-card > .ball { width: 72px; height: 72px; --seam: var(--surface); }
.share-card .kicker { margin-bottom: 12px; }
.share-card .steps li { background: var(--paper); }
.ace-tag .ball { --seam: #D7F24B; }
.ace-tag .ball circle { fill: #121411; }
