/* =============================================================
   Cars MM — styles.css
   Arquetipo: Editorial Light Cream (adaptado: verde bosque + ámbar)
   ============================================================= */

/* 1. Tokens ------------------------------------------------- */
:root {
  /* Azul marino profundo + arena: sobrio, profesional, cálido */
  --bg:        #f4f3f0;
  --bg-2:      #eae7e1;
  --paper:     #ffffff;
  --ink:       #121a22;
  --ink-soft:  #3a434c;
  --mute:      #67707a;
  --green:     #15212c;   /* primario: azul marino */
  --green-2:   #2b3d4f;
  --green-3:   #0d151d;
  --amber:     #c9a86b;   /* acento: arena / latón */
  --amber-2:   #a9864a;
  --terra:     #8a6830;   /* acento oscuro para textos sobre claro */
  --sea:       #4c6577;
  --wa:        #1fae5b;
  --wa-2:      #178c49;
  --line:      rgba(18, 26, 34, .1);
  --line-2:    rgba(18, 26, 34, .18);
  --shadow-sm: 0 1px 2px rgba(18,26,34,.05), 0 4px 12px rgba(18,26,34,.05);
  --shadow:    0 2px 6px rgba(18,26,34,.05), 0 18px 40px -14px rgba(18,26,34,.22);
  --shadow-lg: 0 30px 70px -24px rgba(13,21,29,.45);

  --serif: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 2. Reset & base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
em { font-style: italic; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* 3. Utilities ---------------------------------------------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--paper); z-index: 9999; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* 4. Typography helpers ------------------------------------- */
.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--terra);
  margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: .7; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.section-title em { font-style: normal; color: var(--terra); }
.section-lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 60ch; margin-top: 1rem; }
.text-link { color: var(--green); font-weight: 700; font-size: .92rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 5. Components --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; letter-spacing: 0; line-height: 1.2;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s var(--ease-out), border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .88rem; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: var(--paper); box-shadow: 0 10px 24px -12px rgba(13,21,29,.6); }
.btn-primary:hover { background: var(--green-3); box-shadow: 0 16px 30px -14px rgba(13,21,29,.7); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(31,174,91,.7); }
.btn-wa:hover { background: var(--wa-2); }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 12px 28px -14px rgba(201,168,107,.7); }
.btn-amber:hover { background: #d6b77d; }
.btn-light { background: rgba(255,253,248,.12); color: var(--paper); border: 1.5px solid rgba(255,253,248,.35); }
.btn-light:hover { background: rgba(255,253,248,.2); }

.chip {
  padding: .55rem 1rem; border-radius: 8px; font-weight: 600; font-size: .88rem;
  border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink-soft);
  transition: all .25s var(--ease-out);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; border: 0; padding: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend, .field .label { font-size: .84rem; font-weight: 700; color: var(--ink-soft); }
.field legend { margin-bottom: .45rem; }
.field input[type="text"], .field input[type="number"], .field select {
  width: 100%; min-height: 48px; padding: .7rem .95rem; border-radius: 8px;
  border: 1.5px solid var(--line-2); background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121a22' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(21,33,44,.12); }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }

.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 42px; padding: .5rem .95rem; border-radius: 8px;
  border: 1.5px solid var(--line-2); font-weight: 600; font-size: .88rem; background: var(--paper);
  transition: all .2s var(--ease-out);
}
.seg input:checked + span { background: var(--green); border-color: var(--green); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.check { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); flex: none; }

.ticks { display: grid; gap: .7rem; margin-top: 1.6rem; }
.ticks li { position: relative; padding-left: 2rem; font-weight: 600; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf8' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/70% no-repeat;
}
.ticks-light li { color: rgba(255,253,248,.88); }
.ticks-light li::before { background-color: var(--amber); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2b25' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }

/* 6. Sections ----------------------------------------------- */

/* Top bar */
.topbar { background: var(--green-3); color: rgba(255,253,248,.86); font-size: .8rem; font-weight: 600; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar p { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.topbar-inner > p:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.topbar-inner > p:first-child .ico { display: inline-block; vertical-align: -3px; margin-right: .3rem; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.topbar-right { flex: none; }
.topbar a:hover { color: var(--amber); }
.topbar-right { display: none !important; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
@supports (backdrop-filter: blur(10px)) { .nav { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); } }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(13,21,29,.45); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px;
  background: var(--green); color: var(--amber); font-family: var(--serif); font-weight: 700; font-size: 1rem; letter-spacing: -.02em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.logo-text small { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.logo-light .logo-mark { background: var(--amber); color: var(--ink); }
img.logo-mark, .logo-light img.logo-mark { background: transparent; border-radius: 50%; object-fit: contain; }
img.chat-avatar { padding: 0; background: #fbf8f1; border-radius: 50%; object-fit: contain; }
.logo-light .logo-text small { color: rgba(255,253,248,.6); }

.nav-links {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
  max-height: calc(100svh - var(--nav-h)); overflow-y: auto;
  display: flex; flex-direction: column; gap: .2rem; padding: 1rem var(--gutter) 1.5rem;
  background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity .25s, transform .35s var(--ease-out), visibility .25s;
}
.nav.is-open .nav-links { opacity: 1; transform: none; visibility: visible; }
.nav-links a:not(.btn) { padding: .8rem .2rem; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.nav-mobile-cta { margin-top: 1rem; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.nav-actions .btn-wa span { display: none; }
.nav-actions .btn-wa { width: 44px; padding: 0; }
.nav-burger { width: 44px; height: 44px; border-radius: 9px; border: 1.5px solid var(--line-2); display: grid; place-content: center; gap: 6px; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out); }
.nav.is-open .nav-burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  min-height: min(76svh, 720px); display: flex; align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: #0f1922;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 70% 50%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,17,24,.88) 0%, rgba(10,17,24,.66) 38%, rgba(10,17,24,.18) 68%, rgba(10,17,24,0) 100%),
    linear-gradient(0deg, rgba(10,17,24,.55) 0%, rgba(10,17,24,0) 35%);
}
.hero-title, .hero-sub { text-shadow: 0 2px 24px rgba(0,0,0,.25); }

.hero-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 0; overflow: hidden; align-self: end;
  background: rgba(255,255,255,.97); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.55); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -18px rgba(0,0,0,.6); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-body { display: grid; gap: .15rem; padding: .9rem 1rem; }
.hero-card-body strong { font-family: var(--serif); font-size: 1rem; font-weight: 700; line-height: 1.2; }
.hero-card-meta { font-size: .78rem; color: var(--mute); }
.hero-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .35rem; }
.hero-card-foot b { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.hero-card-foot span { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--terra); }
.hero-card-foot .ico { width: 14px; height: 14px; }
.hero-tag-label { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }

/* Tarjetas de público con foto */
.niche-photo { padding: 0; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.niche-photo > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.niche-photo:hover > img { transform: scale(1.03); }
.niche-body { padding: clamp(1.4rem, 3vw, 2rem); }
.niche-photo .kicker { color: var(--terra); }
.niche-photo p:not(.kicker) { color: var(--ink-soft); }

/* Cómo trabajamos con imagen */
.journey-wrap { display: grid; gap: clamp(1.2rem, 3vw, 2rem); align-items: stretch; }
.journey-media { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 300px; background: var(--green); }
.journey-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.journey-media figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; display: grid; gap: .1rem;
  padding: .9rem 1.1rem; border-radius: 10px; background: rgba(13,21,29,.82); color: #fff;
}
.journey-media figcaption strong { font-family: var(--serif); font-weight: 700; }
.journey-media figcaption span { font-size: .84rem; color: rgba(255,255,255,.72); }

/* Banda final con foto */
.cta-band { position: relative; isolation: isolate; padding: clamp(4rem, 9vw, 7rem) 0 !important; }
.cta-band .cta-inner { grid-template-columns: minmax(0, 560px) !important; }
.cta-band .cta-actions { grid-column: 1 !important; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,17,24,.92) 0%, rgba(10,17,24,.75) 50%, rgba(10,17,24,.35) 100%); }


.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: end; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.72); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(201,168,107,.2); flex: none; }
.hero-title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 700; line-height: 1.04; margin-top: 1.2rem; max-width: 17ch; letter-spacing: -0.03em; }
.hero-title span { color: var(--amber); }
.hero-sub { margin-top: 1.3rem; font-size: clamp(1rem, 1.4vw, 1.12rem); color: rgba(255,255,255,.74); max-width: 56ch; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats dt { font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero-stats dd { margin: .3rem 0 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; }

.btn-accent { background: var(--amber); color: var(--ink); box-shadow: 0 12px 26px -12px rgba(201,168,107,.7); }
.btn-accent:hover { background: #d6b77d; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* Niche */
.niche { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.niche-grid { display: grid; gap: 1.2rem; }
.niche-card { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg); overflow: hidden; }
.niche-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: .8rem; }
.niche-card p:not(.kicker) { max-width: 46ch; }
.niche-family { background: var(--green); color: var(--paper); }
.niche-family .kicker { color: var(--amber); }
.niche-family p:not(.kicker) { color: rgba(255,253,248,.82); }
.niche-surf { background: var(--paper); border: 1px solid var(--line); }
.niche-surf .kicker { color: var(--terra); }
.niche-surf p:not(.kicker) { color: var(--ink-soft); }
.niche-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%;
  border: 26px solid currentColor; opacity: 0;
}
.niche-models { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem .6rem; justify-content: center; padding-top: .6rem; }
.niche-models li { font-family: var(--serif); font-size: clamp(.95rem, 1.4vw, 1.08rem); font-weight: 600; color: var(--mute); }
.niche-models li + li::before { content: "·"; margin-right: .6rem; color: var(--amber-2); }

/* Generic section */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--bg-2); }
.section-green { background: var(--green); color: var(--paper); }
.section-green .section-title { color: var(--paper); }
.section-green .section-title em { color: var(--amber); }
.section-green .section-lead { color: rgba(255,253,248,.8); }
.section-green .kicker { color: var(--amber); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Filters + cars */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.cars { display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); grid-template-columns: 1fr; }
.car {
  display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.car:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.car.is-hidden { display: none; }
.car-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity .35s; }
.car:hover .car-media img { transform: scale(1.045); }
.car-media img.is-swapping { opacity: .25; }
.car-badge, .car-tag {
  position: absolute; top: 14px; padding: .32rem .62rem; border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.car-badge { left: 14px; background: var(--paper); color: var(--green); box-shadow: var(--shadow-sm); display: inline-flex; gap: .3rem; align-items: center; }
.car-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); }
.car-badge-alt { color: var(--terra); }
.car-badge-alt::before { background: var(--terra); }
.car-tag { right: 14px; background: rgba(13,21,29,.8); color: #fff; }
.gallery-count {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .65rem; border-radius: 6px; background: rgba(13,21,29,.8); color: #fff;
  font-size: .76rem; font-weight: 800; letter-spacing: .02em; transition: background-color .2s;
}
.gallery-count svg { width: 15px; height: 15px; }
.gallery-count:hover { background: var(--ink); }
.car-extra { margin-top: .8rem; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); }
.fine-note { margin-top: 1.2rem; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100svh; max-width: none; max-height: none; background: #0b1218; color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto auto; grid-template-columns: minmax(0, 1fr); animation: chatIn .35s var(--ease-out); }
.lightbox > * { min-width: 0; }
.lightbox::backdrop { background: #0b1218; }
.lb-head { display: flex; align-items: center; gap: 1rem; padding: .9rem var(--gutter); }
.lb-title { flex: 1; min-width: 0; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count { font-size: .85rem; font-weight: 700; opacity: .7; }
.lb-close { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,253,248,.08); }
.lb-close:hover { background: rgba(255,253,248,.16); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; overflow: hidden; padding: 0 var(--gutter); }
.lb-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100svh - 240px); object-fit: contain; border-radius: 12px; user-select: none; }
.lb-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,253,248,.92); color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.lb-arrow .ico { width: 22px; height: 22px; }
.lb-prev { left: max(10px, calc(var(--gutter) - 8px)); } .lb-prev .ico { transform: scaleX(-1); }
.lb-next { right: max(10px, calc(var(--gutter) - 8px)); }
.lb-thumbs { display: flex; gap: .5rem; overflow-x: auto; overflow-y: visible; padding: .9rem var(--gutter) .4rem; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 76px; height: 57px; border-radius: 8px; overflow: hidden; opacity: .5; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; padding: 0; }
.lb-thumbs button.is-active { opacity: 1; outline-color: var(--amber); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lb-foot { display: flex; justify-content: center; gap: .7rem; padding: .6rem var(--gutter) 1.1rem; }

.gallery-nav { position: absolute; inset: auto 0 12px; display: flex; justify-content: center; gap: 6px; }
.gallery-nav button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,253,248,.55); box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: all .25s; padding: 0; }
.gallery-nav button.is-active { background: var(--paper); width: 22px; border-radius: 6px; }
.gallery-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,253,248,.92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity .25s;
}
.gallery-arrow svg { width: 18px; height: 18px; }
.gallery-prev { left: 10px; } .gallery-prev svg { transform: scaleX(-1); }
.gallery-next { right: 10px; }
.car-media:hover .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .gallery-arrow { opacity: 1; } }

.car-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.4rem; }
.car-make { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.car-title { font-size: 1.28rem; font-weight: 700; margin-top: .3rem; line-height: 1.15; }
.car-title span { display: block; font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--mute); letter-spacing: 0; margin-top: .25rem; }
.car-specs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.car-specs li { padding: .28rem .6rem; border-radius: 6px; background: var(--bg); font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.car-price { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.2rem; }
.car-price strong { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.car-price span { font-size: .84rem; font-weight: 600; color: var(--mute); }
.car-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: 1rem; }
.car-actions .btn { padding-inline: .6rem; font-size: .88rem; }
.car-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .82rem; font-weight: 700; color: var(--mute); align-self: flex-start; }
.car-link:hover { color: var(--green); }
.car-link .ico { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.car-link:hover .ico { transform: translateX(3px); }

.market { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.market > p { width: 100%; text-align: center; font-weight: 700; color: var(--mute); font-size: .9rem; }
.market-link {
  display: flex; flex-direction: column; min-width: 200px; padding: .9rem 1.4rem; border-radius: 10px; background: var(--paper);
  border: 1.5px solid var(--line); transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s;
}
.market-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.market-link strong { font-size: 1.15rem; letter-spacing: -.01em; }
.market-link span { font-size: .82rem; color: var(--mute); font-weight: 600; }
.market-cn strong { color: #d4262f; }
.market-cn:hover { border-color: #d4262f; }
.market-wp strong { color: #12a59a; }
.market-wp:hover { border-color: #12a59a; }

/* Journey */
.journey { display: grid; gap: 1.2rem; counter-reset: j; }
.journey li { position: relative; padding: 1.8rem 1.6rem; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.journey-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--green); color: var(--amber); font-family: var(--serif); font-size: 1rem; font-weight: 700; line-height: 1; }
.journey h3 { font-size: 1.2rem; font-weight: 700; margin: 1rem 0 .5rem; }
.journey p { color: var(--ink-soft); font-size: .96rem; }

/* Tools (valuation + finance) */
.tool-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.tool-card {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--paper); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.checks { gap: .7rem; justify-content: center; }
.result { grid-column: 1 / -1; padding: 1.4rem 1.5rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--amber); }
.result-label { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.result-value { font-family: var(--serif); font-size: clamp(1.9rem, 4.6vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin-top: .3rem; line-height: 1.1; }
.result-value small { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: inherit; opacity: .7; margin-left: .2rem; }
.result-note { font-size: .88rem; color: var(--ink-soft); margin-top: .5rem; }
.tool-actions { grid-column: 1 / -1; display: grid; gap: .7rem; }
.fine { font-size: .78rem; color: var(--mute); }

.tool-card-dark { background: var(--green-3); border-color: rgba(255,253,248,.1); color: var(--paper); box-shadow: 0 30px 70px -30px rgba(0,0,0,.5); }
.tool-card-dark .field label, .tool-card-dark .field .label { color: rgba(255,253,248,.75); }
.tool-card-dark select { background-color: rgba(255,253,248,.06); border-color: rgba(255,253,248,.18); color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.tool-card-dark select option { color: var(--ink); }
.tool-card-dark .seg span { background: rgba(255,253,248,.06); border-color: rgba(255,253,248,.2); color: var(--paper); }
.tool-card-dark .seg input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.range-head output { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--amber); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--amber) var(--p, 50%), rgba(255,253,248,.18) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255,253,248,.18); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 4px solid var(--amber); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 4px solid var(--amber); }
.result-dark { background: rgba(255,253,248,.06); border-color: rgba(255,253,248,.2); }
.result-dark .result-label { color: rgba(255,253,248,.6); }
.result-dark .result-value { color: var(--paper); }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(255,253,248,.14); }
.result-grid dt { font-size: .74rem; font-weight: 700; color: rgba(255,253,248,.6); }
.result-grid dd { margin: .15rem 0 0; font-weight: 800; font-size: .98rem; }
.fine-light { color: rgba(255,253,248,.55); }

/* About */
.about { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; object-fit: cover; box-shadow: var(--shadow); }
.about-note {
  position: absolute; left: clamp(-10px, -2vw, -24px); bottom: 24px; display: flex; gap: .6rem; align-items: center;
  padding: .9rem 1.1rem; background: var(--green); color: #fff; border-radius: 10px; font-weight: 600; font-size: .9rem; line-height: 1.3;
  box-shadow: var(--shadow);
}
.about-note .ico { width: 24px; height: 24px; }
.about-copy > p:not(.kicker) { color: var(--ink-soft); margin-top: 1.1rem; font-size: 1.04rem; max-width: 58ch; }
.values { display: grid; gap: 1rem; margin-top: 2rem; }
.values div { padding: 1.1rem 1.2rem; border-left: 3px solid var(--amber); background: var(--paper); border-radius: 0 10px 10px 0; }
.values strong { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 700; }
.values span { font-size: .92rem; color: var(--mute); }

/* Reviews */
.reviews { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.review { display: flex; flex-direction: column; gap: 1rem; padding: 1.7rem; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars svg { width: 18px; height: 18px; }
.stars svg.off { color: var(--line-2); }
.review blockquote { font-size: 1rem; line-height: 1.6; color: var(--ink-soft); flex: 1; }
.review figcaption { display: flex; flex-direction: column; padding-top: 1rem; border-top: 1px solid var(--line); }
.review figcaption strong { font-size: .95rem; }
.review figcaption span { font-size: .82rem; color: var(--mute); font-weight: 600; }

/* Contact */
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact-list { display: grid; gap: 1.2rem; margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico { width: 44px; height: 44px; padding: 11px; border-radius: 10px; background: var(--paper); color: var(--green); border: 1px solid var(--line); }
.contact-list div { display: flex; flex-direction: column; }
.contact-list strong { font-size: 1.05rem; }
.contact-list strong a:hover { color: var(--green); }
.contact-list span { color: var(--mute); font-size: .9rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(.85) contrast(1.02); }

/* CTA band */
.cta-band { background: var(--green-3); color: var(--paper); padding: clamp(3rem, 6vw, 4.5rem) 0; overflow: hidden; }
.cta-inner { display: grid; gap: 1.6rem; align-items: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-band p { color: rgba(255,253,248,.75); margin-top: .5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Footer */
.footer { background: #0b1218; color: rgba(255,253,248,.75); padding: 3.5rem 0 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: .7rem; }
.footer a:hover { color: var(--paper); }
.footer .logo-text strong { color: var(--paper); }
.footer-claim { margin-top: 1rem; max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,253,248,.12); font-size: .8rem; color: rgba(255,253,248,.5); }

/* Floating buttons */
.float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.float-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 58px; min-width: 58px; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .35s var(--ease-out);
}
.float-btn:hover { transform: translateY(-3px) scale(1.03); }
.float-btn .ico { width: 28px; height: 28px; }
.float-wa { background: var(--wa); color: #fff; padding: 0 1.2rem 0 1rem; }
.float-label { font-weight: 800; font-size: .95rem; }
.float-chat { background: var(--paper); color: var(--green); border: 1px solid var(--line); }
.float-chat .ico { width: 24px; height: 24px; }
.float-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa);
  animation: waPulse 2.6s var(--ease-out) infinite; pointer-events: none;
}
.float-wa { position: relative; }

/* Chat */
.chat {
  position: fixed; right: 16px; bottom: 156px; z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 190px));
  display: flex; flex-direction: column; background: var(--paper); border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -20px rgba(24,52,41,.5); overflow: hidden;
  transform-origin: bottom right; animation: chatIn .45s var(--ease-out);
}
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: var(--green); color: var(--paper); }
.chat-head div { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.chat-head span:not(.chat-avatar) { font-size: .78rem; opacity: .75; }
.chat-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--amber); color: var(--ink); font-family: var(--serif); font-weight: 700; }
.chat-close { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255,253,248,.12); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); }
.msg { max-width: 86%; padding: .7rem .9rem; border-radius: 16px; font-size: .92rem; line-height: 1.45; animation: msgIn .35s var(--ease-out); }
.msg a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.msg-bot { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--green); color: var(--paper); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-typing { display: inline-flex; gap: 4px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: typing 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; } .msg-typing i:nth-child(3) { animation-delay: .3s; }
.chat-quick { display: flex; gap: .4rem; overflow-x: auto; overflow-y: visible; padding: .6rem .8rem; border-top: 1px solid var(--line); scrollbar-width: none; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick button { flex: none; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: .8rem; font-weight: 700; background: var(--paper); }
.chat-quick button:hover { border-color: var(--green); color: var(--green); }
.chat-form { display: flex; gap: .5rem; padding: .7rem .8rem .8rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 42px; padding: .5rem .9rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--bg); }
.chat-form input:focus { outline: none; border-color: var(--green); }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; margin: auto; }
.modal::backdrop { background: rgba(11,18,24,.6); backdrop-filter: blur(4px); }
.modal[open] { animation: chatIn .4s var(--ease-out); }
.modal-card { position: relative; display: grid; gap: 1rem; padding: clamp(1.5rem, 4vw, 2.2rem); background: var(--paper); border-radius: var(--radius-lg); }
.modal-card h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-top: -.4rem; }
.modal-lead { color: var(--ink-soft); font-size: .96rem; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.modal-close:hover { background: var(--bg); }
.form-error { color: var(--terra); font-weight: 700; font-size: .88rem; }

/* 7. Effects ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* 8. Responsive --------------------------------------------- */
@media (max-width: 640px) {
  .hero { display: block; min-height: auto; padding: 0 0 2.5rem; }
  .hero-bg { position: relative; display: block; height: 58svh; min-height: 360px; z-index: 0; }
  .hero-bg img { position: absolute; z-index: 0; object-position: 50% 72%; }
  .hero-shade { top: 0; bottom: auto; height: 58svh; min-height: 360px; z-index: 1; background: linear-gradient(180deg, rgba(10,17,24,0) 55%, rgba(15,25,34,1) 100%); }
  .hero-grid { margin-top: -3rem; z-index: 2; }
}
@media (max-width: 539px) {
  .hero-stats dt { font-size: .68rem; }
  .float-label { display: none; }
  .float-wa { padding: 0; width: 58px; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof li { flex-direction: row; align-items: center; gap: .7rem; }
  .hero-proof strong { display: inline; }
  .car-actions { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; }
  .chat { bottom: 92px; height: min(540px, calc(100svh - 120px)); }
}
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .tool-card { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .topbar-right { display: flex !important; }
  .niche-grid { grid-template-columns: 1fr 1fr; }
  .cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .cta-inner { grid-template-columns: auto 1fr; }
  .cta-actions { grid-column: 2; }
}
@media (min-width: 960px) {
  .nav-links {
    position: static; flex-direction: row; align-items: center; gap: .2rem; padding: 0;
    background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .nav-links a:not(.btn) { padding: .5rem .6rem; font-size: .9rem; white-space: nowrap; border: 0; border-radius: 999px; color: var(--ink-soft); transition: color .2s, background-color .2s; }
  .nav-links a:not(.btn):hover { color: var(--ink); background: rgba(29,43,37,.06); }
  .nav-mobile-cta, .nav-burger { display: none !important; }
  .nav-actions .btn-wa { width: auto; padding: .5rem 1rem; }
  .nav-actions .btn-wa span { display: inline; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .journey-wrap { grid-template-columns: 1fr; }
  .journey-wrap .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journey-wrap .journey li:nth-child(even) { margin-top: 0; }
  .hero-card { grid-template-columns: 150px 1fr; align-self: start; }
  .hero-grid { align-items: center; }
  .cars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: .85fr 1.15fr; }
  .tool-grid-rev { grid-template-columns: 1.15fr .85fr; }
  .tool-grid-rev .tool-intro { order: 2; }
  .tool-intro { position: sticky; top: calc(var(--nav-h) + 30px); }
  .about { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr 1.1fr; }
  .cta-inner { grid-template-columns: auto 1fr auto; }
  .cta-actions { grid-column: auto; }
}
@media (min-width: 1280px) {
  .nav-links a:not(.btn) { padding: .5rem .75rem; }
}

/* 9. Reduced motion (solo efectos intrusivos) --------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-wa::before { animation: none; display: none; }
}

/* =============================================================
   Web por apartados
   ============================================================= */
.has-views [data-view]:not(.is-active) { display: none; }

/* Barra superior: enlaces que se iluminan */
.topbar-links { display: flex; align-items: center; gap: 1.4rem; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar-links::-webkit-scrollbar { display: none; }
.tb-link {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .25rem 0;
  color: rgba(255,255,255,.82); transition: color .25s var(--ease-out), text-shadow .25s var(--ease-out);
}
.tb-link .ico { transition: transform .3s var(--ease-out), filter .25s; }
.tb-link:hover, .tb-link:focus-visible, .tb-link:active {
  color: #f1d9a8; text-shadow: 0 0 10px rgba(201,168,107,.85), 0 0 22px rgba(201,168,107,.45);
}
.tb-link:hover .ico, .tb-link:focus-visible .ico { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(201,168,107,.9)); }

/* Menú: apartado actual */
.nav-links a.is-current { color: var(--ink); }
@media (min-width: 960px) {
  .nav-links a.is-current { background: rgba(21,33,44,.07); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 8px 8px 2px 2px; }
}
@media (max-width: 959px) {
  .nav-links a.is-current { color: var(--terra); }
}
@media (min-width: 960px) and (max-width: 1279px) {
  .logo-text small { display: none; }
  .nav-links a:not(.btn) { padding: .5rem .5rem; font-size: .86rem; }
}

/* Portada limpia */
.hero-title { font-size: clamp(3.2rem, 10vw, 7rem); line-height: .95; letter-spacing: -0.045em; max-width: none; }
.hero-tagline { margin-top: 1rem; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; color: var(--amber); max-width: 24ch; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hero-sub { margin-top: .7rem; max-width: 44ch; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 18px; margin-left: -22px; z-index: 2; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); color: #fff;
  transition: border-color .25s, background-color .25s;
  animation: scrollCue 2.4s var(--ease-soft) infinite;
}
.hero-scroll .ico { transform: rotate(90deg); }
.hero-scroll:hover { border-color: #fff; background: rgba(255,255,255,.08); }
@keyframes scrollCue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Anuncios agrupados */
.section-stock { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; }
.section-head-row .filters { margin-bottom: 0; }
.car-group + .car-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.car-group.is-hidden { display: none; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.group-head h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -.025em; }
.group-head span { font-size: .84rem; font-weight: 600; color: var(--mute); }

/* Cabecera con foto de cada apartado */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: clamp(300px, 46svh, 460px); display: flex; align-items: flex-end;
  padding: clamp(4rem, 9vw, 6rem) 0 clamp(2.2rem, 4vw, 3.2rem);
}
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,17,24,.86) 0%, rgba(10,17,24,.55) 55%, rgba(10,17,24,.2) 100%),
              linear-gradient(0deg, rgba(10,17,24,.6) 0%, rgba(10,17,24,0) 50%);
}
.page-hero .kicker { color: var(--amber); }
.page-title { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 700; letter-spacing: -.035em; max-width: 18ch; }
.page-title em { font-style: normal; color: var(--amber); }
.page-lead { margin-top: 1rem; max-width: 60ch; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.4vw, 1.12rem); }

/* Opiniones sobre foto */
.reviews-band { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.reviews-band .band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reviews-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,17,24,.84); }
.reviews-band .section-title { color: #fff; }
.reviews-band .section-title em { color: var(--amber); }
.reviews-band .kicker { color: var(--amber); }
.reviews-band .review { color: var(--ink); }
@media (max-width: 959px) { .topbar-right { display: none !important; } }

/* Calculadora: nota de entrada mínima y 4 resultados */
.range-note { margin-top: .35rem; font-size: .8rem; color: rgba(255,255,255,.6); }
.range-note strong { color: var(--amber); }
.result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

.stock-lead { margin-top: .7rem; max-width: 62ch; color: var(--ink-soft); font-size: .98rem; }

/* Enlaces legales del pie (discretos) */
.footer-legal { width: 100%; font-size: .76rem; opacity: .75; }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: #fff; }

/* Páginas legales */
.legal-page { background: var(--bg); }
.legal-head { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); }
.legal-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--nav-h); }
.legal { max-width: 820px; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700; letter-spacing: -.03em; }
.legal-date { margin-top: .5rem; font-size: .86rem; color: var(--mute); }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin-top: 2.2rem; margin-bottom: .6rem; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal p + p { margin-top: .8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-top: .6rem; display: grid; gap: .35rem; }
.legal a { color: var(--terra); text-decoration: underline; text-underline-offset: 2px; }
.legal-data { list-style: none !important; padding: 1rem 1.2rem !important; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.legal-foot { background: #0b1218; color: rgba(255,255,255,.6); padding: 1.4rem 0; font-size: .82rem; }
.legal-foot a { text-decoration: underline; text-underline-offset: 2px; }
.legal-foot a:hover { color: #fff; }
@media (max-width: 539px) { .legal-head .logo-text small { display: none; } }

/* Utilidades de la revisión final */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.car-badge, .car-tag, .gallery-count { font-size: .76rem !important; }
.contact-list strong a { display: inline-block; padding: .35rem 0; }
.map { display: grid; }
.map-placeholder {
  display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center; padding: 2rem 1.4rem; min-height: 380px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
}
.map-placeholder .ico { width: 40px; height: 40px; color: var(--terra); }
.map-placeholder strong { font-family: var(--serif); font-size: 1.15rem; }
.map-placeholder span { font-size: .84rem; color: var(--mute); max-width: 38ch; }
.map-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .6rem; }

/* Ordenar y filtrar */
.stock-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.sort { display: inline-flex; align-items: center; gap: .6rem; font-size: .84rem; font-weight: 600; color: var(--mute); }
.sort select {
  appearance: none; min-height: 40px; padding: .45rem 2.2rem .45rem .85rem; border-radius: 8px;
  border: 1.5px solid var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121a22' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7rem center / 16px;
  font-weight: 600; font-size: .88rem; color: var(--ink); cursor: pointer;
}
.sort select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(21,33,44,.12); }

/* Descripción del anuncio */
.car-desc { margin-top: .9rem; }
.car-desc summary {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; list-style: none;
  font-size: .86rem; font-weight: 600; color: var(--terra); border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.car-desc summary::-webkit-details-marker { display: none; }
.car-desc summary::after { content: "→"; transition: transform .25s var(--ease-out); }
.car-desc summary:hover::after { transform: translateX(3px); }
.car-desc-body { margin-top: .8rem; font-size: .88rem; color: var(--ink-soft); }
.car-desc-body p + p, .car-desc-body ul { margin-top: .7rem; }
.modal-desc { max-width: min(680px, calc(100vw - 24px)); }
.modal-desc .modal-card { max-height: calc(100svh - 40px); grid-template-rows: auto auto auto 1fr auto; }
.desc-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-top: -.4rem; }
.desc-body { overflow-y: auto; min-height: 0; padding-right: .4rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; border-top: 1px solid var(--line); padding-top: 1rem; }
.desc-body p + p, .desc-body ul, .desc-body ul + p { margin-top: .8rem; }
.desc-body ul { padding-left: 1.2rem; list-style: none; }
.desc-body li { position: relative; padding-left: .2rem; }
.desc-body li::before { content: ""; position: absolute; left: -1rem; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.modal-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.modal-actions .btn { flex: 1 1 200px; }

/* Ventajas vs lo que hay que vigilar */
.section-head-center { text-align: center; }
.section-head-center .kicker { justify-content: center; }
.section-head-center .section-lead { margin-inline: auto; }
.pc-grid { display: grid; gap: 1.2rem; }
.pc-col { border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
.pc-pros { --pc: #2f7d57; --pc-soft: #e8f3ec; border-top: 5px solid var(--pc); }
.pc-cons { --pc: #b9761c; --pc-soft: #fbf1e1; border-top: 5px solid var(--pc); }
.pc-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.pc-head h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 700; letter-spacing: -.025em; color: var(--pc); }
.pc-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--pc); color: #fff; flex: none; }
.pc-badge .ico { width: 24px; height: 24px; }
.pc-list { display: grid; gap: .75rem; }
.pc-list li { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; background: var(--pc-soft); }
.pc-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--pc); flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pc-ico .ico { width: 17px; height: 17px; }
.pc-list div { display: grid; gap: .15rem; min-width: 0; }
.pc-list strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.pc-list span { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.pc-fix {
  display: flex; gap: .45rem; align-items: flex-start; margin-top: .45rem; padding: .5rem .7rem; border-radius: 8px;
  background: #fff; font-style: normal; font-size: .86rem; font-weight: 600; color: #2f7d57; line-height: 1.4;
}
.pc-fix .ico { width: 16px; height: 16px; flex: none; margin-top: .1rem; }

/* La ventaja de ser pequeños */
.small-band { background: var(--green); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.small-inner { display: grid; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.small-stat { display: flex; align-items: center; gap: 1rem; }
.small-stat b { font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; line-height: .85; letter-spacing: -.06em; color: var(--amber); }
.small-stat span { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; line-height: 1.3; color: rgba(255,255,255,.85); }
.small-copy .kicker { color: var(--amber); }
.small-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; }
.small-copy h2 em { font-style: normal; color: var(--amber); }
.small-copy > p:not(.kicker) { margin-top: 1rem; color: rgba(255,255,255,.78); max-width: 60ch; }
.small-points { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.small-points li { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .88rem; font-weight: 600; }
.small-points .ico { width: 16px; height: 16px; color: var(--amber); }
@media (min-width: 960px) {
  .pc-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .small-inner { grid-template-columns: auto 1fr; }
}

/* Quiénes somos: texto sobre la foto de fondo */
.hero-about { min-height: min(86svh, 820px); }
.hero-about .hero-bg img { object-position: 62% 50%; }
.about-overlay .kicker { color: var(--amber); }
.about-overlay .page-title { margin-bottom: 1.2rem; }
.about-overlay p:not(.kicker) { color: rgba(255,255,255,.8); max-width: 52ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.about-overlay p + p { margin-top: .8rem; }
.about-overlay .about-overlay-lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #fff; font-weight: 500; }
.about-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.about-chips li {
  padding: .55rem .95rem; border-radius: 999px; font-size: .9rem; color: rgba(255,255,255,.85);
  background: rgba(10,17,24,.45); border: 1px solid rgba(255,255,255,.18);
}
@supports (backdrop-filter: blur(8px)) { .about-chips li { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } }
.about-chips strong { color: var(--amber); font-weight: 700; }
@media (max-width: 640px) {
  .hero-about .hero-bg img { object-position: 50% 70%; }
}

/* Quiénes somos: mosaico de fotos cercanas */
.about-mosaic { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1 / 1; }
.about-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.about-mosaic .m-tall { grid-row: 1 / span 2; }
.about-v2 .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.about-v2 .values div { padding: .9rem 1rem; }
.about-v2 .values strong { font-size: 1.15rem; }
@media (max-width: 539px) {
  .about-mosaic { aspect-ratio: 4 / 5; }
  .about-v2 .values { grid-template-columns: 1fr; }
}

/* Quiénes somos */
.about-lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem) !important; color: var(--ink) !important; line-height: 1.5; }
.about-models { font-size: .92rem !important; color: var(--mute) !important; margin-top: 1.6rem !important; }

/* Quiénes somos: tarjetas "para quién" bajo la presentación */
.niche-about { padding-top: 0; }

/* Enlace a la ficha de cada vehículo (en las tarjetas) */
.car-ficha {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; min-height: 44px;
  border-radius: 9px; background: var(--bg); font-size: .9rem; font-weight: 700; color: var(--green); transition: background-color .2s;
}
.car-ficha:hover { background: var(--bg-2); }
.car-ficha .ico { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.car-ficha:hover .ico { transform: translateX(3px); }

/* Página de cada vehículo */
.ficha-section { padding-top: clamp(1.4rem, 3vw, 2.4rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600; color: var(--mute); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.car.ficha { display: grid; gap: 0; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.car.ficha:hover { transform: none; box-shadow: none; }
.ficha-gallery { min-width: 0; }
.ficha-media { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.car.ficha:hover .car-media img { transform: none; }
.ficha-media .gallery-arrow { opacity: 1; }
.ficha-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .7rem 0 .3rem; scrollbar-width: thin; }
.ficha-thumbs button { flex: none; width: 92px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; padding: 0; opacity: .78; outline-offset: 2px; transition: opacity .2s; }
.ficha-thumbs button:hover, .ficha-thumbs button:focus-visible { opacity: 1; }
.ficha-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ficha-info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.3rem, 3vw, 2rem); margin-top: 1rem; align-self: start; }
.ficha-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.03em; }
.ficha-title span { font-size: 1rem; }
.ficha-price { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.ficha-price strong { font-size: clamp(2rem, 4vw, 2.5rem); }
.ficha-actions { display: grid; gap: .6rem; margin-top: 1.2rem; }
.ficha-actions .btn { width: 100%; justify-content: center; }
.ficha-share { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; margin-top: .6rem; font-size: .9rem; font-weight: 700; color: var(--wa-2); border-radius: 9px; transition: background-color .2s; }
.ficha-share:hover { background: rgba(31,174,91,.08); }
.ficha-share .ico { width: 18px; height: 18px; }
.ficha-ticks { margin-top: 1.4rem; font-size: .92rem; }
.ficha-ticks a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.ficha-detail { display: grid; gap: 1rem; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.ficha-desc, .ficha-visit { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.3rem, 3vw, 2rem); }
.ficha-desc h2, .ficha-visit h2, .ficha-more h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem; }
.ficha-desc .desc-body { overflow: visible; max-width: 72ch; }
.ficha-visit .contact-list { margin-top: 0; }
.ficha-more { margin-top: clamp(2.5rem, 5vw, 4rem); }
.ficha-more-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1.4rem; }
.mini-card { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mini-card img { grid-row: 1 / span 2; width: 120px; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mini-name { align-self: end; padding-right: 1rem; font-weight: 700; line-height: 1.25; font-size: .95rem; }
.mini-price { align-self: start; padding-right: 1rem; font-family: var(--serif); font-weight: 700; color: var(--terra); margin-top: .2rem; }
@media (min-width: 720px) {
  .ficha-more-grid { grid-template-columns: repeat(3, 1fr); }
  .mini-card { grid-template-columns: 1fr; grid-template-rows: auto; }
  .mini-card img { grid-row: auto; width: 100%; height: auto; }
  .mini-name { padding: .9rem 1rem 0; }
  .mini-price { padding: 0 1rem 1rem; }
}
@media (min-width: 960px) {
  .car.ficha { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
  .ficha-info { margin-top: 0; position: sticky; top: calc(var(--nav-h) + 16px); }
  .ficha-detail { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
}
