/* Paleta tomada del logo: azul rey (caja), azul marino (letras), gris acero (engranes) */
:root {
  --blue: #1d5fd8;
  --blue-dark: #1449ad;
  --blue-soft: #e8f0fd;
  --navy: #0e1b2e;
  --navy-2: #16263d;
  --steel: #8794a6;
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #0e1b2e;
  --muted: #5d6b7e;
  --line: #dfe5ee;
  --ok: #18884a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14,27,46,.06), 0 8px 24px rgba(14,27,46,.06);
  --head: "Sora", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-line { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-line-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line-dark:hover { border-color: var(--ink); }

/* Header claro con el logo */
.top { background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.brand span { font-family: var(--head); font-weight: 800; font-size: 19px; color: var(--navy); white-space: nowrap; letter-spacing: -.01em; }
.brand b { color: var(--blue); }
.nav { display: flex; gap: 6px; margin-left: 18px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--blue-soft); color: var(--blue); }
.top .spacer { flex: 1; }
.top .btn { height: 40px; font-size: 14px; }
.nav a { white-space: nowrap; }
@media (max-width: 1140px) { .nav { display: none; } }
@media (max-width: 600px) {
  .brand span { font-size: 16px; }
  .brand img { width: 44px; height: 44px; }
  .top .btn .lbl { display: none; }
  .top .btn { width: 40px; padding: 0; }
}

/* Hero dividido: texto + buscador | collage de fotos reales */
.hero { background: linear-gradient(180deg, #fff 0%, var(--blue-soft) 100%); padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--blue); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 18px 0 14px; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; max-width: 560px; }
.finder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.finder-title { font-family: var(--head); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.finder-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.finder-row.two { grid-template-columns: 1fr auto; margin-top: 8px; }
.finder select, .finder input {
  height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; color: var(--ink); min-width: 0;
}
.finder select:focus, .finder input:focus { outline: none; border-color: var(--blue); }
.finder .btn { height: 48px; padding: 0 22px; }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collage .ph { aspect-ratio: 1; border-radius: var(--radius); background: #dfe6f0 center / cover no-repeat; box-shadow: var(--shadow); }
.collage .ph:nth-child(1) { transform: translateY(18px); }
.collage .ph:nth-child(4) { transform: translateY(-18px); }
.collage .badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--navy); color: #fff; border-radius: 16px; padding: 14px 20px; text-align: center; box-shadow: 0 10px 30px rgba(14,27,46,.35);
}
.collage .badge b { display: block; font-family: var(--head); font-size: 28px; line-height: 1.1; }
.collage .badge span { font-size: 13px; color: #c6d3e6; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .collage { display: none; }
}
@media (max-width: 600px) {
  .finder-row { grid-template-columns: 1fr 1fr; }
  .finder-row #year { grid-column: 1 / -1; }
  .finder-row.two { grid-template-columns: 1fr; }
}

/* Franja de numeros */
.stats { background: var(--navy); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats .wrap > div { padding: 20px 12px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
.stats .wrap > div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--head); font-size: 24px; }
.stats span { color: #a9b6c9; font-size: 13px; }
@media (max-width: 600px) { .stats .wrap { grid-template-columns: 1fr 1fr; } .stats .wrap > div:nth-child(3) { border-left: 0; } }

/* Secciones */
.band { padding: 56px 0; }
.band.white { background: #fff; }
.band.navy { background: var(--navy); color: #fff; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head-row h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 6px; }
.head-row p { margin: 0; color: var(--muted); }
.navy .head-row p { color: #a9b6c9; }
.head-row select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; }
@media (max-width: 600px) { .band { padding: 40px 0; } }

/* En el lote */
.lot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .lot { grid-template-columns: repeat(2, 1fr); } }
.car {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none;
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; transition: border-color .12s, box-shadow .12s;
}
.car:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.car .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--blue-soft) center / cover no-repeat; }
.car .yr { font-size: 12px; font-weight: 700; color: var(--blue); }
.car .mm { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.2; }
.car .meta { font-size: 13px; color: var(--muted); }
.car.skel { min-height: 98px; }
@media (max-width: 520px) { .lot { grid-template-columns: 1fr; } }

/* Marcas en pastillas */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; text-decoration: none; font-weight: 600; cursor: pointer; font: inherit; font-weight: 600;
}
.pill small { color: var(--steel); font-weight: 600; }
.pill:hover { border-color: var(--blue); color: var(--blue); }

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

/* Como comprar */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--navy-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 22px; }
.steps span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue); font-weight: 800; }
.steps h3 { margin: 14px 0 6px; font-size: 20px; }
.steps p { margin: 0; color: #a9b6c9; }
.promise { display: flex; gap: 10px 28px; flex-wrap: wrap; margin-top: 22px; color: #d4deeb; font-weight: 600; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Visitanos */
.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; }
.visit h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; }
.visit .addr { font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.visit p { margin: 0 0 4px; color: var(--muted); }
.visit-ctas { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.visit iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--blue-soft); }
@media (max-width: 800px) { .visit { grid-template-columns: 1fr; } }

/* Pagina de pieza */
.crumbs { font-size: 14px; color: var(--muted); margin: 20px 0; }
.crumbs a { text-decoration: none; color: var(--blue); font-weight: 600; }
.prod { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.prod > * { min-width: 0; }
@media (max-width: 860px) { .prod { grid-template-columns: 1fr; gap: 16px; } }
.gallery .main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.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: 10px; overflow: hidden; width: 72px; height: 54px; flex: 0 0 auto; cursor: pointer; background: #fff; }
.thumbs button.on { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info h1 { font-family: "Inter", system-ui, sans-serif; letter-spacing: 0; font-size: 22px; line-height: 1.3; margin: 6px 0 10px; overflow-wrap: anywhere; }
.info .fit { color: var(--blue); font-weight: 700; font-size: 14px; }
.info .price { font-family: var(--head); 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: 9px 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: var(--navy); color: #a9b6c9; padding: 28px 0; font-size: 14px; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .brand span { color: #fff; }
.foot p { margin: 0; }

/* Botones flotantes (solo celular) */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: none; flex-direction: column; gap: 10px; }
.fab a { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(14,27,46,.25); border: 1px solid var(--line); }
.fab a.call { background: var(--blue); color: #fff; border: 0; }
.fab svg { width: 24px; height: 24px; }
@media (max-width: 760px) { .fab { display: flex; } }

/* Piezas destacadas */
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.cat { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }
.cat:hover { border-color: var(--blue); color: var(--blue); }
.card .ph { position: relative; }
.tag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; color: #fff; background: var(--navy); }
.tag.mech { background: var(--blue); }
.tag.chassis { background: #3d4b5f; }
.tag.body { background: var(--navy); }
.tag.small { background: #fff; color: var(--navy); border: 1px solid var(--line); }

/* Precio web con descuento */
.prices { display: flex; flex-direction: column; margin-top: auto; padding-top: 8px; line-height: 1.15; }
.card .pr { margin: 0; padding: 0; font-size: 21px; color: var(--ink); }
.was { color: var(--steel); text-decoration: line-through; font-size: 14px; font-weight: 500; }
.info .price { margin-bottom: 0; }
.info .was { font-size: 18px; }

/* Boton de idioma */
.lang { height: 40px; min-width: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; }
.lang:hover { border-color: var(--blue); color: var(--blue); }

/* Formulario de pedido */
.request { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; }
.request h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; }
.request p { color: var(--muted); margin: 0; }
.reqform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.reqform input { height: 48px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; min-width: 0; }
.reqform input:focus { outline: none; border-color: var(--blue); }
.reqform input.bad { border-color: #d43c3c; }
.reqform .full { grid-column: 1 / -1; }
.reqform .btn { height: 50px; }
.reqform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.reqmsg { font-weight: 600; min-height: 1em; }
.reqmsg.ok { color: var(--ok); }
.reqmsg.err { color: #d43c3c; }
@media (max-width: 800px) { .request { grid-template-columns: 1fr; gap: 16px; } .reqform { grid-template-columns: 1fr; } }
