/* ============================================================
   Art's Auto Sales — styles.css  (v3: photo-first / hairline)
   White is the material; the cars provide the color.
   Nunito Variable: display 900, body 400, labels 700.
   Radii 4–6px. 1px hairlines instead of shadows. No pure black.
   Red = logo mark ONLY. One motion moment: card image zoom.
   ------------------------------------------------------------
   Contrast (WCAG AA, computed):
     ink   #17242F on #FFFFFF  = 15.8:1
     ink-2 #46586A on #FFFFFF  =  7.3:1
     accent #17618F on #FFFFFF =  6.7:1
     #FFFFFF on navy #123A63   = 11.6:1
     #FFFFFF on deep #0E2A4A   = 14.5:1
     #B9CCE0 on deep #0E2A4A   =  8.8:1
     #9FB6CC on deep #0E2A4A   =  6.9:1
     hero/band text sits where scrim alpha >= .88 over worst-case
     white photo -> blended L .140 -> 5.5:1 (need 4.5)
   ============================================================ */

/* Barlow (body) + Barlow Condensed (display) — automotive-ad typography.
   Nunito was killed by client feedback 6-ago: rounded = template tell. */
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 400;
  src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 700;
  src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600;
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700;
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper:  #FFFFFF;
  --ink:    #17242F;
  --ink-2:  #46586A;
  --navy:   #123A63;
  --deep:   #0E2A4A;
  --accent: #17618F;
  --line:   #E3E9EF;
  --brand-red: #B3272D;   /* logo mark only */

  --r: 5px;
  --container: 1140px;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--navy); }
svg.i { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.16em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- type: one dramatic jump, condensed display ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.0;
  letter-spacing: .002em; color: var(--ink);
}
h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.7rem); }
h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }

.label {
  font-size: .76rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
}
.sub { color: var(--ink-2); }

/* ---------- header chrome ---------- */
.topbar { background: var(--deep); color: rgba(255,255,255,.92); font-size: .85rem; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { text-decoration: underline; }
.topbar .open-now { font-weight: 700; color: #fff; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--brand-red); color: #fff;
  border-radius: 6px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.35rem;
}
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1.05; letter-spacing: .01em; }
.brand .tag { font-size: .66rem; color: var(--ink-2); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: .95rem;
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.nav-cta { margin-left: 8px; }
@media (max-width: 820px) { .nav-links .hide-m { display: none; } }
@media (max-width: 540px) {
  .topbar #hoursToday { display: none; }   /* keep "Abierto ahora" + phone */
  .brand .name { font-size: .98rem; white-space: nowrap; }
  .brand .tag { font-size: .58rem; letter-spacing: .08em; }
  .brand .mark { width: 38px; height: 38px; font-size: 1.2rem; }
}

/* ---------- buttons: rectangular ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border-radius: var(--r); border: 1.5px solid transparent;
  min-height: 48px; padding: 10px 26px;
  transition: background .2s, border-color .2s, color .2s;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--deep); color: #fff; }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-onphoto { background: #fff; color: var(--ink); }
.btn-onphoto:hover { background: var(--line); color: var(--ink); }
.btn-onphoto-line { background: transparent; color: #fff; border-color: #fff; }
.btn-onphoto-line:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-lg { min-height: 54px; font-size: 1.02rem; padding: 12px 30px; }
.btn-sm { min-height: 40px; font-size: .9rem; padding: 6px 18px; }
.btn-block { width: 100%; }

/* ---------- hero: the lot, full bleed ---------- */
.hero {
  position: relative;
  min-height: 520px;
  height: min(80vh, 820px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--deep);
}
.hero picture, .hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(14,42,74,.94) 0%,
    rgba(14,42,74,.88) 30%,
    rgba(14,42,74,0) 62%);
}
.hero .container {
  position: relative; z-index: 1;
  width: 100%;
  padding-bottom: clamp(38px, 6vw, 68px);
}
.hero h1 { color: #fff; max-width: 720px; }
.hero .lead {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,.94);
  max-width: 560px; margin: 14px 0 26px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- home inventory: baseline head ---------- */
.inv-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 30px;
}
.inv-head .meta { color: var(--ink-2); font-size: .95rem; font-weight: 700; }
.inv-foot { margin-top: 34px; }
.arrow-link {
  font-weight: 700; text-decoration: none; font-size: 1.02rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.arrow-link:hover { color: var(--navy); border-bottom-color: var(--navy); }

.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-line { border-top: 1px solid var(--line); }

/* ---------- vehicle cards: ~80% photo ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.car-card { text-decoration: none; color: inherit; display: block; }
.car-photo {
  aspect-ratio: 3 / 2;
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--line);
  display: grid; place-items: center; color: var(--navy);
}
.car-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .2s ease;
}
.car-card:hover .car-photo { border-color: var(--ink-2); }
.car-card:hover .car-photo img { transform: scale(1.03); }
.car-photo .placeholder svg { width: 64px; height: 64px; opacity: .4; }
.car-price {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  background: var(--navy); color: #fff;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem; letter-spacing: .02em;
  padding: 6px 14px 7px;
  border-radius: 0 4px 0 0;
}
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: #fff; color: var(--ink);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
  border: 1px solid var(--line);
}
.badge-demo { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.car-body { padding: 12px 2px 0; }
.car-body h3 {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .015em;
}
.car-body .specs {
  margin-top: 3px;
  font-size: .78rem; font-weight: 700; color: var(--ink-2);
  letter-spacing: .08em; text-transform: uppercase;
}
.car-body .specs span + span::before { content: "· "; margin: 0 3px; }

/* ---------- statement band ---------- */
.band {
  position: relative; overflow: hidden;
  min-height: clamp(340px, 44vw, 500px);
  display: flex; align-items: center;
  background: var(--deep);
}
.band picture, .band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(14,42,74,.92) 0%,
    rgba(14,42,74,.90) 38%,
    rgba(14,42,74,.25) 72%,
    rgba(14,42,74,.05) 100%);
}
.band .container { position: relative; z-index: 1; }
.band .statement {
  color: #fff;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.12; max-width: 560px;
}
.band .small {
  margin-top: 14px; color: rgba(255,255,255,.92);
  font-weight: 700; font-size: .95rem;
}

/* ---------- reviews: real Google quotes ---------- */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 30px 44px; margin-top: 36px; }
@media (min-width: 720px) { .reviews-grid { grid-template-columns: 1fr 1fr; } }
blockquote.review { border-left: 3px solid var(--navy); padding-left: 18px; margin: 0; }
blockquote.review p { font-size: 1.05rem; }
.review .who { margin-top: 12px; font-weight: 700; font-size: .95rem; }
.review .src { font-size: .8rem; color: var(--ink-2); }
.reviews-foot { margin-top: 40px; display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.gstar { width: 22px; height: 22px; fill: var(--navy); flex-shrink: 0; }
.reviews-foot .score { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }

/* ---------- one-sentence strip ---------- */
.strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(40px, 5vw, 60px) 0;
  text-align: center;
}
.strip p { font-size: clamp(1.1rem, 2.2vw, 1.3rem); font-weight: 700; max-width: 640px; margin: 0 auto 14px; }

/* ---------- visit: asymmetric two-column ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 880px) { .visit-grid { grid-template-columns: 1.1fr 1fr; } }
.visit-block { margin-top: 26px; }
.visit-block .label { margin-bottom: 4px; }
.visit-block .big { font-size: 1.15rem; font-weight: 700; }
.visit-block .big a { text-decoration: none; color: var(--ink); }
.visit-block .big a:hover { color: var(--navy); text-decoration: underline; }
.hours-tbl { width: 100%; max-width: 380px; font-size: .95rem; border-collapse: collapse; margin-top: 6px; }
.hours-tbl td { padding: 6px 0; color: var(--ink-2); font-weight: 400; border-bottom: 1px solid var(--line); }
.hours-tbl td:last-child { text-align: right; color: var(--ink); font-weight: 700; }
.hours-tbl tr.today td { color: var(--navy); font-weight: 700; }

form.lead { border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
form.lead .label { display: block; margin: 0 0 6px; }
form.lead input, form.lead select, form.lead textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 12px 14px; margin-bottom: 16px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
}
form.lead input:focus, form.lead select:focus, form.lead textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
form.lead textarea { min-height: 90px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- inventory page ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 30px; }
.filters button {
  font-family: inherit; font-size: .92rem; font-weight: 700;
  min-height: 44px; padding: 8px 20px;
  border-radius: var(--r); border: 1px solid var(--ink-2);
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.count-note { color: var(--ink-2); font-size: .95rem; margin-top: 30px; }

/* ---------- VDP ---------- */
.vdp-layout { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 960px) {
  .vdp-layout { grid-template-columns: 1.65fr 1fr; align-items: start; }
  .vdp-rail { position: sticky; top: 88px; }
}
.gallery-main {
  aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  display: grid; place-items: center; color: var(--navy);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease; }
.gallery-main .placeholder svg { width: 90px; height: 90px; opacity: .4; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs button {
  aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden;
  border: 2px solid var(--line); background: var(--paper); cursor: pointer; padding: 0;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--navy); }

.vdp-rail .card { border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.vdp-price { font-family: var(--font-display); font-size: 2.9rem; font-weight: 700; margin-top: 8px; line-height: 1; }
.vdp-price-note { font-size: .84rem; color: var(--ink-2); margin: 2px 0 18px; }
.vdp-ctas { display: grid; gap: 10px; margin-bottom: 20px; }

.spec-rows { border-top: 1px solid var(--line); }
.spec-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem;
}
.spec-row .k { color: var(--ink-2); }
.spec-row .v { font-weight: 700; text-align: right; }

.warranty-line {
  border: 1px solid var(--line); border-left: 3px solid var(--navy);
  border-radius: 4px; padding: 13px 15px;
  font-size: .89rem; margin-top: 18px;
}
.legal-line { font-size: .78rem; color: var(--ink-2); margin-top: 14px; }
.backlink { display: inline-block; font-weight: 700; text-decoration: none; margin-bottom: 18px; }

/* ---------- FAQ ---------- */
details.faq { border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px; margin-bottom: 12px; }
details.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin-top: 10px; color: var(--ink-2); font-size: .96rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: #B9CCE0; padding: 46px 0 96px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brandline { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 8px; font-size: 1.25rem; }
.site-footer .brandline .mark { width: 30px; height: 30px; background: var(--brand-red); color: #fff; border-radius: 5px; display: grid; place-items: center; font-size: .95rem; font-weight: 700; font-family: var(--font); }
.site-footer .en-line { margin-top: 6px; font-size: .85rem; color: #9FB6CC; }
.site-footer h4 { color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.legal-block { border-top: 1px solid rgba(255,255,255,.16); margin-top: 30px; padding-top: 18px; font-size: .78rem; color: #9FB6CC; }
.legal-block p + p { margin-top: 8px; }

/* ---------- mobile sticky bar: words, no icons ---------- */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
}
.mobile-bar a { flex: 1; font-size: .92rem; padding: 8px 4px; min-height: 46px; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 86px; }
  .site-footer { padding-bottom: 130px; }
}

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-lg { margin-top: 36px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .car-card:hover .car-photo img { transform: none; }
}
