:root {
  --ink: #0f1b2d;
  --ink-2: #1c2a40;
  --bg: #f6f2eb;
  --surface: #ffffff;
  --line: #e4ddd1;
  --text: #17202e;
  --muted: #5d6573;
  --accent: #d9531f;
  --accent-h: #bf4516;
  --wa: #128c4a;
  --wa-h: #0e7a40;
  --radius: 14px;
  --font-display: "Cabinet Grotesk", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: clamp(.75rem, .72rem + .15vw, .8125rem);
  --text-sm: clamp(.875rem, .85rem + .12vw, .9375rem);
  --text-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  --text-xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --text-hero: clamp(2.4rem, 1.4rem + 4.2vw, 5rem);
  --sec: clamp(4rem, 8vw, 7.5rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; letter-spacing: -.02em; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; font: 700 var(--text-sm)/1 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--sm { min-height: 42px; padding: .6rem 1rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-h); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-h); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(15,27,45,.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(15,27,45,.45); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s var(--ease), box-shadow .3s; }
.header.is-scrolled { background: rgba(15,27,45,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { font: 800 1.5rem/1 var(--font-display); letter-spacing: -.02em; color: #fff; text-decoration: none; }
.brand span { color: var(--accent); }
.brand--light { color: #fff; }
.nav { display: flex; gap: 2rem; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.nav a:hover { color: #fff; }

/* Hero */
.hero { position: relative; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #22324d 0%, var(--ink) 55%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: 8rem clamp(3.5rem, 7vw, 6rem); min-height: min(92vh, 860px); }
.hero__kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; font-size: var(--text-sm); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(217,83,31,.3); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.5rem); font-weight: 800; letter-spacing: -.03em; max-width: 13ch; text-wrap: balance; }
.hero__lead { max-width: 44ch; margin: 1.25rem 0 2rem; font-size: var(--text-lg); color: rgba(255,255,255,.82); line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.rating { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2.25rem; font-size: var(--text-sm); text-decoration: none; color: rgba(255,255,255,.9); }
.rating:hover { color: #fff; }
.stars { color: #f6b941; letter-spacing: .1em; }
.hero__mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: .75rem; aspect-ratio: 5/4; }
.hero__mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(0,0,0,.6); }
.hero__mosaic .m1 { grid-row: 1 / 3; }

/* Sections */
.section { padding-block: var(--sec); }
.section--ink { background: var(--ink); color: #fff; }
.eyebrow { margin: 0 0 .6rem; font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: #f08a5d; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 var(--text-sm)/1 var(--font-body); color: var(--text); cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort select { min-height: 40px; padding: .45rem 2.2rem .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317202e' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 1rem center; font: 500 var(--text-sm)/1 var(--font-body); color: var(--text); appearance: none; cursor: pointer; }
.count { margin: 0 0 1.5rem; font-size: var(--text-sm); color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.5rem; }
.car { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.car:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(15,27,45,.35); }
.car__media { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 4/3; overflow: hidden; background: #e9e3d8; }
.photos { position: absolute; right: .85rem; bottom: .85rem; padding: .3rem .65rem; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: var(--text-xs); font-weight: 700; }
.linkish { all: unset; cursor: pointer; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkish:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.car__ver { margin: -.75rem 0 1rem; font-size: var(--text-sm); color: var(--muted); line-height: 1.4; }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car:hover .car__media img { transform: scale(1.04); }
.tag { position: absolute; top: .85rem; left: .85rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(15,27,45,.82); color: #fff; font-size: var(--text-xs); font-weight: 700; letter-spacing: .03em; }
.car__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.35rem; }
.car__make { margin: 0; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.car__model { margin: .2rem 0 1rem; font-size: var(--text-lg); font-weight: 700; line-height: 1.25; }
.specs { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: .5rem .75rem; border-block: 1px solid var(--line); padding-block: .85rem; }
.specs li { font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.specs span { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--muted); }
.car__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price { margin: 0; font: 800 1.6rem/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { grid-column: 1/-1; padding: 3rem; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }
.notfound { margin-top: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: #ece5d8; }
.notfound p { margin: 0; max-width: 60ch; }

/* Ficha */
body.lock { overflow: hidden; }
.sheet { width: min(1040px, 100% - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); overflow: auto; box-shadow: 0 40px 100px -20px rgba(0,0,0,.5); }
.sheet::backdrop { background: rgba(10,18,32,.72); backdrop-filter: blur(4px); }
.sheet__close { position: sticky; top: .75rem; float: right; margin: .75rem .75rem -3.5rem 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); font-size: 1.75rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.sheet__in { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-areas: "gal info" "thumbs info"; }
.gal { grid-area: gal; position: relative; background: #111; }
.gal__main { aspect-ratio: 4/3; }
.gal__main img { width: 100%; height: 100%; object-fit: contain; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.gal__prev { left: .75rem; } .gal__next { right: .75rem; }
.gal__count { position: absolute; left: .85rem; bottom: .85rem; margin: 0; padding: .25rem .6rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: var(--text-xs); font-weight: 700; }
.thumbs { grid-area: thumbs; display: flex; gap: .4rem; padding: .6rem; overflow-x: auto; background: #f2eee6; }
.thumb { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .7; background: #ddd; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--accent); opacity: 1; }
.sheet__info { grid-area: info; padding: clamp(1.25rem, 3vw, 2rem); }
.sheet__info h2 { margin: .2rem 0 .9rem; font-size: var(--text-xl); }
.sheet__info .car__ver { margin: -.4rem 0 1.25rem; }
.price--lg { font-size: 2.1rem; margin-bottom: 1.25rem; }
.price small { font: 500 var(--text-sm) var(--font-body); color: var(--muted); letter-spacing: 0; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; margin: 0 0 1.5rem; }
.dl div { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.dl dt { font-size: var(--text-xs); color: var(--muted); }
.dl dd { margin: 0; font-weight: 700; font-size: var(--text-sm); }
.sheet__ctas { display: flex; flex-wrap: wrap; gap: .6rem; }
.sheet__ctas .btn--wa { flex: 1 1 auto; }
.wl { display: inline-block; margin-top: 1rem; font-size: var(--text-sm); color: var(--muted); }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.why__intro p:last-child { color: rgba(255,255,255,.75); max-width: 42ch; margin-top: 1.25rem; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 2rem; }
.why__list li { display: flex; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); }
.n { font: 700 var(--text-sm)/1.6 var(--font-body); color: #f08a5d; font-variant-numeric: tabular-nums; }
.why__list h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: .35rem; }
.why__list p { margin: 0; color: rgba(255,255,255,.72); font-size: var(--text-sm); }

/* Location */
.loc { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
address { font-style: normal; margin: 1.5rem 0; line-height: 1.7; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; font-size: var(--text-sm); }
.hours th, .hours td { padding: .7rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.open-now { display: inline-flex; align-items: center; gap: .5rem; margin: 1.25rem 0 0; font-size: var(--text-sm); font-weight: 700; color: var(--muted); }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #a3a8b0; }
.open-now.is-open { color: var(--wa); }
.open-now.is-open::before { background: var(--wa); }
.loc__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.loc__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9e3d8; }
.loc__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: 3rem 6rem; font-size: var(--text-sm); }
.footer__in { display: grid; gap: .75rem; }
.footer a:not(.brand) { color: #fff; }
.small { font-size: var(--text-xs); color: rgba(255,255,255,.5); margin: 0; }
.footer p { margin: 0; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 30px -6px rgba(18,140,74,.55); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.07); background: var(--wa-h); }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 6.5rem; }
  .hero__mosaic { aspect-ratio: 16/10; }
  .sheet__in { grid-template-columns: 1fr; grid-template-areas: "gal" "thumbs" "info"; }
  .why, .loc { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header .btn--wa span { display: none; }
  .header .btn--wa { width: 42px; padding: 0; }
  .why__list { grid-template-columns: 1fr; }
  .hero__mosaic { gap: .5rem; }
  .sheet { width: 100%; max-width: none; height: 100dvh; max-height: none; border-radius: 0; margin: 0; }
  .sheet__ctas .btn { flex: 1 1 100%; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .notfound .btn { width: 100%; }
  .loc__ctas .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
