/* ==========================================================
   EMCARS — estilos compartidos
   Dirección: vitrina editorial clara. El amarillo de la placa
   colombiana es el acento de marca; tinta azul noche para texto.
   ========================================================== */

:root {
  --paper: oklch(97.2% 0.008 85);
  --paper-2: oklch(94.5% 0.012 85);
  --ink: oklch(23% 0.035 258);
  --ink-2: oklch(35% 0.03 258);
  --muted: oklch(50% 0.02 258);
  --line: oklch(87% 0.012 85);
  --plate: oklch(87% 0.165 95);
  --plate-deep: oklch(78% 0.16 88);
  --plate-ink: oklch(20% 0.02 90);
  --ok: oklch(55% 0.13 155);
  --wa: oklch(62% 0.15 150);

  --f-display: 'Archivo', 'Arial Narrow', sans-serif;
  --f-body: 'Hanken Grotesk', system-ui, sans-serif;

  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 6px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

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

/* ---------- tipografía ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
}
.h2 {
  font-family: var(--f-display);
  font-stretch: 108%;
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--f-display);
  font-stretch: 90%;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--plate-deep); }
.lead { font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem); color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

/* ---------- placa colombiana (elemento de marca) ---------- */
.plate {
  --pw: 1;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--plate);
  color: var(--plate-ink);
  border: 2px solid var(--plate-ink);
  border-radius: 5px;
  padding: 3px 12px 2px;
  font-family: var(--f-display);
  font-stretch: 80%;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3px oklch(20% 0.02 90 / 0.25);
  white-space: nowrap;
}
.plate__main { font-size: calc(1.25rem * var(--pw)); letter-spacing: 0.04em; }
.plate__city { font-size: calc(0.52rem * var(--pw)); letter-spacing: 0.3em; font-weight: 700; margin-top: 2px; }

/* ---------- botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--plate { --bg: var(--plate); --fg: var(--plate-ink); box-shadow: inset 0 0 0 2px var(--plate-ink); }
.btn--plate:hover { --bg: var(--plate-deep); }
.btn--wa { --bg: var(--wa); --fg: oklch(99% 0.01 150); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn svg { width: 20px; height: 20px; flex: none; }
.link-arrow {
  font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow span { transition: transform .25s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__word {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1;
}
.logo__tag {
  background: var(--plate); color: var(--plate-ink);
  border: 1.5px solid var(--plate-ink); border-radius: 3px;
  font-family: var(--f-display); font-stretch: 80%; font-weight: 800;
  font-size: 0.62rem; letter-spacing: 0.18em; padding: 3px 5px 2px;
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 8px 12px; color: var(--ink-2); border-radius: var(--radius);
  transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  background: var(--plate-deep); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }
.header__cta { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.menu-btn { display: none; }

/* ---------- secciones a pantalla completa (desktop) ---------- */
.screen {
  position: relative;
  padding-block: clamp(28px, 5svh, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 900px) and (min-height: 600px) {
  .screen { min-height: calc(100svh - var(--header-h)); }
  .screen--hero { min-height: 100svh; padding-top: calc(var(--header-h) + 3svh); }
}
.screen--alt { background: var(--paper-2); }
.screen--ink { background: var(--ink); color: var(--paper); }
.screen--ink .eyebrow { color: oklch(78% 0.02 258); }
.screen--ink .lead { color: oklch(84% 0.02 258); }

.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(18px, 3.5svh, 40px); }

/* revelado al entrar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__title { font-size: clamp(3rem, 1.4rem + 6.2vw, 7.2rem); }
.hero__title em { font-style: normal; position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ''; position: absolute; left: -0.04em; right: -0.04em; bottom: 0.06em; height: 0.26em;
  background: var(--plate); z-index: -1; transform-origin: left; transform: scaleX(var(--mark, 0));
  transition: transform 1s var(--ease-out) .55s;
}
.is-loaded .hero__title em::after { --mark: 1; }
.hero__title em { z-index: 0; isolation: isolate; }
.hero__lead { margin: clamp(16px, 3svh, 28px) 0 clamp(20px, 4svh, 36px); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { position: relative; }
.hero__photo {
  width: 100%; height: clamp(260px, 62svh, 640px); object-fit: cover;
  border-radius: var(--radius);
  clip-path: inset(0 0 0 0 round var(--radius));
}
.hero__tag {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: clamp(18px, 5svh, 44px);
  background: var(--paper); padding: 14px 18px 14px 14px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px oklch(23% 0.035 258 / 0.35);
  transition: transform .3s var(--ease-out);
}
.hero__tag:hover { transform: translateY(-3px); }
.hero__tag small { display: block; color: var(--muted); font-size: 0.8rem; }
.hero__tag strong { display: block; font-size: 1rem; }
.hero__strip {
  margin-top: clamp(20px, 5svh, 56px);
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  border-top: 1px solid var(--line); padding-top: 16px;
  font-size: 0.92rem; color: var(--ink-2);
}
.hero__strip b { color: var(--ink); font-weight: 700; }

/* animación de entrada del hero */
.load { opacity: 0; transform: translateY(22px); }
.is-loaded .load { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.hero__media.load { transform: translateY(0) scale(1.03); }
.is-loaded .hero__media.load { transform: none; transition-duration: 1.4s; }

/* ---------- CARROS en vitrina (index) ---------- */
.lot {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(14px, 1.6vw, 24px);
  height: clamp(460px, calc(100svh - var(--header-h) - 190px), 760px);
}
.lot__list { display: grid; grid-template-rows: repeat(3, 1fr); gap: clamp(10px, 1.4svh, 16px); min-height: 0; }

.car {
  position: relative; display: grid; text-decoration: none; min-height: 0;
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .3s, transform .35s var(--ease-out);
}
.car:hover { box-shadow: 0 0 0 1px var(--ink-2), 0 22px 40px -26px oklch(23% 0.035 258 / 0.45); transform: translateY(-2px); }
.car__img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.car:hover .car__img { transform: scale(1.035); }
.car__fig { margin: 0; overflow: hidden; min-height: 0; background: var(--paper-2); }
.car__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.car__meta { font-size: 0.82rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.car__meta span + span::before { content: '·'; margin-right: 10px; }
.car__name { font-family: var(--f-display); font-stretch: 100%; font-weight: 700; font-size: 1.08rem; line-height: 1.15; margin: 0; }
.car__ver { color: var(--ink-2); font-size: 0.9rem; }
.car__price { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; margin-top: auto; }
.car__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--ink); color: var(--paper); font-size: 0.74rem; font-weight: 600;
  padding: 5px 9px; border-radius: 3px; letter-spacing: 0.02em;
}

/* tarjeta destacada: foto grande + datos abajo */
.car--feature { grid-template-rows: 1fr auto; }
.car--feature .car__body { padding: 18px 22px 20px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 20px; }
.car--feature .car__name { font-size: clamp(1.4rem, 1rem + 1vw, 2rem); font-stretch: 110%; font-weight: 800; }
.car--feature .car__price { font-size: clamp(1.5rem, 1rem + 1vw, 2rem); grid-row: 1 / span 3; grid-column: 2; align-self: end; text-align: right; }
.car--feature .car__price small { display: block; font-family: var(--f-body); font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* tarjetas en lista: foto a la izquierda */
.car--row { grid-template-columns: minmax(120px, 44%) 1fr; }
.car--row .car__badge { display: none; }
.car--row .plate { --pw: 0.72; align-self: flex-start; margin-top: 4px; }

/* ---------- NOSOTROS ---------- */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.story__title { font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5.6rem); }
.story__text p { margin: 0 0 14px; max-width: 52ch; color: var(--ink-2); }
.story__title + p { margin-top: clamp(16px, 3svh, 28px); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 clamp(14px, 3svh, 30px) 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -7px; top: 0.45em; width: 12px; height: 12px;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 50%;
}
.timeline li:last-child::before { background: var(--plate); }
.timeline b { font-family: var(--f-display); font-stretch: 110%; font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); display: block; line-height: 1.1; }
.timeline span { color: var(--ink-2); display: block; max-width: 42ch; }
.promise {
  margin-top: clamp(18px, 4svh, 40px);
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--paper); box-shadow: 0 0 0 1px var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
}
.promise svg { width: 26px; height: 26px; color: var(--ok); }
.promise p { margin: 0; font-size: 0.96rem; }
.promise strong { display: block; margin-bottom: 2px; }

/* ---------- SERVICIOS ---------- */
.services { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 48px); counter-reset: svc; }
.svc-list li {
  counter-increment: svc; border-top: 1px solid var(--line);
  padding: clamp(12px, 2.2svh, 22px) 0 clamp(12px, 2.4svh, 24px);
  display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 8px;
}
.svc-list li::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--f-display); font-stretch: 80%; font-weight: 700; color: var(--muted); font-size: 0.85rem;
  grid-row: span 2; padding-top: 0.2em;
}
.svc-list h3 { margin: 0; font-family: var(--f-display); font-stretch: 105%; font-weight: 700; font-size: 1.15rem; }
.svc-list p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* ---------- TODO EL PAÍS ---------- */
.country { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(16px, 3svh, 28px); }
.cities span {
  font-family: var(--f-display); font-stretch: 95%; font-weight: 600; font-size: 0.95rem;
  padding: 7px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px oklch(50% 0.03 258);
}
.cities span.is-home { background: var(--plate); color: var(--plate-ink); box-shadow: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li {
  display: grid; grid-template-columns: 3rem 1fr; gap: 16px; align-items: baseline;
  padding: clamp(12px, 2.6svh, 22px) 0; border-bottom: 1px solid oklch(40% 0.03 258);
}
.steps li:first-child { border-top: 1px solid oklch(40% 0.03 258); }
.steps b { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 2rem; color: var(--plate); line-height: 1; }
.steps h3 { margin: 0 0 2px; font-size: 1.1rem; font-weight: 700; }
.steps p { margin: 0; color: oklch(80% 0.02 258); font-size: 0.95rem; }
.big-share { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(2.8rem, 1.6rem + 4vw, 5.4rem); line-height: 0.95; margin: 0; }
.big-share span { color: var(--plate); }

/* ---------- FINANCIACIÓN / simulador ---------- */
.finance { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.banks { display: flex; gap: 10px; flex-wrap: wrap; margin: clamp(16px, 3svh, 28px) 0 12px; }
.banks span { font-weight: 700; padding: 10px 14px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.fine { font-size: 0.85rem; color: var(--muted); max-width: 52ch; }

.sim {
  background: var(--paper); border-radius: 10px; padding: clamp(18px, 3svh, 30px) clamp(18px, 2.4vw, 32px);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px oklch(23% 0.035 258 / 0.45);
  display: grid; gap: clamp(12px, 2.2svh, 20px);
}
.sim__row { display: grid; gap: 8px; }
.sim__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 0.92rem; }
.sim__label output { font-family: var(--f-display); font-weight: 700; font-size: 1rem; }
.sim select, .field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.sim select:focus, .field :is(input, select, textarea):focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px oklch(87% 0.165 95 / 0.6); }
.sim input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.seg button {
  min-height: 40px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius);
  font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.seg button:hover { border-color: var(--ink-2); }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sim__out { border-top: 1px dashed var(--line); padding-top: clamp(12px, 2svh, 18px); display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.sim__out small { display: block; color: var(--muted); font-size: 0.85rem; }
.sim__fee { font-family: var(--f-display); font-stretch: 105%; font-weight: 800; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- CONTACTO ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(16px, 3svh, 28px); }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.88rem; }
.field textarea { min-height: 88px; resize: vertical; }
.field .err { color: oklch(52% 0.19 27); font-size: 0.82rem; min-height: 0; }
.form .btn { justify-self: start; grid-column: 1 / -1; white-space: nowrap; }
.map {
  position: relative; border-radius: 10px; overflow: hidden; min-height: 280px;
  box-shadow: 0 0 0 1px var(--line); background: var(--paper-2);
  display: grid; grid-template-rows: 1fr auto;
}
.map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; filter: grayscale(0.35) contrast(1.05); }
.map__info { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 20px; padding: 16px 18px; background: var(--paper); font-size: 0.92rem; }
.map__info b { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.map__info a { text-decoration: none; font-weight: 600; }
.map__info a:hover { text-decoration: underline; }

.footer { border-top: 1px solid var(--line); margin-top: clamp(20px, 4svh, 40px); padding-top: 16px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.footer a { color: var(--ink-2); }
.socials { display: flex; gap: 14px; }

/* ---------- botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: white;
  box-shadow: 0 12px 28px -10px oklch(40% 0.12 150 / 0.7);
  transition: transform .25s var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* ==========================================================
   PÁGINA DE CARRO (ficha tipo marketplace)
   ========================================================== */
.page { padding-top: calc(var(--header-h) + 18px); padding-bottom: 64px; }
.crumbs { font-size: 0.86rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: 0.5; }

.pdp { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.panel { background: var(--paper); border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }

/* galería */
.gallery { padding: 14px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow: auto; scrollbar-width: none; }
.thumbs button {
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 5px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--line); aspect-ratio: 1; flex: none; opacity: 0.7;
  transition: box-shadow .2s, opacity .2s;
}
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current=true] { box-shadow: 0 0 0 2px var(--ink); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.stage { position: relative; aspect-ratio: 16 / 10.5; border-radius: 6px; overflow: hidden; background: var(--paper-2); touch-action: pan-y; }
.stage img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity .35s var(--ease-out); }
.stage img.is-swapping { opacity: 0; }
.stage:fullscreen { background: var(--ink); aspect-ratio: auto; }
.stage:fullscreen img { object-fit: contain; cursor: zoom-out; }
.stage__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: color-mix(in oklch, var(--paper) 90%, transparent); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 4px 14px -6px oklch(23% 0.035 258 / 0.4);
  opacity: 0; transition: opacity .25s, transform .2s var(--ease-out);
}
.stage:hover .stage__nav, .stage__nav:focus-visible { opacity: 1; }
.stage__nav:active { transform: scale(0.94); }
.stage__nav--prev { left: 12px; } .stage__nav--next { right: 12px; }
.stage__count { position: absolute; right: 12px; bottom: 12px; background: oklch(23% 0.035 258 / 0.8); color: var(--paper); font-size: 0.8rem; padding: 4px 9px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.stage__credit { position: absolute; left: 12px; bottom: 12px; background: oklch(97% 0.008 85 / 0.85); color: var(--ink-2); font-size: 0.72rem; padding: 3px 8px; border-radius: 3px; }

/* caja de compra */
.buy { padding: 22px 22px 24px; position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 14px; }
.buy__meta { font-size: 0.86rem; color: var(--muted); margin: 0; }
.buy__title { font-family: var(--f-display); font-stretch: 105%; font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.85rem); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.buy__ver { color: var(--ink-2); margin: -8px 0 0; }
.buy__price { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1; margin: 4px 0 0; }
.buy__fee { margin: 0; font-size: 0.95rem; }
.buy__fee b { color: var(--ok); }
.buy__fee a { color: var(--ink-2); font-size: 0.88rem; }
.buy__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0; padding: 12px 0; border-block: 1px solid var(--line); font-size: 0.9rem; }
.buy__facts div { display: flex; gap: 8px; align-items: center; }
.buy__facts svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.buy .btn { width: 100%; }
.seller { display: flex; gap: 12px; align-items: center; font-size: 0.88rem; color: var(--ink-2); padding-top: 4px; }
.seller b { color: var(--ink); display: block; font-size: 0.95rem; }
.seller__logo { width: 44px; height: 44px; border-radius: 8px; background: var(--ink); color: var(--plate); display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-stretch: 125%; font-size: 0.8rem; flex: none; }

.pdp__main { display: grid; gap: clamp(20px, 3vw, 32px); min-width: 0; }
.block { padding: clamp(18px, 2.4vw, 28px); }
.block h2 { font-family: var(--f-display); font-stretch: 105%; font-weight: 800; font-size: 1.35rem; margin: 0 0 16px; }
.specs-hi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.specs-hi div { background: var(--paper-2); border-radius: 6px; padding: 12px 14px; }
.specs-hi small { display: block; color: var(--muted); font-size: 0.78rem; }
.specs-hi b { font-size: 1.02rem; }
.specs { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.specs th, .specs td { text-align: left; padding: 11px 14px; }
.specs th { width: 42%; font-weight: 600; color: var(--ink-2); }
.specs tr:nth-child(odd) { background: var(--paper-2); }
.specs tr:nth-child(odd) th { border-radius: 6px 0 0 6px; } .specs tr:nth-child(odd) td { border-radius: 0 6px 6px 0; }
.equip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.equip li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 0.95rem; }
.equip svg { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.desc p { margin: 0 0 12px; color: var(--ink-2); max-width: 70ch; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.checks div { padding: 14px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9rem; color: var(--ink-2); }
.checks b { display: block; color: var(--ink); margin-bottom: 4px; }

.others { margin-top: clamp(32px, 5vw, 56px); }
.others__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.others .car { grid-template-rows: 190px auto; }

.mobile-bar { display: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-height: 760px) and (min-width: 900px) {
  .hero__strip { display: none; }
  .promise { display: none; }
  .svc-list p { font-size: 0.9rem; }
  .map__info { padding: 10px 14px; }
  .field textarea { min-height: 64px; }
}

@media (max-width: 1100px) {
  .nav a { padding: 8px 8px; font-size: 0.9rem; }
  .specs-hi { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 899px) {
  :root { --header-h: 60px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease-out), visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header__cta { display: none; }
  .menu-btn {
    display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer; border-radius: var(--radius);
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .3s var(--ease-out), background-color .2s;
  }
  .menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
  .menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
  .menu-btn[aria-expanded=true] span { background: transparent; }
  .menu-btn[aria-expanded=true] span::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded=true] span::after { transform: translateY(-7px) rotate(-45deg); }

  .screen { padding-block: 56px; }
  .screen--hero { padding-top: calc(var(--header-h) + 24px); }
  .hero, .story, .services, .country, .finance, .contact { grid-template-columns: 1fr; }
  .hero__photo { height: 56vw; }
  .hero__tag { left: 12px; bottom: 12px; }
  .lot { grid-template-columns: 1fr; height: auto; }
  .car--feature { grid-template-rows: 58vw auto; }
  .lot__list { grid-template-rows: none; }
  .car--row { grid-template-columns: 40% 1fr; min-height: 132px; }
  .svc-list { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .map { min-height: 380px; }
  .map__info { grid-template-columns: 1fr; }

  .pdp { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; padding: 0; background: none; box-shadow: none; }
  .thumbs { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
  .thumbs button { width: 64px; }
  .stage { border-radius: 8px; }
  .stage__nav { opacity: 1; width: 38px; height: 38px; }
  .buy { position: static; }
  .others__grid { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .equip { grid-template-columns: 1fr; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; inset: auto 0 0 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .mobile-bar b { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; display: block; line-height: 1.1; }
  .mobile-bar small { color: var(--muted); font-size: 0.78rem; }
  .mobile-bar .btn { min-height: 44px; }
  body.has-bar { padding-bottom: 72px; }
  body.has-bar .wa-float { display: none; }
}

@media (max-width: 520px) {
  .sec-head { flex-direction: column; align-items: start; }
  .seg { grid-template-columns: repeat(5, 1fr); }
  .seg button { font-size: 0.85rem; }
  .car--feature .car__body { grid-template-columns: 1fr; }
  .car--feature .car__price { grid-row: auto; grid-column: auto; text-align: left; }
  .specs-hi { grid-template-columns: 1fr 1fr; }
  .buy__facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal, .load { opacity: 1 !important; transform: none !important; }
}

/* anclas bajo el header fijo */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* vitrina: el grid toma exactamente el alto que sobra en la pantalla */
@media (min-width: 900px) and (min-height: 600px) {
  #carros { height: calc(100svh - var(--header-h)); }
  #carros > .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  #carros .lot { flex: 1; min-height: 0; height: auto; max-height: 820px; }
}
