@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #1d1d1b;
  --ink-2: #4b4a45;
  --red: #c41f29;
  --red-dark: #9c1820;
  --yellow: #f7c948;
  --mint: #cfe7c6;
  --butter: #f6e3a0;
  --salmon: #f4c3ad;
  --sky: #cfe1ef;
  --river: #a9d8ec;
  --provincia: #e9e8e3;
  --outside: #f3f2ec;
  --park: #8bc97e;
  --park-ink: #2f6f35;
  --grid: #1c8fb5;
  --subte-d: #008065;
  --strip-h: 3.5rem;
  --gutter: clamp(1rem, 4vw, 4.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--strip-h) + 1rem);
  scrollbar-color: var(--ink) var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  caret-color: var(--red);
}

::selection { background: var(--yellow); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--red); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
/* With large text settings a long word ("Entrenamiento") can be wider than the screen: let it break. */
body { overflow-wrap: break-word; }
p, li, dd, figcaption { text-wrap: pretty; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 0.5rem; }

/* Condensed caps: the map-book label voice */
.strip, .page-ref, label, .key th, .facts dt, .bands .time, .button, .leaders .value, .chip, .finder-result strong {
  font-stretch: 72%;
}

/* ---------- Running head ---------- */
.strip {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  min-height: var(--strip-h);
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.strip-name { font-weight: 800; font-size: 1.125rem; text-decoration: none; white-space: nowrap; }
.strip-area { color: var(--ink-2); font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-links { margin-left: auto; display: flex; gap: 1.25rem; font-weight: 700; font-size: 1rem; }
.strip-links a { text-decoration: none; padding: 0.5rem 0; white-space: nowrap; }
.strip-links a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.strip-actions { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1rem; }
.strip-actions a { text-decoration: none; white-space: nowrap; }
.strip-wa { background: var(--red); color: var(--white); padding: 0.4rem 0.75rem; border: 2px solid var(--red); }
.strip-wa:hover { background: var(--red-dark); border-color: var(--red-dark); }
.lang { border: 2px solid var(--ink); padding: 0.3rem 0.6rem; }
.lang-short { display: none; }

@media (max-width: 80em) { .strip-area { display: none; } }
@media (max-width: 61.25em) {
  :root { --strip-h: 6.5rem; }
  .strip { flex-wrap: wrap; gap: 0 1rem; padding-top: 0.5rem; }
  .strip-actions { margin-left: auto; }
  .strip-links {
    order: 3; flex: 1 0 100%; margin: 0.35rem calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter);
    overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--ink);
  }
  .strip-links::-webkit-scrollbar { display: none; }
  .strip-links a { padding: 0.6rem 0; }
}
@media (max-width: 30em) {
  .strip { --gutter: 0.75rem; }
  .strip-name { font-size: 1rem; }
  .strip-actions { gap: 0.5rem; }
  .strip-wa { padding: 0.35rem 0.55rem; }
  .lang { padding: 0.25rem 0.5rem; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
}

/* ---------- First viewport: the map sheet ---------- */
.sheet { position: relative; border-bottom: 2px solid var(--ink); background: var(--paper); }

.map-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 1020 / 1040;
  border-top: 2px solid var(--ink);
}
.map-frame .map {
  position: absolute; left: -115.69%; top: 0; margin-top: -21.96%;
  width: 225.49%; height: auto; display: block;
}

.legend-box {
  position: relative; z-index: 2;
  margin: var(--gutter);
  padding: clamp(1.25rem, 2.4vw, 2.25rem);
  background: var(--white);
  border: 2px solid var(--ink);
}
.legend-box h1 {
  font-size: clamp(2.25rem, min(1.35rem + 2.9vw, 7.6svh), 4.25rem);
  font-weight: 800; font-stretch: 74%;
  line-height: 0.95; letter-spacing: -0.015em;
}
.proof { margin: 0.9rem 0 1.2rem; font-size: 1.125rem; max-width: 48ch; }

.finder label {
  display: block; margin-bottom: 0.5rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem;
}
.finder-row { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.finder select {
  flex: 1 1 13rem; min-width: 0; min-height: 3.5rem;
  appearance: none; -webkit-appearance: none;
  padding: 0.75rem 2.75rem 0.75rem 0.9rem;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 1.5 8 8l6.5-6.5' fill='none' stroke='%231d1d1b' stroke-width='3'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
  color: var(--ink);
  font: inherit; font-weight: 700; font-stretch: 80%; font-size: 1.125rem;
  cursor: pointer;
}
.finder select:hover { background-color: var(--paper); }
.finder-result { margin: 0.9rem 0 0; font-size: 1.0625rem; color: var(--ink-2); }
.finder-result[data-state] { color: var(--ink); }
.finder-result strong { display: inline-block; padding: 0.05rem 0.45rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1rem; }
.finder-result[data-state="inside"] strong { background: var(--ink); color: var(--paper); }
.finder-result[data-state="outside"] strong { border: 2px dashed var(--red); color: var(--red-dark); }
.finder-note { margin: 0.4rem 0 0; font-size: 1rem; color: var(--ink-2); }
.hero-link { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--ink); font-weight: 700; }

.map-note { margin: 0; padding: 0.75rem var(--gutter) 1rem; font-size: 1rem; color: var(--ink-2); }
#barrio { scroll-margin-top: calc(var(--strip-h) + 3rem); }

@media (min-width: 75em) and (min-height: 37.5em) {
  .sheet { min-height: min(calc(100svh - var(--strip-h)), 1000px); display: flex; align-items: flex-start; }
  .map-frame { position: absolute; inset: 0; aspect-ratio: auto; border-top: 0; }
  .map-frame .map { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; }
  .legend-box {
    margin: clamp(1.25rem, 5vh, 4rem) 0 clamp(3.5rem, 7vh, 5rem) var(--gutter);
    width: clamp(28rem, 37vw, 35rem);
  }
  .map-note { position: absolute; right: 0; bottom: 0; z-index: 2; background: var(--paper); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); padding: 0.4rem 1rem; }
}

/* ---------- The map ---------- */
.map text { font-family: "Archivo", "Arial Narrow", sans-serif; font-stretch: 70%; font-weight: 800; fill: var(--ink); letter-spacing: 0.06em; }
.map .paper { fill: var(--paper); }
.map .provincia { fill: var(--provincia); }
.map .grid path { fill: none; stroke: var(--grid); stroke-width: 1.5; opacity: 0.4; }
.map .barrio { cursor: pointer; }
.map .barrio .fill { fill: var(--outside); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; transition: stroke-width 0.35s var(--ease-out); }
.map .barrio .hatch { fill: url(#hatch); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease-out); }
.map .barrio:hover .fill { stroke-width: 3; }
.map .barrio.is-selected .fill { stroke-width: 6; }
.map .barrio.is-selected .hatch { opacity: 1; }
.map .hatch-ink { fill: var(--red); opacity: 0.3; }
.map .tint-mint .fill { fill: var(--mint); }
.map .tint-butter .fill { fill: var(--butter); }
.map .tint-salmon .fill { fill: var(--salmon); }
.map .tint-sky .fill { fill: var(--sky); }
.map .river { fill: var(--river); stroke: var(--ink); stroke-width: 2; }
.map .park { fill: var(--park); stroke: var(--park-ink); stroke-width: 2.5; }
.map .road-case, .map .road-fill, .map .subte { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .road-case.major-road { stroke: var(--ink); stroke-width: 22; }
.map .road-fill.major-road { stroke: var(--yellow); stroke-width: 14; }
.map .road-case.minor-road { stroke: var(--ink); stroke-width: 12; }
.map .road-fill.minor-road { stroke: var(--white); stroke-width: 6; }
.map .subte { stroke: var(--subte-d); stroke-width: 6; }
.map .stations circle { fill: var(--white); stroke: var(--subte-d); stroke-width: 4; }
.map .territory { fill: none; stroke: var(--red); stroke-width: 7; stroke-dasharray: 24 12; stroke-linejoin: round; pointer-events: none; }
.map .draw-stroke { fill: none; stroke: #fff; stroke-width: 48; stroke-dasharray: 1; animation: draw 2.2s var(--ease-out) 0.25s backwards; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.map .labels { pointer-events: none; }
.map .barrio-label { font-size: 46px; }
.map .barrio-label.small { font-size: 34px; letter-spacing: 0.03em; }
.map .barrio-label.smaller { font-size: 26px; }
.map .outside-label { font-size: 28px; font-weight: 600; fill: var(--ink-2); letter-spacing: 0.14em; }
.map .water-label { font-size: 28px; font-weight: 600; fill: #1f5a73; letter-spacing: 0.4em; }
.map .park-label { font-size: 24px; fill: var(--park-ink); }
.map .road-labels text { font-size: 18px; font-weight: 700; letter-spacing: 0.08em; paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.map .road-labels .subte-label { fill: var(--subte-d); }
.map .coords text { font-size: 22px; fill: var(--grid); font-weight: 700; }
.map .is-covered { visibility: hidden; }
.map .meet circle { fill: none; stroke: var(--red); stroke-width: 5; }
.map .meet .meet-dot { fill: var(--red); stroke: none; }

@media (max-width: 74.9375em), (max-height: 37.4375em) {
  .map .detail, .map .edge { display: none; }
  .map .barrio-label { font-size: 58px; }
  .map .barrio-label.small { font-size: 36px; }
  .map .barrio-label.smaller { font-size: 34px; }
  .map .outside-label { font-size: 34px; }
  .map .park-label { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .map .draw-stroke { animation: none; }
  .map .barrio .fill, .map .barrio .hatch { transition: none; }
}

/* ---------- Pages ---------- */
.page { padding: clamp(3rem, 7vw, 6.5rem) var(--gutter); border-bottom: 2px solid var(--ink); }
.page > * { max-width: 78rem; }
.page-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; align-items: last baseline; gap: 0.5rem 2rem;
  padding-bottom: 0.9rem; margin-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
}
.page-head h2 { font-size: clamp(2.1rem, 1.45rem + 2.2vw, 3.5rem); font-weight: 800; font-stretch: 76%; line-height: 1.05; letter-spacing: -0.01em; }
.page-ref { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; font-size: 1rem; color: var(--ink-2); text-align: right; }
@media (max-width: 47.5em) {
  .page-head { grid-template-columns: 1fr; }
  .page-ref { text-align: left; }
}
.lead { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem); max-width: 58ch; margin: 0 0 2rem; }
.aside { color: var(--ink-2); margin: 1.25rem 0 0; }

/* Price key */
.key { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.key th {
  text-align: left; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2);
  padding: 0 0.75rem 0.6rem; border-bottom: 2px solid var(--ink);
}
.key td { padding: 1.25rem 0.75rem; border-bottom: 1px solid var(--ink); vertical-align: top; }
.key .num { text-align: right; }
.key .sym { width: 3.5rem; padding-right: 0; }
.key .sym svg { display: block; width: 2.5rem; height: 2.5rem; }
.key .svc { font-weight: 800; font-stretch: 82%; font-size: 1.3125rem; line-height: 1.2; }
.key .where { color: var(--ink); max-width: 34ch; }
.key .price { display: block; font-weight: 800; font-stretch: 76%; font-size: 1.5rem; line-height: 1.15; white-space: nowrap; }
.key .price + .price { margin-top: 0.25rem; }
.key .sub { display: block; color: var(--ink-2); font-size: 1rem; margin-top: 0.3rem; }
.tiers .plan { font-weight: 800; font-stretch: 76%; font-size: 1.75rem; }
.tiers td:nth-child(2) { max-width: 52ch; }

@media (max-width: 47.5em) {
  .key thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .key, .key tbody, .key tr, .key td { display: block; }
  .key tr { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 0.75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ink); }
  .key td { padding: 0; border: 0; }
  .key .sym { grid-row: span 3; }
  .key .num { text-align: left; margin-top: 0.6rem; }
  .key .price { white-space: normal; }
  .tiers tr { grid-template-columns: 1fr; }
  .tiers .num { margin-top: 0.3rem; }
}

.rules { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.6rem; }
.rules li { position: relative; padding-left: 1.6rem; max-width: 70ch; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.9rem; height: 0; border-top: 4px dashed var(--red); }

.founding { margin: 2rem 0 0; padding: 1.25rem 1.5rem; background: var(--butter); border: 2px solid var(--ink); max-width: 70ch; }
.founding p { margin: 0 0 1rem; }
.founding strong { font-stretch: 76%; text-transform: uppercase; letter-spacing: 0.05em; }
.founding .button { background: var(--ink); border-color: var(--ink); }
.founding .button:hover { background: #000; border-color: #000; }
#prices > .button { margin-top: 2rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.about.has-photo { grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr); }
.about figure { margin: 0; border: 2px solid var(--ink); background: var(--white); }
.about figure img { display: block; width: 100%; height: auto; }
.about-copy { max-width: 46rem; }
@media (max-width: 47.5em) { .about.has-photo { grid-template-columns: 1fr; } }

/* Day as time bands */
.bands { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.bands li {
  display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1.1fr) minmax(0, 1.3fr); gap: 0.75rem 2rem; align-items: baseline;
  padding: 1.25rem 1rem; border-bottom: 1px solid var(--ink); background: var(--white);
}
.bands li:nth-child(even) { background: var(--paper); }
.bands .time { font-weight: 800; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.bands .zone { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { display: inline-block; padding: 0.1rem 0.5rem; border: 2px solid var(--ink); background: var(--white); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1rem; }
.chip.tint-mint { background: var(--mint); }
.chip.tint-butter { background: var(--butter); }
.chip.tint-salmon { background: var(--salmon); }
.chip.tint-sky { background: var(--sky); }
.chip.tint-park { background: var(--park); }
@media (max-width: 47.5em) {
  .bands li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* Facts tables (park, about) */
.facts { margin: 0 0 1.5rem; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--ink); }
.facts dt { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; padding-top: 0.15rem; }
.facts dd { margin: 0; }
@media (max-width: 37.5em) { .facts div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Park */
.park-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.warn { font-weight: 700; color: var(--red-dark); margin: 0 0 1.5rem; }
.inset { margin: 0; border: 2px solid var(--ink); background: var(--white); }
.inset svg { display: block; width: 100%; height: auto; }
.inset figcaption { padding: 0.75rem 1rem; border-top: 2px solid var(--ink); font-size: 1rem; color: var(--ink-2); }
.inset text { font-family: "Archivo", "Arial Narrow", sans-serif; font-stretch: 70%; font-weight: 800; letter-spacing: 0.08em; fill: var(--ink); }
@media (max-width: 56.25em) { .park-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 0 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 0.25rem 0 1.5rem; border-bottom: 1px solid var(--ink); }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 0.5rem;
  font-weight: 800; font-stretch: 70%; font-size: 3.5rem; line-height: 1; color: var(--red);
}
.steps strong { display: block; font-size: 1.2rem; line-height: 1.25; margin-bottom: 0.3rem; }

/* Online */
.offmap .button { margin-top: 2rem; }

/* Rules and answers */
.leaders { list-style: none; margin: 0 0 3rem; padding: 0; max-width: 52rem; }
.leaders li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.45rem 0; }
.leaders .term { flex: 0 1 auto; }
.leaders .dots { flex: 1 1 2rem; border-bottom: 3px dotted var(--ink); transform: translateY(-0.3em); min-width: 2rem; }
.leaders .value { flex: 0 0 auto; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 30em) {
  .leaders li { flex-wrap: wrap; gap: 0 0.5rem; border-bottom: 1px dotted var(--ink); padding: 0.6rem 0; }
  .leaders .dots { display: none; }
  .leaders .value { flex: 1 1 100%; text-align: left; }
}
.faq { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 2rem 3rem; }
.faq dt { font-weight: 800; font-size: 1.2rem; line-height: 1.25; margin-bottom: 0.4rem; }
.faq dd { margin: 0; max-width: 60ch; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0.75rem 1.4rem;
  background: var(--red); color: var(--white); border: 2px solid var(--red);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1.0625rem; line-height: 1.1;
  text-decoration: none; text-align: center;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button:active { transform: translateY(1px); }
.button.big { min-height: 4rem; padding: 1rem 2rem; font-size: 1.25rem; }

/* Back cover */
.close { background: var(--ink); color: var(--paper); padding: clamp(3rem, 7vw, 6rem) var(--gutter) 2.5rem; }
.close :focus-visible { outline-color: var(--paper); }
.close-line { margin: 0 0 1.75rem; max-width: 22ch; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); font-weight: 800; font-stretch: 74%; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.contact { list-style: none; margin: 2.5rem 0 0; padding: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; border-top: 2px solid var(--paper); }
.contact a { font-weight: 700; }
.contact .missing { color: #c9c6bd; }
.fine { margin: 2rem 0 0; font-size: 0.875rem; color: #c9c6bd; }
