:root {
  --bg: #f4f4f2;
  --card: #ffffff;
  --ink: #121212;
  --ink-2: #1c1c1c;
  --muted: #6b6b66;
  --line: #e2e2dd;
  --brand: #e2531b;
  --brand-dark: #c4410f;
  --ok: #1f8a4c;
  --text: #2f6fde;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .01em; text-transform: uppercase; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Franja superior */
.strip { background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }
.strip .wrap { display: flex; justify-content: center; gap: 18px; height: 32px; align-items: center; flex-wrap: wrap; }
.strip a { text-decoration: none; }
@media (max-width: 560px) { .strip #strip-hours { display: none; } }

/* Header */
.top { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #2a2a2a; }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { font-family: var(--display); font-weight: 800; letter-spacing: .03em; text-decoration: none; font-size: 28px; white-space: nowrap; }
.logo b { color: var(--brand); }
.nav { display: flex; gap: 22px; margin-left: 24px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: #d6d6d0; }
.nav a:hover { color: #fff; }
@media (max-width: 960px) { .nav { display: none; } }
.top .spacer { flex: 1; }
.callnow { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.callnow svg { width: 22px; height: 22px; color: var(--brand); }
.callnow small { display: block; font-size: 11px; color: #a9a9a3; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; }
.callnow b { font-size: 17px; line-height: 1.2; white-space: nowrap; }
.prod > * { min-width: 0; }
.info h1 { overflow-wrap: anywhere; }
@media (max-width: 560px) { .callnow small { display: none; } .callnow b { font-size: 15px; } .logo { font-size: 24px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-text { background: var(--text); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn svg { width: 18px; height: 18px; }
.top .btn { height: 38px; padding: 0 14px; font-size: 14px; }
@media (max-width: 560px) { .top .btn .lbl { display: none; } .top .btn { width: 38px; padding: 0; } }

/* Hero */
.hero {
  color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden;
  background:
    linear-gradient(100deg, rgba(10,10,10,.96) 35%, rgba(10,10,10,.75) 70%, rgba(226,83,27,.35)),
    repeating-linear-gradient(135deg, #1a1a1a 0 14px, #161616 14px 28px);
}
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: .95; margin: 0 0 18px; }
.hero p { color: #cfcfca; margin: 0 0 28px; max-width: 560px; font-size: 18px; }
.hero .stock { color: #fff; font-weight: 800; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .hero { padding: 44px 0 52px; } .hero-ctas .btn { flex: 1; } }

/* Secciones */
.band { padding: 56px 0; }
.band.alt { background: #fff; }
.band.dark { background: var(--ink); color: #fff; }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1; margin: 0 0 10px; }
.sec-head p { color: var(--muted); margin: 0 auto; max-width: 640px; }
.dark .sec-head p { color: #b8b8b2; }
@media (max-width: 560px) { .band { padding: 40px 0; } }

/* Ultimos carros */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.car {
  scroll-snap-align: start; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px; text-decoration: none;
  display: flex; flex-direction: column; gap: 6px; min-height: 190px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .12s ease;
}
.car:hover { transform: translateY(-2px); }
.car::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(226,83,27,.18); }
.car .yr { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.car .mm { font-family: var(--display); font-size: 30px; line-height: 1; text-transform: uppercase; font-weight: 700; }
.car .meta { color: #b8b8b2; font-size: 13px; margin-top: auto; }
.car .go { font-weight: 700; font-size: 14px; color: #fff; }
.car.skel { background: #ddd; }

/* Marcas */
.makes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.make {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px; text-align: center; text-decoration: none; background: #fff;
  transition: border-color .12s ease, transform .12s ease; cursor: pointer; font: inherit;
}
.make:hover { border-color: var(--brand); transform: translateY(-2px); }
.make b { display: block; font-family: var(--display); font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.make span { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { .makes { grid-template-columns: repeat(2, 1fr); } }

/* Buscador */
.search { display: grid; grid-template-columns: 2fr 1fr 1fr .8fr auto; gap: 8px; background: var(--ink); padding: 10px; border-radius: 12px; }
.search input, .search select {
  height: 48px; border-radius: 8px; border: 0; padding: 0 14px; font: inherit; background: #fff; color: var(--ink); min-width: 0;
}
.search .btn { height: 48px; }
@media (max-width: 860px) { .search { grid-template-columns: 1fr 1fr; } .search input { grid-column: 1 / -1; } }

/* Resultados */
.bar { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; flex-wrap: wrap; }
.bar .count { font-weight: 700; }
.bar .spacer { flex: 1; }
.bar select { height: 38px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 0 10px; font: inherit; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  text-decoration: none; display: flex; flex-direction: column; transition: transform .12s ease;
}
.card:hover { transform: translateY(-2px); }
.card .ph { aspect-ratio: 4 / 3; background: #eee; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .bd { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .fit { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.card .tt { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .pr { font-weight: 800; font-size: 19px; margin-top: auto; padding-top: 6px; }
.more { display: flex; justify-content: center; margin: 24px 0 8px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); grid-column: 1 / -1; }
.skel { background: linear-gradient(90deg, #e6e6e6, #f3f3f3, #e6e6e6); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Por que nosotros */
.why { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.why > div { background: var(--ink-2); border: 1px solid #2c2c2c; border-radius: var(--radius); padding: 22px 18px; }
.why .ico { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-weight: 800; }
.why h3 { font-size: 24px; margin: 14px 0 6px; }
.why p { color: #b8b8b2; margin: 0; font-size: 14px; }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* Pagina de pieza */
.crumbs { font-size: 14px; color: var(--muted); margin: 18px 0; }
.crumbs a { text-decoration: none; }
.prod { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .prod { grid-template-columns: 1fr; gap: 16px; } }
.gallery .main { background: #fff; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 72px; height: 54px; flex: 0 0 auto; cursor: pointer; background: #fff; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info h1 { font-family: "Inter", system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-size: 22px; line-height: 1.3; margin: 6px 0 10px; }
.info .fit { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .03em; }
.info .price { font-size: 34px; font-weight: 800; margin: 6px 0 4px; }
.info .stockok { color: var(--ok); font-weight: 700; font-size: 14px; }
.info .ctas { display: grid; gap: 10px; margin: 18px 0; }
.info .ctas .btn { height: 54px; font-size: 17px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.specs td:first-child { color: var(--muted); width: 42%; }
.perks { display: grid; gap: 6px; font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Footer */
.foot { background: #0b0b0b; color: #b8b8b2; padding: 40px 0; font-size: 14px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot b { color: #fff; }
.foot p { margin: 6px 0 0; }
.foot .logo { color: #fff; font-size: 26px; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Barra fija inferior */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink-2); color: #fff; border-top: 3px solid var(--brand); }
.sticky .wrap { display: flex; align-items: center; gap: 10px; height: 64px; }
.sticky .wrap > div { flex: 1; line-height: 1.25; min-width: 0; }
.sticky b { display: block; font-size: 15px; }
.sticky span { color: #b8b8b2; font-size: 13px; }
.sticky .btn { height: 40px; padding: 0 16px; }
@media (max-width: 560px) { .sticky span { display: none; } .sticky b { font-size: 14px; } }
