/* El club: la sala, sus profesores y sus atletas. */
.club-edition { color: var(--paper); background: var(--canvas); }
.club-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: clamp(14px,2vw,26px);
  border-bottom: 1px solid var(--line);
}
.club-masthead h2 {
  margin-bottom: 8px;
  font: 700 clamp(2rem,3.3vw,3.3rem)/1.04 var(--display);
  text-transform: uppercase;
}
.club-tabs { display: flex; gap: 3px; align-self: end; }
.club-tabs button {
  min-height: 48px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 8px clamp(8px,1.5vw,22px);
  background: transparent;
  color: var(--muted);
  font: 600 clamp(.98rem,1.3vw,1.15rem)/1.2 Barlow, sans-serif;
  cursor: pointer;
}
.club-tabs button[aria-selected="true"] { background: var(--ink); border-bottom-color: var(--yellow); color: var(--yellow); }
.club-tabs button:hover { background: var(--surface); color: var(--paper); }
.club-panel { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.65fr); background: var(--ink); }
.club-edition:has(.club-tabs[hidden]) .club-panel + .club-panel { margin-top: 16px; }
.club-tabs[hidden], .club-panel[hidden], .pass-save[hidden] { display: none; }
.club-copy {
  display: flex; flex-direction: column; align-items: start; justify-content: center;
  padding: clamp(22px,2.5vw,42px);
}
.club-copy h3 {
  margin: 0;
  font: 700 clamp(2.9rem,5.4vw,5.7rem)/.95 var(--display);
  letter-spacing: -.025em; text-transform: uppercase; text-align: left;
}
.club-copy h3 em { display: block; color: var(--yellow); font-style: normal; }
.club-copy p { margin: clamp(14px,1.7vw,24px) 0 16px; font-size: clamp(1rem,1.25vw,1.17rem); line-height: 1.48; color: var(--muted); }
.club-copy p a { color: var(--paper); text-decoration: underline; text-underline-offset: .18em; }
.club-edition a svg { width: 17px; height: 17px; flex: none; }
.club-action {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  color: var(--yellow); font: 600 1rem/1.2 Barlow, sans-serif;
}
.club-edition a:hover { text-decoration: underline; text-underline-offset: 4px; }
.club-edition :is(a,button):focus-visible, .pass-save:focus-visible {
  outline: 3px solid currentColor; outline-offset: 2px;
}
.club-tabs button:focus-visible { outline-offset: -4px; }
.club-photos {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px;
  min-width: 0; align-content: center; align-items: stretch; touch-action: pan-y pinch-zoom;
}
.club-photos figure { min-width: 0; display: flex; flex-direction: column; }
.club-image { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ink); }
.club-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.club-track img { object-position: 50% 44%; }
.club-hugo img { object-position: 50% 29%; }
.club-emily img { object-position: 50% 32%; }
.club-bryan img { object-position: center top; }
.club-photos figcaption {
  flex: 1;
  background: var(--paper); color: var(--ink);
  padding: 2px clamp(10px,1vw,18px) 10px;
}
.club-photos figcaption a { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px; font: 700 clamp(1.15rem,2vw,1.8rem)/1.12 var(--display); }
.club-photos figcaption a svg { color: var(--red-deep); }
.club-photos figcaption span { display: block; font-size: .94rem; line-height: 1.25; }
.club-competition-photos { grid-template-columns: minmax(0,1.504fr) minmax(0,.667fr); }
.club-competition-photos .club-image { aspect-ratio: 2 / 3; }
.club-competition-photos .club-podium .club-image { aspect-ratio: 1280 / 851; }
.club-competition-photos img { object-fit: contain; }
.club-disciplines { display: flex; gap: 6px clamp(15px,2.2vw,32px); flex-wrap: wrap; padding-top: 8px; margin-top: 14px; border-top: 1px solid var(--line); }
.club-disciplines a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; line-height: 1.2; }
.club-disciplines a:first-child { margin-right: auto; }
.club-disciplines a svg { color: var(--yellow); }
.pass-label { font: 600 .8rem/1.3 var(--heading); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 980px) and (min-width: 761px) {
  .club-panel { grid-template-columns: minmax(0,.95fr) minmax(0,1.4fr); }
  .club-copy { padding: 20px; }
  .club-copy h3 { font-size: clamp(2.55rem,5vw,3.2rem); }
}
@media (max-width: 760px) {
  .club-masthead { display: block; }
  .club-tabs { margin-top: 14px; }
  .club-tabs button { flex: 1 1 auto; padding-inline: 4px; }
  .club-panel { grid-template-columns: minmax(0,1fr); }
  .club-copy { padding: 18px 16px 12px; }
  .club-copy h3 { font-size: clamp(2.25rem,8vw,3.5rem); }
  .club-copy h3 em { display: inline; }
  .club-copy p { margin: 10px 0 2px; max-width: 54ch; }
  .club-photos { align-content: start; }
  .club-photos figcaption span { font-size: .86rem; }
  .club-competition-photos { grid-template-columns: minmax(0,1.45fr) minmax(0,.7fr); }
  .club-disciplines { gap: 0 18px; }
  .club-disciplines a:first-child { flex-basis: 100%; }
}

/* La ficha se lee después de los controles también en pantallas chicas. */
.route-builder {
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  grid-template-areas: "intro pass" "choices pass";
  align-items: start;
  gap: 2rem clamp(2rem,7vw,8rem);
}
.route-intro { grid-area: intro; }
.route-intro > p { max-width: 45ch; margin-top: 1rem; }
.route-controls { grid-area: choices; }
.route-preview { grid-area: pass; align-self: center; width: 100%; max-width: 590px; }
.visit-pass {
  color: var(--paper);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.pass-mast, .pass-stub { display: flex; justify-content: space-between; align-items: center; }
.pass-mast, .pass-body, .pass-stub { padding-inline: clamp(20px,3vw,45px); }
.pass-mast { min-height: 83px; background: var(--red-deep); border-bottom: 3px solid var(--yellow); }
.pass-mast span:first-child { font: 700 clamp(34px,3.8vw,61px)/1 var(--display); letter-spacing: -.035em; }
.pass-mast span:last-child { font: 600 .75rem/1.25 var(--heading); text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.pass-body { padding-block: clamp(25px,3vw,50px); }
.pass-body h3 { margin: .55rem 0 .8rem; font: 700 clamp(40px,4.8vw,79px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.pass-body p { line-height: 1.45; max-width: 38ch; }
.pass-stub { position: relative; min-height: 95px; border-top: 2px dashed #646464; }
.pass-stub::before, .pass-stub::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  top: -11px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid #646464;
}
.pass-stub::before { left: -10px; }
.pass-stub::after { right: -10px; }
.pass-stub strong { display: block; font: 700 1.8rem/1.15 var(--display); }
.pass-label { color: var(--yellow); }
.pass-stub img { width: 35px; height: auto; }
.pass-save {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.35rem;
  min-height: 48px;
  color: var(--paper);
  background: transparent;
  border: 1px solid #9e9e94;
  gap: .7rem;
  font-weight: 600;
  cursor: pointer;
}
.pass-save:hover { border-color: var(--yellow); color: var(--yellow); }
.pass-save svg { width: 19px; height: 19px; }
.pass-save span { font: 600 .72rem/1 var(--heading); }
.pass-status:not(:empty), .route-preview .route-note { margin: .65rem 0 0; font-size: .9rem; }
.pass-status { color: var(--yellow); }
@media (max-width: 760px) {


  .route-builder { grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "choices" "pass"; gap: 1.5rem; }


  .pass-body h3 { font-size: clamp(42px,9vw,64px); }
}
@media (prefers-reduced-motion: no-preference) {
  .pass-save, .club-tabs button { transition: background-color .18s, color .18s; }
}
