/* ============================================================
   CONCESSION AUTO — Design System
   Font: Archivo
   Colors: #0f1e3c (primaire) | #e8500a (secondaire)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800;900&display=swap');

/*  Variables  */
:root {
  /* Primaire : #0f1e3c — variantes claires/foncées */
  --prussian:    #0f1e3c;   /* plus foncé */
  --deep-space:  #162444;   /* légèrement plus clair */
  --navy:        #0f1e3c;
  --navy-mid:    #1e3461;   /* bleu mid pour dégradés */
  --navy-light:  #2a4a80;   /* bleu clair pour accents doux */

  /* Secondaire : #e8500a — orange accent */
  --sapphire:    #e8500a;   /* accent principal (boutons, liens actifs) */
  --cornflower:  #f06522;   /* orange légèrement plus clair */

  /* Tints neutres (non teintés orange) */
  --pale-sky:    #f0f4f8;   /* tint bleu très pâle */
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --surface:     #F0F4F8;
  --border:      #D8E2EE;
  --border-dark: #A8BACE;
  --text:        #0f1e3c;
  --text-mid:    #2a3f5f;
  --text-muted:  #6B7A90;
  --success:     #059669;
  --warning:     #D97706;
  --error:       #DC2626;

  --shadow-sm:   0 1px 4px rgba(15,30,60,.07);
  --shadow:      0 4px 20px rgba(15,30,60,.10);
  --shadow-md:   0 8px 32px rgba(15,30,60,.13);
  --shadow-lg:   0 20px 60px rgba(15,30,60,.17);
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --font:        'Archivo', sans-serif;
  --ease:        cubic-bezier(.4,0,.2,1);
  --t:           0.22s;

  /* Alias de compatibilidad — usados en páginas vitrina e inline styles */
  --orange:         #e8500a;   /* alias de --sapphire */
  --muted:          #6B7A90;   /* alias de --text-muted */
  --off:            #F7F8FA;   /* alias de --off-white */
  --light:          #F0F4F8;   /* alias de --surface */
  --primary:        #0f1e3c;   /* alias de --navy */
  --color-primary:  #0f1e3c;   /* sobreescrito dinámicamente por header.php */
  --color-secondary:#e8500a;   /* sobreescrito dinámicamente por header.php */
  --color-accent:   #f1c40f;   /* sobreescrito dinámicamente por header.php */
}

/*  Reset  */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/*  Typography  */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.label {
  display: inline-block;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cornflower);
  margin-bottom: .6rem;
}

/*  Layout  */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 900px;  margin: 0 auto; padding: 0 28px; }
.section      { padding: 88px 0; position: relative; }
.section-sm   { padding: 56px 0; }
.section-lg   { padding: 120px 0; }
.bg-surface   { background: var(--off-white); }

/*  Buttons  */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--sapphire);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232,80,10,.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #d04208;
  box-shadow: 0 8px 28px rgba(232,80,10,.45);
}
.btn-navy {
  background: linear-gradient(135deg, var(--prussian), var(--deep-space));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(15,30,60,.3);
}
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,30,60,.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-dark);
}
.btn-outline-navy:hover {
  border-color: var(--sapphire);
  background: var(--surface);
  color: var(--sapphire);
}
.btn-sm  { padding: 9px 18px; font-size: .75rem; }
.btn-lg  { padding: 17px 40px; font-size: .875rem; }
.btn-xl  { padding: 20px 48px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/*  Top bar  */
.topbar {
  background: var(--prussian);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  font-family: var(--font);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.75);
  transition: color var(--t);
}
.topbar-item:hover { color: var(--pale-sky); }
.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.15);
}

/*  Header  */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  transition: box-shadow var(--t);
}
header.scrolled {
  box-shadow: 0 2px 24px rgba(15,30,60,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 28px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 24px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 52px; width: auto; }
.logo-text {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--prussian);
  letter-spacing: -.03em;
}
.logo-text span { color: var(--sapphire); }

/* Navigation */
nav.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: all var(--t);
}
.nav-link:hover, .nav-link.active {
  color: var(--sapphire);
  background: var(--surface);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t) var(--ease);
  z-index: 100;
  padding: 8px;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: all var(--t);
}
.dropdown-link:hover {
  background: var(--surface);
  color: var(--sapphire);
  padding-left: 16px;
}
.dropdown-link svg { color: var(--sapphire); flex-shrink: 0; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: all var(--t);
  cursor: pointer;
}
.cart-btn:hover { background: var(--pale-sky); border-color: var(--sapphire); color: var(--sapphire); }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  background: var(--sapphire);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}
/* Masquer le badge quand le panier est vide */
.cart-count:empty {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--t);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/*  Mobile Nav  */
.mobile-nav { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.mobile-nav.open { pointer-events: all; }
.mobile-nav-bg {
  position: absolute; inset: 0;
  background: rgba(15,30,60,.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s;
}
.mobile-nav.open .mobile-nav-bg { opacity: 1; }
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: 320px; max-width: 90vw;
  height: 100%;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(15,30,60,.2);
  padding: 0;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--prussian);
}
.mobile-nav-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}
.mobile-nav-close:hover { background: rgba(255,255,255,.2); }
.mobile-nav-links { flex: 1; padding: 16px; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius);
  transition: all var(--t);
  margin-bottom: 4px;
}
.mobile-nav-link:hover { background: var(--surface); color: var(--sapphire); }
.mobile-nav-footer { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }

/*  Hero  */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--prussian);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,30,60,.90) 0%, rgba(15,30,60,.55) 60%, rgba(15,30,60,.20) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-content { color: white; }
.hero-label-badge {
  display: inline-block;
  background: rgba(15,30,60,.06);
  border: 1px solid rgba(15,30,60,.12);
  color: var(--pale-sky);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title span { color: var(--pale-sky); }
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}
.hero-stat-num span { color: var(--pale-sky); font-size: 1.2rem; }
.hero-stat-label { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 4px; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.97);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}
.hero-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--surface);
}
.hero-card-title svg { color: var(--sapphire); }
.hero-form-group { margin-bottom: 16px; }
.hero-form-group label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.hero-form-group input,
.hero-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .88rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.hero-form-group input:focus,
.hero-form-group select:focus {
  outline: none;
  border-color: var(--sapphire);
  box-shadow: 0 0 0 3px rgba(15,30,60,.12);
  background: white;
}

/* Hero indicators */
.hero-indicators {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  transition: all .3s;
  cursor: pointer;
}
.hero-dot.active {
  background: var(--pale-sky);
  width: 24px;
  border-radius: 4px;
}

/* Anim */
.anim-in { opacity: 0; transform: translateY(24px); animation: fadeUp .7s var(--ease) forwards; }
.anim-d2 { animation-delay: .15s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/*  Category Strip  */
.cat-strip {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  overflow: hidden;
}
.cat-strip-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 14px;
  padding-bottom: 14px;
  scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
  transition: all var(--t);
  background: var(--white);
}
.cat-chip:hover, .cat-chip.active {
  background: var(--sapphire);
  border-color: var(--sapphire);
  color: white;
}
.cat-chip svg { color: inherit; }

/*  Section headers  */
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-sub {
  font-size: .92rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0;
}
.section-header.centered .section-sub { margin: 0 auto; }
.section-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
}
.section-icon-badge--blue { background: rgba(15,30,60,.08); color: var(--sapphire); }
.section-icon-badge--navy { background: rgba(15,30,60,.08); color: var(--prussian); }

/*  Products grid  */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--pale-sky);
}
.product-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.product-card:hover .product-img img { transform: scale(1.04); }
.no-img {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-dark);
}
.product-badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge-feat { background: var(--prussian); color: var(--pale-sky); }
.badge-sale { background: var(--sapphire); color: white; }
.badge-new  { background: var(--success); color: white; }
.badge-used { background: var(--text-muted); color: white; }

.product-body { padding: 20px; flex: 1; }
.product-cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cornflower);
  margin-bottom: 6px;
}
.product-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-name a { color: inherit; }
.product-name a:hover { color: var(--sapphire); }
.product-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}
.price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-current { font-size: 1.15rem; font-weight: 900; color: var(--prussian); }
.price-old { font-size: .85rem; text-decoration: line-through; color: var(--text-muted); }
.price-pct { font-size: .72rem; font-weight: 800; background: var(--sapphire); color: white; padding: 2px 7px; border-radius: 100px; }

.product-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.product-footer .btn { flex: 1; justify-content: center; font-size: .75rem; padding: 10px 14px; }
.pf-label { }

/*  Categories showcase  */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .categories-grid { grid-template-columns: 1fr; } }

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
  display: block;
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,30,60,.85) 0%, rgba(15,30,60,.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: background .3s;
}
.cat-card:hover .cat-card-overlay {
  background: linear-gradient(to top, rgba(15,30,60,.92) 0%, rgba(15,30,60,.45) 60%, transparent 100%);
}
.cat-card-info { color: white; }
.cat-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}
.cat-card-count {
  font-size: .75rem;
  color: var(--pale-sky);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Cat card featured (large) */
.cat-card--lg { aspect-ratio: 16/8; grid-column: span 2; }
@media (max-width: 1024px) { .cat-card--lg { grid-column: span 1; } }

/*  How it works  */
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 48px;
}
.how-step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  padding: 0 12px;
}
.how-step-num {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--deep-space), var(--prussian));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(15,30,60,.35);
}
.how-step-icon {
  width: 72px; height: 72px;
  background: var(--surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--sapphire);
  border: 1.5px solid var(--border);
}
.how-step h3 { font-size: .95rem; font-weight: 800; margin-bottom: 10px; color: var(--navy); }
.how-step p { font-size: .82rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.how-step-arrow {
  display: flex;
  align-items: center;
  padding-top: 56px;
  color: var(--border-dark);
}
@media (max-width: 768px) {
  .how-steps { flex-direction: column; align-items: center; gap: 8px; }
  .how-step { max-width: 100%; }
  .how-step-arrow { transform: rotate(90deg); padding-top: 0; }
}

/*  Why us grid  */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.why-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-icon--blue   { background: rgba(15,30,60,.08);  color: var(--sapphire); }
.why-icon--navy   { background: rgba(15,30,60,.08);  color: var(--prussian); }
.why-icon--sky    { background: rgba(15,30,60,.08); color: var(--deep-space); }
.why-icon--ocean  { background: rgba(15,30,60,.08); color: var(--cornflower); }
.why-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; color: var(--navy); }
.why-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.65; margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/*  Stats bar  */
.stats-bar {
  background: linear-gradient(135deg, var(--prussian) 0%, var(--deep-space) 50%, var(--navy-mid) 100%);
  padding: 48px 0;
}
.stats-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--pale-sky); font-size: 1.4rem; margin-left: 2px; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); font-weight: 600; }

/*  Reviews  */
.reviews-slider-wrap { overflow: hidden; }
.reviews-slider {
  display: flex;
  gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.review-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  min-width: 300px;
  flex-shrink: 0;
}
.review-stars { display: flex; gap: 3px; margin-bottom: 12px; }
.review-stars svg { width: 16px; height: 16px; }
.review-title { font-weight: 800; font-size: .92rem; color: var(--navy); margin-bottom: 10px; }
.review-content { font-size: .83rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--prussian), var(--deep-space));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}
.review-name { font-size: .85rem; font-weight: 700; color: var(--navy); }
.review-location { font-size: .75rem; color: var(--text-muted); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.slider-btn {
  width: 42px; height: 42px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: all var(--t);
}
.slider-btn:hover { background: var(--sapphire); border-color: var(--sapphire); color: white; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-dark);
  border: none;
  transition: all .3s;
  cursor: pointer;
}
.slider-dot.active { background: var(--sapphire); width: 22px; border-radius: 4px; }

/*  CTA Section  */
.cta-section {
  background: linear-gradient(135deg, var(--prussian) 0%, var(--deep-space) 50%, var(--navy-mid) 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(15,30,60,.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 36px;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 32px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.btn-ghost-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: white;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}
/* Alias */
.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.5);
  color: white;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/*  Footer  */
footer {
  background: var(--prussian, #0f1e3c);
  background-color: var(--prussian, #0f1e3c);
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
  /* Isolation: prevents sticky children from overflowing into footer */
  isolation: isolate;
  position: relative;
  z-index: 10;
  clear: both;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-logo { height: 48px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-desc { font-size: .84rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 0; }
footer h4 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--t);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-link:hover { color: var(--pale-sky); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .84rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 14px;
  line-height: 1.5;
}
.footer-contact-item svg { flex-shrink: 0; color: var(--pale-sky); margin-top: 2px; }
.footer-contact-item a { color: inherit; }
.footer-contact-item a:hover { color: var(--pale-sky); }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--t);
}
.social-btn:hover { background: var(--sapphire); color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.4); transition: color var(--t); }
.footer-bottom-links a:hover { color: var(--pale-sky); }

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

/*  Forms  */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .88rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-control:focus {
  outline: none;
  border-color: var(--sapphire);
  box-shadow: 0 0 0 3px rgba(15,30,60,.12);
  background: white;
}
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 5px; }
.req        { color: var(--orange, #e8500a); font-weight: 700; margin-left: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/*  Catalogue / Vehicules page  */
.veh-page { display: flex; gap: 0; min-height: 80vh; }
.veh-sidebar {
  width: 280px; flex-shrink: 0;
  background: var(--white);
  border-right: 1.5px solid var(--border);
  padding: 28px 0 40px;
  position: sticky; top: 76px;
  height: calc(100vh - 76px);
  overflow-y: auto; overflow-x: hidden;
}
.veh-sidebar::-webkit-scrollbar { width: 4px; }
.veh-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar-section { padding: 0 24px 24px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-title {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 20px 0 12px;
}
.sidebar-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-chip {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--t);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sidebar-chip:hover, .sidebar-chip.active {
  background: var(--sapphire);
  border-color: var(--sapphire);
  color: white;
}
.sidebar-count { font-size: .68rem; opacity: .7; }
.price-range-inputs { display: flex; gap: 8px; align-items: center; }
.price-range-inputs input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .82rem;
  color: var(--text);
  background: var(--off-white);
}
.price-range-inputs input:focus {
  outline: none;
  border-color: var(--sapphire);
}
.veh-main { flex: 1; min-width: 0; }
.veh-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 76px;
  z-index: 10;
}
.veh-count { font-size: .85rem; color: var(--text-muted); }
.veh-count strong { color: var(--navy); font-weight: 800; }
.sort-select {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .82rem;
  color: var(--text);
  background: var(--off-white);
  appearance: none;
  cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--sapphire); }
.veh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 28px;
}
@media (max-width: 1200px) { .veh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px)  { .veh-sidebar { display: none; } .veh-grid { grid-template-columns: repeat(2, 1fr); padding: 16px; } }
@media (max-width: 540px)  { .veh-grid { grid-template-columns: 1fr; } }

/*  Product detail  */
.product-detail { max-width: 1280px; margin: 0 auto; padding: 40px 28px; }
.pd-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: flex-start; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } }

.pd-gallery { }
.pd-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
  margin-bottom: 12px;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.pd-thumb {
  width: 80px; height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--t);
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--sapphire); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pd-info { }
.pd-brand { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cornflower); margin-bottom: 8px; }
.pd-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.pd-sub { font-size: .9rem; color: var(--text-muted); margin-bottom: 24px; }
.pd-price-block { padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.pd-price { font-size: 2rem; font-weight: 900; color: var(--prussian); }
.pd-price-old { font-size: 1rem; text-decoration: line-through; color: var(--text-muted); }
.pd-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pd-specs { }
.spec-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .85rem; }
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-muted); }
.spec-val { font-weight: 700; color: var(--navy); }

/*  Page headers  */
.page-hero {
  background: linear-gradient(135deg, var(--prussian) 0%, var(--deep-space) 100%);
  padding: 72px 0 56px;
  color: white;
  text-align: center;
}
.page-hero h1 {
  color: white;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  margin: 12px 0 8px;
  letter-spacing: -.02em;
}
.page-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  margin: 0;
}

/*  Alerts  */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(5,150,105,.1); color: #059669; border: 1.5px solid rgba(5,150,105,.2); }
.alert-error   { background: rgba(220,38,38,.1);  color: #DC2626; border: 1.5px solid rgba(220,38,38,.2); }
.alert-info    { background: rgba(15,30,60,.06);   color: var(--sapphire); border: 1.5px solid rgba(15,30,60,.15); }

/*  Breadcrumb  */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-muted);
  padding: 16px 0;
}
.breadcrumb a { color: var(--sapphire); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border-dark); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/*  Panier / Cart  */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  text-align: left;
}
.cart-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text);
  vertical-align: middle;
}
.cart-img { width: 72px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-total-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

/*  Devis sidebar  */
.presupuesto-sidebar {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.presupuesto-sidebar h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }

/*  Responsive topbar / header  */
@media (max-width: 900px) {
  .topbar-right { display: none; }
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-title { font-size: 2.2rem; }
}

/*  Utilities  */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-3 { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/*  Admin overrides  */
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.admin-tab {
  padding: 10px 18px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all var(--t);
  border: 1.5px solid transparent;
  border-bottom: none;
  margin-bottom: -2px;
}
.admin-tab.active, .admin-tab:hover {
  color: var(--sapphire);
  background: var(--white);
  border-color: var(--border);
}
.admin-tab.active { color: var(--sapphire); border-bottom-color: var(--white); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.admin-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.admin-card-title { font-weight: 800; font-size: .9rem; color: var(--navy); }
.admin-card-body { padding: 20px; }
.form-section-title {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ====================================================
   AUTO19 — Overrides y mejoras de marca
   ==================================================== */

/* Logo text */
.logo-text { font-family:'Montserrat',sans-serif; font-weight:900; font-size:1.5rem; color:var(--navy); letter-spacing:-.03em; }
.logo-text span { color:var(--orange); }

/* Hero badge */
.hero-label-badge { display:inline-flex; align-items:center; gap:6px; background:rgba(224,90,43,.12); color:var(--orange); border:1px solid rgba(224,90,43,.25); border-radius:20px; padding:5px 14px; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:20px; }

/* CTA section enhancements */
.cta-section { background: linear-gradient(135deg, var(--prussian) 0%, var(--deep-space) 50%, var(--navy-mid) 100%); }

/* Footer brand */
.footer-brand-logo { font-family:'Montserrat',sans-serif; font-weight:900; font-size:1.5rem; color:white; letter-spacing:-.02em; }
.footer-brand-logo span { color:#e8500a; }

/* Smooth scroll */
html { scroll-behavior:smooth; }

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

/* Cart btn badge animation */
.cart-count { animation:pulse-badge .3s ease; }
@keyframes pulse-badge { 0%{transform:scale(1)} 50%{transform:scale(1.3)} 100%{transform:scale(1)} }

/* Mobile responsive tweaks */
@media(max-width:640px) {
  .hero-title { font-size:2rem !important; }
  .hero-actions { flex-direction:column; }
  .hero-actions .btn { width:100%; justify-content:center; }
  .hero-stats { grid-template-columns:1fr 1fr !important; }
  .footer-grid { grid-template-columns:1fr !important; }
}

/* ── Fallback cat-cards sans image ── */
.cat-card {
  background: linear-gradient(135deg, #0f1e3c 0%, #1e3a5f 100%);
}
.hero-slide {
  background: linear-gradient(135deg, #0f1e3c 0%, #1a3461 100%);
}
.hero-slide img {
  opacity: 0;
  transition: opacity .5s;
}
.hero-slide img.loaded {
  opacity: 1;
}
/* Service visual placeholder */
.service-visual-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 240px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: .85rem;
}
