/* MotoRumbo design system v2 (riding magazine), shared by every page:
   https://claude.ai/artifact/CDEbpNbLuQw8AUWPEhd19t. Fonts, tokens, masthead, photo hero,
   search, category tiles, buttons, the community band and the footer. Page styles build on it. */

@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-600-latin-ext.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-800-latin-ext.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-400-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --hueso: #f4f5f2; --surface: #ffffff; --noche: #15191b; --noche-2: #22282b; --gris: #5f686c; --linea: #d3d6d2;
  --barro: #b5552a; --barro-oscuro: #9a461e; --barro-claro: #f0a06f; --niebla: #c9cfcf;
  --monte: #2d5a3a; --volcan: #2b4c6f; --alerta: #8f1d17;
  --cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --radius-sm: 4px; --radius-md: 6px;
  --page: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--hueso); color: var(--noche); font-family: var(--body); font-size: 17px; line-height: 1.55; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--barro); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Masthead: over a photo on the list page, on noche elsewhere */
.mast { position: relative; z-index: 2; color: #fff; }
.mast.solid { background: var(--noche); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { font-family: var(--cond); font-weight: 800; font-size: 32px; line-height: 1; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 26px; font-family: var(--cond); font-weight: 600; font-size: 20px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--barro-claro); }
.nav a[aria-current="page"] { color: var(--barro-claro); }

/* Photo hero */
.hero { position: relative; min-height: 640px; display: flex; flex-direction: column; background: var(--noche); color: #fff; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; opacity: .8; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,25,27,.6) 0%, rgba(21,25,27,0) 28%, rgba(21,25,27,0) 42%, rgba(21,25,27,.93) 100%); }
.hero-text { position: relative; z-index: 1; margin-top: auto; padding-bottom: 46px; }
.kicker { font-family: var(--cond); font-weight: 600; font-size: 21px; color: var(--barro-claro); }
.hero h1 { margin-top: 6px; max-width: 11ch; font-family: var(--cond); font-weight: 800; font-size: clamp(56px, 9vw, 120px); line-height: .88; letter-spacing: -0.005em; }
.credit { position: absolute; z-index: 1; right: 20px; bottom: 14px; font-size: 13px; color: var(--niebla); }

.search { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; max-width: 900px; background: #fff; border-radius: var(--radius-sm); overflow: hidden; }
.search input, .search select { min-width: 0; border: 0; background: #fff; color: var(--noche); font: inherit; font-size: 18px; padding: 17px 18px; }
.search select { border-left: 1px solid var(--linea); padding-right: 12px; }
.search button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 0; background: var(--barro); color: #fff; font-family: var(--cond); font-weight: 800; font-size: 22px; line-height: 1; padding: 0 26px; cursor: pointer; text-decoration: none; }
.search button:hover, .btn:hover { background: var(--barro-oscuro); }
.btn { border-radius: var(--radius-sm); padding: 15px 22px; }

/* Category tiles */
.cats { padding: 48px 0 8px; }
.cats h2, .band h2 { font-family: var(--cond); font-weight: 800; font-size: 44px; line-height: 1; }
/* Every category is a tile of the same kind. Six columns on wide screens, four on tablets,
   three on phones; .wide-d/.wide-t/.wide-m tiles span two columns to fill the last row. */
.tiles { margin-top: 20px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 236px; gap: 12px; }
.tile.wide-d { grid-column: span 2; }
.tile { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--noche); color: #fff; text-decoration: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.8); transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--barro); mix-blend-mode: multiply; opacity: .58; }
.tile.monte::before { background: var(--monte); }
.tile.volcan::before { background: var(--volcan); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(21,25,27,0) 45%, rgba(21,25,27,.55) 100%); }
.tile span { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; font-family: var(--cond); font-weight: 800; font-size: 27px; line-height: .95; }
.tile small { display: block; margin-top: 5px; font-family: var(--body); font-weight: 400; font-size: 14px; opacity: .92; }
.tile[aria-current="true"] { outline: 4px solid var(--barro); outline-offset: 3px; }
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .tile.wide-d { grid-column: auto; }
  .tile.wide-t { grid-column: span 2; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .tile.wide-t { grid-column: auto; }
  .tile.wide-m { grid-column: span 2; }
  .tile span { left: 10px; right: 8px; bottom: 9px; font-size: 19px; }
  .tile small { font-size: 12px; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }

.chip { display: inline-block; padding: 5px 14px; border: 2px solid var(--noche); border-radius: 999px; font-family: var(--cond); font-weight: 600; font-size: 18px; line-height: 1.2; text-decoration: none; }
.chip:hover { background: var(--noche); color: #fff; }
.chip[aria-pressed="true"] { background: var(--barro); border-color: var(--barro); color: #fff; }

/* Closing band */
.band { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; background: var(--noche); color: #fff; padding: 32px; border-radius: var(--radius-md); }
.band p { margin-top: 8px; color: var(--niebla); max-width: 56ch; }
/* "Un directorio que arma la comunidad": riders recommend, owners register */
.band.grow { display: block; margin-top: 48px; }
.grow-lead { font-size: 19px; }
.paths { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-top: 1px solid var(--noche-2); }
.path { padding: 24px 32px 4px 0; }
.path + .path { padding-left: 32px; border-left: 1px solid var(--noche-2); }
.path .who { margin-top: 0; font-family: var(--cond); font-weight: 600; font-size: 19px; color: var(--barro-claro); }
.path h3 { margin-top: 4px; font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; }
.path .btn { margin-top: 18px; }
.btn-line { background: transparent; border: 2px solid #fff; padding: 13px 20px; }
.btn-line:hover { background: #fff; color: var(--noche); }

/* Footer */
.foot { background: var(--noche); color: var(--niebla); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-block: 48px 56px; }
.foot .wordmark { color: #fff; }
.foot p { margin-top: 8px; max-width: 40ch; }
.foot ul { display: grid; gap: 6px; }

@media (max-width: 860px) {
  .nav a:not(.nav-keep) { display: none; }
  .hero { min-height: 560px; }
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search input { grid-column: 1 / -1; border-bottom: 1px solid var(--linea); }
  .search select { border-left: 0; border-bottom: 1px solid var(--linea); }
  .search select + label + select { border-left: 1px solid var(--linea); }
  .search button { grid-column: 1 / -1; padding: 15px 0; }
  .band { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .path { padding: 22px 0 4px; }
  .path + .path { padding-left: 0; border-left: 0; border-top: 1px solid var(--noche-2); margin-top: 22px; }
}
