/* Blackline Select Cars · Últimas unidades */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/BricolageGrotesque-500-800.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1e1e21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #a9abaf;
  --dim: #8b8d92;
  --ok: #5ee08f;
  --silver: linear-gradient(120deg, #fafafa 0%, #c3c5ca 38%, #f1f1f3 62%, #9a9ca1 100%);
  --font-display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid #e9e9eb; outline-offset: 3px; border-radius: 6px; }
::selection { background: #e9e9eb; color: var(--bg); }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 500; }
.skip:focus { top: 16px; }

.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- tipografía ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2, .h3, .h4, .hero__title, .car__title, .unit-feature__title, .unit-sold__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.h4 { font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.25; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 62ch; }
.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(94, 224, 143, 0.15); flex: none; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--primary { background: var(--silver); color: #0b0b0c; box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(255, 255, 255, 0.5); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.07); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn .i--arrowRight { transition: transform 0.2s var(--ease); }
.btn:hover .i--arrowRight { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }
.actions--stack { flex-direction: column; }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.95rem; border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); cursor: pointer; }
.link:hover { border-color: currentColor; }
.link--muted { color: var(--muted); }
.link--muted:hover { color: var(--text); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(11, 11, 12, 0.72);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.chip .i { width: 12px; height: 12px; }
.chip--sold { color: var(--muted); }

/* ---------- cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-solid, .page-car .site-header, .page-404 .site-header {
  background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { width: 112px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a[aria-current='page'] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-2); }
.menu-toggle .i { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 60;
  padding: 24px var(--gutter) 32px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--muted);
}
.mobile-menu a[aria-current='page'] { color: var(--text); }

@media (max-width: 1099px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92svh, 900px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.75) 0%, rgba(11, 11, 12, 0.15) 30%, rgba(11, 11, 12, 0.55) 62%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 11, 12, 0.85) 0%, rgba(11, 11, 12, 0.2) 65%);
}
.hero__content { padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(48px, 7vw, 88px); display: grid; gap: 22px; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.75rem); line-height: 0.98; max-width: 14ch; }
.hero__lead { color: #cfd0d3; font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 54ch; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust li { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; color: #cfd0d3; }
.trust .i { color: var(--muted); }

@media (max-height: 820px) and (min-width: 1024px) {
  .hero__title { font-size: clamp(2.6rem, 5.2vw, 4.5rem); }
  .hero__content { gap: 18px; }
}

/* ---------- secciones ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(48px, 6vw, 72px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--row > div { display: grid; gap: 14px; }

/* tarjeta destacada (disponibles) */
.feature-list { display: grid; gap: clamp(32px, 5vw, 56px); }
.unit-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.unit-feature__media { position: relative; display: block; overflow: hidden; min-height: 100%; cursor: pointer; }
.unit-feature__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.9s var(--ease); }
.unit-feature:hover .unit-feature__media img { transform: scale(1.04); }
.unit-feature__media .chip { position: absolute; top: 18px; left: 18px; }
.unit-feature__media .unit-feature__video { left: auto; right: 18px; }
.unit-feature__body { padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.unit-feature__title { font-size: clamp(2rem, 3.6vw, 3rem); }
.unit-feature__title a:hover { color: #d9dadd; }
.unit-feature__version { color: var(--muted); font-weight: 400; margin-top: -6px; }
.unit-feature__headline { color: #d4d5d8; }
.unit-feature .price { margin-top: auto; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); }
.spec .i { grid-row: span 2; color: var(--muted); width: 20px; height: 20px; min-width: 20px; }
.spec__label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.spec__value { font-weight: 500; font-size: 0.95rem; line-height: 1.35; }
.specs--compact .spec { padding: 12px 14px; }

.price { display: grid; gap: 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.price__label { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.price__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.1; }
.price__note { font-size: 0.875rem; color: var(--muted); }
.price--lg { border-top: 0; padding-top: 6px; }

/* nota de selección */
.note { padding-bottom: clamp(56px, 8vw, 96px); }
.note__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 28px;
  padding: 28px clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.note__inner > .i { width: 28px; height: 28px; color: var(--muted); }
.note__inner p { color: #cfd0d3; max-width: 70ch; }

/* tarjetas pequeñas (entregadas / otras) */
.sold-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.unit-sold { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.unit-sold__media { position: relative; display: block; overflow: hidden; cursor: pointer; }
.unit-sold__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.55) brightness(0.8); transition: filter 0.5s var(--ease), transform 0.9s var(--ease); }
.unit-sold:hover .unit-sold__media img { filter: none; transform: scale(1.04); }
.unit-sold--available .unit-sold__media img { filter: none; }
.unit-sold__media .chip { position: absolute; top: 16px; left: 16px; }
.stamp {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(11, 11, 12, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.unit-sold__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.unit-sold__title { font-size: 1.6rem; }
.unit-sold__meta { color: var(--muted); font-size: 0.9rem; }
.unit-sold__price { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-top: 6px; }
.unit-sold__price small { font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.unit-sold__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; padding-top: 14px; }

/* sección entregadas con cabecera lateral */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.split .sold-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* pilares */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { background: var(--bg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; }
.pillar .i { width: 28px; height: 28px; color: #d9dadd; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 0.95rem; }

/* CTA final */
.cta-band { padding-block: clamp(80px, 11vw, 140px); background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 255, 255, 0.07), transparent 70%), var(--bg); border-top: 1px solid var(--line); }
.cta-band__inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.cta-band .lead { margin-bottom: 10px; }

.empty { padding: 48px clamp(24px, 4vw, 48px); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); display: grid; gap: 14px; justify-items: start; }
.empty p { color: var(--muted); }

/* ---------- ficha de coche ---------- */
.page-car main { padding-top: var(--header-h); }
.crumbs { padding-block: 22px 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--dim); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.car { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: clamp(24px, 3vw, 44px); align-items: start; }
.car__gallery { display: grid; gap: 12px; min-width: 0; }
.stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.stage__open { display: block; width: 100%; cursor: zoom-in; }
.stage__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity 0.25s var(--ease); }
.stage__img.is-loading { opacity: 0.4; }
.stage__chip { position: absolute; top: 18px; left: 18px; pointer-events: none; }
.stage__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.6);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.2s var(--ease);
}
.stage__nav:hover { background: rgba(11, 11, 12, 0.85); }
.stage__nav--prev { left: 16px; }
.stage__nav--next { right: 16px; }
.stage__count { position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; font-size: 0.8rem; background: rgba(11, 11, 12, 0.7); pointer-events: none; }

.thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.thumbs li { flex: none; scroll-snap-align: start; }
.thumb { position: relative; display: block; width: 104px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid transparent; opacity: 0.55; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover, .thumb.is-active { opacity: 1; }
.thumb.is-active { border-color: rgba(255, 255, 255, 0.7); }
.thumb--video { opacity: 1; }
.thumb--video .i { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }

.car__buy { position: sticky; top: calc(var(--header-h) + 20px); }
.buy { display: grid; gap: 16px; padding: clamp(22px, 2.6vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.car__title { font-size: clamp(2.2rem, 3.6vw, 3rem); margin-top: -6px; }
.car__version { color: var(--muted); font-weight: 400; margin-top: -8px; }
.buy__fine { font-size: 0.8rem; color: var(--dim); line-height: 1.55; }
.included { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.included li, .condition li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.925rem; color: #d4d5d8; }
.included .i, .condition .i { color: var(--ok); margin-top: 3px; width: 16px; height: 16px; }

.delivered { padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); display: grid; gap: 6px; }
.delivered__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.delivered p:not(.delivered__title) { color: var(--muted); font-size: 0.925rem; }

.story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.story--solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.story__text { display: grid; gap: 18px; }
.condition { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 10px; }

.reel { justify-self: center; width: 100%; max-width: 340px; display: grid; gap: 12px; }
.reel__frame { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.reel__video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.reel__play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.45)); transition: opacity 0.25s var(--ease); }
.reel__play .i { width: 72px; height: 72px; padding: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #0b0b0c; transition: transform 0.25s var(--ease); }
.reel__play:hover .i { transform: scale(1.06); }
.reel.is-playing .reel__play { opacity: 0; pointer-events: none; }
.reel figcaption { text-align: center; font-size: 0.8rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; }

.equipment { columns: 3 280px; column-gap: 16px; }
.equipment__group { break-inside: avoid; margin-bottom: 16px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 16px; align-content: start; }
.equipment__group li { position: relative; padding-left: 18px; color: #cfd0d3; font-size: 0.925rem; line-height: 1.5; }
.equipment__group li + li { margin-top: 8px; }
.equipment__group li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: #8b8d92; }
.datasheet { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 0.925rem; }
.datasheet dt { color: var(--dim); }
.datasheet dd { color: #e4e5e7; font-weight: 400; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.posts a { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); color: #d4d5d8; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); cursor: pointer; }
.posts a:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); }
.posts .i { color: var(--muted); }

.buybar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 11, 12, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar__price { display: grid; line-height: 1.2; min-width: 0; }
.buybar__price span { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.buybar__price small { color: var(--muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { min-height: 46px; }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 5, 6, 0.96); color: var(--text); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox__img { max-width: 94vw; max-height: 86dvh; width: auto; height: auto; object-fit: contain; border-radius: 10px; user-select: none; touch-action: pan-y; }
.lightbox__close, .lightbox__nav { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); transition: background-color 0.2s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 0.875rem; color: var(--muted); }

.notfound { min-height: 70svh; display: grid; align-items: center; text-align: center; padding-top: calc(var(--header-h) + 48px); }
.notfound .wrap { display: grid; gap: 18px; justify-items: center; }

/* ---------- pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--bg-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand { display: grid; gap: 18px; align-content: start; }
.site-footer__brand img { width: 150px; }
.site-footer__brand p { color: var(--muted); font-size: 0.925rem; max-width: 36ch; }
.site-footer__title { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.site-footer__list { display: grid; gap: 10px; }
.site-footer__list a { display: inline-flex; align-items: center; gap: 10px; color: #cfd0d3; font-size: 0.925rem; transition: color 0.2s var(--ease); }
.site-footer__list a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease); }
.social a:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--dim); }

/* ---------- animaciones (solo si JS confirma que se permite movimiento) ---------- */
.motion .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .hero__in { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.motion.is-ready .hero__in { opacity: 1; transform: none; }
.motion .hero__in:nth-child(2) { transition-delay: 0.1s; }
.motion .hero__in:nth-child(3) { transition-delay: 0.2s; }
.motion .hero__in:nth-child(4) { transition-delay: 0.3s; }
.motion .hero__in:nth-child(5) { transition-delay: 0.42s; }
.motion .hero__media img { animation: settle 2.4s var(--ease) both; }
.motion .pillars .rv:nth-child(2), .motion .sold-grid .rv:nth-child(2), .motion .equipment .rv:nth-child(2), .motion .posts .rv:nth-child(2) { transition-delay: 0.08s; }
.motion .pillars .rv:nth-child(3), .motion .sold-grid .rv:nth-child(3), .motion .equipment .rv:nth-child(3), .motion .posts .rv:nth-child(3) { transition-delay: 0.16s; }
.motion .pillars .rv:nth-child(4), .motion .equipment .rv:nth-child(4) { transition-delay: 0.24s; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .car { grid-template-columns: minmax(0, 1fr); }
  .car__buy { position: static; }
  .buybar { display: flex; }
  .page-car .site-footer { padding-bottom: 80px; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .section-head { position: static; }
}
@media (max-width: 1023px) {
  .unit-feature { grid-template-columns: minmax(0, 1fr); }
  .sold-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 719px) {
  :root { --header-h: 68px; }
  .brand img { width: 96px; }
  .hero { min-height: 88svh; }
  .hero .actions .btn { flex: 1 1 100%; }
  .trust { gap: 10px 18px; }
  .trust li { flex: 1 1 calc(50% - 18px); font-size: 0.8rem; }
  .note__inner { grid-template-columns: minmax(0, 1fr); }
  .note__inner > .i { display: none; }
  .sold-grid, .split .sold-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .condition { grid-template-columns: minmax(0, 1fr); }
  .unit-feature .actions .btn { flex: 1 1 100%; }
  .stage__nav { width: 40px; height: 40px; }
  .stage { border-radius: var(--radius); }
  .thumb { width: 84px; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .lightbox__nav { display: none; }
}
@media (hover: none) {
  .unit-sold__media img { filter: saturate(0.7) brightness(0.88); }
}
