/* =========================================================
   BicAZ · línea de diseño web
   Blanco de base · Arena de acento · Lima solo para la acción
   ========================================================= */
:root {
  --lima: #DCEF00;
  --lima-hover: #CFE000;
  --basalto: #1B1C17;
  --blanco: #FFFFFF;
  --arena: #ECE6D8;
  --arena-2: #F5F1E8;
  --mezquite: #5C584C;
  --coral: #E23D28;
  --linea: #E4DFD2;

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--basalto);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--basalto); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: .98;
  margin: 0;
}
.one-line { white-space: nowrap; }
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mezquite);
  margin: 0;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--mezquite); max-width: 46ch; margin: 0; }
.muted { color: var(--mezquite); }
.note-price { font-size: 13px; color: var(--mezquite); margin: 0; line-height: 1.45; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--basalto); --fg: var(--blanco);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-text); font-weight: 800; font-size: 16px; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, color .25s, box-shadow .35s var(--ease), border-color .25s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(27, 28, 23, .45); }
.btn:hover .ico-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn--wa { --bg: var(--lima); --fg: var(--basalto); }
.btn--wa:hover { --bg: var(--lima-hover); box-shadow: 0 14px 30px -12px rgba(160, 175, 0, .75); }
.btn--ghost { --bg: transparent; --fg: var(--basalto); border-color: var(--basalto); }
.btn--ghost:hover { --bg: var(--basalto); --fg: var(--blanco); }
.btn--arena { --bg: var(--arena); --fg: var(--basalto); }
.btn--arena:hover { --bg: #E2DAC7; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 18px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 800; text-decoration: none; position: relative; padding-block: 6px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 28px; bottom: 2px; height: 2px;
  background: currentColor; transform: scaleX(.0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap;
}
.chip--talla { background: var(--lima); color: var(--basalto); }
.chip--line { border: 1.5px solid var(--basalto); }
.chip--arena { background: var(--arena); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, transform .45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--linea);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 118px; height: auto; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-2deg) scale(1.03); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 700; font-size: 15px; position: relative; padding-block: 6px;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { width: 100px; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
    border: 0; background: var(--arena); cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--basalto); border-radius: 2px;
    transition: transform .4s var(--ease), opacity .2s;
  }
  .menu-btn span { position: relative; }
  .menu-btn span::before { position: absolute; top: -6px; }
  .menu-btn span::after { position: absolute; top: 6px; }
  .menu-open .menu-btn span { background: transparent; }
  .menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--blanco);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    box-shadow: 0 24px 40px -24px rgba(0,0,0,.25);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .5s var(--ease), visibility 0s .5s;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .5s var(--ease); }
  .menu-open .site-header { background: var(--blanco); }
  .nav a:not(.btn) { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; }
}

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero {
  position: relative;
  height: max(640px, min(100svh, 980px));
  overflow: hidden;
  background: var(--blanco);
  isolation: isolate;
  --mx: 0; --my: 0;
}
.hero__slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  padding: calc(var(--header-h) + 12px) var(--gutter) 112px;
  max-width: var(--max); margin-inline: auto;
  visibility: hidden; pointer-events: none;
}
.slide.is-active { visibility: visible; pointer-events: auto; }
.slide.is-leaving { visibility: visible; }

/* capas decorativas */
.slide__ghost {
  position: absolute; left: 50%; top: 44%; z-index: -2;
  font-size: clamp(120px, 23vw, 380px);
  color: var(--arena);
  translate: -50% -50%;
  transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -12px), 0);
  opacity: 0; transition: opacity .9s var(--ease);
  user-select: none; pointer-events: none;
}
.slide__sun {
  position: absolute; z-index: -1;
  right: clamp(4%, 9vw, 14%); top: 18%;
  width: clamp(260px, 36vw, 560px); aspect-ratio: 1;
  border-radius: 50%; background: var(--arena-2);
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 10px), 0) scale(.6);
  opacity: 0;
  transition: transform 1.2s var(--ease), opacity .8s;
}
.slide__ridge {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 96px; height: 120px;
  color: var(--basalto); opacity: 0;
  transform: translate3d(calc(var(--mx) * 26px), 0, 0);
  transition: opacity 1s .2s;
}
.slide__ridge svg { width: 100%; height: 100%; }
.slide.is-active .slide__ghost { opacity: 1; }
.slide.is-active .slide__sun { opacity: 1; transform: translate3d(calc(var(--mx) * 10px), calc(var(--my) * 10px), 0) scale(1); }
.slide.is-active .slide__ridge { opacity: .14; }

/* texto */
.slide__copy { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; }
.slide__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slide__model { font-size: clamp(18px, 1.6vw, 22px); }
.slide__title { font-size: clamp(38px, 5.2vw, 82px); max-width: 100%; }
.slide__title span { display: block; }
.slide__desc { font-size: clamp(16px, 1.25vw, 19px); color: var(--mezquite); max-width: 40ch; margin: 0; }
.slide__ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }

.slide [data-in] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.slide.is-active [data-in] { opacity: 1; transform: none; }
.slide.is-active [data-in="1"] { transition-delay: .15s; }
.slide.is-active [data-in="2"] { transition-delay: .25s; }
.slide.is-active [data-in="3"] { transition-delay: .35s; }
.slide.is-active [data-in="4"] { transition-delay: .45s; }
.slide.is-leaving [data-in] { opacity: 0; transform: translateY(-16px); transition-duration: .4s; transition-delay: 0s; }

/* clip de título */
.slide__title span { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path .9s var(--ease), transform .9s var(--ease); }
.slide.is-active .slide__title span { clip-path: inset(-10% -5% -15% 0); transform: none; }
.slide.is-active .slide__title span:nth-child(1) { transition-delay: .2s; }
.slide.is-active .slide__title span:nth-child(2) { transition-delay: .3s; }
.slide.is-leaving .slide__title span { clip-path: inset(0 0 0 0); transform: translateY(-10%); opacity: 0; transition: opacity .35s, transform .4s; }

/* bici */
.slide__bike {
  position: relative; z-index: 1; align-self: center;
  margin-right: calc(var(--gutter) * -0.5);
}
.slide__bike-inner {
  transform: translate3d(calc(var(--mx) * 26px), calc(var(--my) * 14px), 0) rotate(calc(var(--mx) * .6deg));
  transition: transform .25s linear;
}
.slide__bike img {
  width: 100%; height: auto; max-height: 62vh; aspect-ratio: var(--ar, 1711/967); object-fit: contain;
  opacity: 0; transform: translate3d(18%, 0, 0) scale(.96);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
  filter: drop-shadow(0 30px 30px rgba(27, 28, 23, .10));
}
.slide.is-active .slide__bike img { opacity: 1; transform: none; transition-delay: .1s; }
.slide.is-leaving .slide__bike img { opacity: 0; transform: translate3d(-14%, 0, 0) scale(.98); transition: opacity .5s, transform .8s var(--ease-io); }

/* controles */
.hero__ui {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding-bottom: 32px;
}
.hero__ui .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dots { display: flex; gap: 10px; align-items: center; list-style: none; margin: 0; padding: 0; }
.dot {
  display: grid; gap: 8px; border: 0; background: none; padding: 8px 0; cursor: pointer; text-align: left;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--mezquite);
  width: clamp(54px, 9vw, 120px);
}
.dot[aria-current="true"] { color: var(--basalto); }
.dot__bar { position: relative; height: 3px; border-radius: 3px; background: var(--linea); overflow: hidden; }
.dot__bar i { position: absolute; inset: 0; background: var(--basalto); transform: scaleX(0); transform-origin: left; }
.dot.is-done .dot__bar i { transform: scaleX(1); }
.dot[aria-current="true"] .dot__bar i { animation: fill var(--dur, 7s) linear forwards; }
.hero.is-paused .dot[aria-current="true"] .dot__bar i { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

.arrows { display: flex; gap: 10px; align-items: center; }
.arrow {
  width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--basalto);
  background: var(--blanco); display: grid; place-items: center; cursor: pointer;
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.arrow svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.arrow:hover { background: var(--basalto); color: var(--blanco); }
.arrow--prev:hover svg { transform: translateX(-3px); }
.arrow--next:hover svg { transform: translateX(3px); }
.arrow:active { transform: scale(.94); }
.pause-btn {
  border: 0; background: none; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--mezquite); display: inline-flex; gap: 8px; align-items: center; padding: 10px 6px;
}
.pause-btn svg { width: 14px; height: 14px; }
.counter { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 14px; color: var(--mezquite); min-width: 64px; text-align: right; }
.counter b { color: var(--basalto); }

@media (max-width: 980px) {
  .slide { grid-template-columns: 1fr; align-content: center; gap: 8px; padding-bottom: 110px; }
  .slide__bike { order: -1; margin: 0 auto; width: min(92%, 640px); }
  .slide__copy { gap: 16px; }
  .slide__ghost { top: 32%; }
  .slide__sun { top: 13%; right: 50%; translate: 50% 0; width: min(64vw, 420px); }
  .slide__ridge { bottom: 92px; height: 70px; }
}
@media (max-width: 560px) {
  .hero { height: max(680px, 100svh); }
  .slide__title { font-size: clamp(32px, 9.4vw, 44px); }
  .slide__desc { font-size: 15.5px; }
  .slide__ctas { gap: 14px; }
  .slide__ctas .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
  .hero .arrow { display: none; } /* en móvil se navega deslizando o con los puntos */
  .dot { width: 44px; }
  .pause-btn span { display: none; }
  .counter { display: none; }
}

/* ---------- Banda de promesas ---------- */
.promise { background: var(--arena); }
.promise ul {
  list-style: none; margin: 0; padding: 22px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.promise li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.promise svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 760px) { .promise ul { grid-template-columns: 1fr; gap: 10px; padding: 18px 0; } }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .display { font-size: clamp(40px, 6.4vw, 96px); }
.section-head__side { display: grid; gap: 18px; justify-items: start; max-width: 460px; }

/* ---------- Filtros ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--linea); background: var(--blanco);
  font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease);
}
.filter small { font-size: 12px; color: var(--mezquite); font-weight: 700; transition: color .25s; }
.filter:hover { border-color: var(--basalto); }
.filter[aria-pressed="true"] { background: var(--basalto); border-color: var(--basalto); color: var(--blanco); }
.filter[aria-pressed="true"] small { color: rgba(255,255,255,.7); }
.filter:active { transform: scale(.96); }

/* ---------- Tarjetas ---------- */
.grid {
  display: grid; gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--blanco);
  box-shadow: 0 0 0 1px var(--linea);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--linea), 0 30px 60px -30px rgba(27, 28, 23, .35); }
.card__media { position: relative; aspect-ratio: 16 / 11; display: grid; place-items: center; grid-template: 100% / 100%; padding: 8% 6% 4%; overflow: hidden; }
.card__media::before {
  content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--arena-2); transform: scale(.85); transition: transform .9s var(--ease);
}
.card:hover .card__media::before { transform: scale(1.08); }
.card__media picture { position: relative; display: block; width: 100%; height: 100%; min-height: 0; }
.card__media img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: translateX(3%) scale(1.04); }
.card__talla { position: absolute; top: 18px; right: 18px; }
.card__body { background: var(--arena); padding: 24px 26px 26px; display: grid; gap: 10px; flex: 1; }
.card__name { font-size: clamp(26px, 2.4vw, 34px); }
.card__desc { margin: 0; color: var(--mezquite); font-size: 15.5px; line-height: 1.55; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.card__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.card__cta i {
  width: 40px; height: 40px; border-radius: 50%; background: var(--basalto); color: var(--blanco);
  display: grid; place-items: center; transition: transform .5s var(--ease), background-color .3s;
}
.card__cta svg { width: 18px; height: 18px; }
.card:hover .card__cta i { transform: rotate(-45deg); }

.card--soon { box-shadow: none; border: 1.5px dashed #D6CFBE; background: var(--arena-2); align-items: center; justify-content: center; text-align: center; padding: 40px; min-height: 360px; gap: 14px; }
.card--soon:hover { transform: none; box-shadow: none; }
.card--soon .display { font-size: clamp(22px, 2vw, 28px); }
.card--soon p { margin: 0; color: var(--mezquite); max-width: 30ch; }
.empty { padding: 40px 0; color: var(--mezquite); }

/* ---------- Precio y descuento ---------- */
.badge-off {
  position: relative; display: inline-flex; align-items: center;
  height: 28px; padding: 0 11px 0 24px;
  background: var(--coral); color: var(--blanco);
  font-weight: 800; font-size: 13px; letter-spacing: .02em; white-space: nowrap; line-height: 1;
  border-radius: 0 7px 7px 0;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
/* el ojal de la etiqueta */
.badge-off::before {
  content: ""; position: absolute; left: 10px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--blanco);
}
.price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.price__now { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 26px; line-height: 1; }
.price__was { flex-basis: 100%; font-size: 13px; color: var(--mezquite); }
.price__was s { text-decoration-thickness: 1.5px; }
.price--big .price__now { font-size: clamp(30px, 3.2vw, 44px); }
.price--big .badge-off { height: 36px; padding: 0 14px 0 30px; font-size: 16px; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); }
.price--big .badge-off::before { left: 13px; width: 7px; height: 7px; margin-top: -3.5px; }
.card:hover .card__off, .price:hover .badge-off { transform: rotate(-6deg); }
.card__off { position: absolute; top: 18px; left: 18px; z-index: 2; }
.card__price { display: grid; line-height: 1.2; }
.card__price b { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 20px; }
.card__price s { font-size: 13px; color: var(--mezquite); }
.contact__price { margin: 14px 0 0; display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

/* ---------- Existencias ---------- */
.stock { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--basalto); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2F9E5B; box-shadow: 0 0 0 3px rgba(47, 158, 91, .18); }
.stock--last::before { background: var(--coral); box-shadow: 0 0 0 0 rgba(226, 61, 40, .45); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(226, 61, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 61, 40, 0); } }
.buy { display: grid; gap: 10px; justify-items: start; }
.contact .stock { margin-top: 12px; }

/* ---------- Foto a sangre con papel rasgado ---------- */
.tear {
  position: relative; overflow: hidden; background: var(--basalto);
  height: clamp(420px, 62vw, 820px);
}
.tear__img {
  position: absolute; inset: -12% 0 0 0; height: 124%;
  will-change: transform;
}
.tear__img img { width: 100%; height: 100%; object-fit: cover; }
.tear::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,28,23,.0) 30%, rgba(27,28,23,.55) 100%);
  pointer-events: none;
}
.tear__paper {
  position: absolute; left: -2%; right: -2%; bottom: -2px; z-index: 3;
  width: 104%; height: clamp(70px, 9vw, 150px);
  background: url("/assets/img/marca/papel-borde.webp") center bottom / 100% 100% no-repeat;
  filter: drop-shadow(0 -6px 10px rgba(0, 0, 0, .16));
}
.tear__copy {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(90px, 12vw, 190px);
  color: var(--blanco);
}
.tear__copy .display { font-size: clamp(36px, 6.4vw, 104px); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.tear__copy p { margin: 14px 0 0; max-width: 40ch; font-size: clamp(15px, 1.3vw, 19px); opacity: .92; }
.tear__logo { position: absolute; z-index: 2; top: clamp(20px, 3vw, 36px); left: var(--gutter); width: 110px; }

/* ---------- Cómo comprar ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: s; list-style: none; margin: 0; padding: 0; }
.step { border-top: 2px solid var(--basalto); padding-top: 24px; display: grid; gap: 10px; }
.step__n { font-size: clamp(56px, 6vw, 88px); color: var(--basalto); line-height: .9; }
.step h3 { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 24px; margin: 6px 0 0; }
.step p { margin: 0; color: var(--mezquite); }
.how__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--basalto); color: #F2EFE6; padding: clamp(64px, 8vw, 110px) 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer__top .display { font-size: clamp(28px, 3.2vw, 48px); color: var(--blanco); white-space: nowrap; }
.footer__logo { width: 150px; margin-bottom: 28px; }
.footer__col h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #A9A493; }
.footer__col p, .footer__col a { margin: 0 0 12px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #F2EFE6; width: fit-content; }
.footer__col svg {
  width: 18px; height: 18px; flex: none; box-sizing: content-box; padding: 8px; border-radius: 50%;
  background: #2A2B25; color: var(--lima); transition: background-color .25s, color .25s, transform .4s var(--ease);
}
.footer__col a:hover { color: var(--lima); }
.footer__col a:hover svg { background: var(--lima); color: var(--basalto); transform: rotate(-8deg) scale(1.06); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #34352E; margin-top: 64px; padding-top: 24px; font-size: 13px; color: #A9A493; }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr; } }

/* =========================================================
   PÁGINA DE PRODUCTO
   ========================================================= */
.p-hero { position: relative; padding: calc(var(--header-h) + clamp(20px, 3vw, 40px)) 0 clamp(40px, 5vw, 72px); overflow: hidden; isolation: isolate; --mx: 0; --my: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--mezquite); flex-wrap: wrap; margin-bottom: clamp(18px, 2.5vw, 32px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--basalto); }
.p-hero__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.p-hero__name { font-size: clamp(40px, 11.4vw, 184px); }
.p-hero__sub { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; margin-top: clamp(14px, 1.6vw, 22px); }
.p-hero__tag { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; margin: 0; max-width: 34ch; }
.p-hero__stage { position: relative; margin-top: clamp(-150px, -9vw, -24px); pointer-events: none; }
.p-hero__name { position: relative; z-index: -1; }
.p-hero__stage::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%;
  width: min(62vw, 760px); aspect-ratio: 1; border-radius: 50%; background: var(--arena-2);
  translate: -50% -52%;
  transform: translate3d(calc(var(--mx) * 12px), calc(var(--my) * 12px), 0);
}
.p-hero__bike {
  width: min(100%, 1080px); margin-inline: auto;
  transform: translate3d(calc(var(--mx) * 22px), calc(var(--my) * 10px), 0) rotate(calc(var(--mx) * .5deg));
  transition: transform .25s linear;
}
.p-hero__bike img { width: auto; max-width: 100%; max-height: min(70vh, 640px); margin-inline: auto; height: auto; animation: bikeIn 1.4s var(--ease) both .1s; }
@keyframes bikeIn { from { opacity: 0; transform: translateX(10%) scale(.97); } }

.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); margin-top: clamp(20px, 3vw, 40px); list-style: none; padding: 0; }
.spec { background: var(--arena); border-radius: var(--radius); padding: 18px 22px; display: grid; gap: 2px; transition: transform .5s var(--ease); }
.spec:hover { transform: translateY(-3px); }
.spec small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mezquite); }
.spec strong { font-size: clamp(16px, 1.4vw, 20px); font-weight: 800; line-height: 1.3; }
.p-hero__actions { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: clamp(22px, 3vw, 36px); }
.p-hero__actions .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.p-hero__actions .note-price { text-align: left; }
@media (max-width: 760px) {
  .specs { grid-template-columns: 1fr; }
  .p-hero__stage { margin-top: -10px; }
  .p-hero__actions .note-price { text-align: left; }
  .p-hero__actions .btns, .p-hero__actions .btns .btn { width: 100%; }
}

/* descripción */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.about h2.display { font-size: clamp(34px, 4.4vw, 64px); }
.about__intro { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 24px); }
.about__intro p { margin: 0; font-size: clamp(17px, 1.35vw, 20px); color: var(--mezquite); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; }
.benefit { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 26px 0; border-top: 1px solid var(--linea); }
.benefit:last-child { border-bottom: 1px solid var(--linea); }
.benefit__n { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: 15px; color: var(--mezquite); padding-top: 6px; }
.benefit h3 { margin: 0 0 6px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; line-height: 1.25; }
.benefit p { margin: 0; color: var(--mezquite); }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__intro { position: static; }
  .benefit { grid-template-columns: 44px 1fr; }
}

/* ficha técnica */
.sheet { margin-top: clamp(56px, 7vw, 100px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); }
.sheet h2 { font-size: clamp(28px, 3vw, 42px); }
.sheet__list { display: grid; gap: 10px; }
.acc { background: var(--arena-2); border-radius: var(--radius); overflow: hidden; }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-weight: 800; font-size: 17px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { width: 30px; height: 30px; border-radius: 50%; background: var(--blanco); display: grid; place-items: center; flex: none; transition: transform .45s var(--ease), background-color .3s; }
.acc summary i svg { width: 14px; height: 14px; }
.acc[open] summary i { transform: rotate(45deg); background: var(--arena); }
.acc dl { margin: 0; padding: 0 22px 18px; display: grid; }
.acc dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linea); font-size: 15px; }
.acc dt { color: var(--mezquite); font-weight: 700; }
.acc dd { margin: 0; font-weight: 600; }
@media (max-width: 900px) { .sheet { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .acc dl div { grid-template-columns: 1fr; gap: 2px; } }

/* galería */
.gallery { display: grid; gap: 14px; }
.gallery__stage {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--arena-2);
  aspect-ratio: 3 / 2; cursor: zoom-in;
}
.gallery__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.gallery__stage img.is-contain { object-fit: contain; background: var(--blanco); }
.gallery__stage img[data-state="out"] { opacity: 0; transform: scale(1.03); }
.gallery__stage:hover img[data-state="in"] { transform: scale(1.015); }
.gallery__zoom {
  position: absolute; right: 18px; bottom: 18px; z-index: 2; pointer-events: none;
  height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.92);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px;
}
.gallery__zoom svg { width: 16px; height: 16px; }
.gallery__nav { position: absolute; inset: 50% 14px auto 14px; display: flex; justify-content: space-between; translate: 0 -50%; z-index: 2; pointer-events: none; }
.gallery__nav .arrow { pointer-events: auto; background: rgba(255,255,255,.92); border-color: transparent; }
.gallery__nav .arrow:hover { background: var(--basalto); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: thin; }
.thumb {
  flex: 0 0 clamp(96px, 12vw, 150px); aspect-ratio: 3/2; border-radius: 12px; overflow: hidden; padding: 0; border: 0; cursor: pointer;
  background: var(--arena-2); scroll-snap-align: start; position: relative; opacity: .55;
  transition: opacity .3s, transform .4s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow .3s; }
.thumb:hover { opacity: .9; }
.thumb[aria-current="true"] { opacity: 1; }
.thumb[aria-current="true"]::after { box-shadow: inset 0 0 0 3px var(--basalto); }
.gallery__count { font-weight: 800; font-size: 14px; color: var(--mezquite); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(18, 19, 15, .96); color: var(--blanco);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .35s;
}
.lightbox:not([open]) { display: none; }
.lightbox.is-visible { opacity: 1; }
.lightbox::backdrop { background: transparent; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); }
.lightbox__close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: var(--blanco); cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__img { display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 96px); min-height: 0; touch-action: pan-y; }
.lightbox__img img { max-width: 100%; max-height: calc(100svh - 190px); object-fit: contain; border-radius: 10px; transition: opacity .3s, transform .45s var(--ease); }
.lightbox__img img.is-swapping { opacity: 0; transform: scale(.98); }
.lightbox__foot { display: flex; justify-content: center; gap: 12px; padding: 18px; }
.lightbox .arrow { background: transparent; border-color: rgba(255,255,255,.4); color: var(--blanco); }
.lightbox .arrow:hover { background: var(--blanco); color: var(--basalto); }

/* CTA de contacto */
.contact { background: var(--arena); border-radius: clamp(24px, 3vw, 40px); padding: clamp(36px, 6vw, 88px); display: grid; gap: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.contact .display { font-size: clamp(34px, 5.4vw, 84px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.contact-card {
  background: var(--blanco); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); text-decoration: none;
  display: grid; gap: 14px; align-content: start; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -30px rgba(27,28,23,.4); }
.contact-card__ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--arena); }
.contact-card__ico svg { width: 26px; height: 26px; }
.contact-card--wa .contact-card__ico { background: var(--lima); }
.contact-card h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); font-weight: 800; line-height: 1.2; }
.contact-card p { margin: 0; color: var(--mezquite); }
.contact-card .btn { justify-self: start; margin-top: 8px; }
.contact__promise { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(16px, 1.4vw, 20px); display: flex; align-items: center; gap: 12px; }
.contact__promise svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } .contact-card .btn { width: 100%; } }

/* barra fija móvil */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--basalto); color: var(--blanco);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.sticky-cta.is-on { transform: none; }
.sticky-cta b { font-family: var(--f-display); font-stretch: 125%; font-variation-settings: "wdth" 125; font-size: 15px; display: block; }
.sticky-cta span { font-size: 12px; color: #BDB8A8; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* ---------- Chat flotante de WhatsApp ---------- */
.wa-chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 14px; pointer-events: none; transition: transform .5s var(--ease); }
.wa-chat > * { pointer-events: auto; }
.wa-chat__btn {
  position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lima); color: var(--basalto); display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(27, 28, 23, .45), 0 0 0 0 rgba(220, 239, 0, .6);
  transform: scale(0) rotate(-30deg); transition: transform .6s var(--ease), box-shadow .4s, background-color .25s;
}
.wa-chat.is-ready .wa-chat__btn { transform: none; animation: waPulse 2.8s 1.5s 2; }
.wa-chat__btn:hover { background: var(--lima-hover); transform: scale(1.06); }
.wa-chat__btn:active { transform: scale(.94); }
@keyframes waPulse { 0% { box-shadow: 0 14px 30px -10px rgba(27,28,23,.45), 0 0 0 0 rgba(220,239,0,.7); } 70%, 100% { box-shadow: 0 14px 30px -10px rgba(27,28,23,.45), 0 0 0 16px rgba(220,239,0,0); } }
.wa-chat__ico, .wa-chat__close { grid-area: 1 / 1; display: grid; place-items: center; transition: transform .45s var(--ease), opacity .3s; }
.wa-chat__ico svg { width: 30px; height: 30px; }
.wa-chat__close svg { width: 24px; height: 24px; }
.wa-chat__close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.wa-chat.is-open .wa-chat__ico { opacity: 0; transform: rotate(90deg) scale(.6); }
.wa-chat.is-open .wa-chat__close { opacity: 1; transform: none; }
.wa-chat__dot {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 999px; padding: 0 6px;
  background: var(--coral); color: var(--blanco); font-size: 12px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid var(--blanco); transform: scale(0); transition: transform .5s var(--ease);
}
.wa-chat.has-dot:not(.is-seen) .wa-chat__dot { transform: scale(1); }
.wa-chat__tip {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%; white-space: nowrap;
  background: var(--basalto); color: var(--blanco); font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 10px;
  opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .35s var(--ease); pointer-events: none;
}
@media (hover: hover) { .wa-chat:not(.is-open) .wa-chat__btn:hover .wa-chat__tip { opacity: 1; transform: none; } }

.wa-chat__panel {
  width: min(360px, calc(100vw - 32px)); border-radius: 22px; overflow: hidden; background: var(--blanco);
  box-shadow: 0 30px 70px -20px rgba(27, 28, 23, .45), 0 0 0 1px rgba(27, 28, 23, .06);
  transform-origin: 100% 100%; opacity: 0; transform: translateY(12px) scale(.94);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.wa-chat__panel.is-in { opacity: 1; transform: none; }
.wa-chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; background: var(--basalto); color: var(--blanco); }
.wa-chat__head img { width: 64px; height: auto; }
.wa-chat__head div { flex: 1; display: grid; line-height: 1.25; }
.wa-chat__head b { font-size: 15px; }
.wa-chat__head span { font-size: 12px; color: #BDB8A8; display: inline-flex; align-items: center; gap: 6px; }
.wa-chat__head i { width: 7px; height: 7px; border-radius: 50%; background: #2F9E5B; box-shadow: 0 0 0 3px rgba(47,158,91,.25); }
.wa-chat__x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: var(--blanco); cursor: pointer; display: grid; place-items: center; }
.wa-chat__x:hover { background: rgba(255,255,255,.2); }
.wa-chat__x svg { width: 16px; height: 16px; }
.wa-chat__body { padding: 18px; background: var(--arena-2); display: grid; gap: 12px; }
.wa-chat__msg {
  margin: 0; max-width: 90%; background: var(--blanco); padding: 12px 14px; border-radius: 4px 16px 16px 16px;
  font-size: 14.5px; line-height: 1.5; box-shadow: 0 1px 0 rgba(27,28,23,.06);
  animation: msgIn .5s var(--ease) both .15s;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.wa-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-chat__chips button {
  border: 1.5px solid var(--linea); background: var(--blanco); border-radius: 999px; padding: 7px 12px;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.wa-chat__chips button:hover { border-color: var(--basalto); }
.wa-chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--linea); }
.wa-chat__form textarea {
  flex: 1; resize: none; border: 1.5px solid var(--linea); border-radius: 16px; padding: 10px 14px;
  font: inherit; font-size: 14px; line-height: 1.4; color: var(--basalto); background: var(--blanco); max-height: 120px;
}
.wa-chat__form textarea:focus { outline: none; border-color: var(--basalto); }
.wa-chat__form button {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lima); color: var(--basalto); display: grid; place-items: center; transition: transform .3s var(--ease), background-color .2s;
}
.wa-chat__form button:hover { background: var(--lima-hover); transform: translateX(2px); }
.wa-chat__form button svg { width: 20px; height: 20px; }

/* deja libre la esquina del chat en los controles del slider */
@media (max-width: 1500px) { .hero__ui .wrap { padding-right: max(var(--gutter), 92px); } }

/* en móvil, la barra fija de producto ocupa el borde: el chat sube */
@media (max-width: 760px) {
  .has-sticky .wa-chat { transform: translateY(-88px); }
  .wa-chat__btn { width: 56px; height: 56px; }
}

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
