/* ===== Hollcam — web pública ===== */
:root {
  --bg: #0d0f13;
  --bg-2: #13161c;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f3f6;
  --text-2: #a3abb8;
  --text-3: #6b7380;
  --accent: #f5a524;          /* ámbar: color de marca para toda acción primaria */
  --accent-2: #ffbe4d;
  --accent-ink: #1a1203;
  --wa: #25d366;              /* solo para botones de WhatsApp */
  --ok: #3ccf91;
  --warn: #f5a524;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* que ningún display: flex/grid le gane al atributo hidden */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2f38; border-radius: 8px; }
* { scrollbar-width: thin; scrollbar-color: #2a2f38 var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; font-size: 20px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #e07b00);
  display: grid; place-items: center; color: var(--accent-ink); font-weight: 900; font-size: 17px;
  box-shadow: 0 0 18px rgba(245, 165, 36, 0.35);
}
.logo small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 15px;
  transition: color 200ms, background 200ms;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .btn { margin-top: 8px; justify-content: center; }
}

/* ----- Botones ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform 200ms, box-shadow 250ms, background 200ms, border-color 200ms;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 4px 18px rgba(245, 165, 36, 0.28);
}
.btn-primary:hover { box-shadow: 0 6px 26px rgba(245, 165, 36, 0.45); }
.btn-ghost { background: var(--panel); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--panel-strong); }
.btn-wa { background: var(--wa); color: #052e16; box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25); }
.btn-wa:hover { box-shadow: 0 6px 26px rgba(37, 211, 102, 0.42); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ----- Hero ----- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(245, 165, 36, 0.16), transparent 70%);
  pointer-events: none;
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.08; margin: 12px 0 16px; font-weight: 800; letter-spacing: -0.02em; max-width: 15ch; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 52ch; margin: 0 0 28px; }

.search-box {
  display: flex; gap: 8px; padding: 8px; max-width: 640px;
  background: var(--panel-strong); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.search-box input {
  flex: 1; min-width: 0; background: transparent; border: 0; padding: 10px 12px; font-size: 16px; outline: none;
}
.search-box input::placeholder { color: var(--text-3); }
.search-hint { margin-top: 12px; font-size: 14px; color: var(--text-3); }
.search-hint a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.stat strong { display: block; font-size: 28px; font-weight: 800; }
.stat span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); font-weight: 700; }

/* ----- Secciones ----- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin: 6px 0 0; color: var(--text-2); }
.link-more { color: var(--accent); font-weight: 700; font-size: 15px; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel);
  font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer;
  transition: color 200ms, border-color 200ms, background 200ms, transform 200ms;
}
.chip:hover { color: var(--text); border-color: rgba(245, 165, 36, 0.5); }
.chip:active { transform: scale(0.96); }
.chip.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--border); }
.step .n {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(245, 165, 36, 0.12); color: var(--accent); font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ----- Grillas y tarjetas ----- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; text-align: left;
  transition: transform 250ms, border-color 250ms, box-shadow 250ms;
}
.card:hover { transform: translateY(-3px); border-color: rgba(245, 165, 36, 0.4); box-shadow: var(--shadow); }
.card:active { transform: scale(0.98); }
.card-media {
  aspect-ratio: 4 / 3; background: linear-gradient(160deg, #1b1f27, #12151b);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.card-media img.photo { width: 100%; height: 100%; object-fit: cover; }
.card-media img.placeholder { width: 42%; opacity: 0.55; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 700; font-size: 17px; line-height: 1.3; margin: 0; }
.card-meta { color: var(--text-2); font-size: 14px; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 20px; }
.price-ask { font-weight: 700; font-size: 15px; color: var(--accent); }
.code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; color: var(--text-3); }
.label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); }

.badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08); color: var(--text-2);
}
.badge-accent { background: rgba(245, 165, 36, 0.14); color: var(--accent); }
.badge-ok { background: rgba(60, 207, 145, 0.14); color: var(--ok); }
.badge-muted { background: rgba(255, 255, 255, 0.06); color: var(--text-3); }
.card-media .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-media .badge { background: rgba(13, 15, 19, 0.78); backdrop-filter: blur(6px); }
.card-media .badge-accent { color: var(--accent); }

/* ----- Catálogo ----- */
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head h1 { margin: 8px 0 6px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
.page-head p { margin: 0; color: var(--text-2); }
.breadcrumbs { font-size: 13px; color: var(--text-3); }
.breadcrumbs a:hover { color: var(--text); }

.toolbar { position: sticky; top: 68px; z-index: 20; background: rgba(13, 15, 19, 0.9); backdrop-filter: blur(12px); padding: 14px 0; border-bottom: 1px solid var(--border); }
.toolbar .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.input-wrap { position: relative; flex: 1 1 320px; }
.input {
  width: 100%; padding: 12px 40px 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel-strong); outline: none; transition: border-color 200ms, box-shadow 200ms;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 165, 36, 0.18); }
.input-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: var(--text-3); cursor: pointer;
}
.input-clear:hover { color: var(--text); background: var(--panel); }
select.input { padding-right: 14px; flex: 0 1 200px; width: auto; cursor: pointer; }
select.input option { background: var(--bg-2); }
@media (max-width: 760px) {
  .toolbar { position: static; }
  select.input { flex: 1 1 140px; }
  .card-media { aspect-ratio: 16 / 9; }
}
.result-count { color: var(--text-3); font-size: 14px; margin: 18px 0 14px; }

.empty {
  text-align: center; padding: 48px 20px; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-2);
}
.empty h3 { color: var(--text); margin: 0 0 6px; }
.empty p { margin: 0 0 18px; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #171a21 25%, #1f232c 50%, #171a21 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-lg); }
.skeleton.card-skel { height: 320px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }

/* ----- Modal ----- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 200ms;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transform: scale(0.96); transition: transform 200ms;
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal-media { aspect-ratio: 16 / 9; background: linear-gradient(160deg, #1b1f27, #12151b); display: grid; place-items: center; }
.modal-media img.placeholder { width: 26%; opacity: 0.55; }
.modal-media img.photo { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 22px; }
.modal-body h2 { margin: 6px 0 4px; font-size: 22px; }
.modal-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -54px 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(13, 15, 19, 0.8); cursor: pointer; font-size: 20px; line-height: 1;
}
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 18px 0; }
.spec-list div { min-width: 0; }
.spec-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.spec-list dt { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3); }
.spec-list .full { grid-column: 1 / -1; }

/* ----- Ficha de vehículo ----- */
.vehicle-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 24px 0 56px; align-items: start; }
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, #1b1f27, #12151b); display: grid; place-items: center; border: 1px solid var(--border); }
.gallery-main img.photo { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img.placeholder { width: 34%; opacity: 0.55; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-desc { grid-column: 1; }
.side-panel { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 88px; padding: 24px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--border); }
.side-panel h1 { margin: 8px 0 2px; font-size: 28px; line-height: 1.15; }
.side-panel .price { font-size: 30px; margin: 14px 0 4px; display: block; }
@media (max-width: 860px) {
  .vehicle-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; grid-column: auto; grid-row: auto; }
  .vehicle-desc { grid-column: auto; }
}

/* ----- Contacto / Footer ----- */
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(245, 165, 36, 0.12), rgba(245, 165, 36, 0.02)); border: 1px solid rgba(245, 165, 36, 0.25); }
.contact-card h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.contact-card p { margin: 0; color: var(--text-2); }
.contact-list { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.contact-list .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; padding: 24px; } }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--text-3); font-size: 14px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #052e16;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 200ms;
}
.wa-float:hover { transform: translateY(-2px) scale(1.04); }
.wa-float:active { transform: scale(0.94); }
.wa-float svg { width: 30px; height: 30px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 200;
  padding: 12px 18px; border-radius: 12px; background: #1f232c; border: 1px solid var(--border);
  box-shadow: var(--shadow); opacity: 0; transition: opacity 200ms, transform 200ms; font-weight: 600;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 99, 99, 0.5); }

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