/*
  MotoRumbo landing page.
  Concept: the page leads with riding (photography first, then routes, bikes and groups)
  and ends with the useful plumbing (workshops, paperwork, questionnaires).
  Bold in one place: the full-bleed hero photo and the dark "¿Cuál moto?" band.
  Everything else is quiet, left-aligned text beside large photos.
  Tokens mirror the MotoRumbo design system (claude.ai/artifact/CDEbpNbLuQw8AUWPEhd19t).
*/

@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin.woff2") format("woff2"); font-weight: 400 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: "Overpass"; src: url("fonts/overpass-latin-ext.woff2") format("woff2"); font-weight: 400 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; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/atkinson-700-latin-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+A720-A7FF; }

:root {
  color-scheme: light;
  --ground: #f5f6f3;
  --surface: #ffffff;
  --ink: #1b2226;
  --ink-muted: #56626a;
  --line: #d6dbd8;
  --rumbo: #165a45;
  --rumbo-dark: #0f4433;
  --rumbo-tint: #e3efe9;
  --road-yellow: #f2b705;
  --tierra: #a4502b;
  --tierra-tint: #f3e4da;
  --on-dark: #ffffff;
  --on-dark-muted: #c9d0cc;

  --font-display: "Overpass", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --measure: 60ch;
  --page: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rumbo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rumbo-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--road-yellow); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
h2 { margin: 0; font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--ink-muted); }
.lead { margin-top: 16px; max-width: var(--measure); font-size: 20px; }

/* Header: sits over the hero photo */
.site-header { position: absolute; inset: 0 0 auto; z-index: 2; color: var(--on-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.site-header .wordmark:hover { color: inherit; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 16px; }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { color: inherit; text-decoration: underline; }
.nav-cta { padding: 8px 14px; border: 2px solid currentColor; border-radius: var(--radius-sm); font-weight: 700; }

/* Photos. Until a real photo is added, the frame shows which shot belongs there. */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--ink); border-radius: var(--radius-md); aspect-ratio: 4 / 3; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo::after {
  content: "Foto pendiente: " attr(data-shot);
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.82);
}
.photo:has(img)::after { content: none; }
.photo-tierra { background: var(--tierra); }
.photo-rumbo { background: var(--rumbo); }
.photo-ink { background: #2c363b; }
.photo-wide { aspect-ratio: 21 / 9; }

/* Hero */
.hero { position: relative; min-height: min(760px, 92vh); display: flex; align-items: flex-end; color: var(--on-dark); background: var(--ink); }
.hero-photo { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; background: #2a2f2b; }
.hero-photo img { object-position: 50% 62%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(17, 22, 24, 0.86) 0%, rgba(17, 22, 24, 0.35) 45%, rgba(17, 22, 24, 0.15) 70%, rgba(17, 22, 24, 0.55) 100%);
}
.hero-photo::after { top: 88px; bottom: auto; left: auto; right: max(20px, env(safe-area-inset-right, 0px)); max-width: 300px; text-align: right; z-index: 1; }
.hero-text { position: relative; z-index: 1; width: 100%; padding-block: 140px 64px; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(52px, 9vw, 120px); line-height: 0.92; letter-spacing: -0.035em; max-width: 9ch; }
.hero-text > p { margin-top: 20px; max-width: 36ch; font-size: 21px; line-height: 1.45; color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero-link { color: var(--on-dark); font-weight: 700; }
.hero-link:hover { color: var(--on-dark); }

.button {
  display: inline-block; padding: 13px 22px; border-radius: var(--radius-sm);
  background: var(--rumbo); color: #ffffff; font-weight: 700; font-size: 17px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: background-color 120ms ease-out;
}
.button:hover { background: var(--rumbo-dark); color: #ffffff; text-decoration: none; }
.button-signal { background: var(--road-yellow); color: var(--ink); font-size: 19px; padding: 15px 28px; }
.button-signal:hover { background: #ffc61a; color: var(--ink); }

/* Blocks */
.block { padding-block: 96px; }
.block + .block { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split-text-first { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.split-text { display: grid; gap: 18px; max-width: 34rem; }
.split-text p { font-size: 19px; }
#rutas .photo img { object-position: 50% 74%; }

/* Bikes band: the one dark, loud section */
.motos { background: var(--ink); color: var(--on-dark); padding-block: 96px; }
.block + .motos { padding-top: 96px; }
.motos + .block { padding-top: 96px; }
.motos .lead { color: var(--on-dark-muted); }
.matchups { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.matchups li { padding-block: 28px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.pair { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; }
.or { color: var(--road-yellow); font-weight: 600; padding-inline: 0.12em; }
.why { margin-top: 10px; color: var(--on-dark-muted); font-size: 17px; }
.motos-cta { margin-top: 40px; font-size: 19px; font-weight: 700; }
.motos-cta a { color: var(--road-yellow); }
.motos-cta a:hover { color: #ffd54d; }

.photo-pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.photo-pair .photo { aspect-ratio: auto; height: clamp(320px, 38vw, 480px); }
.photo-pair .photo:first-child img { object-position: 50% 45%; }
.photo-pair .photo:last-child img { object-position: 55% 62%; }

.talleres-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.talleres-grid p { font-size: 19px; max-width: 34rem; }
.kinds { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds li { padding: 6px 14px; border-radius: 999px; background: var(--tierra-tint); color: var(--ink); font-size: 16px; }

.under-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 40px; align-items: start; }
.under-photo p { font-size: 19px; max-width: 34rem; }

/* Paperwork: small and practical */
.tramites .wrap { padding-top: 64px; border-top: 1px solid var(--line); }
.tramites-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.tramites-grid > div:first-child p { margin-top: 16px; max-width: 30rem; font-size: 19px; }
.dekra { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; }
.dekra-title { font-weight: 700; }
.digits { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.digit {
  appearance: none; padding: 10px 0; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); cursor: pointer;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1;
}
.digit:hover { background: var(--tierra-tint); }
.digit[aria-pressed="true"] { background: var(--road-yellow); }
.dekra-answer { margin-top: 16px; font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
#dekra-month { font-weight: 800; }
.dekra-note { margin-top: 10px; font-size: 15px; color: var(--ink-muted); }

/* Questionnaires */
.time { color: var(--ink-muted); font-family: var(--font-display); white-space: nowrap; }
.sumate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 32px; }
.business-cta { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--ink); max-width: var(--measure); }
.business-cta h3 { margin: 0; font-weight: 700; font-size: 23px; line-height: 1.25; }
.business-cta p { margin-top: 8px; }
.directory-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; font-weight: 700; }
.privacy-note { margin-top: 24px; color: var(--ink-muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-block: 48px 56px; }
.site-footer p { margin-top: 8px; max-width: 40ch; color: var(--on-dark-muted); }
.site-footer .wordmark:hover { color: var(--on-dark); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--on-dark-muted); }

/* Wide screens: the portrait hero photo takes the right side, the words sit on asphalt */
@media (min-width: 901px) {
  .hero-photo { left: 50%; }
  .hero-photo::before {
    background: linear-gradient(to right, var(--ink) 0%, rgba(27, 34, 38, 0) 22%),
                linear-gradient(to bottom, rgba(17, 22, 24, 0.55) 0%, rgba(17, 22, 24, 0) 24%);
  }
  .hero-text { padding-block: 160px 96px; }
  .hero h1 { font-size: clamp(64px, 6.4vw, 96px); max-width: 7ch; }
  .hero-text > p, .hero-actions { max-width: 30rem; }
}

/* Narrow screens */
@media (max-width: 900px) {
  .split, .split-text-first, .under-photo, .tramites-grid, .talleres-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .photo-pair { grid-template-columns: minmax(0, 1fr); }
  .photo-pair .photo { height: auto; aspect-ratio: 4 / 3; }
  .split-text-first .photo { order: -1; }
  .matchups { grid-template-columns: minmax(0, 1fr); }
  .photo-wide { aspect-ratio: 4 / 3; }
  .block { padding-block: 72px; }
  .motos, .block + .motos, .motos + .block { padding-block: 72px; }
}
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero-photo { position: relative; height: min(68vh, 560px); }
  .hero-photo::before { background: linear-gradient(to bottom, rgba(17, 22, 24, 0.55) 0%, rgba(17, 22, 24, 0) 26%, rgba(17, 22, 24, 0) 70%, var(--ink) 100%); }
  .hero-text { padding-block: 8px 56px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-photo::after { display: none; }
  .hero-text > p { font-size: 19px; }
  .digits { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
