/* ==========================================================================
   JP MOTORS — ESTILOS
   Mobile-first. Colores y tipografía en :root.
   ========================================================================== */

:root {
  --black: #000;
  --surface: #0c100a;
  --surface-2: #141a11;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --white: #fff;
  --text: #e8ece5;
  --muted: #9aa294;
  --green: #7caa28;          /* verde JP (versión menos brillante del lima del logo) */
  --green-dark: #217b54;     /* verde oscuro del logo JP */
  --green-soft: rgba(124, 170, 40, .12);
  --green-glow: rgba(124, 170, 40, .4);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --hdr-h: 64px;
  --cut: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px));
}
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 400 1rem/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.skip {
  position: fixed; top: 0; left: 1rem; z-index: 200; transform: translateY(-200%);
  background: var(--green); color: #000; padding: .75rem 1rem; font-weight: 700;
}
.skip:focus { transform: translateY(calc(1rem + env(safe-area-inset-top, 0px))); }

/* ---------- Tipografía ---------- */
.h2 {
  font: 900 clamp(2.6rem, 11vw, 5.4rem)/.9 var(--f-display);
  text-transform: uppercase;
  letter-spacing: -.005em;
  color: var(--white);
  max-width: 16ch;
  text-wrap: balance;
}
.h3 { font: 800 1.75rem/1 var(--f-display); text-transform: uppercase; color: var(--white); }
.h4 { font: 800 1.2rem/1 var(--f-display); text-transform: uppercase; color: var(--white); letter-spacing: .03em; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2.6vw, 1.2rem); max-width: 42ch; margin-top: 1rem; }
.opt { color: var(--muted); font-weight: 400; }

/* ---------- Botones ---------- */
.btn {
  --clip: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .85rem 1.4rem;
  font: 800 1.05rem/1 var(--f-display); letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  border: 0; cursor: pointer;
  clip-path: var(--clip);
  transition: transform .2s var(--ease), background-color .2s, color .2s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { clip-path: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--green); color: #000; }
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); color: var(--green); }
.btn--lg { min-height: 58px; font-size: 1.15rem; padding-inline: 1.8rem; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; font-size: .95rem; padding: .7rem 1rem; }

/* ---------- Intro (splash + entrada del hero) ---------- */
.splash {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: #000; pointer-events: none;
  animation: splash .95s var(--ease) forwards;
}
.splash img { width: min(240px, 55vw); height: auto; animation: logoIn .5s var(--ease) both; }
@keyframes splash { 0%, 55% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes logoIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

.js .intro { opacity: 0; transform: translateY(22px); }
.js.is-ready .intro { animation: rise .7s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .intro--moto { transform: translateX(9%) scale(.96); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid, .hdr.is-open { background: #000; border-bottom-color: var(--line); }
.hdr__in { height: var(--hdr-h); display: flex; align-items: center; gap: .5rem; }
.hdr__logo { margin-right: auto; display: block; }
.hdr__logo img { height: 44px; width: auto; }
.hdr__wa, .hdr__burger {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--white);
}
.hdr__wa svg { width: 25px; height: 25px; color: var(--green); fill: currentColor; }
.hdr__burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s var(--ease); grid-area: 1 / 1; }
.hdr__burger span:first-child { transform: translateY(-4px); }
.hdr__burger span:last-child { transform: translateY(4px); }
.hdr__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.nav {
  position: fixed; left: 0; right: 0;
  top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px));
  height: calc(100dvh - var(--hdr-h) - env(safe-area-inset-top, 0px));
  background: #000; padding: 1.5rem var(--pad) calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 2rem;
  transform: translateX(100%); visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s .35s;
  overflow-y: auto;
}
.hdr.is-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.nav__list a {
  display: block; padding: .6rem 0;
  font: 800 2.4rem/1 var(--f-display); text-transform: uppercase; text-decoration: none; color: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav__list a:hover { color: var(--green); }

@media (min-width: 1024px) {
  :root { --hdr-h: 76px; }
  .hdr__burger, .hdr__wa { display: none; }
  .hdr__logo img { height: 46px; }
  .nav {
    position: static; height: auto; padding: 0; background: none;
    flex-direction: row; align-items: center; gap: 2rem;
    transform: none; visibility: visible; overflow: visible;
  }
  .nav__list { display: flex; gap: 1.75rem; }
  .nav__list a {
    font: 600 .95rem/1 var(--f-body); text-transform: none; border: 0; padding: .5rem 0;
    color: var(--text); position: relative;
  }
  .nav__list a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--green);
    transition: right .25s var(--ease);
  }
  .nav__list a:hover { color: var(--white); }
  .nav__list a:hover::after { right: 0; }
  .nav__cta { min-height: 44px; font-size: .95rem; padding: .7rem 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 1rem) 0 2.5rem;
  display: flex; align-items: center;
}
.hero__glow {
  position: absolute; z-index: -1; left: 50%; top: 52%;
  width: 140vw; height: 70vh; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(124, 170, 40, .16), rgba(124, 170, 40, .04) 55%, transparent 75%);
  opacity: .6;
}
.js.is-ready .hero__glow { animation: glow 1.3s var(--ease) .55s both; }
@keyframes glow { 0% { opacity: 0; } 35% { opacity: 1; filter: brightness(1.6); } 100% { opacity: .6; } }

.hero__grid {
  display: grid;
  grid-template-areas: "head" "viewer" "foot";
  gap: .25rem;
}
.hero__head { grid-area: head; }
.hero__viewer { grid-area: viewer; margin-inline: calc(var(--pad) * -1); overflow: hidden; }
.hero__foot { grid-area: foot; display: grid; gap: 1.25rem; }

.hero__title {
  font: 900 clamp(2.9rem, 13vw, 7rem)/.86 var(--f-display);
  text-transform: uppercase; color: var(--white); letter-spacing: -.01em;
}
.hero__title span { display: block; }
.hero__sub { color: var(--muted); font-size: 1rem; letter-spacing: .01em; }
.hero__ctas { display: grid; gap: .75rem; }

@media (min-width: 600px) {
  .hero__ctas { display: flex; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "head viewer" "foot viewer";
    column-gap: 2rem; row-gap: 2rem;
    align-items: center; width: 100%;
  }
  .hero__head { align-self: end; }
  .hero__foot { align-self: start; }
  .hero__viewer { margin: 0 calc(-1 * (var(--pad) + max(0px, (100vw - var(--wrap)) / 2))) 0 -1rem; }
  .hero__sub { font-size: 1.1rem; }
  .hero__title { font-size: clamp(3.6rem, 5.6vw, 6rem); }
}

/* ---------- Hero: motos rotando ---------- */
.bike { position: relative; padding: 2.6rem 0 4.6rem; }
.bike__stack {
  position: relative; z-index: 2;
  width: min(86%, 470px); margin-inline: auto; aspect-ratio: 5 / 4;
  touch-action: pan-y;
}
.bike__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .55s var(--ease); }
.bike__slide.is-on { opacity: 1; visibility: visible; }
.bike__img {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .85));
  transform: scale(.97); transition: transform .7s var(--ease);
  pointer-events: none;
}
.bike__slide.is-on .bike__img { transform: none; }
.bike__road {
  position: absolute; z-index: 1; left: 50%; top: 66%;
  width: 320%; height: 20%;
  transform: translate(-50%, -50%) rotate(-14deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 34px, transparent 34px 78px) center / 100% 2px no-repeat,
    linear-gradient(#141813, #0b0e0a);
  border-block: 2px solid rgba(124, 170, 40, .5);
  opacity: .85;
}
.bike__meta {
  position: relative; z-index: 3; text-align: center; margin-top: 1rem;
  display: grid; gap: .2rem;
}
.bike__name { font: 800 1rem/1.1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--white); }
.bike__frase { font-size: .92rem; color: var(--muted); }

/* Puntos de navegación */
.bike__bar { position: relative; z-index: 3; display: flex; justify-content: center; gap: .45rem; margin-top: 1.1rem; }
.bike__dot {
  width: 26px; height: 24px; padding: 10px 4px; box-sizing: content-box;
  background: none; border: 0; cursor: pointer; display: grid; align-items: center;
}
.bike__dot::before {
  content: ""; display: block; height: 3px; background: rgba(255, 255, 255, .22);
  transition: background-color .3s;
}
.bike__dot[aria-current="true"]::before { background: var(--green); }
.bike__dot:hover::before { background: rgba(255, 255, 255, .5); }

/* Detalles señalados */
.bike__co { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.co__dot {
  position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 3px rgba(0, 0, 0, .45);
  transform: scale(0); transition: transform .4s var(--ease); transition-delay: calc(var(--i) * 220ms);
}
.co__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--green); opacity: 0; }
.bike.is-on .bike__slide.is-on .co__dot { transform: scale(1); }
.bike.is-on .bike__slide.is-on .co__dot::after { animation: coPulse 2.6s var(--ease) infinite; animation-delay: calc(1s + var(--i) * 220ms); }
@keyframes coPulse { 0% { opacity: .9; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(1.7); } }

.co__line {
  position: absolute; width: 0; margin-left: -.75px;
  border-left: 1.5px dashed rgba(255, 255, 255, .7);
  transform: scaleY(0); transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 220ms + 130ms);
}
.co--up .co__line { transform-origin: bottom; }
.co--down .co__line { transform-origin: top; }
.bike.is-on .bike__slide.is-on .co__line { transform: scaleY(1); }

.co__txt {
  position: absolute; display: grid; gap: .1rem; white-space: nowrap;
  opacity: 0; translate: 0 8px;
  transition: opacity .4s var(--ease), translate .4s var(--ease);
  transition-delay: calc(var(--i) * 220ms + 400ms);
}
.co--up .co__txt { transform: translateY(-100%); padding-bottom: .15rem; }
.co--down .co__txt { padding-top: .15rem; }
.co--der .co__txt { margin-left: -1px; padding-left: .5rem; }
.co--izq .co__txt { transform: translateX(-100%); padding-right: .5rem; text-align: right; }
.co--up.co--izq .co__txt { transform: translate(-100%, -100%); }
.bike.is-on .bike__slide.is-on .co__txt { opacity: 1; translate: 0 0; }
.co__txt strong { font: 800 1rem/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
.co__txt span { font-size: .72rem; line-height: 1.2; color: var(--white); }
.co--desk { display: none; }
@media (min-width: 700px) {
  .co__txt strong { font-size: 1.3rem; }
  .co__txt span { font-size: .85rem; }
}
@media (min-width: 1200px) { .co--desk { display: block; } }
@media (min-width: 1024px) {
  .bike { padding: 3.5rem 0 4.5rem; }
  .bike__stack { width: min(70%, 460px); }
}

/* ---------- Visor 360 (detalle de moto, cuando haya fotos) ---------- */
.v360 { position: relative; user-select: none; -webkit-user-select: none; }
.v360__stage {
  position: relative; aspect-ratio: 8 / 5;
  cursor: grab; touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.v360.is-dragging .v360__stage { cursor: grabbing; }
.v360__img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .8));
}
.v360__floor {
  position: absolute; left: 6%; right: 6%; bottom: 0; height: 26%;
  border-radius: 50%;
  border: 1px solid rgba(124, 170, 40, .28);
  background: radial-gradient(closest-side, rgba(124, 170, 40, .22), rgba(124, 170, 40, .05) 60%, transparent);
}
.v360__floor::before {
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .12);
}
.v360__deg {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font: 700 .85rem/1 var(--f-display); letter-spacing: .08em; color: var(--green);
  font-variant-numeric: tabular-nums; min-width: 3.2ch;
}
.v360__status {
  width: fit-content; margin: .6rem auto 0;
  font-size: .72rem; color: var(--muted);
  border: 1px dashed var(--line-2); padding: .2rem .6rem;
}
.v360__name {
  text-align: center; margin-top: .6rem;
  font: 800 .95rem/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: var(--white);
}
.v360__hint {
  text-align: center; margin-top: .5rem;
  font: 700 .85rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--green);
  transition: opacity .4s;
}
.v360__arrows { display: inline-block; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.v360.is-touched .v360__hint { opacity: .35; }
.v360.is-touched .v360__arrows { animation: none; }

/* Indicadores técnicos */
.v360__hs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hs { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; opacity: 0; transition: opacity .3s var(--ease); }
.v360.hs-ready .hs.is-on { opacity: 1; }
.v360.hs-intro .hs { transition-delay: calc(var(--i) * 140ms); }
.hs__dot {
  position: absolute; width: 12px; height: 12px; left: -6px; top: -6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(124, 170, 40, .2), 0 0 18px var(--green-glow);
}
.hs__line { position: absolute; left: -.5px; width: 1px; height: 30px; }
.hs__label {
  position: absolute; left: 0; transform: translateX(-50%);
  white-space: nowrap;
  font: 800 .72rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--white);
  background: rgba(0, 0, 0, .78); border: 1px solid rgba(124, 170, 40, .55);
  padding: .38rem .55rem;
}
.hs--arriba .hs__line { bottom: 6px; background: linear-gradient(to top, var(--green), rgba(124, 170, 40, .1)); }
.hs--arriba .hs__label { bottom: 36px; }
.hs--abajo .hs__line { top: 6px; background: linear-gradient(to bottom, var(--green), rgba(124, 170, 40, .1)); }
.hs--abajo .hs__label { top: 36px; }
@media (min-width: 700px) {
  .hs__label { font-size: .82rem; padding: .45rem .7rem; }
  .hs__line { height: 42px; }
  .hs--arriba .hs__label { bottom: 48px; }
  .hs--abajo .hs__label { top: 48px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(4.5rem, 12vw, 8.5rem); }
.section--tint { background: var(--surface); }
.sec-head { margin-bottom: clamp(2rem, 6vw, 3.5rem); }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Motos ---------- */
.motos { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .motos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .motos { grid-template-columns: repeat(3, 1fr); } }

.moto {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s;
}
.moto:hover { border-color: rgba(124, 170, 40, .45); }
.moto__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    radial-gradient(58% 46% at 50% 56%, rgba(255, 255, 255, .11), transparent 72%),
    radial-gradient(60% 50% at 50% 74%, rgba(124, 170, 40, .14), transparent 70%),
    #050605;
  border: 0; padding: 0; cursor: pointer; width: 100%;
}
.moto__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .5s var(--ease); }
.moto:hover .moto__media img { transform: scale(1.04); }
.moto__tag {
  position: absolute; top: .9rem; left: .9rem;
  font-size: .78rem; font-weight: 600; padding: .3rem .6rem;
  background: rgba(0, 0, 0, .7); border: 1px solid var(--line-2); color: var(--text);
}
.moto__tag--ok { border-color: rgba(124, 170, 40, .6); color: var(--green); }
.moto__tag--360 { left: auto; right: .9rem; color: var(--green); border-color: rgba(124, 170, 40, .6); }
.moto__body { padding: 1.4rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.moto__brand { color: var(--muted); font-size: .9rem; }
.moto__name { font: 900 2.1rem/.95 var(--f-display); text-transform: uppercase; color: var(--white); }
.moto__meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { font: 700 .85rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; padding: .4rem .6rem; background: var(--surface-2); color: var(--text); }
.moto__desc { color: var(--muted); }
.moto__price { margin-top: auto; padding-top: .75rem; font: 800 1.5rem/1 var(--f-display); color: var(--white); letter-spacing: .02em; }
.moto__actions { display: grid; gap: .6rem; margin-top: .9rem; }
@media (min-width: 420px) { .moto__actions { grid-template-columns: 1fr 1fr; } }

.moto__colors { font-size: .9rem; color: var(--text); }
.moto__colors span { color: var(--muted); margin-right: .25rem; }
.det__colors { margin: 0 0 1.25rem; color: var(--white); }
.det__colors span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: .2rem; }
.filtros { display: flex; gap: .5rem; overflow-x: auto; margin: -1rem calc(var(--pad) * -1) 1.75rem; padding: 0 var(--pad) .25rem; scrollbar-width: none; }
.filtro {
  flex: none; min-height: 44px; padding: .55rem 1.1rem; cursor: pointer;
  font: 800 .95rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-2); color: var(--text);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filtro:hover { border-color: var(--green); }
.filtro[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #000; }
@media (min-width: 1024px) { .filtros { margin-inline: 0; padding-inline: 0; } }
.moto--otra {
  justify-content: center; padding: 2rem 1.5rem; gap: 1rem;
  background: transparent; border-style: dashed; border-color: var(--line-2);
}
.moto--otra p { color: var(--muted); }

/* ---------- Modal ---------- */
.modal {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: #000; color: var(--text);
}
.modal::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: fixed; z-index: 5;
  top: calc(.75rem + env(safe-area-inset-top, 0px)); right: .75rem;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .7); border: 1px solid var(--line-2); color: var(--white); cursor: pointer;
}
.modal__close svg { width: 22px; height: 22px; }
.modal__body {
  display: grid;
  padding: calc(4rem + env(safe-area-inset-top, 0px)) var(--pad) calc(2rem + env(safe-area-inset-bottom, 0px));
  gap: 2rem;
}
@media (min-width: 900px) {
  .modal { max-width: min(1180px, 94vw); height: auto; max-height: 92vh; margin: auto; border: 1px solid var(--line); }
  .modal__close { position: absolute; top: 1rem; right: 1rem; }
  .modal__body { grid-template-columns: 1.2fr 1fr; padding: 3rem; align-items: start; }
}
.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }
.tab {
  min-height: 44px; padding: .5rem 1rem; cursor: pointer;
  font: 800 .95rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase;
  background: none; border: 1px solid var(--line-2); color: var(--muted);
}
.tab[aria-selected="true"] { border-color: var(--green); color: var(--green); }
.gal__main {
  aspect-ratio: 4 / 3; width: 100%; object-fit: contain;
  background:
    radial-gradient(58% 46% at 50% 56%, rgba(255, 255, 255, .11), transparent 72%),
    radial-gradient(60% 50% at 50% 74%, rgba(124, 170, 40, .12), transparent 70%),
    #050605;
}
.gal__thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.gal__thumb { flex: 0 0 76px; height: 58px; padding: 0; border: 1px solid var(--line); background: #050605; cursor: pointer; }
.gal__thumb[aria-current="true"] { border-color: var(--green); }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.det__brand { color: var(--muted); }
.det__name { font: 900 clamp(2.8rem, 10vw, 4.2rem)/.9 var(--f-display); text-transform: uppercase; color: var(--white); margin: .25rem 0 1rem; }
.det__prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.25rem 0; }
.det__prices div { background: #000; padding: 1rem; }
.det__prices span { display: block; color: var(--muted); font-size: .85rem; }
.det__prices strong { font: 800 1.5rem/1.1 var(--f-display); color: var(--white); }
.det__feats { display: grid; gap: .5rem; margin: 1rem 0 1.25rem; }
.det__feats li { padding-left: 1.2rem; position: relative; }
.det__feats li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--green); }
.det__fin { color: var(--muted); font-size: .95rem; border-left: 2px solid var(--green); padding-left: .9rem; margin-bottom: 1.5rem; }
.det__actions { display: grid; gap: .7rem; }

/* ---------- Financiamiento ---------- */
.section--fin { background: linear-gradient(#000, var(--surface) 40%, #000); }
.fin-foto { position: relative; margin-bottom: 2.5rem; border: 1px solid var(--line); overflow: hidden; }
.fin-foto img { width: 100%; height: auto; display: block; }
.fin-foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.25) 38%, transparent 62%);
}
.fin-foto__pie {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 1.25rem; color: var(--white);
  font: 800 1.05rem/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
}
@media (min-width: 720px) {
  .fin-foto { max-height: 380px; display: grid; place-items: center; }
  .fin-foto img { object-fit: cover; max-height: 380px; }
  .fin-foto__pie { font-size: 1.4rem; padding: 2rem; }
}
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 3rem; counter-reset: s; }
.step { background: #000; padding: 1.75rem 1.5rem; position: relative; }
.step__n { display: block; font: 900 3.5rem/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--green); margin-bottom: .75rem; }
.step__t { font: 800 1.6rem/1 var(--f-display); text-transform: uppercase; color: var(--white); margin-bottom: .5rem; }
.step p { color: var(--muted); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.calc { display: grid; border: 1px solid var(--line); background: #000; }
.calc__form { padding: 1.5rem; display: grid; gap: 1.1rem; }
.calc__form .h3 { margin-bottom: .25rem; }
.calc__out {
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--surface-2); border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .calc { grid-template-columns: 1.1fr 1fr; }
  .calc__form, .calc__out { padding: 2.25rem; }
  .calc__out { border-top: 0; border-left: 1px solid var(--line); justify-content: center; }
}
.calc__row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 1rem; color: var(--muted); }
.calc__row strong { font: 800 1.4rem/1 var(--f-display); color: var(--white); white-space: nowrap; }
.calc__main span { display: block; color: var(--muted); }
.calc__main strong { display: block; font: 900 clamp(3rem, 12vw, 4.6rem)/1 var(--f-display); color: var(--green); margin: .35rem 0; font-variant-numeric: tabular-nums; }
.calc__main small { display: block; color: var(--muted); font-size: .88rem; }
.calc__disc { font-size: .85rem; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: .8rem; }

.extra { margin-top: 2.5rem; display: grid; gap: 1rem; }
.extra__t { font: 800 1.3rem/1 var(--f-display); text-transform: uppercase; color: var(--white); letter-spacing: .03em; }
.extra__list { display: grid; gap: .6rem; }
.extra__list li { padding: .9rem 1rem; border: 1px solid var(--line); color: var(--text); }
@media (min-width: 860px) { .extra__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Campos ---------- */
.field { display: grid; gap: .45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--white); padding: 0; margin-bottom: .1rem; }
.field input, .field select, .field textarea, .money {
  width: 100%; min-height: 54px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 0;
  padding: .8rem 1rem; font-size: 1rem; color: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--green) 50%), linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .money:focus-within {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft);
}
.money { display: flex; align-items: center; gap: .5rem; padding-block: 0; }
.money > span { color: var(--muted); font-weight: 600; }
.money input { border: 0; background: none; padding: 0; min-height: 52px; box-shadow: none !important; font-size: 1.15rem; font-weight: 600; }
.field__note { font-size: .85rem; color: var(--muted); min-height: 1em; }
.field__note.is-warn, .field__err { color: #ffb4a8; font-size: .88rem; }
.field__err:empty { display: none; }
.field [aria-invalid="true"] { border-color: #ff8a78; }

.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label, .pill { position: relative; cursor: pointer; }
.seg input, .pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span, .pill span {
  display: grid; place-items: center; min-height: 48px; min-width: 64px; padding: .5rem 1rem;
  border: 1px solid var(--line-2); background: var(--surface-2);
  font: 800 1rem/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--text);
  transition: background-color .2s, color .2s, border-color .2s;
}
.seg input:checked + span, .pill input:checked + span { background: var(--green); border-color: var(--green); color: #000; }
.seg input:focus-visible + span, .pill input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Formulario ---------- */
.section--form { border-top: 1px solid var(--line); }
.lead-form { display: grid; gap: 1.25rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 760px) {
  .lead-form { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .field--full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .form-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
  .form-wrap .sec-head { position: sticky; top: calc(var(--hdr-h) + 2rem); }
  .form-ok { grid-column: 2; }
}
.form-ok { border: 1px solid var(--green); padding: 2rem 1.5rem; display: grid; gap: 1rem; background: var(--surface); }
.form-ok h3 { font: 900 2.2rem/1 var(--f-display); text-transform: uppercase; color: var(--green); }
.form-ok p { color: var(--text); }

/* ---------- Por qué ---------- */
.why { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why__item { background: #000; padding: 2rem 1.5rem; position: relative; display: grid; gap: .6rem; align-content: start; }
.why__ic { width: 42px; height: 42px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .75rem; }
.why__n { position: absolute; top: 1.6rem; right: 1.5rem; font: 800 .95rem/1 var(--f-display); color: var(--muted); letter-spacing: .1em; }
.why__t { font: 800 1.6rem/1 var(--f-display); text-transform: uppercase; color: var(--white); }
.why__item p { color: var(--muted); }
@media (min-width: 640px) { .why { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .why { grid-template-columns: repeat(4, 1fr); } .why__item { padding: 2.5rem 1.75rem 3rem; } }

/* ---------- Testimonios ---------- */
.testis {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.testi { scroll-snap-align: start; background: #000; border: 1px solid var(--line); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; position: relative; }
.testi__stars { color: var(--green); letter-spacing: .2em; font-size: 1.05rem; }
.testi__q { font-size: 1.15rem; line-height: 1.5; color: var(--white); flex: 1; }
.testi__who { display: flex; align-items: center; gap: .8rem; }
.testi__av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font: 800 1.1rem/1 var(--f-display); color: var(--green); flex: none; }
.testi__who strong { display: block; color: var(--white); }
.testi__who span { font-size: .88rem; color: var(--muted); }
.testi__ej { position: absolute; top: 1rem; right: 1rem; font-size: .72rem; padding: .2rem .5rem; border: 1px dashed var(--line-2); color: var(--muted); }
@media (min-width: 1024px) {
  .testis { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
}

/* ---------- Videos ---------- */
.vids {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(66%, 280px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.vid { scroll-snap-align: start; display: grid; gap: .75rem; }
.vid__frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  background: linear-gradient(160deg, #10150d, #000 60%); border: 1px solid var(--line);
}
.vid__frame video, .vid__frame img { width: 100%; height: 100%; object-fit: cover; }
.vid__play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--white);
}
.vid__play span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); border: 1.5px solid var(--green); }
.vid__play svg { width: 22px; height: 22px; fill: var(--green); margin-left: 3px; }
.vid__ph { position: absolute; inset: auto 1rem 1rem; color: var(--muted); font-size: .85rem; }
.vid__t { font: 800 1.15rem/1.1 var(--f-display); text-transform: uppercase; color: var(--white); letter-spacing: .03em; }
@media (min-width: 1024px) {
  .vids { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
}

/* ---------- CTA final ---------- */
.final { position: relative; overflow: hidden; padding-block: clamp(6rem, 18vw, 12rem); text-align: center; border-block: 1px solid var(--line); }
.final__beam {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--green) 50%, transparent);
  box-shadow: 0 0 40px 8px rgba(124, 170, 40, .25);
  opacity: .5;
}
.final__in { position: relative; display: grid; justify-items: center; gap: .5rem; }
.final__t {
  font: 900 clamp(3rem, 13.5vw, 10rem)/.85 var(--f-display); text-transform: uppercase; color: var(--white);
  text-shadow: 0 0 60px #000, 0 0 20px #000; max-width: 12ch; text-wrap: balance;
}
.final .lead { margin-inline: auto; }
.final__ctas { display: grid; gap: .75rem; margin-top: 1.75rem; width: 100%; max-width: 420px; }
@media (min-width: 600px) { .final__ctas { display: flex; justify-content: center; max-width: none; } }

/* ---------- Ubicación ---------- */
.loc { display: grid; gap: 2rem; }
.loc__info { display: grid; gap: 1.5rem; align-content: start; }
.loc__addr { font-style: normal; font-size: 1.15rem; color: var(--white); line-height: 1.5; }
.loc__hours dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; margin: .75rem 0 0; }
.loc__hours dt { color: var(--muted); }
.loc__hours dd { margin: 0; color: var(--white); }
.loc__btns { display: grid; gap: .6rem; }
.loc__map { border: 1px solid var(--line); min-height: 320px; background: var(--surface); }
.loc__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(1) invert(.9) contrast(.9) brightness(.9); }
@media (min-width: 600px) { .loc__btns { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) { .loc { grid-template-columns: 1fr 1.3fr; gap: 4rem; } .loc__map, .loc__map iframe { min-height: 440px; } }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--surface); }
.ftr__top {
  display: grid; gap: 2.5rem;
  padding-top: clamp(3rem, 8vw, 4.5rem); padding-bottom: 2.5rem;
}
.ftr__brand img { height: 42px; width: auto; }
.ftr__claim { margin-top: .9rem; color: var(--muted); max-width: 26ch; }
.ftr__t {
  font: 800 1.05rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem;
}
.ftr__col { display: grid; gap: .1rem; align-content: start; justify-items: start; }
.ftr__links { display: grid; gap: .1rem; }
.ftr a { text-decoration: none; color: var(--muted); }
.ftr a.btn--primary { color: #000; }
.ftr a.btn:hover { color: #000; }
.ftr__links a { display: inline-block; padding: .4rem 0; }
.ftr a:hover { color: var(--green); }
.ftr__addr { font-style: normal; color: var(--muted); line-height: 1.7; }
.ftr__hours { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 1rem 0 0; }
.ftr__hours dt { color: var(--muted); }
.ftr__hours dd { margin: 0; color: var(--text); }
.ftr__note { margin-top: .8rem; color: var(--muted); font-size: .9rem; max-width: 26ch; }

.ftr__social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.ftr__social:empty { display: none; }
.ftr__social a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .25s, color .25s, background-color .25s, transform .25s var(--ease);
}
.ftr__social a:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); transform: translateY(-2px); }
.ftr__social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.ftr__bottom {
  display: grid; gap: .5rem;
  padding: 1.5rem 0 calc(7rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}
.ftr__copy { color: var(--text); font-size: .9rem; }
.ftr__legal { color: var(--muted); font-size: .82rem; max-width: 60ch; }

@media (min-width: 720px) { .ftr__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .ftr__top { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 3rem; }
  .ftr__bottom { grid-template-columns: auto 1fr; align-items: baseline; gap: 2rem; padding-bottom: 2.5rem; }
  .ftr__legal { text-align: right; }
}

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed; z-index: 40;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
}
.fab__label {
  background: var(--white); color: #000; font-weight: 700; font-size: .9rem;
  padding: .6rem .9rem; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transition: opacity .3s, transform .3s var(--ease);
}
@media (max-width: 767px) { .fab__label { display: none; } }
.fab.is-compact .fab__label { opacity: 0; transform: translateX(10px); pointer-events: none; }
.fab:hover .fab__label, .fab:focus-visible .fab__label { opacity: 1; transform: none; }
.fab__btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 24px rgba(124, 170, 40, .35);
  transition: transform .2s var(--ease);
}
.fab:hover .fab__btn { transform: scale(1.06); }
.fab__btn svg { width: 30px; height: 30px; fill: currentColor; }
.fab__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--green);
  animation: ring 2.2s var(--ease) 1.8s 3;
  opacity: 0;
}
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash { display: none; }
  .js .intro, .js [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js.is-ready .hero__glow { animation: none; }
  .v360__arrows, .fab__btn::after, .co__dot::after { animation: none !important; }
  .co__dot, .co__line, .co__txt { transition: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
