/* Saira y Saira Condensed: SIL Open Font License 1.1 */
@font-face { font-family: "Saira"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/saira-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/saira-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/saira-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/saira-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/saira-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  --carbon: #2b2823;
  --grafito: #3a352e;
  --aluminio: #d8d4cc;
  --tiza: #f4f2ee;
  --kashima: #c49a4c;
  --kashima-claro: #e2c07a;
  --texto-suave: #b9b2a6;
  --texto-suave-claro: #5b5549;

  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Saira", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --rail: 0px;
  --max: 1240px;
  --travel: 0;
  --oring: 0;
}

@media (min-width: 1100px) {
  :root { --rail: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--tiza);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--kashima-claro); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--kashima); color: var(--carbon); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  border-radius: 999px; border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn--gold { background: var(--kashima); color: var(--carbon); }
.btn--gold:hover { background: var(--kashima-claro); }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: var(--tiza); color: var(--carbon); border-color: var(--tiza); }
.btn--dark { background: var(--carbon); color: var(--tiza); }
.btn--dark:hover { background: var(--grafito); }

/* ---------- Dropper (indicador de scroll) ---------- */
.dropper { display: none; }
@media (min-width: 1100px) {
  .dropper {
    display: block; position: fixed; z-index: 30; pointer-events: none;
    left: 0; bottom: 18px; width: 56px; height: min(72vh, 600px);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  }
  /* La parte superior (asiento, cabezal y barra) baja 170 unidades; la barra se esconde en el cuerpo */
  .dropper__upper { transform: translateY(calc(var(--travel) * 170px)); }
  .dropper__oring { transform: translateY(calc(var(--oring) * -170px)); }
}

/* ---------- Encabezado ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter) 12px calc(var(--gutter) + var(--rail));
  background: rgba(43, 40, 35, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #3f3a32;
}
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.top__brand span { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.top__nav { display: flex; gap: 28px; }
.top__nav a { text-decoration: none; color: var(--texto-suave); font-weight: 500; }
.top__nav a:hover { color: var(--tiza); }
@media (max-width: 760px) {
  .top__nav { display: none; }
  .top__brand span { font-size: 1.15rem; }
}

/* ---------- Secciones: márgenes compartidos ---------- */
.hero, .about, .services, .work, .reviews, .place, .foot {
  padding-left: calc(var(--gutter) + var(--rail));
  padding-right: var(--gutter);
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(24px, 5vw, 80px);
  max-width: calc(var(--max) + var(--rail) + 2 * var(--gutter)); margin: 0 auto;
  padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(40px, 7vw, 96px);
}
.hero__place { color: var(--texto-suave); font-weight: 500; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  text-wrap: balance;
}
.hero__lead { margin-top: 26px; max-width: 34ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #ddd8cf; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__mark img { width: 100%; max-width: 420px; margin-left: auto; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__mark { order: -1; }
  .hero__mark img { max-width: 168px; margin: 0; }
}

/* ---------- Perfil de pista DH ---------- */
.trail { position: relative; overflow: hidden; margin-top: calc(-1 * clamp(40px, 6vw, 96px)); line-height: 0; }
.trail__svg { display: block; width: max(100%, 1100px); height: auto; will-change: transform; }
.trail__far { fill: #312d27; }
.trail__mid { fill: #36312a; }
.trail__strata { fill: none; stroke: #2f2922; stroke-width: 1.4; opacity: .55; }
.trail__roots { fill: none; stroke: #2a241d; stroke-width: 1.6; stroke-linecap: round; }
.trail__rock { fill: #57503f; }
.trail__rock-light { fill: none; stroke: #7d7461; stroke-width: 1.2; stroke-linecap: round; }
.trail__grass { fill: none; stroke: #5d5b40; stroke-width: 1.1; stroke-linecap: round; }
.trail__line { fill: none; stroke: #9a7b57; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.trail__ride { fill: none; stroke: none; }
.trail__shadow { opacity: 0; }
.trail__dust circle { fill: #8a7058; }

.wheel { opacity: 0; }
/* Rueda 29" DH: cubierta negra con tacos de hombro, letrado claro, llanta de carbono con gráfica gris */
.wheel__tire { fill: none; stroke: #161412; }
.wheel__knobs path { fill: #171513; }
.wheel__knob-shine path { fill: none; stroke: #4a453e; stroke-width: .35; stroke-linecap: round; }
.wheel__knobs .wheel__sipe { fill: none; stroke: #3d3832; stroke-width: .35; }
.wheel__lettering { fill: none; stroke: #d9d3c7; stroke-width: 1.15; stroke-dasharray: 1.6 .55 1.1 .55 .7 .55 1.8 .55 1.2 1.6 1.4 .55 .9 .55; opacity: .85; }
.wheel__rim { fill: none; stroke: #121110; stroke-width: 2.7; }
.wheel__rim-edge { fill: none; stroke: #4c4740; stroke-width: .35; }
.wheel__decal { fill: none; stroke: #8f8a82; stroke-width: 1.5; stroke-dasharray: 2.4 .8 2.4 .8 1.2 .8 2.4 .8; }
.wheel__spokes { fill: none; stroke: #6f6a61; stroke-width: .3; }
.wheel__nipples circle, .wheel__bolts circle { fill: #a39e94; }
.wheel__valve { fill: #9b968c; }
.wheel__rotor { fill: none; stroke: #b9b4aa; stroke-width: 1.2; }
.wheel__rotor-holes { fill: none; stroke: #2b2823; stroke-width: .5; stroke-dasharray: .7 .3; }
.wheel__spider { fill: none; stroke: #3a3630; stroke-width: 1; stroke-linecap: round; }
.wheel__hub { fill: #1d1b18; stroke: #77726a; stroke-width: .5; }
.wheel__axle { fill: #0f0e0d; stroke: var(--kashima); stroke-width: .35; }
.trail.is-ready .wheel, .trail.is-ready .trail__shadow { opacity: 1; transition: opacity .35s .1s; }

@media (prefers-reduced-motion: no-preference) {
  .trail__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazar 1.6s cubic-bezier(.5, 0, .2, 1) .25s forwards; }
  .trail__ground { opacity: 0; animation: aparecer .9s ease-out .9s forwards; }
  .trail__far, .trail__mid { opacity: 0; animation: aparecer 1.2s ease-out .1s forwards; }
  .trail.is-ready .wheel, .trail.is-ready .trail__shadow { transition-delay: 1.5s; }
}
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes aparecer { to { opacity: 1; } }

/* ---------- Huella de cubierta (assets/huella-mtb.svg: tacos hundidos en tierra) ---------- */
.tread {
  height: 44px;
  background-color: var(--tiza);
  background-image: url("assets/huella-mtb.svg");
  background-repeat: repeat-x;
  background-position: calc(var(--roll, 0) * 1px) center;
}

/* ---------- Disciplinas: cinta continua ---------- */
.disciplines { overflow: hidden; background: var(--grafito); padding: 16px 0; }
/* Cuatro copias del texto y un cuarto por vuelta: siempre hay cinta más ancha que la pantalla (hasta ~3.800 px) */
.disciplines__track { display: flex; width: max-content; animation: cinta 32s linear infinite; }
.disciplines:hover .disciplines__track { animation-play-state: paused; }
.disciplines__set {
  display: flex; align-items: center; list-style: none; margin: 0; padding: 0;
  font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: 1;
}
.disciplines__set li { display: flex; align-items: center; gap: .45em; padding-right: .45em; color: transparent; -webkit-text-stroke: 1.5px var(--kashima); }
.disciplines__sep { width: .32em; height: .32em; color: var(--kashima); -webkit-text-stroke: 0; }
@keyframes cinta { to { transform: translateX(-25%); } }
@media (prefers-reduced-motion: reduce) {
  .disciplines__track { animation: none; }
}

/* ---------- Superficie clara ---------- */
.about, .services, .reviews { background: var(--tiza); color: var(--carbon); }

/* ---------- El taller ---------- */
.about {
  display: grid; grid-template-columns: minmax(180px, .5fr) 1fr; gap: 24px 48px;
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: 0;
}
.about h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.about__body { max-width: 62ch; font-size: 1.15rem; }
.about__quote { margin: 0; border-left: 3px solid var(--kashima); padding-left: 24px; }
.about__quote blockquote { margin: 0; }
.about__quote blockquote p { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.5; }
.about__quote figcaption { margin-top: 14px; color: var(--texto-suave-claro); font-weight: 600; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Servicios ---------- */
.services { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.services__head {
  display: grid; grid-template-columns: minmax(180px, .5fr) 1fr; gap: 16px 48px; align-items: end;
  margin-bottom: 28px;
}
.services__head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.services__head p { color: var(--texto-suave-claro); max-width: 52ch; }
.services__list { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--carbon); }
.service {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 32px;
  padding: 26px 0; border-bottom: 1px solid #cdc7bc;
}
.service h3 { font-size: clamp(1.9rem, 4vw, 3rem); }
.service p { margin-top: 8px; color: var(--texto-suave-claro); }
@media (max-width: 760px) {
  .services__head { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service .btn { justify-self: start; }
}

/* ---------- Trabajos (Instagram) ---------- */
.work { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.work__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.work__head h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.work__controls { display: flex; gap: 10px; }
.work__controls[hidden] { display: none; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--texto-suave);
  background: transparent; color: var(--tiza); display: grid; place-items: center; cursor: pointer;
}
.round:hover { border-color: var(--kashima); color: var(--kashima-claro); }
.work__track {
  list-style: none; margin: 0 calc(-1 * var(--gutter)) 0 0; padding: 0 var(--gutter) 8px 0;
  /* Con pocas fotos se reparten el ancho; con muchas quedan en su tamaño y se desplazan */
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(clamp(240px, 30vw, 360px), 1fr); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--kashima) transparent;
}
.work__track:empty { display: none; }
.post { scroll-snap-align: start; }
.post a { display: block; text-decoration: none; }
.post img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: var(--grafito); }
.post p {
  margin-top: 10px; color: var(--texto-suave); font-size: .95rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.work__empty {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 28px; border: 1px solid #4a443a; border-radius: 12px; color: #ddd8cf;
}
.work__empty[hidden] { display: none; }
.work__track:not(:empty) + .work__empty { margin-top: 28px; }

/* ---------- Opiniones ---------- */
.reviews {
  display: grid; grid-template-columns: minmax(180px, .5fr) 1fr auto; align-items: center; gap: 16px 48px;
  padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 3px solid var(--carbon);
}
.reviews h2 { font-size: clamp(2rem, 4vw, 3rem); }
.reviews p { color: var(--texto-suave-claro); max-width: 46ch; }
@media (max-width: 860px) {
  .reviews { grid-template-columns: 1fr; }
  .reviews .btn { justify-self: start; }
}

/* ---------- Ubicación ---------- */
.place {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px 56px; align-items: stretch;
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px);
}
.place h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.place__city { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--kashima-claro); margin: 14px 0 10px; }
.place__text > p:not(.place__city) { color: #ddd8cf; max-width: 40ch; }
.place__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.place__map { min-height: 340px; border-radius: 12px; overflow: hidden; background: var(--grafito); }
.place__map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (max-width: 860px) {
  .place { grid-template-columns: 1fr; }
}

/* ---------- Pie ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px;
  padding-top: 40px; padding-bottom: 96px; border-top: 1px solid #3f3a32; color: var(--texto-suave);
}
.foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.foot__links a { text-decoration: none; font-weight: 500; color: var(--tiza); }
.foot__links a:hover { color: var(--kashima-claro); }
.foot > p { margin-left: auto; font-size: .9rem; }
@media (max-width: 760px) { .foot > p { margin-left: 0; } }

/* ---------- WhatsApp flotante (solo celular) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--kashima); color: var(--carbon);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
@media (max-width: 760px) { .wa-float { display: grid; } }
