/* =========================================================================
   brandonmazda.com — Landing v3 · "Editorial Dark · Mazda Night"
   impeccable + emil-design-eng + design-taste-frontend
   OKLCH dark · Fraunces + Geist · 4pt · Emil easing · atmospheric glow
   ========================================================================= */

/* ───────── Tokens ───────── */
:root {
  /* Dark warm — no black, no cold grey */
  --ink:          oklch(14% 0.010 40);
  --ink-2:        oklch(18% 0.010 42);
  --ink-3:        oklch(22% 0.010 44);

  /* Paper = text sobre dark */
  --paper:        oklch(95% 0.008 60);
  --paper-soft:   oklch(86% 0.010 58);
  --paper-mute:   oklch(72% 0.010 55);
  --paper-faint:  oklch(55% 0.010 50);

  /* Líneas tintadas visibles sobre dark */
  --line:         oklch(28% 0.010 45);
  --line-soft:    oklch(22% 0.010 44);
  --line-strong:  oklch(36% 0.012 48);

  /* Mazda Red saturado para dark */
  --mazda:        oklch(65% 0.22 28);
  --mazda-deep:   oklch(52% 0.20 28);
  --mazda-soft:   oklch(72% 0.18 28);
  --mazda-tint:   oklch(30% 0.14 28);
  --mazda-glow:   oklch(55% 0.20 28 / 0.22);

  --accent-2:     oklch(70% 0.08 55);

  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body:    'Geist', 'Inter var', system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px; --s-6: 24px;  --s-7: 28px;  --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;
  --s-24: 96px; --s-32: 128px;

  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px;

  --sh-xs: 0 1px 2px oklch(0% 0 0 / 0.35);
  --sh-md: 0 8px 24px oklch(0% 0 0 / 0.45);
  --sh-lg: 0 30px 70px oklch(0% 0 0 / 0.55);

  --ease:    cubic-bezier(0.23, 1, 0.32, 1);
  --dur-xs:  120ms;
  --dur-sm:  180ms;
  --dur-md:  260ms;
  --dur-lg:  420ms;

  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --nav-h: 68px;

  --focus: 0 0 0 2px var(--ink), 0 0 0 4px var(--mazda);
}

/* ───────── Reset ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--ink); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--mazda); color: var(--ink); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ───────── NAV ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: color-mix(in oklab, var(--ink) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-md) var(--ease), border-color var(--dur-md) var(--ease);
}
.nav.scrolled {
  background: color-mix(in oklab, var(--ink) 92%, transparent);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6);
}
.nav-logo { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.nav-logo-img { height: 26px; width: auto; filter: invert(1) brightness(1.1); }
.nav-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  font-variation-settings: "SOFT" 40, "opsz" 14;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.nav-links {
  display: flex; align-items: center; gap: var(--s-7);
  font-family: var(--font-body);
}
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 450;
  color: var(--paper-mute);
  padding: var(--s-2) 0;
  transition: color var(--dur-sm) var(--ease);
}
.nav-links a:hover { color: var(--paper); }
.nav-seminuevos { color: var(--mazda) !important; }
.nav-seminuevos:hover { color: var(--mazda-soft) !important; }
.nav-cta {
  background: var(--mazda);
  color: var(--paper) !important;
  padding: 10px 18px !important;
  border-radius: var(--r-1);
  font-weight: 500;
  transition: background var(--dur-sm) var(--ease), transform var(--dur-xs) var(--ease), box-shadow var(--dur-sm) var(--ease);
  box-shadow: 0 4px 16px oklch(55% 0.20 28 / 0.24);
}
.nav-cta:hover { background: var(--mazda-soft); box-shadow: 0 6px 22px oklch(55% 0.20 28 / 0.34); }
.nav-cta:active { transform: scale(0.98); }

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; border-radius: var(--r-1); }
.nav-toggle span {
  display: block; position: absolute; left: 10px;
  width: 20px; height: 1.5px; background: var(--paper);
  transition: transform var(--dur-md) var(--ease), opacity var(--dur-sm) var(--ease), top var(--dur-md) var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.active span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 500;
  min-height: 46px;
  border-radius: var(--r-1);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease),
              border-color var(--dur-sm) var(--ease), transform var(--dur-xs) var(--ease),
              box-shadow var(--dur-sm) var(--ease);
}
.btn:active { transform: scale(0.98) translateY(-1px); }
.btn-primary {
  background: var(--mazda);
  color: var(--paper);
  box-shadow: 0 4px 18px oklch(55% 0.20 28 / 0.25);
}
.btn-primary:hover { background: var(--mazda-soft); box-shadow: 0 8px 28px oklch(55% 0.20 28 / 0.38); }
.btn-ghost {
  color: var(--paper);
  border: 1px solid var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; min-height: 40px; }
.btn-primary-light { background: var(--paper); color: var(--ink); }
.btn-primary-light:hover { background: var(--mazda); color: var(--paper); }

/* ───────── SECTION + HEAD ───────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-24) var(--pad);
  position: relative;
}
.section + .section { padding-top: var(--s-16); }

.section-head { margin-bottom: var(--s-16); max-width: 860px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.section-label .idx { color: var(--mazda); font-variant-numeric: tabular-nums; }
.section-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--paper);
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.section-title em {
  font-style: italic;
  color: var(--mazda);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.section-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-mute);
  margin-top: var(--s-4);
  max-width: 60ch;
}

/* ───────── HERO ───────── */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--s-16)) var(--pad) var(--s-12);
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

/* Atmospheric glow — Mazda Red radial behind hero */
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 78% 18%, var(--mazda-glow) 0%, transparent 65%),
    radial-gradient(45% 35% at 8% 85%, oklch(25% 0.08 50 / 0.40) 0%, transparent 72%);
  filter: blur(0.5px);
}
.hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, transparent 40%, var(--ink) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  flex: 1;
  padding-bottom: var(--s-16);
  position: relative;
  z-index: 1;
}
.hero-text { display: flex; flex-direction: column; gap: var(--s-6); }

.hero-kicker {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.kicker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mazda);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--mazda) 20%, transparent),
              0 0 14px color-mix(in oklab, var(--mazda) 60%, transparent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--paper);
  font-variation-settings: "SOFT" 40, "opsz" 144;
}
.hero-title em {
  display: block;
  font-style: italic;
  color: var(--mazda);
  font-variation-settings: "SOFT" 70, "opsz" 144;
  margin-top: 2px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--paper-soft);
  max-width: 46ch;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }

.hero-media {
  margin: 0;
  position: relative;
  max-height: clamp(440px, 62vh, 620px);
  display: flex;
  flex-direction: column;
}
.hero-media .hero-img {
  width: 100%;
  height: 100%;
  max-height: clamp(420px, 58vh, 580px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-3);
  box-shadow: var(--sh-lg),
              0 0 0 1px oklch(100% 0 0 / 0.04);
}
.hero-caption {
  margin-top: var(--s-3);
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
  justify-content: space-between;
}
.hero-caption .sep { color: var(--paper-faint); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
  padding-top: var(--s-6);
  margin-top: var(--s-8);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: var(--ink);
}
.stat-item { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-1); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 350;
  font-style: italic;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
/* Variante de texto (no-numérica) — para labels tipo "WhatsApp" que ocupan
   el espacio de un número pero deben verse tipográficamente, no como métrica.
   ~60% del tamaño para que visualmente encaje con "05+" / "200+".
   Usado junto con .stat-item > justify-content: flex-end para que las labels
   queden alineadas a la misma línea base. */
.stat-num--text {
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.015em;
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  display: none;
}
.scroll-arrow {
  position: absolute;
  left: 50%; top: 6px;
  transform: translateX(-50%);
  width: 2px; height: 6px;
  background: var(--paper-mute);
  border-radius: 2px;
  animation: scrollDown 1.8s infinite var(--ease);
}
@keyframes scrollDown {
  0% { opacity: 0; top: 6px; }
  40% { opacity: 1; }
  100% { opacity: 0; top: 18px; }
}

/* ───────── ABOUT ───────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-text { display: flex; flex-direction: column; gap: var(--s-4); max-width: 56ch; }
.about-text p { font-size: 16.5px; line-height: 1.7; color: var(--paper-soft); }
.about-text strong { color: var(--paper); font-weight: 550; }
.about-text .lede {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 20, "opsz" 24;
  margin-bottom: var(--s-2);
}

.diff-list { display: flex; flex-direction: column; }
.diff-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-4);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.diff-item:last-child { border-bottom: 1px solid var(--line); }
.diff-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}
.diff-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.015em;
  margin-bottom: var(--s-1);
}
.diff-item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper-mute);
}

/* ───────── MODELS ───────── */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.model {
  padding: var(--s-8) var(--s-6);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: var(--s-4);
  transition: background var(--dur-sm) var(--ease);
  position: relative;
}
.model + .model { border-left: 1px solid var(--line); }
.model:hover { background: var(--ink-2); }
.model-head { display: flex; flex-direction: column; gap: var(--s-1); }
.model-year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
  font-variant-numeric: tabular-nums;
}
.model-head h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.025em;
  line-height: 1;
}
.model-desc { font-size: 14.5px; line-height: 1.55; color: var(--paper-mute); flex: 1; }
.model-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.model-price {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--paper-mute);
  font-variant-numeric: tabular-nums;
}
.model-price strong {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 17px;
  color: var(--paper);
  letter-spacing: -0.01em;
  margin-left: 2px;
}
.link-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--dur-sm) var(--ease), gap var(--dur-sm) var(--ease);
  white-space: nowrap;
}
.link-arrow span { transition: transform var(--dur-sm) var(--ease); }
.link-arrow:hover { color: var(--mazda); gap: 12px; }

.models-note {
  margin-top: var(--s-8);
  font-size: 14.5px;
  color: var(--paper-mute);
  text-align: center;
}
.models-note a { color: var(--mazda); border-bottom: 1px solid currentColor; }

/* ───────── TOOLS ───────── */
.tools-list { display: flex; flex-direction: column; }
.tool {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: clamp(16px, 3vw, 48px);
  padding: var(--s-10) 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: background var(--dur-sm) var(--ease), padding var(--dur-sm) var(--ease);
}
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool:hover { background: var(--ink-2); padding-left: var(--s-4); padding-right: var(--s-4); }
.tool-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--paper-mute);
  font-variant-numeric: tabular-nums;
}
.tool-body { display: flex; flex-direction: column; gap: var(--s-2); max-width: 56ch; }
.tool-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tool-body p { font-size: 14.5px; line-height: 1.6; color: var(--paper-mute); }

/* ───────── QUOTE FORM ───────── */
.quote-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 1.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.quote-aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--s-4));
  display: flex; flex-direction: column; gap: var(--s-5);
}
.aside-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.aside-points { display: flex; flex-direction: column; gap: var(--s-3); }
.aside-points li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--paper-soft);
  padding-left: var(--s-4);
  position: relative;
}
.aside-points li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px; background: var(--mazda);
}
.aside-points strong { color: var(--paper); font-weight: 550; }
.aside-media {
  margin: 0;
  border-radius: var(--r-3);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--sh-md);
  background: var(--ink-2);
}
.aside-media img { width: 100%; height: 100%; object-fit: cover; }
.aside-sign { display: flex; flex-direction: column; gap: var(--s-1); }
.sign-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-style: italic;
  color: var(--paper);
  font-variation-settings: "SOFT" 50, "opsz" 14;
}
.sign-role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.quote-form { display: flex; flex-direction: column; gap: var(--s-10); }
.form-step { display: flex; flex-direction: column; gap: var(--s-5); }
.step-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: flex; align-items: center; gap: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.step-label span {
  color: var(--mazda);
  font-variant-numeric: tabular-nums;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-group { display: flex; flex-direction: column; gap: var(--s-2); }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease);
  min-height: 44px;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23bbb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}
.form-group select option { background: var(--ink); color: var(--paper); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--paper-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--mazda);
  box-shadow: none;
}
.form-group .invalid { border-bottom-color: var(--mazda) !important; }
.form-group textarea { resize: vertical; min-height: 80px; }

/* date input calendar icon — invert for dark mode */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.55);
  cursor: pointer;
}

.toggle-label {
  display: flex; align-items: center; gap: var(--s-3);
  cursor: pointer;
  font-size: 14px;
  color: var(--paper-soft);
}
.toggle-label input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  width: 36px; height: 20px;
  background: var(--line-strong);
  border-radius: 10px;
  position: relative;
  transition: background var(--dur-sm) var(--ease);
  flex-shrink: 0;
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: var(--sh-xs);
  transition: transform var(--dur-sm) var(--ease);
}
.toggle-label input:checked + .toggle-track { background: var(--mazda); }
.toggle-label input:checked + .toggle-track::after { transform: translateX(16px); }

.version-toggle { gap: var(--s-4); }
.version-select-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-md) var(--ease), opacity var(--dur-md) var(--ease);
  opacity: 0;
  display: flex; flex-direction: column; gap: var(--s-2);
}
.version-select-wrap.open {
  max-height: 200px;
  opacity: 1;
}
.version-hint {
  font-size: 12.5px;
  color: var(--paper-faint);
  font-style: italic;
}

.enganche-section { gap: var(--s-3); }
.enganche-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-4);
}
.enganche-header label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.enganche-header .model-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.enganche-controls {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
.enganche-slider-wrap { display: flex; flex-direction: column; gap: var(--s-1); }
input[type="range"]#qEnganche {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--mazda) 0%, var(--mazda) var(--range-pct, 12.5%), var(--line-strong) var(--range-pct, 12.5%), var(--line-strong) 100%);
  outline: none;
  cursor: pointer;
  padding: 0;
  min-height: 0;
  border: 0;
}
input[type="range"]#qEnganche::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: transform var(--dur-xs) var(--ease), box-shadow var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease);
  box-shadow: 0 2px 8px oklch(0% 0 0 / 0.35);
}
input[type="range"]#qEnganche::-webkit-slider-thumb:hover { background: var(--mazda); }
input[type="range"]#qEnganche::-webkit-slider-thumb:active { transform: scale(1.1); }
input[type="range"]#qEnganche::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  border: 0;
}
.range-labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--paper-faint);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.enganche-values { display: flex; align-items: center; gap: var(--s-3); }
.enganche-pct {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.enganche-pct span:last-child { font-size: 16px; color: var(--paper-mute); }
.enganche-sep { color: var(--paper-faint); font-size: 16px; }
.enganche-amount-wrap {
  display: flex; align-items: center; gap: 2px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  flex: 1;
}
.currency-sign { color: var(--paper-mute); font-size: 14px; font-family: var(--font-mono); }
.enganche-amount {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--paper);
  background: transparent;
  border: 0;
  outline: none;
  width: 100%;
  padding: 0 !important;
  min-height: 0 !important;
  font-variant-numeric: tabular-nums;
}
.enganche-hint {
  font-size: 12.5px;
  color: var(--paper-faint);
  font-style: italic;
}

.form-legal { display: flex; flex-direction: column; gap: var(--s-4); }
.legal-disclaimer { font-size: 12.5px; line-height: 1.55; color: var(--paper-faint); }
.legal-disclaimer a { color: var(--mazda); border-bottom: 1px solid currentColor; }
.legal-toggle { align-items: flex-start; font-size: 13.5px; }
.legal-toggle a { color: var(--mazda); border-bottom: 1px solid currentColor; }

.btn-submit { width: 100%; min-height: 56px; font-size: 16px; }

.quote-message {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-2);
  border: 1px solid;
  font-size: 14.5px;
  line-height: 1.5;
}
.quote-message.success {
  background: color-mix(in oklab, oklch(60% 0.15 145) 15%, var(--ink-2));
  border-color: oklch(55% 0.15 145);
  color: oklch(88% 0.10 145);
}
.quote-message.success svg { color: oklch(70% 0.18 145); flex-shrink: 0; margin-top: 2px; }
.quote-message.error {
  background: color-mix(in oklab, var(--mazda) 18%, var(--ink-2));
  border-color: var(--mazda-soft);
  color: var(--paper);
}

/* ───────── GALLERY ───────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: var(--s-3);
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-2);
  position: relative;
  background: var(--ink-2);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-lg) var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
  background: color-mix(in oklab, var(--ink) 75%, transparent);
  padding: 6px 10px;
  border-radius: var(--r-1);
  backdrop-filter: blur(8px);
}
.gallery-item.g-1 { grid-column: span 2; grid-row: span 2; }
.gallery-item.g-2 { grid-column: span 2; }
.gallery-item.g-3 { grid-column: span 1; }
.gallery-item.g-4 { grid-column: span 1; }

/* ───────── TESTIMONIALS ───────── */
/* Credencial strip — muestra el stat MSS (4.93/5) junto con la fuente oficial (Medallia).
   La fuente importa porque diferencia estos testimonios de reviews auto-publicadas:
   son encuestas post-venta enviadas automáticamente por Mazda México. Social proof verificable. */
.testimonials-cred {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.cred-stat-block {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.cred-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 350;
  font-style: italic;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.cred-denom {
  font-size: 0.55em;
  opacity: 0.45;
  margin-left: 0.12em;
  font-style: italic;
}
.cred-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
  line-height: 1.5;
  max-width: 340px;
}
.cred-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.cred-source strong {
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.cred-source svg {
  flex-shrink: 0;
  color: var(--mazda);
  stroke-width: 2.5;
}
@media (max-width: 640px) {
  .testimonials-cred { gap: var(--s-3); }
  .cred-source { font-size: 9.5px; letter-spacing: 0.08em; }
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
}
.testimonial {
  margin: 0;
  display: flex; flex-direction: column; gap: var(--s-5);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.testimonial .quote-body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--paper);
  font-variation-settings: "SOFT" 50, "opsz" 24;
  letter-spacing: -0.01em;
}
.testimonial footer { display: flex; flex-direction: column; gap: 2px; }
.testimonial cite {
  font-style: normal;
  font-weight: 550;
  font-size: 14px;
  color: var(--paper);
}
.testimonial .quote-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* ───────── SEMINUEVOS light block (inverted for contrast) ───────── */
.section.seminuevos { padding-left: 0; padding-right: 0; max-width: 100%; }
.seminuevos-block {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(48px, 8vw, 96px) var(--pad);
  border-radius: 0;
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  position: relative;
  overflow: hidden;
}
.seminuevos-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 90% 10%, color-mix(in oklab, var(--mazda) 14%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.seminuevos-block > * { position: relative; z-index: 1; }
.section-label.light { color: oklch(40% 0.010 50); }
.section-label.light .idx { color: var(--mazda); }
.section-title.light { color: var(--ink); }
.section-title.light em { color: var(--mazda); }
.seminuevos-desc {
  font-size: 16px;
  line-height: 1.6;
  color: oklch(35% 0.010 50);
  max-width: 56ch;
  margin-top: var(--s-2);
}
.seminuevos-block .btn { margin-top: var(--s-4); }
.seminuevos-block .btn-primary-light {
  background: var(--ink);
  color: var(--paper);
}
.seminuevos-block .btn-primary-light:hover { background: var(--mazda); color: var(--paper); }
.seminuevos-pills {
  display: flex; gap: var(--s-4);
  margin-top: var(--s-4);
  flex-wrap: wrap;
}
.seminuevos-pills li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(40% 0.010 50);
  padding-left: var(--s-4);
  position: relative;
}
.seminuevos-pills li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 8px; height: 1px; background: var(--mazda);
}

/* ───────── FAQ ───────── */
.faq-list { display: flex; flex-direction: column; max-width: 860px; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-6) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.015em;
  transition: color var(--dur-sm) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--mazda); }
.faq-icon { transition: transform var(--dur-md) var(--ease); flex-shrink: 0; color: var(--paper-mute); }
.faq-item[open] summary { color: var(--mazda); }
.faq-item[open] .faq-icon { transform: rotate(180deg); color: var(--mazda); }
.faq-body {
  padding: 0 0 var(--s-6) 0;
  display: flex; flex-direction: column; gap: var(--s-4);
  max-width: 68ch;
}
.faq-body p { font-size: 15.5px; line-height: 1.65; color: var(--paper-soft); }
.faq-body strong { color: var(--paper); font-weight: 550; }
.faq-cta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mazda);
  transition: color var(--dur-sm) var(--ease);
}
.faq-cta:hover { color: var(--mazda-soft); }

/* ───────── CONTACT ───────── */
.contact-list { display: flex; flex-direction: column; }
.contact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.contact-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.02em;
  transition: color var(--dur-sm) var(--ease);
}
.contact-value:hover { color: var(--mazda); }
.contact-meta {
  font-size: 13.5px;
  color: var(--paper-mute);
  line-height: 1.5;
}

/* ───────── FOOTER ───────── */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--s-10) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--paper);
  font-variation-settings: "SOFT" 50, "opsz" 14;
}
.footer-logo { height: 24px; width: auto; filter: invert(1) brightness(1.1); }
.footer-meta {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
  flex-wrap: wrap;
}
.footer-dot { color: var(--paper-faint); }
.footer-meta a { transition: color var(--dur-sm) var(--ease); }
.footer-meta a:hover { color: var(--paper); }

/* ───────── WA FLOAT ───────── */
.wa-float {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  background: var(--mazda);
  color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  box-shadow: 0 8px 32px oklch(55% 0.20 28 / 0.45);
  transition: transform var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease), box-shadow var(--dur-sm) var(--ease);
}
.wa-float:hover { transform: scale(1.06); background: var(--mazda-soft); box-shadow: 0 12px 42px oklch(55% 0.20 28 / 0.58); }
.wa-float:active { transform: scale(0.96); }

/* ───────── ANIMATIONS ───────── */
.animate-in {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  filter: blur(2px);
  animation: heroEnter 0.9s var(--ease) forwards;
}
.hero-text .animate-in:nth-child(1) { animation-delay: 80ms; }
.hero-text .animate-in:nth-child(2) { animation-delay: 180ms; }
.hero-text .animate-in:nth-child(3) { animation-delay: 280ms; }
.hero-text .animate-in:nth-child(4) { animation-delay: 380ms; }
.hero-media.animate-in { animation-delay: 200ms; }
.hero-stats .animate-in:nth-child(1) { animation-delay: 500ms; }
.hero-stats .animate-in:nth-child(2) { animation-delay: 560ms; }
.hero-stats .animate-in:nth-child(3) { animation-delay: 620ms; }

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  filter: blur(3px);
  transition:
    opacity var(--dur-lg) var(--ease),
    transform var(--dur-lg) var(--ease),
    filter var(--dur-lg) var(--ease);
  transition-delay: var(--stagger, 0ms);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero-media { max-width: 540px; margin-left: auto; margin-right: auto; }
  .about-grid { grid-template-columns: 1fr; gap: var(--s-12); }
  .quote-wrap { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
  .aside-media { max-width: 360px; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .gallery-item.g-1, .gallery-item.g-2, .gallery-item.g-3, .gallery-item.g-4 { grid-column: span 1; grid-row: span 1; }
  .gallery-item.g-1 { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--s-4) var(--pad);
    background: color-mix(in oklab, var(--ink) 96%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-md) var(--ease), opacity var(--dur-md) var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; }
  .nav-links a { padding: var(--s-3) 0; width: 100%; display: block; }
  .nav-cta { display: inline-block; margin-top: var(--s-2); }

  .hero { padding-top: calc(var(--nav-h) + var(--s-8)); min-height: auto; }
  .hero-title { font-size: clamp(36px, 9vw, 52px); }
  .hero-stats { grid-template-columns: 1fr; gap: var(--s-4); }
  .stat-item { padding: var(--s-3) 0; border-top: 1px solid var(--line-soft); }
  .stat-item:first-child { border-top: 0; padding-top: 0; }

  .section { padding: var(--s-16) var(--pad); }
  .section-head { margin-bottom: var(--s-10); }

  .models-grid { grid-template-columns: 1fr; }
  .model + .model { border-left: 0; }

  .tool {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    padding: var(--s-6) 0;
  }
  .tool .btn { justify-self: start; }

  .form-row { grid-template-columns: 1fr; }
  .enganche-controls { grid-template-columns: 1fr; gap: var(--s-3); }

  .testimonials-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.g-1 { grid-column: span 1; }

  .contact-row { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-5) 0; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
}

@media (max-width: 480px) {
  :root { --pad: 16px; }
  .hero-title { font-size: clamp(32px, 10vw, 44px); }
  .section-title { font-size: clamp(28px, 8vw, 40px); }
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 22px; height: 22px; }
}
