/* axel. — a parts shop in the llego way: warm white ground, white cards, real product photos,
   search and the car in the header, a bottom tab bar on phones. Three colour styles on
   <html data-style="klassiek|racing|nacht">; only the tokens change between them. */

:root {
  --w: 1180px;
  --gutter: 16px;
  --ease: cubic-bezier(.22,.8,.24,1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display: "Inter Tight", "Inter", "Segoe UI", Arial, sans-serif;
}

/* KLASSIEK: llego itself — warm white, orange, a black hero card */
:root, :root[data-style="klassiek"] {
  --bg: #f4f3ef; --bg-deep: #ecebe6; --card: #ffffff; --ink: #111111; --ink2: #3d3d3a; --muted: #6f6e69; --line: #e6e4de; --line2: #d9d7cf;
  --accent: #ff5a1f; --accent-ink: #ffffff; --accent-soft: #fff1ea; --good: #11845b; --warn: #b86b00; --bad: #d4351c;
  --hero: #111111; --hero-ink: #ffffff; --hero-muted: rgba(255,255,255,.72); --hero-key: #ffa21f;
  --btn: #111111; --btn-ink: #ffffff; --field: #f1f0ec; --tile: #ffffff; --chip: #ffffff;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 10px 30px rgba(17,17,17,.06);
  --shadow-lift: 0 2px 4px rgba(17,17,17,.05), 0 22px 50px rgba(17,17,17,.12);
  --plate: #f8c300; --plate-ink: #111;
}
/* RACING: cool white, signal red, a deep navy hero card */
:root[data-style="racing"] {
  --bg: #f3f5f8; --bg-deep: #e8ecf2; --card: #ffffff; --ink: #0d1726; --ink2: #33415a; --muted: #687489; --line: #e2e7ee; --line2: #d3dae5;
  --accent: #e3122d; --accent-ink: #ffffff; --accent-soft: #fdecee; --good: #0e8a5f; --warn: #b26b00; --bad: #c81e1e;
  --hero: #0d1a33; --hero-ink: #ffffff; --hero-muted: rgba(255,255,255,.72); --hero-key: #ff3b52;
  --btn: #0d1a33; --btn-ink: #ffffff; --field: #edf0f5; --tile: #ffffff; --chip: #ffffff;
  --shadow: 0 1px 2px rgba(13,23,38,.05), 0 10px 30px rgba(13,23,38,.07);
  --shadow-lift: 0 2px 4px rgba(13,23,38,.06), 0 22px 50px rgba(13,23,38,.14);
  --plate: #f8c300; --plate-ink: #111;
}
/* NACHT: the same shop after dark — graphite, amber, photos on their own white panels */
:root[data-style="nacht"] {
  --bg: #0f1012; --bg-deep: #08090a; --card: #18191c; --ink: #f2f1ed; --ink2: #c9c8c2; --muted: #8f8e88; --line: #26272b; --line2: #33343a;
  --accent: #ffb02e; --accent-ink: #111111; --accent-soft: rgba(255,176,46,.12); --good: #3ccf8e; --warn: #ffb02e; --bad: #ff6b5a;
  --hero: #000000; --hero-ink: #ffffff; --hero-muted: rgba(255,255,255,.7); --hero-key: #ffb02e;
  --btn: #f2f1ed; --btn-ink: #111111; --field: #1f2024; --tile: #ffffff; --chip: #18191c;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.35), 0 26px 60px rgba(0,0,0,.55);
  --plate: #f8c300; --plate-ink: #111;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; overflow-x: hidden; transition: background-color .6s var(--ease), color .4s; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 64px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
h3 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--w), 100% - var(--gutter) * 2); margin-inline: auto; }
.sec { padding-block: 34px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sec-head .more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn-a { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-a:hover { border-color: var(--accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-k { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.btn-k:hover { border-color: var(--btn); box-shadow: var(--shadow-lift); }
.btn-l { height: 52px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-s { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-w { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* fields */
.inp { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.inp:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.inp::placeholder { color: var(--muted); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea.inp { height: auto; padding: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink2); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* the yellow Dutch number plate */
.plate { display: inline-flex; align-items: stretch; height: 52px; border-radius: 9px; overflow: hidden; border: 2px solid #111; background: var(--plate); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.plate .eu { width: 34px; background: #0a3fa6; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; font-weight: 800; font-size: 13px; letter-spacing: .02em; position: relative; }
.plate .eu::before { content: ""; position: absolute; top: 8px; left: 50%; width: 18px; height: 18px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, transparent 5px, #ffd200 5.5px, #ffd200 6.5px, transparent 7px); opacity: .95; }
.plate input { width: 210px; border: 0; background: transparent; color: var(--plate-ink); font-family: "Kenteken", "Arial Narrow", "Roboto Condensed", Arial, sans-serif; font-weight: 800; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; padding: 0 14px; outline: none; }
.plate input::placeholder { color: rgba(0,0,0,.35); }
@media (max-width: 420px) { .plate input { width: 160px; font-size: 22px; } }

/* pills and chips */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card); border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--muted); }
.pill-g { color: var(--good); border-color: color-mix(in srgb, var(--good) 30%, transparent); background: color-mix(in srgb, var(--good) 9%, var(--card)); }
.pill-w { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); background: color-mix(in srgb, var(--warn) 9%, var(--card)); }
.pill-b { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); background: color-mix(in srgb, var(--bad) 9%, var(--card)); }
.deal { position: absolute; top: 10px; right: 10px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; z-index: 2; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); font-size: 13px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- header ---------- */
.head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.head .hbar { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 28px; letter-spacing: -.055em; line-height: 1; display: inline-flex; align-items: baseline; }
.logo b { color: var(--accent); font-weight: 900; }
.hsearch { flex: 1; max-width: 520px; position: relative; }
.hsearch input { height: 46px; padding-left: 44px; background: var(--field); border-color: transparent; }
.hsearch input:focus { background: var(--card); }
.hsearch svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); }
.hnav { display: flex; align-items: center; gap: 6px; }
.hnav a { padding: 8px 10px; border-radius: 8px; font-weight: 500; color: var(--muted); font-size: 15px; transition: color .2s; }
.hnav a:hover, .hnav a.on { color: var(--ink); }
.hnav a.on { font-weight: 700; }
.mycar { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-weight: 600; font-size: 13px; white-space: nowrap; max-width: 220px; }
.mycar svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.mycar span { overflow: hidden; text-overflow: ellipsis; }
.cartbtn { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.cartbtn svg { width: 24px; height: 24px; }
.cartbtn .n { position: absolute; top: 0; right: -2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cartbtn .n[data-zero] { display: none; }
.head .chipsrow { padding-bottom: 12px; }
.head .mobsearch { display: none; }
@media (max-width: 980px) {
  .hnav { display: none; }
  .head .hbar { height: 62px; gap: 12px; }
  .hsearch { display: none; }
  .head .mobsearch { display: block; padding-bottom: 10px; }
  .head .hbar .cartbtn { display: none; }
}
.head .mobsearch .hsearch { display: block; max-width: none; }

/* bottom tab bar on phones, as in llego */
.tabbar { display: none; }
@media (max-width: 980px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: color-mix(in srgb, var(--card) 96%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 14px; font-size: 11px; font-weight: 600; color: var(--ink2); position: relative; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { background: var(--accent-soft); color: var(--ink); }
  .tabbar a .n { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
  .tabbar a .n[data-zero] { display: none; }
}

/* style switch */
.styler { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.styler span.t { font-size: 11px; font-weight: 700; color: var(--muted); padding: 0 6px 0 9px; }
.styler button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 6px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font-size: 12px; font-weight: 700; }
.styler button i { width: 20px; height: 20px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
.styler button[data-s="klassiek"] i { background: conic-gradient(#ff5a1f 0 50%, #f4f3ef 0); }
.styler button[data-s="racing"] i { background: conic-gradient(#e3122d 0 50%, #0d1a33 0); }
.styler button[data-s="nacht"] i { background: conic-gradient(#ffb02e 0 50%, #0f1012 0); }
.styler button.on { background: var(--bg); color: var(--ink); }
@media (max-width: 980px) { .styler { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: auto; left: 12px; padding: 3px; gap: 2px; } .styler span.t, .styler button b { display: none; } .styler button { padding: 0 5px; height: 28px; } .styler button i { width: 18px; height: 18px; } }

/* ---------- home: hero card with the drive ---------- */
.hero { position: relative; margin-top: 18px; }
.hero-card { position: relative; border-radius: 26px; background: var(--hero); color: var(--hero-ink); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; padding: 34px; min-height: 470px; isolation: isolate; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; z-index: 2; }
.hero-copy h1 { color: var(--hero-ink); }
.hero-copy h1 .key { display: inline-block; position: relative; height: 1.06em; overflow: hidden; vertical-align: bottom; }
.hero-copy h1 .key span { display: block; color: var(--hero-key); white-space: nowrap; }
.hero-copy p { color: var(--hero-muted); font-size: 16px; max-width: 46ch; }
.hero-copy .find { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-copy .find .btn { height: 52px; }
.hero-copy .or { font-size: 13px; color: var(--hero-muted); }
.hero-copy .or a { color: var(--hero-ink); text-decoration: underline; text-underline-offset: 3px; }
/* The video is a window in the card: nothing is laid over it. */
.drive { position: relative; border-radius: 18px; overflow: hidden; background: #000; min-height: 340px; transform-origin: 50% 50%; will-change: clip-path, transform; }
.drive video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-stage { position: relative; }
@media (max-width: 860px) {
  .hero-card { grid-template-columns: 1fr; padding: 22px; gap: 20px; min-height: 0; border-radius: 22px; }
  .drive { min-height: 0; aspect-ratio: 4 / 3.2; }
}
/* the drive grows to the whole screen when the page scrolls (set by motion.js) */
.hero-pin.pinnable { min-height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 10px; }
.hero-pin.pinnable .hero { margin-top: 0; width: min(var(--w), 100% - var(--gutter) * 2); }
.hero-pin.pinnable .hero-card { min-height: clamp(470px, calc(100vh - 250px), 680px); }

/* thin trust line under the hero */
.trust { display: flex; gap: 22px; flex-wrap: wrap; padding: 16px 4px 0; color: var(--muted); font-size: 13px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--good); }

/* ---------- brands row (llego "Tiendas") ---------- */
.brands { background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: grid; grid-template-columns: repeat(6, 1fr); padding: 8px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; transition: background .2s; text-align: center; }
.brand:hover { background: var(--bg); }
.brand .disc { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; letter-spacing: -.01em; line-height: 1; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.brand b { font-size: 14px; }
.brand span { font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .brands { grid-template-columns: repeat(3, 1fr); } .brand .disc { width: 54px; height: 54px; font-size: 11px; } }

/* plate card (llego "pega el enlace") */
.platecard { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 20px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.platecard h3 { font-size: 18px; }
.platecard p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.platecard form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.platecard .hint { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.platecard .hint button { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
@media (max-width: 760px) { .platecard { grid-template-columns: 1fr; } }

/* ---------- product cards (llego) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }
@media (max-width: 760px) { .rail { grid-auto-columns: 46%; gap: 12px; } }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .3s; min-width: 0; }
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: transparent; }
.card .pic { position: relative; aspect-ratio: 1; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
:root[data-style="nacht"] .card .pic { margin: 8px 8px 0; border-radius: 12px; }
.card .pic img { width: 80%; height: 80%; object-fit: contain; transition: transform .7s var(--ease); }
.card:hover .pic img { transform: scale(1.06); }
.card .store { position: absolute; top: 10px; left: 10px; z-index: 2; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .name { font-size: 14px; line-height: 1.35; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card .price { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; margin-top: 4px; color: var(--ink); }
.card .price s { font-family: var(--font); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 6px; }
.card .when { font-size: 12.5px; font-weight: 700; color: var(--good); }
.card .when.w { color: var(--warn); }
.card .meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.card .meta svg { width: 13px; height: 13px; }
.card .add { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease); z-index: 3; }
.card .add svg { width: 20px; height: 20px; }
.card:hover .add, .card .add:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .card .add { opacity: 1; transform: none; width: 34px; height: 34px; } .card .meta, .card .when { padding-right: 38px; } .card .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } }

/* category tiles with photos (llego "Compra por categoría") */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.cat:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.cat .ph { aspect-ratio: 1.25; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
:root[data-style="nacht"] .cat .ph { margin: 8px 8px 0; border-radius: 12px; }
.cat .ph img { width: 72%; height: 82%; object-fit: contain; transition: transform .7s var(--ease); }
.cat:hover .ph img { transform: scale(1.07) rotate(-2deg); }
.cat b { padding: 12px; text-align: center; font-size: 14px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* a film band: the video alone, the words beside it */
.film { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 14px; align-items: stretch; }
.film .screen { position: relative; border-radius: 22px; overflow: hidden; background: #000; min-height: 420px; }
.film .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.film .words { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.film .words h2 { font-size: clamp(26px, 3vw, 40px); }
.film .words p { color: var(--muted); }
.film .figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.film .figs b { display: block; font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.03em; }
.film .figs span { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .film { grid-template-columns: 1fr; } .film .screen { min-height: 0; aspect-ratio: 16 / 11; } }

/* the stock room story: words on the left, a phone that follows the scroll on the right */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.story .steps { display: flex; flex-direction: column; gap: 12px; padding-block: 8vh 14vh; }
.story .st { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); transition: opacity .5s, transform .6s var(--ease), border-color .4s, box-shadow .4s; opacity: .42; min-height: 24vh; display: flex; flex-direction: column; justify-content: center; gap: 8px; transform: scale(.97); transform-origin: left center; }
.story .st.on { transform: none; }
.story .st.on { opacity: 1; border-color: var(--ink); box-shadow: var(--shadow-lift); }
.story .st .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.story .st h3 { font-size: clamp(20px, 2vw, 26px); }
.story .st p { color: var(--muted); max-width: 44ch; }
.story .stage { position: sticky; top: calc(50vh - 290px); display: grid; place-items: center; height: 580px; }
.no-motion .story .st { opacity: 1; transform: none; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story .stage { position: relative; top: 0; height: auto; order: -1; } .story .steps { padding-block: 0; } .story .st { min-height: 0; opacity: 1; } }

.phone { width: 270px; height: 560px; border-radius: 42px; background: #0c0c0e; padding: 10px; box-shadow: 0 0 0 1px #2b2c30, 0 40px 80px rgba(0,0,0,.35); position: relative; }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: #f4f3ef; color: #111; font-family: var(--font); }
.phone .notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 999px; background: #000; z-index: 5; }
.phone .view { position: absolute; inset: 0; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .6s var(--ease), transform .7s var(--ease); transform: translateY(10px) scale(.98); }
.phone .view.on { opacity: 1; transform: none; }
.phone .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; }
.phone .cam { flex: 1; border-radius: 18px; background: #121316 center / cover; position: relative; overflow: hidden; }
.phone .cam .lbl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-4deg); width: 74%; background: #fff; border-radius: 6px; padding: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.phone .cam .frame { position: absolute; inset: 28% 10%; border: 2px solid var(--accent); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.phone .cam .beam { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); top: 40%; animation: beam 2.4s ease-in-out infinite; }
@keyframes beam { 0%, 100% { top: 30%; } 50% { top: 70%; } }
.phone .found { background: #fff; border-radius: 16px; padding: 10px; display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.phone .found img { width: 64px; height: 64px; object-fit: contain; }
.phone .found b { font-size: 12.5px; display: block; line-height: 1.25; }
.phone .found span { font-size: 11px; color: #666; }
.phone .count { display: flex; align-items: baseline; gap: 8px; }
.phone .count b { font-family: var(--display); font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.phone .acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.phone .acts span { height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #e8e7e2; }
.phone .acts span.a { background: var(--accent); color: var(--accent-ink); }
.phone .row2 { background: #fff; border-radius: 12px; padding: 9px 10px; display: flex; justify-content: space-between; font-size: 12px; }
.phone .row2 b.w { color: #b86b00; }
.phone .toast { align-self: center; background: #111; color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 700; }

/* value cards (llego) */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.value { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.value::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 14px; }
.value b { display: block; font-size: 15px; margin-bottom: 4px; }
.value p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* ---------- catalogue ---------- */
.cathead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 18px 0 14px; }
.cathead h1 { font-size: clamp(28px, 3.4vw, 40px); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar select { width: auto; min-width: 190px; }
.fitbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin-bottom: 14px; }
.fitbar .plate { height: 40px; box-shadow: none; }
.fitbar .plate input { font-size: 19px; width: 150px; }
.fitbar .plate .eu { width: 26px; font-size: 10px; }
.fitbar .plate .eu::before { width: 14px; height: 14px; top: 5px; }
.fitbar .car { font-weight: 700; }
.empty { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; text-align: center; grid-column: 1 / -1; }
.empty p { color: var(--muted); margin-top: 6px; }

/* ---------- part page ---------- */
.crumbs { display: flex; gap: 6px; font-size: 13px; color: var(--muted); margin: 18px 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 26px; align-items: start; }
.gallery { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; position: sticky; top: 90px; }
.gallery.single { grid-template-columns: minmax(0, 1fr); }
.gallery .thumbs { display: flex; flex-direction: column; gap: 8px; }
.gallery .thumbs button { width: 74px; height: 74px; border-radius: 12px; border: 1px solid var(--line); background: var(--tile); padding: 6px; transition: border-color .2s; }
.gallery .thumbs button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery .main { position: relative; aspect-ratio: 1; border-radius: 22px; background: var(--tile); border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform .5s var(--ease), opacity .35s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery .main.zoom img { transform: scale(1.9); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .gallery { position: static; grid-template-columns: 1fr; } .gallery .thumbs { flex-direction: row; order: 2; overflow-x: auto; } .gallery .thumbs button { flex: none; width: 64px; height: 64px; } }
.buy { display: flex; flex-direction: column; gap: 16px; }
.buy h1 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
.buy .pn { font-size: 13px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.buy .pn b { color: var(--ink2); font-weight: 600; }
.pricebox { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pricebox .big { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.pricebox .big s { font-family: var(--font); font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.pricebox .lines { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pricebox .lines div { display: flex; align-items: center; gap: 8px; }
.pricebox .lines svg { width: 17px; height: 17px; flex: none; }
.pricebox .good { color: var(--good); font-weight: 700; }
.qty { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--card); }
.qty button { width: 42px; height: 100%; border: 0; background: transparent; font-size: 20px; }
.qty input { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 700; }
.fit { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; }
.fit svg { width: 20px; height: 20px; flex: none; }
.fit.yes { background: color-mix(in srgb, var(--good) 10%, var(--card)); color: var(--good); }
.fit.no { background: color-mix(in srgb, var(--warn) 12%, var(--card)); color: var(--warn); }
.fit.ask { background: var(--card); border: 1px dashed var(--line2); color: var(--ink2); }
.specs { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.specs td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.specs tr:last-child td { border-bottom: 0; }
.specs td:first-child { color: var(--muted); width: 42%; }
.label-box { display: inline-block; background: #fff; border-radius: 10px; padding: 8px; border: 1px solid var(--line); }

/* ---------- basket ---------- */
.cartgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 22px; align-items: start; }
.lines-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px 18px; }
.li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li img { width: 76px; height: 76px; object-fit: contain; background: var(--tile); border-radius: 12px; padding: 4px; }
.li .nm { font-size: 14px; font-weight: 600; line-height: 1.3; }
.li .qty { height: 38px; margin-top: 8px; }
.li .qty button { width: 34px; font-size: 17px; }
.li .qty input { width: 34px; }
.sum { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.sum .t { display: flex; justify-content: space-between; font-size: 14px; }
.sum .t.big { font-family: var(--display); font-weight: 800; font-size: 26px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; letter-spacing: -.02em; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.pay { display: grid; gap: 8px; }
.pay label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.pay label:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.pay input { accent-color: var(--accent); }
.pay .ic { width: 38px; height: 26px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #fff; flex: none; }
.done { text-align: center; padding: 50px 20px; }
.done .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--good); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.done .ok svg { width: 40px; height: 40px; }
@media (max-width: 860px) { .cartgrid { grid-template-columns: 1fr; } .sum { position: static; } }

/* ---------- stock room ---------- */
.stock { max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.seg { display: flex; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.seg button { flex: 1; height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--bg); }
.scanbox { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #0b0b0d; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; }
.scanbox .frame { position: absolute; inset: 22% 12%; border: 2px solid var(--accent); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.42); pointer-events: none; }
.scanbox .beam { position: absolute; left: 12%; right: 12%; height: 2px; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: beam 2.4s ease-in-out infinite; pointer-events: none; }
.scanbox .off { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #f2f1ed; }
.scanbox .off svg { width: 48px; height: 48px; color: var(--accent); margin: 0 auto 10px; }
.hit { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lift); }
.hit img { width: 96px; height: 96px; object-fit: contain; background: var(--tile); border-radius: 12px; padding: 4px; }
.hit .big { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.acts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acts3 .btn { height: 52px; font-size: 15px; }
.log, .low { display: flex; flex-direction: column; gap: 6px; }
.log div, .low > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.low > div { display: grid; grid-template-columns: 44px 1fr auto auto; }
.low img { width: 44px; height: 44px; object-fit: contain; background: var(--tile); border-radius: 8px; }
.bar { height: 7px; border-radius: 4px; background: var(--bg-deep); overflow: hidden; width: 80px; }
.bar i { display: block; height: 100%; background: var(--good); border-radius: 4px; }
.bar i.w { background: var(--warn); }
.bar i.b { background: var(--bad); }
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.labelc { background: #fff; color: #111; border-radius: 10px; padding: 8px; border: 1px solid var(--line); cursor: pointer; }

/* ---------- office ---------- */
.office { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 18px; }
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.side button { text-align: left; height: 42px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: var(--ink2); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.side button svg { width: 18px; height: 18px; }
.side button.on { background: var(--bg); color: var(--ink); font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.kpi b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -.03em; line-height: 1.05; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.warn b { color: var(--warn); }
.tablewrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table img { width: 40px; height: 40px; object-fit: contain; background: var(--tile); border-radius: 8px; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.spark i { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-width: 6px; opacity: .9; }
@media (max-width: 900px) { .office { grid-template-columns: 1fr; } .side { position: static; flex-direction: row; overflow-x: auto; } .side button { flex: none; } .kpis { grid-template-columns: repeat(2, 1fr); } }

/* ---------- footer ---------- */
.foot { margin-top: 50px; border-top: 1px solid var(--line); padding: 40px 0 30px; background: var(--card); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot h4 { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.foot a { display: block; padding: 3px 0; color: var(--muted); font-size: 14px; }
.foot a:hover { color: var(--ink); }
.foot .legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); z-index: 80; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 8px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) { .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }

/* car picker sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.4); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.sheet-bg.on { opacity: 1; }
.sheet { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); color: var(--ink); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transform: translateY(14px); transition: transform .35s var(--ease); }
.sheet-bg.on .sheet { transform: none; }
.sheet .carlist { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow: auto; }
.sheet .carlist button { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-align: left; font-weight: 600; }
.sheet .carlist button:hover, .sheet .carlist button.on { border-color: var(--ink); }

/* while the stock-room story runs, the page breathes a shade deeper */
body.deep { background: var(--bg-deep); }

/* motion helpers: nothing is hidden unless the script hides it first */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.word > span { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}
@media print {
  .head, .styler, .foot, .toast, .tabbar, .no-print { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .labels { grid-template-columns: repeat(3, 1fr); }
}
