:root {
  --bone: #f7f5f0;
  --sand: #efebe3;
  --sand-deep: #e2dccf;
  --ink: #161815;
  --ink-soft: #2a2d28;
  --stone: #66655e;
  --olive: #4b5a44;
  --accent: #e2572b;
  --accent-hover: #c94a20;
  --line: rgba(22, 24, 21, 0.12);
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 72px;
  --radius: 4px;
  --section-y: clamp(80px, 11vw, 140px);
  /* curvas de nivel: el guiño "mapa de ruta" de la estética */
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cstyle%3Epath%7Bvector-effect:non-scaling-stroke%7D%3C/style%3E%3Cg fill='none' stroke='%234b5a44' stroke-opacity='.13' stroke-width='1.2'%3E%3Cpath d='M-20 120c80-40 160 30 240-10s150-80 230-30 120 60 170 20'/%3E%3Cpath d='M-20 160c90-40 170 40 250 0s140-70 220-20 130 60 170 30'/%3E%3Cpath d='M-20 210c100-30 180 40 260 10s140-60 210-10 130 50 170 30'/%3E%3Cpath d='M-20 330c70 30 150-40 230-10s150 70 230 40 110-40 180-20'/%3E%3Cpath d='M-20 380c80 30 160-30 240 0s140 60 220 30 120-40 180-20'/%3E%3Cpath d='M-20 430c90 20 170-30 250 0s130 50 210 30 130-30 180-10'/%3E%3Cpath d='M300 520c40-30 110-30 150 0s40 70-10 80-130 0-150-30 0-30 10-50z'/%3E%3Cpath d='M320 528c30-20 80-20 110 0s30 50-10 56-90 0-104-20 0-22 4-36z'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

/* Tipografía */

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
}

h3 {
  font-size: 1.6rem;
  line-height: 1.05;
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--stone);
  max-width: 54ch;
}

.kicker,
.index-label {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.index-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--olive);
  margin-bottom: 18px;
}

.index-label span {
  color: var(--accent);
}

.index-label::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.btn i {
  font-size: 1.15em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-light {
  background: var(--bone);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
}

/* Cabecera */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(247, 245, 240, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  max-width: 1180px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 768px) {
  .nav {
    padding: 0 40px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
}

.brand-mark .arc-out {
  color: var(--accent);
  stroke: var(--accent);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 7px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  inset: var(--header-h) 0 auto;
  padding: 24px 20px 32px;
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-menu a:not(.btn) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-cta {
  width: 100%;
  margin-top: 20px;
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    padding: 0;
    background: none;
    color: inherit;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: flex;
    align-items: center;
    gap: 36px;
  }

  .nav-menu ul {
    display: flex;
    gap: 30px;
  }

  .nav-menu a:not(.btn) {
    padding: 6px 0;
    border: 0;
    font-size: 1.05rem;
    position: relative;
  }

  .nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .nav-menu a:not(.btn):hover::after {
    transform: scaleX(1);
  }

  .nav-cta {
    width: auto;
    margin: 0;
    min-height: 44px;
    padding: 10px 20px;
  }
}

/* Portada */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  /* móvil: la foto arriba y el texto debajo, sobre el negro */
  padding: calc(var(--header-h) + 30vh) 0 48px;
}

.hero-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 64vh;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(22, 24, 21, 0.6) 30%, rgba(22, 24, 21, 0.08) 62%, rgba(22, 24, 21, 0.4) 100%),
    url("assets/ruta-montana.webp") 31% 30% / cover no-repeat;
}

/* escritorio: portada partida, el texto sobre negro a la izquierda y la foto en la mitad
   derecha (el motero está a la izquierda en la foto: así no queda detrás del titular) */
@media (min-width: 960px) {
  .hero {
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 56px;
  }

  .hero-bg {
    top: 0;
    bottom: 0;
    height: auto;
    left: 44%;
    background:
      linear-gradient(to right, var(--ink) 0%, rgba(22, 24, 21, 0.4) 18%, transparent 36%),
      linear-gradient(to top, rgba(14, 15, 13, 0.55) 0%, transparent 28%),
      url("assets/ruta-montana.webp") 30% center / cover no-repeat;
  }

  .hero-inner {
    max-width: 1180px;
  }

  .hero h1 {
    max-width: 700px;
    font-size: clamp(4rem, 6.6vw, 5.6rem);
  }

  .hero-sub,
  .hero-specs {
    max-width: 560px;
  }
}

.hero-inner {
  position: relative;
}

.kicker {
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  line-height: 0.92;
  margin-bottom: 22px;
}

.hero h1 span {
  color: var(--sand-deep);
  -webkit-text-stroke: 0;
}

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  max-width: 640px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

@media (min-width: 640px) {
  .hero-specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-specs li {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-specs strong {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-specs span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Secciones */

.section {
  position: relative;
  padding: var(--section-y) 0;
}

/* un único dibujo a lo ancho: repetido en horizontal, las curvas no casan en el borde */
.topo {
  background: var(--sand) var(--topo) center top / max(100%, 1400px) auto repeat-y;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-head h2 {
  margin-bottom: 18px;
}

/* El equipo */

.device {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: clamp(64px, 8vw, 100px);
}

@media (min-width: 960px) {
  .device {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 64px;
  }
}

.device-figure {
  position: relative;
  filter: drop-shadow(0 30px 40px rgba(22, 24, 21, 0.28));
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(226, 87, 43, 0.25);
}

.controls {
  counter-reset: control;
  display: grid;
  gap: 2px;
}

.controls li {
  counter-increment: control;
  position: relative;
  padding: 14px 0 14px 46px;
  border-bottom: 1px solid var(--line);
  color: var(--stone);
  font-size: 0.95rem;
}

.controls li::before {
  content: counter(control);
  position: absolute;
  left: 0;
  top: 15px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
}

.controls strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

@media (min-width: 768px) {
  .specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.specs li {
  padding: 26px 22px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--stone);
  font-size: 0.92rem;
  line-height: 1.45;
}

.specs strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
}

.specs small {
  font-size: 0.45em;
  margin-left: 4px;
  color: var(--accent);
}

/* Funciones */

.section-dark {
  background: var(--ink);
  color: var(--bone);
}

.section-dark .lead {
  color: rgba(247, 245, 240, 0.68);
}

.section-dark .index-label {
  color: var(--sand-deep);
}

.features {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

.feature-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 22px;
  background: #000;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature:hover .feature-media img {
  transform: scale(1.04);
}

.feature h3 {
  margin-bottom: 10px;
}

.feature p {
  color: rgba(247, 245, 240, 0.68);
  font-size: 0.95rem;
}

/* En pareja */

/* móvil: la foto de las dos motos entera arriba y la tarjeta debajo, solapando un poco */
.pair {
  position: relative;
  padding: 0 0 56px;
  background: #1d1f1c;
  overflow: hidden;
}

.pair-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: url("assets/dos-motos.webp") 40% 60% / cover no-repeat;
}

.pair-inner {
  position: relative;
  margin-top: -56px;
}

.pair-card {
  max-width: 560px;
  padding: 36px 28px;
  background: var(--bone);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.pair-card h2 {
  margin-bottom: 18px;
}

.pair-card p {
  color: var(--stone);
  margin-bottom: 14px;
}

.pair-card .btn {
  margin-top: 10px;
}

@media (min-width: 960px) {
  .pair {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 80px 0;
  }

  .pair-media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    background-position: center 62%;
  }

  .pair-inner {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
  }

  .pair-card {
    padding: 48px 44px;
  }
}

/* En la caja */

.caja {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .caja {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 72px;
  }

  .caja .section-head {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.box-list {
  display: grid;
  gap: 12px;
}

.box-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
}

.box-list i {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sand);
  color: var(--olive);
  font-size: 1.05rem;
}

/* Llamada final */

.cta {
  padding: clamp(80px, 10vw, 128px) 0;
  background: var(--olive);
  color: var(--bone);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 16px;
}

.cta-inner p {
  max-width: 46ch;
  margin: 0 auto 32px;
  color: rgba(247, 245, 240, 0.8);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

@media (max-width: 479px) {
  .hero-ctas .btn,
  .cta-buttons .btn {
    width: 100%;
  }
}

/* Pie */

.site-footer {
  padding: 56px 0 40px;
  background: var(--ink);
  color: rgba(247, 245, 240, 0.72);
}

.footer-inner {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.brand-footer {
  color: var(--bone);
}

.footer-tag {
  font-size: 0.95rem;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
}

.footer-wa i {
  color: #25d366;
  font-size: 1.3rem;
}

.footer-legal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 245, 240, 0.12);
  width: 100%;
  font-size: 0.82rem;
  color: rgba(247, 245, 240, 0.5);
}

.footer-legal a {
  color: var(--bone);
}

/* WhatsApp flotante */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.85rem;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

/* Aparición al entrar en pantalla */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
