/* ==========================================================
   Luro Automotores — Catálogo
   Paleta: negro (#060606), superficies (#111214),
   texto plateado (#f0f0f0) y acento naranja (#ff8a1f)
   ========================================================== */

:root {
  --bg: #060606;
  --surface: #111214;
  --surface-2: #17181b;
  --border: #26282c;
  --text: #f1f1f1;
  --text-muted: #9a9ea3;
  --accent: #ff8a1f;
  --accent-light: #ffb04d;
  --accent-dark: #d96a10;
  --radius: 4px;
  --wrap: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, .brand-font {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */

.site-header {
  background:
    radial-gradient(ellipse 70% 100% at 50% -10%, rgba(255,138,31,0.22), transparent 65%),
    #000;
  padding: 34px 0 28px;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 168px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 26px rgba(255, 138, 31, 0.32));
}

.header-tagline {
  margin: 0;
  max-width: 380px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Catalog title ---------- */

.catalog-title-strip {
  background: #000;
  border-bottom: 2px solid var(--accent);
  padding: 4px 0 22px;
}

.catalog-title {
  margin: 0;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.6rem;
  color: var(--text);
}

/* ---------- Info strip ---------- */

.info-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin-top: 8px;
}

.info-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 24px;
  scrollbar-width: none;
}

.info-scroll::-webkit-scrollbar { display: none; }

.info-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.info-icon { font-size: 1.05rem; }

.info-chip--accent {
  color: #0c0c0c;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-color: transparent;
  font-weight: 700;
  transition: filter 0.15s ease;
}

.info-chip--accent:hover { filter: brightness(1.08); }

@media (min-width: 760px) {
  .info-scroll {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding: 4px 24px;
  }
}

/* ---------- Toolbar ---------- */

main.wrap { padding-top: 40px; padding-bottom: 64px; }

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.toolbar-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  width: 100%;
}

.filter-selects {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#searchInput, #brandFilter, #typeFilter, #priceFilter, #sortSelect {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

#searchInput { width: 100%; }

#searchInput:focus, #brandFilter:focus, #typeFilter:focus, #priceFilter:focus, #sortSelect:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.results-count {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 14px 0 22px;
}

/* ---------- Car grid ---------- */

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.car-card:hover {
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}

.car-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0% 100%);
}

.car-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #101010;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 2px;
}

.car-badge--sold {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  border: 2px solid var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 22px;
  backdrop-filter: blur(2px);
}

.car-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.car-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.car-name .car-brand { color: var(--accent-light); }

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.car-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.car-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.car-price {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent-light);
}

.car-cta {
  background: var(--accent);
  color: #111;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 14px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
  white-space: nowrap;
}

.car-cta:hover { background: var(--accent-light); }

.car-card--sold .car-photo-wrap img { filter: grayscale(80%) brightness(0.42); }
.car-card--sold .car-cta { display: none; }
.car-card--sold .car-price { color: var(--text-muted); text-decoration: line-through; }

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 60px 0;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #000;
  border-top: 2px solid var(--accent);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo { height: 46px; width: auto; opacity: 0.9; }

.footer-details {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-address {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.whatsapp-fab-link {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--accent-dark);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}

.whatsapp-fab-link:hover { background: var(--surface-2); }

/* ---------- WhatsApp floating button ---------- */

.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
  z-index: 50;
  transition: transform 0.15s ease;
}

.whatsapp-fab:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .site-header { padding: 22px 0 18px; }
  .logo { height: 96px; }
  .header-tagline { font-size: 0.8rem; line-height: 1.4; padding: 0 12px; }
  .catalog-title-strip { padding: 2px 0 16px; }
  .catalog-title { font-size: 1.15rem; letter-spacing: 0.04em; padding: 0 12px; }
  #searchInput { min-width: 0; flex: 1; }
  .toolbar-controls { align-items: stretch; }
  .filter-selects { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .filter-selects select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
