/* ============================================================
   AUTODETAIL PREMIUM · Styles
   Palette: Black / White / Gray with subtle warm accent
   Typography: Inter (system) + Outfit (display)
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg: #f7f7f8;
  --bg-deep: #0a0a0b;
  --surface: #ffffff;
  --surface-warm: #f0f0f2;
  --surface-soft: #e8e8eb;
  --card: #ffffff;
  --text: #111113;
  --text-secondary: #52525b;
  --muted: #71717a;
  --line: rgba(0, 0, 0, .08);
  --border: rgba(0, 0, 0, .10);
  --brand: #111113;
  --brand-soft: #27272a;
  --accent: #18181b;
  --accent-warm: #a3a3a3;
  --highlight: #3b82f6;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(0, 0, 0, .08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .04);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, .10);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --font-display: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
  --wa-green: #0b7a37;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.modal-open, body.lightbox-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; color: inherit; touch-action: manipulation; }

/* --- Skip Link --- */
.skip-link {
  position: fixed; left: 0; top: 0; z-index: 999;
  transform: translateY(-140%);
  background: var(--brand); color: var(--white); padding: 12px 20px;
  font-weight: 600; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { transform: translateY(0); }

/* --- Screen-reader only utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Scroll margin para anchors internos (compensa header sticky) --- */
#vehiculos, #catalogo-vehiculos, #detailing, #nosotros, #contacto {
  scroll-margin-top: 88px;
}
@media (max-width: 768px) {
  #vehiculos, #catalogo-vehiculos, #detailing, #nosotros, #contacto {
    scroll-margin-top: 76px;
  }
}

/* --- Reduced motion (accesibilidad + batería) --- */
@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;
  }
}

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Section Padding --- */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 40px 0; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 10px;
}

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-secondary); margin: 12px 0 0; font-size: 1.04rem; line-height: 1.6; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 650;
  font-size: .92rem; letter-spacing: .01em; transition: all .2s ease;
  white-space: nowrap; text-decoration: none; border: none; cursor: pointer;
  min-height: 48px;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: #27272a; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--surface-warm); border-color: rgba(0,0,0,.18); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 13px 20px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-warm); }
.btn-ghost.is-active { color: var(--text); background: var(--surface-soft); font-weight: 700; }
.btn-success { background: var(--wa-green); color: #fff; }
.btn-success:hover { background: #1fb855; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: .84rem; min-height: 44px; }

a.is-disabled, [data-wa-disabled="true"] { cursor: not-allowed; opacity: .5; pointer-events: none; }

/* --- HEADER --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  display: flex; align-items: center; gap: 20px; height: 100%;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: -0.02em; color: var(--text); white-space: nowrap;
}
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 36px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a {
  padding: 8px 16px; border-radius: 999px; font-size: .88rem;
  font-weight: 550; color: var(--text-secondary); transition: all .18s ease;
}
.main-nav a:hover { color: var(--text); background: var(--surface-warm); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--surface-warm); font-weight: 650; }

.btn-header-wa {
  margin-left: 8px; padding: 9px 20px; border-radius: 999px;
  background: var(--brand); color: var(--white);
  font-size: .84rem; font-weight: 650; white-space: nowrap;
  transition: all .18s;
}
.btn-header-wa:hover { background: #27272a; }

/* Hamburger */
.nav-hamburger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px; margin-left: auto;
  border-radius: var(--radius-sm); transition: background .18s;
}
.nav-hamburger:hover { background: var(--surface-warm); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .25s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-hamburger { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 24px; gap: 4px;
    transform: translateY(-110%); opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,.08);
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; }
  .main-nav a { width: 100%; padding: 14px 16px; font-size: 1rem; border-radius: var(--radius-sm); }
  .btn-header-wa { display: none; }
}

/* --- HERO --- */
.hero {
  background: var(--bg-deep);
  color: var(--white);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Background slides with Ken Burns crossfade */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  animation: heroBgCrossfade 21s ease-in-out infinite;
  will-change: opacity, transform;
  transform: scale(1);
}
.hero-bg-1 {
  background-image: url('assets/hero-detailing-1.jpg');
  background-position: center 65%;
  animation-delay: 0s;
}
.hero-bg-2 {
  background-image: url('assets/hero-detailing-2.jpg');
  background-position: center 70%;
  animation-delay: 7s;
}
.hero-bg-3 {
  background-image: url('assets/hero-detailing-3.jpg');
  background-position: center 60%;
  animation-delay: 14s;
}

@keyframes heroBgCrossfade {
  0%   { opacity: 1; transform: scale(1); }
  5%   { opacity: 1; transform: scale(1); }
  33%  { opacity: 1; transform: scale(1.08); }
  38%  { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-slide { animation: none; }
  .hero-bg-1 { opacity: 1; }
}

/* Overlay gradient — darker on left for text legibility */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.60) 45%,
    rgba(0,0,0,.35) 100%
  );
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding-top: 100px; padding-bottom: 80px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 600px; }
.hero .eyebrow {
  color: rgba(255,255,255,.55);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero .eyebrow::before {
  content: '';
  display: inline-block; width: 24px; height: 2px;
  background: rgba(255,255,255,.4); border-radius: 2px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.hero-lead {
  color: rgba(255, 255, 255, .75);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .btn-wa {
  background: var(--wa-green);
  color: #fff;
  font-size: 1rem;
  padding: 15px 32px;
  box-shadow: 0 4px 24px rgba(37,211,102,.35);
}
.hero-actions .btn-wa:hover { background: #075e2b; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(7,94,43,.34); }
.hero-actions .btn-secondary {
  color: var(--white);
  border-color: rgba(255,255,255,.3);
  font-size: 1rem;
  padding: 15px 28px;
}
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* WhatsApp icon in hero button */
.btn-wa .icon-wa {
  width: 20px; height: 20px; flex-shrink: 0;
}

/* Hero trust card (reemplaza stats genéricas) */
.hero-trust-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-trust-list li { display: flex; align-items: flex-start; gap: 14px; }
.hero-trust-list svg { width: 22px; height: 22px; color: var(--white); flex-shrink: 0; margin-top: 2px; opacity: .9; }
.hero-trust-list strong { display: block; color: var(--white); font-weight: 700; font-size: .98rem; margin-bottom: 2px; letter-spacing: -0.01em; }
.hero-trust-list span { display: block; color: rgba(255,255,255,.65); font-size: .86rem; line-height: 1.5; }
.hero-trust-foot {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .82rem; color: rgba(255,255,255,.55);
}

/* Stats antiguas (mantener para no romper si reaparece) */
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.hero-stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s;
}
.hero-stat-card:hover { background: rgba(255,255,255,.11); }
.hero-stat-card strong { font-size: 2rem; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; color: var(--white); }
.hero-stat-card span { color: rgba(255,255,255,.55); font-size: .85rem; font-weight: 500; }

/* Hero no-card pass: el primer fold queda fotografico y sin panel lateral. */
.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.hero-copy {
  max-width: 680px;
}

.hero-trust-card {
  display: none !important;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  line-height: 1.04;
}

.hero-lead {
  max-width: 55ch;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.35);
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  animation: heroScrollBounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 768px) {
  .hero .container { padding-top: 80px; padding-bottom: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-scroll { display: none; }
}

/* --- Trust Row --- */
.trust-section { border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 24px; text-align: center;
}
.trust-grid article { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-icon { width: 32px; height: 32px; color: var(--brand); margin-bottom: 6px; flex-shrink: 0; }
.trust-grid strong { display: block; font-size: .92rem; font-weight: 700; }
.trust-grid span { color: var(--muted); font-size: .84rem; line-height: 1.4; }

/* --- FILTERS / SEARCH --- */
.vehicles-section { background: var(--bg); }

.filters-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.filters-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.filter-field label {
  display: block; font-size: .78rem; font-weight: 700;
  color: var(--muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .06em;
}
.filter-field select, .filter-field input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg);
  font-size: .9rem; transition: border-color .18s;
  -webkit-appearance: none; appearance: none;
}
.filter-field select { background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.filter-field select:focus, .filter-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }

.filters-search-action .btn { width: 100%; }

.filters-secondary-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}

.advanced-filters {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.advanced-filters-head { margin-bottom: 16px; }
.advanced-filters-head strong { font-size: 1rem; }
.advanced-filters-head span { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.advanced-filters-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px;
}

@media (max-width: 768px) {
  .filters-main-grid { grid-template-columns: 1fr; }
  .filters-search-action { margin-top: 4px; }
}

/* Results toolbar */
.results-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px; margin-bottom: 20px;
}
.results-count { color: var(--muted); font-weight: 650; font-size: .88rem; }

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 16px; border-radius: 999px; font-size: .78rem;
  min-height: 44px;
  font-weight: 650; background: var(--surface-warm); color: var(--text-secondary);
  border: 1px solid var(--line); cursor: pointer; transition: all .15s;
}
.filter-chip:hover { background: var(--surface-soft); color: var(--text); }
.clear-chip { background: transparent; border-color: var(--danger); color: var(--danger); }
.clear-chip:hover { background: rgba(239,68,68,.06); }

/* --- VEHICLE CARDS --- */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.vehicle-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: all .25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.vehicle-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.vehicle-media {
  aspect-ratio: 16 / 10;
  background: var(--surface-warm);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.vehicle-media.has-image { background-blend-mode: normal; }
.vehicle-media span { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* Placeholder sin foto */
.vehicle-media--no-img {
  background: linear-gradient(135deg, var(--surface-warm) 0%, #e4e4e8 100%);
}
.vehicle-placeholder-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  pointer-events: none;
}
.vehicle-placeholder-inner svg {
  width: 72px; height: auto; color: var(--surface-soft); opacity: .9;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.08));
}
.vehicle-placeholder-inner span {
  font-size: .72rem; font-weight: 750; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
}

.vehicle-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 750;
  text-transform: uppercase; letter-spacing: .06em;
}
.badge-disponible { background: #dcfce7; color: #166534; }
.badge-reservado { background: #fef3c7; color: #92400e; }
.badge-vendido { background: #fee2e2; color: #991b1b; }
.badge-featured {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 750;
  background: var(--brand); color: var(--white);
  text-transform: uppercase; letter-spacing: .06em;
}

.vehicle-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.vehicle-topline {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: .76rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700; margin-bottom: 8px;
}
.vehicle-card h3 { font-size: 1.12rem; margin-bottom: 4px; font-weight: 700; }
.vehicle-version { color: var(--text-secondary); font-size: .88rem; margin-bottom: 12px; }
.vehicle-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; display: block; }
.vehicle-specs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.vehicle-specs span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface-warm); color: var(--text-secondary);
  font-size: .78rem; font-weight: 600;
}
.vehicle-specs svg { width: 14px; height: 14px; flex-shrink: 0; }

.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.card-actions .btn { flex: 1; font-size: .84rem; padding: 10px 14px; min-height: 44px; }

/* --- CARD ENTRY ANIMATION --- */
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vehicle-card.card-enter {
  animation: cardFadeUp .38s ease both;
}

/* --- LAZY IMAGE FADE-IN --- */
.vehicle-media[data-bg] {
  background-color: var(--surface-warm);
  transition: opacity .4s ease;
  opacity: 0;
}
.vehicle-media[data-bg].bg-loaded { opacity: 1; }

/* --- SKELETON LOADING --- */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.vehicle-skeleton {
  pointer-events: none;
  cursor: default;
}
.vehicle-skeleton:hover { transform: none !important; box-shadow: var(--shadow-card) !important; }
.skel-block {
  background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 4px;
}
.skel-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite linear;
}
.skel-line {
  height: .75rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite linear;
}
.skel-btn {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ececec 25%, #d8d8d8 50%, #ececec 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite linear;
}

/* --- EMPTY STATE --- */
.empty-state { text-align: center; padding: 60px 24px; display: none; }
.empty-state:not([hidden]) { display: block; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 10px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }
.empty-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.empty-filter-summary { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 20px; }
.empty-filter-summary span {
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface-warm); font-size: .8rem; font-weight: 600; color: var(--text-secondary);
}

/* --- MODAL / VEHICLE DETAIL --- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.modal-dialog {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface); border-radius: var(--radius-lg);
  width: min(94vw, 860px); max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.modal-close {
  position: sticky; top: 16px; float: right; margin: 16px 16px 0 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-warm); font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: background .15s;
}
.modal-close:hover { background: var(--surface-soft); }

.modal-gallery { position: relative; }
.modal-image {
  aspect-ratio: 16 / 9; background: var(--surface-warm);
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 600;
}
.modal-image.has-image { cursor: zoom-in; }
.modal-thumbs { display: flex; gap: 8px; padding: 12px 28px; }
.modal-thumb {
  flex: 1; aspect-ratio: 4/3; border-radius: var(--radius-sm);
  background: var(--surface-warm); background-size: cover; background-position: center;
  cursor: pointer; border: 2px solid transparent; transition: border-color .18s;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .78rem;
}
.modal-thumb:hover, .modal-thumb.is-active { border-color: var(--brand); }

.modal-content { padding: 12px 28px 32px; }
.modal-header { margin-bottom: 20px; }
.modal-header .eyebrow { margin-bottom: 6px; }
.modal-header h2 { margin-bottom: 8px; }
.modal-header .vehicle-price { font-size: 1.5rem; }

.modal-key-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; margin-bottom: 24px;
}
.key-card {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.key-card span { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.key-card strong { font-size: .92rem; }

.modal-details {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 16px; margin: 20px 0;
  color: var(--text-secondary);
}
.modal-details div { font-size: .9rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.modal-details strong { color: var(--text); font-weight: 650; }

.modal-equipment { margin: 20px 0; }
.modal-equipment h3 { font-size: 1rem; margin-bottom: 12px; }
.equipment-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.equipment-grid span {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; color: var(--text-secondary);
  padding: 6px 0;
}
.equipment-grid span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
}

.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.modal-actions .btn { flex: 1; min-width: 160px; }
.modal-note { color: var(--muted); font-size: .84rem; }

@media (max-width: 640px) {
  .modal-dialog { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
  .modal-details { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { min-width: 100%; }
}

/* --- DETAILING SECTION --- */
.detailing-section { background: var(--surface); }
.detailing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.detailing-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all .25s ease;
  display: flex; flex-direction: column;
}
.detailing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.detailing-card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.detailing-card-icon svg { width: 26px; height: 26px; }
.detailing-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.detailing-card p { color: var(--text-secondary); font-size: .92rem; line-height: 1.6; margin-bottom: 12px; flex: 1; }
.detailing-card .duration { font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.detailing-card .btn { align-self: flex-start; }

/* --- PROCESO DE DETAILING --- */
.proceso-section { background: var(--bg); }
.proceso-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.proceso-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.proceso-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.proceso-step {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800; font-size: .82rem;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.proceso-card h3 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.proceso-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .proceso-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .proceso-grid { grid-template-columns: 1fr; }
}

/* --- TESTIMONIOS --- */
.testimonios-section { background: var(--bg-deep); color: var(--white); }
.testimonios-section .section-head p { color: rgba(255,255,255,.6); }
.testimonios-section .eyebrow { color: rgba(255,255,255,.45); }
.testimonios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonio-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background .2s;
}
.testimonio-card:hover { background: rgba(255,255,255,.08); }
.testimonio-stars { display: flex; gap: 3px; color: #f59e0b; }
.testimonio-stars svg { width: 16px; height: 16px; fill: currentColor; }
.testimonio-text {
  color: rgba(255,255,255,.75); line-height: 1.7; font-size: .95rem;
  flex: 1; font-style: italic;
}
.testimonio-autor { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonio-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: .95rem; color: rgba(255,255,255,.7);
  flex-shrink: 0; border: 1px solid rgba(255,255,255,.12);
}
.testimonio-info strong { display: block; font-size: .88rem; font-weight: 700; color: var(--white); }
.testimonio-info span { color: rgba(255,255,255,.45); font-size: .8rem; }

@media (max-width: 900px) { .testimonios-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .testimonios-grid { grid-template-columns: 1fr; } }

/* --- TRUST / BENEFITS --- */
.benefits-section { background: var(--surface); }
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.benefit-card { text-align: center; padding: 28px 20px; }
.benefit-icon {
  width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit-card h3 { font-size: .98rem; margin-bottom: 6px; }
.benefit-card p { color: var(--text-secondary); font-size: .86rem; }

/* --- FINAL CTA --- */
.final-cta { background: var(--bg-deep); color: var(--white); }
.cta-card {
  text-align: center; max-width: 680px; margin: 0 auto;
}
.cta-card .eyebrow { color: rgba(255,255,255,.45); }
.cta-card h2 { color: var(--white); margin-bottom: 16px; }
.cta-card p { color: rgba(255,255,255,.6); margin-bottom: 28px; font-size: 1.04rem; }
.centered-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.centered-actions .btn-primary { background: var(--white); color: var(--brand); }
.centered-actions .btn-primary:hover { background: #f0f0f2; }
.centered-actions .btn-secondary { color: var(--white); border-color: rgba(255,255,255,.2); }
.centered-actions .btn-secondary:hover { background: rgba(255,255,255,.08); }

/* --- FAQ --- */
.faq-section { background: var(--bg); }
.faq-list {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-list summary {
  font-weight: 650; font-size: 1rem;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; font-size: 1.3rem; font-weight: 300;
  color: var(--muted); transition: transform .2s;
  flex-shrink: 0;
}
details[open] summary::after { content: '−'; }
.faq-list details p { color: var(--text-secondary); margin: 12px 0 0; line-height: 1.65; }

/* --- FOOTER --- */
.site-footer { background: var(--brand); color: var(--white); padding: 52px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 32px; }
.footer-grid strong { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.footer-grid p { color: rgba(255,255,255,.55); margin: 8px 0 0; font-size: .9rem; }
.footer-title { display: block; font-weight: 750; color: rgba(255,255,255,.8); margin-bottom: 10px; font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid a { display: block; color: rgba(255,255,255,.6); margin-top: 6px; font-size: .9rem; transition: color .15s; }
.footer-grid a:hover { color: var(--white); }
.footer-grid nav a { display: block; color: rgba(255,255,255,.6); margin-top: 6px; }
.footer-legal-text { font-size: .78rem; color: rgba(255,255,255,.35); margin: 28px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.footer-hours { color: rgba(255,255,255,.55); font-size: .88rem; margin-top: 4px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --- MOBILE STICKY CTA --- */
.mobile-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 16px; display: flex; gap: 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .06);
  transform: translateY(100%); transition: transform .3s ease;
}
body.sticky-cta-visible .mobile-sticky-cta:not([hidden]) { transform: translateY(0); }
.mobile-sticky-cta .btn { flex: 1; font-size: .82rem; padding: 10px; min-height: 44px; }

@media (min-width: 769px) {
  .mobile-sticky-cta { display: none !important; }
}

/* --- TOAST --- */
.toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  z-index: 90; background: var(--brand); color: var(--white);
  padding: 14px 24px; border-radius: 999px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
  max-width: min(92%, 520px); font-size: .88rem; font-weight: 600;
  opacity: 0; transition: all .3s ease;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .9); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white);
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white);
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-img {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: var(--radius-sm);
}

/* --- FLOATING WHATSAPP --- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 35;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa-green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  transition: all .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37, 211, 102, .5); }
.whatsapp-float-icon { width: 32px; height: 32px; fill: currentColor; }

.instagram-float {
  position: fixed; bottom: 96px; right: 24px; z-index: 35;
  width: 60px; height: 60px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 105%, #fdf497 0 16%, #fdf49700 17%),
    radial-gradient(circle at 30% 105%, #fd5949 0 38%, #d6249f 62%, #285aeb 100%);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(214, 36, 159, .34), inset 0 0 0 1px rgba(255,255,255,.24);
  transition: all .25s ease;
}
.instagram-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(214, 36, 159, .42), inset 0 0 0 1px rgba(255,255,255,.28); }
.instagram-float-icon { width: 30px; height: 30px; }

body.has-sticky-cta .whatsapp-float { bottom: 80px; }

@media (min-width: 769px) {
  body.has-sticky-cta .whatsapp-float { bottom: 24px; }
}
/* En mobile, si el sticky CTA ya tiene botón de WA, ocultamos el float para no duplicar */
@media (max-width: 768px) {
  body.has-sticky-cta .whatsapp-float { display: none; }
  .instagram-float { right: 16px; bottom: 86px; width: 54px; height: 54px; }
  .instagram-float-icon { width: 27px; height: 27px; }
}

/* --- LOAD MORE --- */
.load-more-wrap { text-align: center; margin-top: 32px; }

/* --- CONSULTATION FORM --- */
.lead-section { background: var(--surface); }
.lead-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 48px; align-items: start;
}
.lead-grid h2 { margin-bottom: 12px; }
.lead-grid p { color: var(--text-secondary); margin-bottom: 16px; }
.check-list { margin: 0 0 22px; padding-left: 22px; color: var(--text-secondary); }
.check-list li { margin-bottom: 8px; }

.lead-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.lead-form label {
  display: block; margin-bottom: 14px;
  font-size: .86rem; font-weight: 650; color: var(--text);
}
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: .9rem;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.lead-form .full-field { grid-column: 1 / -1; }
.lead-form .btn { width: 100%; margin-top: 8px; }
.form-error { color: var(--danger); font-size: .86rem; font-weight: 600; }

.modal-lead-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.modal-lead-form h3 { font-size: 1rem; margin-bottom: 16px; }
.modal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-form-grid label { display: block; font-size: .86rem; font-weight: 650; }
.modal-form-grid input, .modal-form-grid textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); font-size: .9rem;
}
.modal-form-grid .full-field { grid-column: 1 / -1; }
.modal-lead-form .btn { width: 100%; margin-top: 12px; }

@media (max-width: 768px) {
  .lead-grid { grid-template-columns: 1fr; gap: 32px; }
  .modal-form-grid { grid-template-columns: 1fr; }
}

/* --- MISC --- */
.bg-surface { background: var(--surface); }
.notice {
  background: #fefce8; color: #854d0e;
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: .86rem; font-weight: 600; margin-bottom: 16px;
  border: 1px solid #fde68a;
}

/* --- Focus Visible --- */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- Responsive fine-tuning --- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-pad { padding: 56px 0; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .detailing-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}
