/* ═══════════════════════════════════════════════════════
   PICKUPMANÍA — Design System v2.0
   Dirección estética: automotriz industrial-luxury
   Tonos carbono, acentos ámbar/naranja quemado
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* ─── VARIABLES ─────────────────────────────────────── */
:root {
  --carbon-dark:   #0a0a0c;
  --carbon-mid:    #111115;
  --carbon-light:  #1a1a20;
  --carbon-panel:  #222228;
  --steel:         #2e2e38;
  --steel-light:   #3d3d4a;
  --amber:         #e07b22;
  --amber-dark:    #b85e10;
  --amber-glow:    #f09030;
  --amber-pale:    rgba(224,123,34,.12);
  --green-wa:      #25d366;
  --green-wa-dark: #128c3e;
  --white:         #f5f5f0;
  --muted:         #7a7a8a;
  --muted-light:   #a0a0b0;
  --red:           #e03030;
  --yellow:        #f5c518;
  --card-radius:   10px;
  --card-radius-lg:16px;
  --font-display:  'Oswald', sans-serif;
  --font-heading:  'Barlow Condensed', sans-serif;
  --font-body:     'Barlow', sans-serif;
  --shadow-card:   0 4px 24px rgba(0,0,0,.5);
  --shadow-hover:  0 8px 40px rgba(224,123,34,.18);
  --transition:    .22s cubic-bezier(.4,0,.2,1);
}

/* ─── BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--carbon-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.text-amber { color: var(--amber) !important; }
.bg-carbon { background: var(--carbon-mid) !important; }

/* ─── NAVBAR ─────────────────────────────────────────── */
#main-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--carbon-mid);
  border-bottom: 1px solid var(--steel);
  box-shadow: 0 2px 20px rgba(0,0,0,.6);
}

/* Row 1 — brand + utility */
.navbar-row1 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--steel);
  flex-wrap: wrap;
}
.navbar-logo {
  height: 42px;
  width: auto;
  display: block;
}
.navbar-logo-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
}
.navbar-logo-text span { color: var(--white); }

/* Central search bar */
.navbar-search-central {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--carbon-light);
  border: 1px solid var(--steel);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.navbar-search-central:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-pale);
}
.navbar-search-central input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .88rem;
  padding: 9px 14px;
}
.navbar-search-central input::placeholder { color: var(--muted); }
.navbar-search-central button {
  background: var(--amber);
  border: none;
  color: #000;
  padding: 9px 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.navbar-search-central button:hover { background: var(--amber-glow); }

/* Utility icons (right side) */
.navbar-utils {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-light);
  font-size: .68rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nav-icon-btn i { font-size: 1rem; }
.nav-icon-btn:hover {
  color: var(--amber);
  border-color: var(--steel-light);
  background: var(--carbon-light);
}
.nav-icon-btn.active { color: var(--amber); }

/* User name display when logged in */
.nav-user-name {
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-whatsapp-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-wa);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-whatsapp-nav:hover { background: var(--green-wa-dark); color: #fff; }
.btn-whatsapp-nav i { font-size: .95rem; }

/* Row 2 — nav links + advanced search */
.navbar-row2 {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.navbar-row2::-webkit-scrollbar { display: none; }

.navbar-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-right: 18px;
}
.nav-link-item {
  color: var(--muted-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link-item:hover, .nav-link-item.active { color: var(--amber); }

/* Advanced search pill bar */
.advsearch-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}
.advsearch-select {
  background: var(--carbon-light);
  border: 1px solid var(--steel);
  border-radius: 7px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .8rem;
  padding: 6px 10px;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
  min-width: 90px;
}
.advsearch-select:focus {
  outline: none;
  border-color: var(--amber);
}
.advsearch-select option { background: var(--carbon-panel); }

/* Condition semaphore select */
.condition-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.condition-emoji {
  position: absolute;
  left: 8px;
  font-size: .85rem;
  pointer-events: none;
}
.condition-select-wrapper select { padding-left: 28px; }

.btn-buscar {
  background: var(--amber);
  border: none;
  border-radius: 7px;
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 16px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-buscar:hover { background: var(--amber-glow); }

.btn-oportunidades {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--amber);
  border-radius: 7px;
  color: var(--amber);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-oportunidades:hover { background: var(--amber-pale); }
.btn-oportunidades .pulse-icon { animation: pulse-dot 1.6s infinite; display: inline-block; }
@keyframes pulse-dot {
  0%,100% { transform: scale(1); opacity:1; }
  50% { transform: scale(1.4); opacity:.7; }
}

/* ─── AUTH MODAL ─────────────────────────────────────── */
.auth-modal .modal-content {
  background: var(--carbon-mid);
  border: 1px solid var(--steel);
  border-radius: var(--card-radius-lg);
}
.auth-modal .modal-header {
  border-bottom: 1px solid var(--steel);
  padding: 20px 24px;
}
.auth-modal .modal-body { padding: 28px 24px; }

/* Auth tabs */
.auth-tabs {
  display: flex;
  background: var(--carbon-dark);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 24px;
}
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.auth-tab-btn.active {
  background: var(--amber);
  color: #000;
}

/* Auth views */
.auth-view { display: none; }
.auth-view.active { display: block; }

/* Auth inputs */
.auth-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 5px;
}
.auth-input {
  width: 100%;
  background: var(--carbon-light);
  border: 1px solid var(--steel);
  border-radius: 7px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 10px 13px;
  transition: border-color var(--transition);
  outline: none;
}
.auth-input:focus { border-color: var(--amber); }
.auth-input::placeholder { color: var(--muted); }

/* OTP inputs */
.otp-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
}
.otp-digit {
  width: 50px;
  height: 58px;
  background: var(--carbon-light);
  border: 2px solid var(--steel);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
}
.otp-digit:focus { border-color: var(--amber); }
.otp-digit.filled { border-color: var(--amber); color: var(--amber); }

/* Forgot password link */
.forgot-link {
  color: var(--amber);
  font-size: .8rem;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}
.forgot-link:hover { color: var(--amber-glow); }

/* Auth submit button */
.btn-auth-submit {
  width: 100%;
  background: var(--amber);
  border: none;
  border-radius: 8px;
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 12px;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 4px;
}
.btn-auth-submit:hover { background: var(--amber-glow); }

.auth-back-btn {
  background: none;
  border: none;
  color: var(--muted-light);
  font-size: .8rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.auth-back-btn:hover { color: var(--amber); }

/* ─── HERO ───────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--carbon-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,12,.98) 40%, rgba(10,10,12,.55) 100%),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amber-pale);
  border: 1px solid rgba(224,123,34,.3);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.hero-h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--muted-light);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-subtitle span {
  color: var(--steel-light);
  margin: 0 8px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: #000;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 12px 22px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-amber:hover { background: var(--amber-glow); color: #000; transform: translateY(-1px); }

.btn-outline-amber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--amber);
  border: 1.5px solid var(--amber);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 11px 22px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-outline-amber:hover { background: var(--amber-pale); color: var(--amber); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wa);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}
.btn-whatsapp:hover { background: var(--green-wa-dark); color: #fff; }

/* ─── SECTION HEADERS ─────────────────────────────────── */
.section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 12px 0 0;
}

/* ─── VEHICLE CARDS ──────────────────────────────────── */
.vehicle-card {
  background: var(--carbon-mid);
  border: 1px solid var(--steel);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.vehicle-card:hover {
  border-color: var(--amber);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.vehicle-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--carbon-panel);
}
.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.vehicle-card:hover .vehicle-card-img img { transform: scale(1.05); }

/* Condition badge */
.condition-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.condition-good    { background: rgba(0,180,80,.85); color: #fff; }
.condition-repair  { background: rgba(240,80,40,.85); color: #fff; }
.condition-mid     { background: rgba(240,140,20,.85); color: #fff; }
.condition-parts   { background: rgba(80,80,90,.85); color: #fff; }

/* Favorite button */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(10,10,12,.65);
  border: 1px solid var(--steel);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted-light);
  font-size: .85rem;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.fav-btn:hover, .fav-btn.active { color: #e03060; border-color: #e03060; background: rgba(224,48,96,.12); }

.vehicle-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vehicle-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 4px;
  line-height: 1.2;
}
.vehicle-specs {
  font-size: .78rem;
  color: var(--muted-light);
  margin-bottom: 10px;
}
.vehicle-specs span + span::before {
  content: ' · ';
  color: var(--steel-light);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.price-before {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--muted);
  text-decoration: line-through;
}
.price-final {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
/* WhatsApp siempre full-width */
.card-actions .btn-wa-icon {
  width: 100%;
}

.btn-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 7px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn-card-primary {
  background: var(--amber);
  color: #000;
}
.btn-card-primary:hover { background: var(--amber-glow); color: #000; }
.btn-card-outline {
  background: transparent;
  border: 1px solid var(--steel-light);
  color: var(--muted-light);
}
.btn-card-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-card-wa {
  background: var(--green-wa);
  color: #fff;
}
.btn-card-wa:hover { background: var(--green-wa-dark); color: #fff; }

/* ─── DIFFERENTIATORS ────────────────────────────────── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.diff-card {
  background: var(--carbon-mid);
  border: 1px solid var(--steel);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.diff-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--amber);
  border-radius: 2px 0 0 2px;
}
.diff-card:hover { border-color: var(--amber); box-shadow: var(--shadow-hover); }
.diff-icon {
  width: 46px;
  height: 46px;
  background: var(--amber-pale);
  border: 1px solid rgba(224,123,34,.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--amber);
  margin-bottom: 14px;
}
.diff-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}
.diff-text {
  font-size: .82rem;
  color: var(--muted-light);
  line-height: 1.5;
  margin: 0;
}

/* ─── CAROUSEL ───────────────────────────────────────── */
.carousel-card {
  background: var(--carbon-mid);
  border: 1px solid var(--steel);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all var(--transition);
}
.carousel-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.carousel-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.carousel-card-body { padding: 12px 14px; }
.carousel-card-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .9rem;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.carousel-card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--amber);
  font-weight: 700;
}

/* ─── CTA FINAL ──────────────────────────────────────── */
.cta-section {
  background: var(--carbon-light);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  padding: 60px 0;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 8px;
}
.cta-section p {
  color: var(--muted-light);
  font-size: .92rem;
  margin-bottom: 28px;
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: #060608;
  border-top: 1px solid var(--steel);
  padding: 36px 0;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
}
.footer-logo-text span { color: var(--white); }
.footer-copy { font-size: .78rem; color: var(--muted); }
.footer-links a {
  color: var(--muted);
  font-size: .8rem;
  margin-right: 16px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber); }

/* ═══════════════════════════════════════════════════════
   INVENTORY PAGE
═══════════════════════════════════════════════════════ */

/* ─── Page header ── */
.page-header {
  background: var(--carbon-mid);
  border-bottom: 1px solid var(--steel);
  padding: 28px 0;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}
.results-count {
  font-family: var(--font-heading);
  font-size: .85rem;
  color: var(--muted-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.results-count strong { color: var(--amber); }

/* ─── Sidebar toggle (móvil) ── */
.sidebar-toggle {
  display: none;
  width: 100%;
  background: var(--carbon-mid);
  border: 1px solid var(--steel);
  border-radius: var(--card-radius);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 16px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  transition: border-color var(--transition);
}
.sidebar-toggle:hover { border-color: var(--amber); }
.sidebar-toggle i:last-child {
  transition: transform .3s ease;
}

/* ─── Sidebar contenedor ── */
.filter-sidebar {
  background: var(--carbon-mid);
  border: 1px solid var(--steel);
  border-radius: var(--card-radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

/* ─── Sidebar header ── */
.filter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--steel);
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted-light);
}
.filter-active-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* ─── Grupo de filtro ── */
.filter-group {
  padding: 14px 18px;
  border-bottom: 1px solid var(--steel);
}
.filter-group:last-of-type { border-bottom: none; }

/* ─── Label ── */
.filter-label {
  display: block;
  font-family: var(--font-heading);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* ─── Select ── */
.filter-select {
  width: 100%;
  background: var(--carbon-light);
  border: 1px solid var(--steel);
  border-radius: 7px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .83rem;
  padding: 8px 10px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a7a8a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.filter-select:focus { border-color: var(--amber); box-shadow: 0 0 0 2px var(--amber-pale); }
.filter-select option { background: var(--carbon-panel); }

/* ─── Range sliders ── */
.filter-range-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.filter-range-value {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

/* Track personalizado con fill */
.filter-range-track {
  position: relative;
  height: 4px;
  background: var(--steel-light);
  border-radius: 2px;
  margin-bottom: -2px; /* overlap con el input */
  z-index: 0;
}
.filter-range-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--amber);
  border-radius: 2px;
  transition: width .1s linear;
  pointer-events: none;
}

/* Input range superpuesto sobre el track */
.filter-range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: transparent;   /* el color lo da .filter-range-track */
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  margin: 0;
  display: block;
}
.filter-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--amber);
  border: 2px solid var(--carbon-mid);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(224,123,34,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.filter-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 2px 14px rgba(224,123,34,.6);
}
.filter-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--amber);
  border: 2px solid var(--carbon-mid);
  border-radius: 50%;
  cursor: pointer;
}

.filter-range-limits {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: .68rem;
  color: var(--muted);
  font-family: var(--font-body);
}

/* ─── Chips (Transmisión / Tracción) ── */
.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  background: var(--carbon-light);
  border: 1px solid var(--steel);
  border-radius: 20px;
  color: var(--muted-light);
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 12px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.filter-chip.active {
  background: var(--amber-pale);
  border-color: var(--amber);
  color: var(--amber);
}

/* ─── Botón limpiar filtros ── */
.btn-filter-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  margin: 0;
  background: transparent;
  border: none;
  border-top: 1px solid var(--steel);
  color: var(--muted-light);
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  opacity: .45;
  pointer-events: none;
}
.btn-filter-reset:hover {
  color: var(--red);
  background: rgba(224,48,48,.06);
}

/* ─── DETAIL PAGE ────────────────────────────────────── */
.gallery-main {
  aspect-ratio: 4/3;
  background: var(--carbon-panel);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--steel);
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-main:hover img { transform: scale(1.03); }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--steel-light) transparent;
}
.gallery-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--amber); }
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.detail-before {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
}
.spec-table tr td {
  padding: 8px 10px;
  font-size: .85rem;
  border-bottom: 1px solid var(--steel);
}
.spec-table tr td:first-child {
  color: var(--muted-light);
  font-weight: 600;
  width: 40%;
}
.spec-table tr:last-child td { border-bottom: none; }

/* ─── APARTAR MODAL ──────────────────────────────────── */
.apartar-modal .modal-content {
  background: var(--carbon-mid);
  border: 1px solid var(--steel);
  border-radius: var(--card-radius-lg);
}
.apartar-modal .modal-header {
  border-bottom: 1px solid var(--steel);
  padding: 18px 24px;
}
.apartar-modal .modal-body { padding: 24px; }
.deposit-options { display: flex; gap: 10px; margin: 12px 0; }
.deposit-option {
  flex: 1;
  background: var(--carbon-light);
  border: 1.5px solid var(--steel);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  color: var(--muted-light);
}
.deposit-option.active, .deposit-option:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-pale);
}
.deposit-amount {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--amber);
  line-height: 1.1;
  margin-top: 2px;
}

/* ─── FLOATING WA BUTTON ─────────────────────────────── */
.btn-float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wa);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  animation: float-wa 3s ease-in-out infinite;
}
.btn-float-wa:hover { background: var(--green-wa-dark); transform: scale(1.06); color: #fff; }
.btn-float-wa i { font-size: 1.2rem; }
@keyframes float-wa {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.35); }
  50% { box-shadow: 0 10px 36px rgba(37,211,102,.55); }
}

/* ─── OFERTA / SUBASTA MODAL ─────────────────────────── */
.oferta-modal .modal-content {
  background: var(--carbon-mid);
  border: 1px solid var(--steel);
  border-radius: var(--card-radius-lg);
}
.oferta-modal .modal-header { border-bottom: 1px solid var(--steel); padding: 18px 24px; }
.oferta-modal .modal-body { padding: 24px; }
.search-label {
  display: block;
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 5px;
}
.search-input {
  background: var(--carbon-light);
  border: 1px solid var(--steel);
  border-radius: 7px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 10px 13px;
  transition: border-color var(--transition);
  outline: none;
}
.search-input:focus { border-color: var(--amber); }
.search-input::placeholder { color: var(--muted); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
/* ─── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 992px) {
  /* Sidebar en inventario: toggle oculto/visible */
  .sidebar-toggle      { display: flex; }
  .filter-sidebar      {
    position: static;
    display: none;        /* oculto por defecto en móvil */
    margin-bottom: 0;
  }
  .filter-sidebar.open { display: block; }
}

@media (max-width: 768px) {
  .navbar-search-central  { max-width: 100%; order: 3; width: 100%; }
  .navbar-row1            { flex-wrap: wrap; }
  .navbar-row2            { display: none; }
  .navbar-row2.show       { display: flex; }
  .advsearch-bar          { flex-wrap: wrap; }

  /* WA flotante: solo ícono en móvil */
  .btn-float-wa span    { display: none; }
  .btn-float-wa         { padding: 14px; border-radius: 50%; }

  /* Hero */
  .hero-section         { min-height: 380px; }

  /* Card actions: stack en móvil pequeño */
  .card-actions-row     { grid-template-columns: 1fr 1fr; }

  /* Modales */
  .deposit-options      { flex-wrap: wrap; }
  .otp-digit            { width: 42px; height: 52px; font-size: 1.4rem; }

  /* Filtros inline (chips) */
  .filter-chip-group    { gap: 5px; }
  .filter-chip          { font-size: .68rem; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .hero-h1              { font-size: 2rem; }
  .detail-price         { font-size: 2rem; }

  /* En pantallas muy pequeñas, los 2 botones superiores se apilan */
  .card-actions-row     { grid-template-columns: 1fr; }
}

/* ─── HERO CAROUSEL ──────────────────────────────────── */
/*
 * Técnica: stack de slides absolutamente posicionados.
 * El slide activo tiene opacity:1 + scale(1).
 * El saliente hace zoom-out (scale crece → sensación de "expand").
 * El entrante hace fade-in desde scale ligeramente reducido.
 * Todo mediante CSS transitions — sin animaciones JS pesadas.
 */

.hero-carousel-section {
  position: relative;
  overflow: hidden;
  background: var(--carbon-dark);
  user-select: none;
  /* Altura fija para que el stack absoluto tenga referencia */
  min-height: 520px;
}

/* Contenedor que da la altura al section */
.hero-slides {
  position: relative;
  width: 100%;
  min-height: 520px;
}

/* Todos los slides apilados, invisibles por defecto */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Estado inicial: invisible y ligeramente ampliado (entrará haciendo zoom-in) */
  opacity: 0;
  transform: scale(1.04);
  z-index: 0;
  pointer-events: none;

  /* Transición cruzada suave */
  transition:
    opacity 900ms cubic-bezier(.4, 0, .2, 1),
    transform 900ms cubic-bezier(.4, 0, .2, 1);
  will-change: opacity, transform;
}

/* Anti-flash: mientras JS no ha corrido, el primer slide es visible */
.hero-carousel-section:not(.js-ready) .hero-slide:first-child {
  opacity: 1;
  transform: scale(1);
}

/* Slide ACTIVO: visible y en escala natural */
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  pointer-events: auto;
}

/*
 * Slide SALIENTE: cuando se le quita .active y se le agrega .leaving.
 * Hace zoom hacia afuera (crece) mientras desaparece → efecto "expand".
 */
.hero-slide.leaving {
  opacity: 0;
  transform: scale(1.07);
  z-index: 1;
  pointer-events: none;
  transition:
    opacity 900ms cubic-bezier(.4, 0, .2, 1),
    transform 900ms cubic-bezier(.4, 0, .2, 1);
}

/* Ken Burns sutil — el pseudo-elemento anima el fondo
   La imagen llega vía la variable CSS --slide-bg definida inline */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: -8%;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 900ms cubic-bezier(.4,0,.2,1);
  z-index: 0;
}
/* Cuando el slide está activo, el fondo hace Ken Burns */
.hero-slide.active::before {
  animation: heroBgZoom 5500ms ease-in-out forwards;
}
/* Cuando sale, el zoom se detiene y el fade ya lo maneja el elemento padre */
.hero-slide.leaving::before {
  animation: none;
}

@keyframes heroBgZoom {
  from { transform: scale(1);    }
  to   { transform: scale(1.08); }
}

/* Overlay de gradiente sobre el pseudo-elemento */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,12,.95) 35%,
    rgba(10,10,12,.45) 100%
  );
  z-index: 1;
}

/* Contenido siempre encima */
.hero-slide-content {
  position: relative;
  z-index: 3;
  padding: 60px 0;
  /* Fade-in del contenido texto con pequeño delay */
  animation: heroContentIn 700ms 200ms ease both;
}
.hero-slide:not(.active) .hero-slide-content {
  animation: none;
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Barra de progreso ──────────────────────────────── */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--amber);
  z-index: 20;
  transition: width 0s;   /* se controla por JS */
}
.hero-progress-bar.running {
  transition: width var(--hero-duration, 5000ms) linear;
  width: 100%;
}

/* ── Flechas ────────────────────────────────────────── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(10,10,12,.5);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}
/* Arrow hover: push-in + color ámbar */
.hero-arrow:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: #000;
  transform: translateY(-50%) scale(1.1);
}
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* ── Dots ───────────────────────────────────────────── */
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    width 300ms ease,
    background 300ms ease,
    border-radius 300ms ease;
}
.hero-dot.active {
  background: var(--amber);
  width: 28px;
  border-radius: 4px;
}
.hero-dot:hover:not(.active) { background: rgba(255,255,255,.6); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-carousel-section,
  .hero-slides            { min-height: 420px; }
  .hero-arrow             { display: none; }
  .hero-slide-content     { padding: 36px 0; }
  .hero-slide.active::before { animation: none; transform: scale(1.04); }
}
