/* =========================================================
   COLORS  —  change these to adjust the look
   ========================================================= */
:root {
  --ink: #111827;          /* main dark color (text, buttons, footer) */
  --accent: #9a5b24;       /* bronze from the logo (small highlights, links) */
  --accent-light: #c98a4f; /* lighter logo bronze (decorative lines) */
  --whatsapp: #25d366;

  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --border: #e5e7eb;
  --radius: 10px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-weight: 600; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
/* Big desktop monitors: use more of the screen (4 vehicles per row). Laptops and smaller stay as they are. */
@media (min-width: 1440px) { .container { width: min(1320px, 100% - 4rem); } }
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2rem; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .7rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem;
  border-radius: 8px;
  font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2b3445; }
.btn-outline { background: transparent; color: var(--ink); border-color: #cfd3da; }
.btn-outline:hover { border-color: var(--ink); }
.btn-small { padding: .6rem 1rem; font-size: .88rem; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
/* Header logo: small logo (images/logo-small.png) + name stacked beside it */
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.logo-mark { height: 44px; width: auto; flex: none; }
.logo-text { display: grid; font-size: 1.25rem; font-weight: 700; line-height: 1.05; color: var(--ink); letter-spacing: -0.02em; }
.logo-text small {
  font-size: .62rem; font-weight: 600; color: var(--accent);
  letter-spacing: .26em; text-transform: uppercase;
}
.nav { display: flex; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; gap: .5rem; }
.lang-btn, .menu-btn {
  background: #fff; color: var(--ink);
  border: 1px solid var(--border); border-radius: 8px;
  padding: .4rem .75rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.lang-btn:hover, .menu-btn:hover { border-color: var(--ink); }
.menu-btn { display: none; padding: .35rem .5rem; line-height: 0; }
.theme-btn { padding: .35rem .5rem; line-height: 0; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-alt);
  padding: clamp(4.5rem, 12vw, 8.5rem) 0;
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-logo { width: 100%; max-width: 480px; justify-self: end; filter: drop-shadow(0 18px 30px rgba(17,24,39,.12)); }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); font-weight: 700; max-width: 14ch; margin-bottom: 1.2rem; }
.hero-text { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 520px; margin: 0 0 2.2rem; }
.hero-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Perks ---------- */
.perks { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.perk { display: flex; gap: 1rem; align-items: flex-start; }
.perk-icon { width: 28px; height: 28px; flex: none; color: var(--accent); margin-top: .1rem; }
.perk h3 { font-size: 1rem; margin-bottom: .2rem; }
.perk p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Category tabs ---------- */
.cat-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.cat-tabs[hidden] { display: none; }
.cat-tab {
  flex: none;
  font: inherit; font-size: .9rem; font-weight: 500;
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--text); border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.cat-tab:hover { border-color: var(--ink); }
.cat-tab span { color: var(--muted); font-size: .8rem; margin-left: .2rem; }
.cat-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cat-tab.active span { color: rgba(255,255,255,.65); }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .75rem; margin-bottom: .9rem; }
.more-filters-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap;
  font: inherit; font-size: .95rem; font-weight: 600; padding: .75rem 1.1rem; border-radius: 8px; cursor: pointer;
  background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--border); transition: border-color .15s;
}
.more-filters-btn:hover, .more-filters-btn[aria-expanded="true"] { border-color: var(--ink); }
.more-filters-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.filter-count {
  min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
}
.filter-count[hidden] { display: none; }

/* The "Más filtros" panel */
.filter-panel {
  background: var(--surface, #fff); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem; box-shadow: 0 6px 24px rgba(17,24,39,.06);
}
.filter-panel[hidden] { display: none; }
.fp-head { display: none; } /* only on phones */
.fp-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.3rem 2rem; padding: 1.3rem 1.4rem; }
.fp-group h4 { margin: 0 0 .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fp-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.fp-range span { color: var(--muted); }
.fp-range select, .fp-group > select { padding: .6rem .7rem; font-size: .9rem; min-width: 0; }
.fp-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.fp-chip {
  font: inherit; font-size: .87rem; font-weight: 500; padding: .45rem .85rem; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--border); transition: background .15s, border-color .15s, color .15s;
}
.fp-chip:hover { border-color: var(--ink); }
.fp-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
html.dark .fp-chip[aria-pressed="true"] { color: #111318; }
.fp-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.4rem; border-top: 1px solid var(--border); }
.fp-foot .btn { width: auto; padding: .6rem 1.1rem; font-size: .9rem; }

/* Aviso de Privacidad page: shows the visitor's language (Spanish is the official version) */
html[lang="es"] .legal-en, html[lang="en"] .legal-es { display: none; }
.legal-wrap { max-width: 780px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: .3rem 0 .4rem; color: var(--ink); }
.legal h2 { font-size: 1.12rem; margin: 2rem 0 .6rem; color: var(--ink); }
.legal p, .legal li { color: var(--text); line-height: 1.65; }
.legal ul, .legal ol { padding-left: 1.3rem; display: grid; gap: .35rem; }
.legal a { color: var(--accent); }
.legal-date { color: var(--muted) !important; font-size: .92rem; }
.legal-note { font-size: .9rem; padding: .7rem .9rem; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--border); }
.footer-legal { color: inherit; }
/* Short privacy notice under the sell form & notify box */
.privacy-short { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: .6rem 0 0; }
.privacy-short a { color: inherit; text-decoration: underline; }

/* "Coming soon" card while there are no vehicles */
.coming-soon {
  max-width: 640px; margin: .5rem auto 1rem; padding: 2.4rem 2rem; text-align: center;
  background: var(--surface, #fff); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(17,24,39,.06);
}
.coming-soon-icon {
  width: 46px; height: 46px; padding: 10px; border-radius: 50%; box-sizing: content-box;
  background: rgba(201,138,79,.12); color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.coming-soon h3 { margin: 1rem 0 .5rem; font-size: 1.35rem; color: var(--ink); }
.coming-soon p { margin: 0 auto 1.4rem; max-width: 46ch; color: var(--muted); }
.coming-soon-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.coming-soon-actions .btn { width: auto; }
@media (max-width: 520px) { .coming-soon { padding: 2rem 1.25rem; } .coming-soon-actions .btn { flex: 1 1 100%; } }

/* Result count + active filter chips */
.result-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: 1.4rem; min-height: 2rem; }
.result-count { font-size: .9rem; color: var(--muted); }
.result-count strong { color: var(--ink); }
.active-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.active-chip {
  display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .82rem; font-weight: 500;
  padding: .3rem .4rem .3rem .75rem; border-radius: 999px; cursor: pointer;
  background: var(--bg-alt); color: var(--ink); border: 1px solid var(--border);
}
.active-chip::after { content: "×"; font-size: 1rem; line-height: 1; color: var(--muted); padding: 0 .2rem; }
.active-chip:hover { border-color: var(--ink); }
.active-chip:hover::after { color: var(--ink); }
.link-btn { font: inherit; font-size: .85rem; font-weight: 600; color: var(--accent); background: none; border: 0; padding: .3rem; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.empty .link-btn { display: block; margin: .6rem auto 0; font-size: .95rem; }
input, select, textarea {
  width: 100%;
  font: inherit; font-size: .95rem;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17,24,39,.08); }

/* ---------- Car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.car {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.car:hover { box-shadow: 0 12px 30px rgba(17,24,39,.08); transform: translateY(-2px); }
.car-photo { position: relative; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--ink); color: #fff; font-weight: 600; font-size: .72rem;
  padding: .3rem .65rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .08em;
}
.car.is-sold img { filter: grayscale(1); opacity: .55; }
.car-body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.car-price { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 0 0 .8rem; letter-spacing: -0.01em; }
.car-specs {
  list-style: none; padding: .8rem 0 0; margin: 0 0 1.1rem;
  display: flex; flex-wrap: wrap; gap: .3rem .9rem;
  border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--muted);
}
.car-photo { display: block; }
.car-body h3 a { text-decoration: none; }
.car-body h3 a:hover { color: var(--accent); }
/* Lot number "#27" (matches the sticker on the vehicle) */
.lot-tag {
  display: inline-block; vertical-align: middle; margin-left: .2rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: none;
  color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 0 .35rem;
  font-variant-numeric: tabular-nums;
}
.eyebrow .lot-tag { margin-left: .4rem; }
.car-actions { margin-top: auto; display: flex; gap: .5rem; }
.car-actions .btn-primary { flex: 1; width: auto; }
.btn-icon { width: auto; padding: .6rem .8rem; background: #fff; color: #128c4a; border-color: #cfd3da; }
.btn-icon:hover { border-color: #128c4a; background: #f0fbf4; }
.btn svg { flex: none; }
.btn-primary svg { margin-right: .5rem; }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }

/* Prices (sale price & currency) */
.price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; margin: 0 0 .8rem; }
.price-now { font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.price-now.is-sale { color: #b91c1c; }
.price-was { font-size: .95rem; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.price-note { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
.price-save { font-size: .82rem; font-weight: 600; color: #b91c1c; background: #fef2f2; padding: .15rem .55rem; border-radius: 6px; }
.price-detail { margin-bottom: 1.3rem; }
.price-detail .price-now { font-size: clamp(1.8rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.price-detail .price-was { font-size: 1.15rem; }
.price-detail .price-note { font-size: .85rem; }
.badge-sale { left: auto; right: .8rem; background: #b91c1c; }

/* MXN / USD switch in the top bar */
.cur-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.cur-switch button {
  border: 0; background: none; padding: .4rem .6rem; font: inherit; font-size: .8rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
}
.cur-switch button.active { background: var(--ink); color: #fff; }
.cur-switch button:not(.active):hover { color: var(--ink); }

/* Badges on photos: sold / on the lot / not on the lot */
.badge-sold { background: #b91c1c; }
.badge-on { background: rgba(17,24,39,.85); }
.badge-on::before, .badge-off::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: .4rem; vertical-align: middle; position: relative; top: -1px;
}
.badge-on::before { background: #34d399; }
.badge-off { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.badge-off::before { background: #f59e0b; }
.photo-count {
  position: absolute; bottom: .7rem; right: .7rem;
  background: rgba(17,24,39,.75); color: #fff; font-size: .75rem; font-weight: 500;
  padding: .2rem .55rem; border-radius: 6px;
}

/* ---------- Vehicle detail page ---------- */
.vehicle-page { padding-top: 1.5rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.vehicle { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.5rem; align-items: start; }
.gallery-main {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-alt); cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: .8rem; }
.gallery-nav.next { right: .8rem; }
.gallery-count {
  position: absolute; bottom: .8rem; right: .8rem;
  background: rgba(17,24,39,.75); color: #fff; font-size: .8rem; padding: .25rem .6rem; border-radius: 6px;
}
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; margin-top: .6rem; }
.thumb {
  padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer; background: var(--bg-alt); opacity: .65;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--ink); }
/* Video (YouTube) inside the gallery */
.gallery-video { position: absolute; inset: 0; display: none; background: #000; }
.gallery-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.gallery-main.is-video { cursor: default; }
.gallery-main.is-video .gallery-video { display: block; }
.gallery-main.is-video .gallery-count { display: none; } /* would cover YouTube's buttons */
.thumb { position: relative; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.thumb-play svg { width: 30px; height: 30px; }
.video-btn {
  margin-left: .6rem; padding: .15rem .65rem; border: 1px solid var(--accent); border-radius: 999px;
  background: transparent; color: var(--accent); font: inherit; font-size: .8rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; vertical-align: middle;
}
.video-btn:hover { background: var(--accent); color: #fff; }

.vehicle-info { position: sticky; top: 92px; }
.vehicle-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .6rem; }
.vehicle-info .car-specs { border-top: 0; padding-top: 0; margin-bottom: 1rem; font-size: .92rem; }
.vehicle-price { font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 700; color: var(--ink); margin: 0 0 1.3rem; letter-spacing: -0.02em; }

.lot-status {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.3rem; border: 1px solid;
}
.lot-status strong { display: block; color: var(--ink); font-size: 1rem; }
.lot-status p { margin: .15rem 0 0; font-size: .9rem; color: var(--muted); }
.lot-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; margin-top: .4rem; }
.lot-status.on { background: #ecfdf5; border-color: #a7f3d0; }
.lot-status.on .lot-dot { background: #10b981; box-shadow: 0 0 0 4px #d1fae5; }
.lot-status.off { background: #fffbeb; border-color: #fde68a; }
.lot-status.off .lot-dot { background: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; }

.vehicle-actions { display: grid; gap: .6rem; }
.notify-box { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); }
.notify-link {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--accent);
  text-decoration: none;
}
.notify-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.notify-box p { margin: .3rem 0 0; font-size: .85rem; color: var(--muted); }
.sold-note { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 1rem; border-radius: var(--radius); margin: 0; }

.vehicle-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  margin: 3.5rem 0 4rem; padding-top: 3rem; border-top: 1px solid var(--border);
}
.vehicle-details h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.vehicle-details section > h2:not(:first-child) { margin-top: 2rem; }
.spec-table { margin: 0; }
.spec-table div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 500; color: var(--ink); text-align: right; }
.vehicle-desc { color: var(--text); margin: 0; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.features li { padding-left: 1.6rem; position: relative; }
.features li::before {
  content: ""; position: absolute; left: .2rem; top: .45rem; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.not-found { text-align: center; padding: 4rem 0 5rem; }
.not-found p { color: var(--muted); margin-bottom: 1.5rem; }
.center-row { text-align: center; margin-top: 2.5rem; }

/* Full-screen photo viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,12,16,.94);
  display: grid; place-items: center; padding: 3rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; cursor: pointer;
}
.lightbox-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .9rem; }
.lightbox.single .gallery-nav { display: none; }

/* ---------- Sell form ---------- */
.sell { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
.sell-intro p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.note { font-size: .92rem !important; border-left: 2px solid var(--border); padding-left: .9rem; }
.sell-form {
  background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border);
  display: grid; gap: 1.1rem;
}
.sell-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .88rem; color: var(--ink); }
.sell-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sell-form .row-price { grid-template-columns: 2fr 1fr; }
.input-unit { display: grid; grid-template-columns: 1fr auto; gap: .4rem; }
.input-unit select { width: auto; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: .9rem 1rem; margin: 0; display: grid; gap: .55rem; }
legend { font-weight: 600; padding: 0 .3rem; font-size: .88rem; color: var(--ink); }
.sell-form .check { display: flex; align-items: center; gap: .6rem; font-weight: 400; font-size: .93rem; color: var(--text); }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.form-error { color: #b91c1c; margin: 0; font-size: .9rem; font-weight: 500; }
.form-fine { margin: 0; font-size: .85rem; color: var(--muted); }
/* "Antes de enviar" box above the send button */
.sell-terms { display: grid; gap: .55rem; padding: .9rem 1rem; border-radius: 8px; background: var(--bg-alt); border-left: 3px solid var(--accent); font-size: .87rem; color: var(--text); }
.sell-terms > strong { color: var(--ink); font-size: .92rem; }
.sell-terms ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; line-height: 1.45; }
.sell-form .sell-terms .check { align-items: flex-start; font-weight: 600; color: var(--ink); font-size: .88rem; margin-top: .15rem; }
.sell-terms .check input { margin-top: .15rem; flex: none; }

/* Plan cards in the sell form */
.plans { border: 0; padding: 0; gap: .7rem; }
.plans legend { padding: 0; margin-bottom: .5rem; }
/* 2 cards per row when there's room, 1 per row on narrow screens */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(220px, calc(50% - .35rem)), 1fr)); gap: .7rem; }
.sell-form .plan {
  position: relative; display: flex; flex-direction: column; gap: .15rem;
  padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s;
}
.sell-form .plan:hover { border-color: #cfd3da; }
.plan input { position: absolute; top: .95rem; right: .9rem; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-num { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plan-name { font-size: 1rem; color: var(--ink); padding-right: 1.6rem; }
.plan-list { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: .2rem; font-weight: 400; font-size: .86rem; line-height: 1.4; }
.plan-list li { position: relative; padding-left: 1.3rem; }
.plan-list li::before { position: absolute; left: 0; font-weight: 700; }
.plan-list .yes { color: var(--text); }
.plan-list .yes::before { content: "✓"; color: #15803d; }
.plan-list .no { color: var(--muted); }
.plan-list .no::before { content: "✕"; color: #9ca3af; font-weight: 400; }
.plan-extra { margin-top: .45rem; font-weight: 400; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.plan-price { margin-top: .2rem; font-weight: 400; font-size: .85rem; color: var(--muted); }
.plan-price strong { font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.plan-price small { display: block; font-size: .78rem; }
.plan-na { margin-top: .2rem; font-weight: 500; font-size: .85rem; color: var(--muted); }
.plan-type-note { color: var(--accent); }
.sell-form .plan.is-off { cursor: not-allowed; opacity: .55; }
.sell-form .plan.is-off:hover { border-color: var(--border); }
/* Tier: emblem + name/subtitle at the top, colored border (js/plan-tiers.js) */
.plan-head { display: flex; align-items: center; gap: .75rem; padding-right: 1.6rem; margin-bottom: .1rem; }
.plan-head .plan-name { padding-right: 0; }
.plan-titles { display: grid; gap: .05rem; min-width: 0; }
.plan-sub { font-size: .8rem; font-weight: 500; color: var(--muted); line-height: 1.3; }
.plan-emblem { width: 44px; height: 44px; flex: none; }
/* On the cards: the star sits in a round badge centered on the top border */
.plan .plan-emblem {
  position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 52px; padding: 6px; box-sizing: border-box;
  background: var(--badge-bg, #fff); border: 3.5px solid var(--tier, var(--border)); border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}
.plan-grid:has(.plan[class*="tier-"]) { row-gap: 2.2rem; padding-top: 1.4rem; }
.plan.tier-bronze   { --tier: #c98a4f; --tier-ink: #8a5124; }
.plan.tier-silver   { --tier: #a9b2be; --tier-ink: #5f6a78; }
.plan.tier-gold     { --tier: #d6a63a; --tier-ink: #8f620f; }
.plan.tier-platinum { --tier: #5d6187; --tier-ink: #3a3d5c; }
.plan.tier-diamond  { --tier: #49b3df; --tier-ink: #1b74a3; }
.sell-form .plan[class*="tier-"] {
  border: 3.5px solid var(--tier); border-radius: 12px; padding-top: 1.75rem;
  background-image: linear-gradient(to bottom, color-mix(in srgb, var(--tier) 12%, transparent), transparent 96px);
}
.sell-form .plan[class*="tier-"]:hover { border-color: var(--tier); box-shadow: 0 6px 18px color-mix(in srgb, var(--tier) 24%, transparent); }
.sell-form .plan[class*="tier-"]:has(input:checked) {
  border-color: var(--tier-ink); box-shadow: 0 0 0 2px var(--tier);
  background-color: color-mix(in srgb, var(--tier) 8%, transparent);
}
.plan[class*="tier-"]:has(input:checked) .plan-emblem { border-color: var(--tier-ink); }
.plan[class*="tier-"] .plan-num { color: var(--tier-ink); }
.plan[class*="tier-"] input { accent-color: var(--tier-ink); }
.sell-form .plan[class*="tier-"].is-off:hover { box-shadow: none; }
.plan-commission { margin: 0; font-size: .86rem; color: var(--text); }
.plan-need { margin: 0; padding: .7rem .9rem; border-radius: 8px; background: var(--bg-alt); font-size: .88rem; color: var(--text); }

/* ---------- About us ---------- */
.about-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.about-text { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.vision-card {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2rem;
  position: relative; overflow: hidden;
}
.vision-card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 160px; height: 160px;
  border-radius: 50%; border: 24px solid rgba(201,138,79,.18);
}
.vision-card .eyebrow { color: var(--accent-light); }
.vision-text { font-size: 1.2rem; line-height: 1.5; margin: 0; position: relative; z-index: 1; }
.values-title { font-size: 1.2rem; margin: 3rem 0 1.2rem; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value { border-top: 2px solid var(--ink); padding-top: 1rem; }
.value-num { font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.value h4 { font-size: 1.05rem; color: var(--ink); margin: .4rem 0 .3rem; }
.value p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Customer reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.review {
  margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem;
}
.stars { color: #f5b301; font-size: 1.05rem; letter-spacing: .12em; line-height: 1; }
.stars span { color: var(--border); }
.review blockquote { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.6; flex: 1; }
.review figcaption { display: grid; gap: .1rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.review figcaption strong { color: var(--ink); }
.review figcaption span { font-size: .82rem; color: var(--muted); }
.review-link { justify-self: start; margin-top: .35rem; font-size: .82rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.review-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.reviews-ask { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.2rem; }
.reviews-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.reviews-cta:not(:has(a:not([hidden]))) { display: none; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start; }
.address { font-size: 1.05rem; color: var(--muted); }
.location h3 { font-size: 1rem; margin-top: 1.8rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 380px; font-size: .95rem; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.hours td:last-child { text-align: right; font-weight: 500; color: var(--ink); }
.phone { display: inline-block; margin: .6rem 0 .4rem; font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--ink); }
.phone:hover { color: var(--accent); }
.map { width: 100%; height: 420px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }

/* ---------- Footer & floating button ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 2rem 0; font-size: .88rem; }
.footer { padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; }
.footer-brand { display: grid; gap: .2rem; align-content: start; }
.footer-brand .footer-name { font-size: 1.05rem; }
.footer-brand p { margin: .6rem 0 0; max-width: 32ch; }
.footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .7rem; }
.footer-col { display: grid; gap: .35rem; align-content: start; }
.footer-col a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-hours { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; max-width: 260px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0 1.4rem; font-size: .82rem; color: rgba(255,255,255,.5); }

/* Phone: currency & dark mode live inside the ☰ menu */
.nav-prefs { display: none; }
.footer-name { color: #fff; font-weight: 600; }
.footer-email { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-email:hover { color: #fff; text-decoration: underline; }
.contact-lines { display: grid; gap: .1rem; justify-items: start; margin: .6rem 0 1rem; }
.contact-lines .phone { margin: 0; }
.footer-slogan { color: var(--accent-light); font-style: italic; }
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* ---------- Gentle animations ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
#mainPhoto { transition: opacity .25s ease; }
#mainPhoto.is-fading { opacity: .25; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #mainPhoto { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Opening-day announcement pop-up ---------- */
.ann-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(10,12,16,.6);
  display: grid; place-items: center; padding: 1rem; animation: ann-fade .25s ease-out;
}
.ann-card {
  position: relative; width: min(440px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: ann-pop .3s ease-out;
}
.ann-top {
  background: var(--ink); padding: 1.6rem 1rem 1.3rem; display: grid; place-items: center;
  border-bottom: 3px solid var(--accent-light);
}
.ann-top img { width: 170px; height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.ann-body { padding: 1.5rem 1.6rem 1.7rem; text-align: center; }
.ann-body h2 { font-size: 1.7rem; margin-bottom: .3rem; }
.ann-date { margin: 0; font-weight: 600; color: var(--ink); }
.ann-countdown {
  display: inline-block; margin: .9rem 0 0; padding: .35rem .9rem; border-radius: 999px;
  background: #f3e6d8; color: var(--accent); font-weight: 700; font-size: .95rem;
}
.ann-text { color: var(--muted); margin: 1rem 0 1.4rem; }
.ann-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ann-sell { display: block; margin-top: 1rem; font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.ann-sell:hover { text-decoration: underline; }
.ann-close {
  position: absolute; top: .7rem; right: .7rem; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.ann-close:hover { background: rgba(255,255,255,.28); }
@keyframes ann-fade { from { opacity: 0; } }
@keyframes ann-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .ann-backdrop, .ann-card { animation: none; } }

/* =========================================================
   MOBILE  (screens narrower than 820px)
   ========================================================= */
@media (max-width: 820px) {
  .header-inner { height: 64px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 1rem 1.25rem; border-top: 1px solid var(--border); color: var(--ink); }
  .cur-switch-top, .theme-btn-top { display: none; }
  .nav-prefs {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .9rem 1.25rem; border-top: 1px solid var(--border);
  }
  .theme-btn-wide { display: inline-flex; align-items: center; gap: .45rem; line-height: 1; padding: .45rem .7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-bottom { padding-right: 4.5rem; padding-bottom: 1.8rem; } /* room for the WhatsApp button */

  .perks-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input, .more-filters-btn { grid-column: 1 / -1; }
  /* "Más filtros" opens as a full-screen sheet */
  .filter-panel {
    position: fixed; inset: 0; z-index: 90; margin: 0; border: 0; border-radius: 0;
    display: flex; flex-direction: column; box-shadow: none;
  }
  .filter-panel[hidden] { display: none; }
  .fp-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 1.1rem; color: var(--ink);
  }
  .fp-close { font-size: 1.8rem; line-height: 1; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 0 .3rem; }
  .fp-body { flex: 1; overflow-y: auto; grid-template-columns: 1fr; align-content: start; padding: 1.25rem; gap: 1.5rem; }
  .fp-foot { padding: .9rem 1.25rem calc(.9rem + env(safe-area-inset-bottom)); }
  .fp-foot .btn { flex: 1; padding: .8rem 1rem; }
  body.sheet-open { overflow: hidden; }
  .sell, .location { grid-template-columns: 1fr; gap: 2.5rem; }
  .vehicle, .vehicle-details { grid-template-columns: 1fr; gap: 1.8rem; }
  .about-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .vehicle-info { position: static; }
  .vehicle-details { margin: 2.5rem 0 3rem; padding-top: 2rem; }
  .gallery-main { margin-inline: -1.25rem; border-radius: 0; }
  .gallery-nav { width: 38px; height: 38px; font-size: 1.5rem; }
  .vehicle-page { padding-top: 1rem; }
  .map { height: 300px; }
  .hero-buttons .btn { flex: 1 1 100%; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-logo { order: -1; max-width: 260px; justify-self: center; }
  .logo-mark { height: 38px; }
  .logo-text { font-size: 1.1rem; }
}

@media (max-width: 420px) {
  .sell-form .row { grid-template-columns: 1fr; }
  .sell-form .row-price { grid-template-columns: 1.6fr 1fr; }
  .sell-form { padding: 1.3rem; }
}
