/* Garrido Motors — Garrido red (#E40117) and white on night and bone; plate blue for the plate service. */

:root {
  --night: #0c0d12;
  --night-2: #171922;
  --night-3: #22252f;
  --bone: #f4f0e8;
  --bone-2: #e9e3d8;
  --ink: #15130f;
  --ink-soft: #5b554b;
  --light: #f6f4f0;
  --light-soft: #aeb1bc;

  --red: #e40117; /* Garrido red, from the brand */
  --red-d: #b30012;
  --yellow: #ffc629;
  --blue: #1b33a6;
  --blue-d: #132678;
  --blue-l: #7b95ff;
  --teal: #0c4a45;
  --teal-2: #0d6a61;
  --teal-l: #3fc6b2;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --text: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --fs-body: clamp(0.95rem, 0.92rem + 0.15vw, 1.0625rem);
  --fs-lead: clamp(1.02rem, 0.95rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  --fs-h2: clamp(2.1rem, 1.2rem + 3.4vw, 4.6rem);

  --m: clamp(18px, 3vw, 48px);
  --gap: clamp(14px, 1.8vw, 28px);
  --section: clamp(96px, 11vw, 168px);
  --r: 28px;
  --r-sm: 16px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::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(--night); color: var(--light);
  font: 400 var(--fs-body)/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--m); top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 12px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

h2 { font: 400 var(--fs-h2)/0.92 var(--display); text-transform: uppercase; letter-spacing: -0.005em; }
h3 { font: 400 var(--fs-h3)/1 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 var(--fs-body)/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, scale .3s var(--ease);
  -webkit-tap-highlight-color: transparent; isolation: isolate; overflow: hidden;
}
.btn::after { /* light sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
@media (hover: hover) { .btn:hover::after { transform: translateX(120%); } }
.btn:active { scale: .96; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-small); }
.btn-big { min-height: 62px; padding: 0 34px; }
.btn-wide { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.55); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.btn-white { background: #fff; color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn-glass { background: rgba(255,255,255,.2); color: inherit; }
@media (hover: hover) {
  .btn-red:hover { background: var(--red-d); box-shadow: 0 14px 28px -12px rgba(0,0,0,.6); }
  .btn-yellow:hover { background: #ffd24f; }
  .btn-white:hover { background: var(--bone); }
  .btn-ink:hover { background: #000; }
  .btn-line:hover { background: rgba(255,255,255,.1); }
  .btn-glass:hover { background: rgba(255,255,255,.32); }
}
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-underline-offset .3s var(--ease); }
@media (hover: hover) { .link:hover { text-underline-offset: 10px; } }
/* On touch screens the underlined links get a finger-sized hit area without moving the layout. */
@media (hover: none) { .link { position: relative; } .link::before { content: ""; position: absolute; inset: -10px -6px; } }

.round-btn {
  flex: none; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  transition: transform .35s var(--ease), background-color .3s ease, opacity .3s ease;
}
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:active { transform: scale(.92); }
.round-btn:disabled { opacity: .3; cursor: default; }
.round-light { background: rgba(255,255,255,.12); }
@media (hover: hover) { .round-btn:not(:disabled):hover { background: var(--red); transform: scale(1.06); } }

.fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.fc-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fc-icon-green { background: #dcfce7; color: #15803d; }
.car-shadow { position: absolute; left: 8%; right: 8%; bottom: 0; height: 14%; z-index: 0; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(8px); }

/* ---------- Curtain ---------- */

/* Centring and ground live on the curtain itself: the script drops .intro as soon as it takes over. */
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: none; place-items: center; background: var(--night); }
.intro .curtain { display: grid; }
.curtain-red { position: absolute; inset: 0; background: var(--red); transform: scaleY(0); transform-origin: bottom; }
.curtain-logo { position: relative; width: min(56vw, 480px); }
.intro .curtain-logo { opacity: 0; } /* no flash of the logo before the timeline fades it in */

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 24px; padding: env(safe-area-inset-top, 0px) var(--m) 0;
  transition: background-color .4s ease, transform .5s var(--ease), box-shadow .4s ease;
}
.nav.is-solid { background: rgba(12,13,18,.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: block; flex: none; }
.brand img { width: 128px; height: auto; }
.nav-links { margin-left: auto; display: flex; gap: clamp(16px, 2vw, 30px); }
.nav-links a { position: relative; font-size: var(--fs-small); font-weight: 500; text-decoration: none; padding: 8px 0; color: rgba(246,244,240,.85); transition: color .25s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a.is-current { color: #fff; }
.nav-links a.is-current::after { transform: scaleX(1); }
@media (hover: hover) { .nav-links a:hover { color: #fff; } .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.menu-toggle { display: none; }
.menu { display: none; }

/* ---------- Hero ---------- */

.doors { overflow: hidden; }
.hero { position: relative; min-height: max(100svh, 720px); overflow: hidden; background: var(--night); isolation: isolate; display: grid; align-items: center; }
.hero-glow {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 40% at var(--gx, 72%) var(--gy, 55%), rgba(228,1,23,.3), transparent 70%),
    radial-gradient(30% 34% at 14% 18%, rgba(228,1,23,.12), transparent 70%),
    radial-gradient(24% 28% at 52% 96%, rgba(255,255,255,.05), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 4vw, 72px); align-items: center;
  padding: calc(var(--nav-h) + 48px) var(--m) 88px;
}
.mask { display: block; overflow: hidden; padding-bottom: .04em; }
.line { display: block; }
.hero-text { container-type: inline-size; }
/* sized to its own column, so it stays on two lines however wide the showroom beside it is */
.hero-title { font: 400 clamp(2.6rem, 13.4cqi, 6.4rem)/.92 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.hl { color: var(--red); }
.hero-lead { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.5; color: rgba(246,244,240,.84); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(20px, 3vw, 48px); margin-top: clamp(36px, 5vh, 56px); }
.hero-facts li { display: grid; gap: 4px; }
.hero-facts strong { font: 400 clamp(1.8rem, 1.3rem + 1.3vw, 2.6rem)/1 var(--display); }
.hero-facts li:nth-child(odd) strong { color: var(--red); }
.hero-facts li:nth-child(2) strong { color: #fff; }
.hero-facts span { font-size: var(--fs-small); color: var(--light-soft); max-width: 16ch; line-height: 1.35; }

/* The plate tool, live in the hero: the first thing anyone can do on the page */
.hero-plate {
  width: min(44vw, 560px); justify-self: end; background: var(--night-2); border-radius: var(--r);
  padding: clamp(22px, 2.8vw, 40px); box-shadow: 0 50px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.07);
  transform-style: preserve-3d;
}
.hero-plate .plate-help { color: var(--light-soft); }
.hero-plate .checks-title { color: #fff; }
.hero-plate-prices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.hero-plate-prices a { display: inline-flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: var(--fs-small); font-weight: 600; text-decoration: none; transition: background-color .3s ease, transform .35s var(--ease); }
.hero-plate-prices b { font: 400 1.25rem/1 var(--display); color: var(--red); }
@media (hover: hover) { .hero-plate-prices a:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); } }
.vt-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: live 2s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* ---------- Two doors: services and products ---------- */

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: clamp(28px, 4vw, 56px) var(--m); background: var(--night); }
.door {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "n title go" "n list go";
  column-gap: clamp(16px, 2vw, 28px); row-gap: 10px; align-items: center; padding: clamp(24px, 3vw, 44px);
  border-radius: var(--r); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: translate .5s var(--ease), box-shadow .5s var(--ease); /* hover moves 'translate', so it never fights the entry animation on 'transform' */
}
.door::before { /* a second colour wipes across on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.door-svc { background: var(--red); color: #fff; }
.door-svc::before { background: var(--red-d); }
.door-prod { background: #fff; color: var(--ink); }
.door-prod::before { background: var(--bone); }
.door-n { grid-area: n; align-self: start; font: 400 clamp(2rem, 1.4rem + 1.8vw, 3.4rem)/.85 var(--display); opacity: .35; }
.door-title { grid-area: title; font: 400 clamp(2.4rem, 1.4rem + 3vw, 4.6rem)/.9 var(--display); text-transform: uppercase; }
.door-list { grid-area: list; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.door-list span { padding: 5px 12px; border-radius: 999px; font-size: var(--fs-small); font-weight: 600; background: rgba(255,255,255,.18); }
.door-prod .door-list span { background: rgba(20,17,10,.07); }
.door-go { grid-area: go; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: currentColor; transition: transform .5s var(--ease); }
.door-go svg { width: 24px; height: 24px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.door-svc .door-go svg { stroke: var(--red); }
.door-prod .door-go svg { stroke: #fff; }
/* They slide in from each side; once in, the hover lift takes over the transform. */
.doors .rv:first-child { transform: translateX(-80px); }
.doors .rv:last-child { transform: translateX(80px); }
.doors.is-in .rv { transform: none; }
@media (hover: hover) {
  .door:hover { translate: 0 -6px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
  .door:hover::before { transform: scaleX(1); }
  .door:hover .door-go { transform: translateX(6px) rotate(-45deg); }
}

/* ---------- Block openers: a giant name that slides with the scroll ---------- */

.block { overflow: hidden; padding: clamp(72px, 9vw, 140px) 0 clamp(40px, 5vw, 72px); }
.block-svc { background: var(--red); color: #fff; }
.block-prod { background: var(--bone); color: var(--ink); }
.block-row { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.block-word { font: 400 clamp(3.4rem, 1rem + 10vw, 11.5rem)/.82 var(--display); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; padding: 0 var(--m); }
.block-word span { display: inline-block; }
.block-prod .block-word { color: var(--red); }
.block-lead { padding: 0 var(--m); max-width: 52ch; font-size: var(--fs-lead); line-height: 1.45; }
.block-svc .block-lead { color: rgba(255,255,255,.9); }
.block-prod .block-lead { color: var(--ink-soft); }
.svc-tag { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.svc-tag span { padding: 6px 12px; border-radius: 999px; font-size: var(--fs-small); font-weight: 700; background: rgba(255,255,255,.16); }
.svc-tag span + span { background: #fff; color: var(--red); }

.scroll-hint { position: absolute; z-index: 4; left: 50%; bottom: 18px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font-size: var(--fs-small); text-decoration: none; color: rgba(246,244,240,.6); }
.scroll-hint span { width: 2px; height: 34px; border-radius: 2px; background: rgba(255,255,255,.2); overflow: hidden; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; inset: 0; background: var(--red); animation: drip 1.8s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Showroom ---------- */

.showroom { background: var(--bone); color: var(--ink); padding: var(--section) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.sr-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); align-items: end; padding: 0 var(--m) clamp(36px, 4vw, 60px); }
.sr-head-side { display: grid; gap: 24px; justify-items: start; }
.sr-head-side p { color: var(--ink-soft); max-width: 46ch; font-size: var(--fs-lead); line-height: 1.45; }
.sr-arrows { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sr-all { margin-left: 10px; text-decoration-color: var(--red); }

.sr-track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain;
  padding: 10px var(--m) 30px; scroll-padding-inline: var(--m);
  scrollbar-width: none; cursor: grab; outline: none;
}
.sr-track::-webkit-scrollbar { display: none; }
.sr-track { user-select: none; -webkit-user-select: none; }
/* Native snapping only for fingers; with a mouse the script places each card (snap would measure the scaled cards). */
@media (hover: none) { .sr-track { scroll-snap-type: x mandatory; } }
.sr-track.is-dragging { cursor: grabbing; }
.sr-track.is-dragging, .sr-track.is-gliding { scroll-snap-type: none; }
.sr-track.is-dragging .car-card { pointer-events: none; }
.car-card {
  position: relative; flex: none; scroll-snap-align: start;
  width: min(72vw, 900px); aspect-ratio: 16 / 10.6; border-radius: var(--r); overflow: hidden;
  color: var(--fg); isolation: isolate;
  /* the lighter tone sits only behind the car, so the text above always reads on the deep colour */
  background: radial-gradient(48% 40% at 50% 68%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 72%), var(--c1);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; padding: clamp(22px, 2.6vw, 38px);
  box-shadow: 0 30px 60px -36px rgba(20,17,10,.55);
  transform-origin: 50% 60%; will-change: scale;
}
.cc-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.cc-top > div { display: grid; gap: 8px; }
.cc-kind { font-size: var(--fs-small); font-weight: 600; opacity: .85; }
.car-card h3 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.8rem); line-height: .9; max-width: 12ch; }
.cc-price { font: 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.4rem)/1 var(--display); white-space: nowrap; text-align: right; }
.cc-price span { font-size: .5em; vertical-align: .55em; margin-right: 2px; }
.cc-price s { display: block; font-size: .45em; opacity: .65; margin-top: 4px; }
/* The car sits in its own row: nothing is ever drawn behind or on top of it. */
.cc-stage { position: relative; min-height: 0; }
.cc-stage img {
  /* contained in its own box: a wide photo shrinks instead of spilling onto the specs below */
  position: absolute; z-index: 1; left: 10%; right: 10%; top: 4%; bottom: 8%; width: 80%; height: 88%;
  object-fit: scale-down; object-position: 50% 100%; will-change: translate; /* never enlarged past its real pixels */
  -webkit-user-drag: none; user-select: none; transition: transform .8s var(--ease);
}
/* A soft floor shadow instead of a drop-shadow filter: filters repaint on every frame of a drag. */
.cc-stage .car-shadow { left: 20%; right: 20%; bottom: 6%; height: 16%; background: radial-gradient(closest-side, rgba(0,0,0,.42), transparent); }
@media (hover: hover) { .car-card:hover .cc-stage img { transform: translateX(-2%) scale(1.04); } }
.cc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chips li { padding: 7px 14px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; background: rgba(255,255,255,.18); }
.car-card[style*="--fg:#14110a"] .cc-chips li { background: rgba(20,17,10,.08); }
.car-card[style*="--fg:#14110a"] .btn-glass { background: rgba(20,17,10,.1); }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sr-controls { display: grid; gap: 18px; padding: 8px var(--m) 0; }
.sr-rail { position: relative; height: 10px; border-radius: 999px; background: var(--bone-2); cursor: pointer; touch-action: none; }
.sr-thumb { position: absolute; top: 0; left: 0; height: 100%; width: 20%; border-radius: 999px; background: var(--ink); cursor: grab; touch-action: none; transition: background-color .25s ease, height .25s var(--ease), top .25s var(--ease); }
.sr-thumb::after { content: ""; position: absolute; inset: -12px 0; }
.sr-rail:hover .sr-thumb, .sr-thumb.is-dragging, .sr-thumb:focus-visible { background: var(--red); height: 14px; top: -2px; }
.sr-thumb.is-dragging { cursor: grabbing; }
.sr-names { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-names button { border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: transparent; font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); transition: background-color .3s ease, color .3s ease; }
.sr-names button.is-active { background: var(--ink); color: #fff; }
@media (hover: hover) { .sr-names button:not(.is-active):hover { background: var(--bone-2); color: var(--ink); } }

/* ---------- Photo viewer ---------- */

.gallery {
  width: min(1100px, 94vw); max-width: none; max-height: 94svh; padding: 0; border: 0; border-radius: var(--r);
  background: var(--night); color: var(--light); overflow: hidden;
  display: none; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
}
.gallery[open] { display: grid; animation: gallery-in .5s var(--ease); }
.gallery::backdrop { background: rgba(8,9,12,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes gallery-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 16px 24px; }
.gallery-title { font: 400 clamp(1.4rem, 1rem + 1vw, 2rem)/1 var(--display); text-transform: uppercase; }
.gallery-stage { display: grid; place-items: center; min-height: 0; padding: 0 16px; }
.gallery-stage img { max-width: 100%; max-height: 66svh; width: auto; height: auto; min-width: 0; border-radius: var(--r-sm); object-fit: contain; }
.gallery-stage img.is-swapping { animation: photo-in .45s var(--ease); }
@keyframes photo-in { from { opacity: 0; transform: scale(.98); } }
.gallery-foot { display: flex; align-items: center; gap: 12px; padding: 16px; }
.gallery-thumbs { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.gallery-thumbs button { flex: none; width: 76px; height: 56px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .5; transition: opacity .25s ease, transform .3s var(--ease); }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--red); }
@media (hover: hover) { .gallery-thumbs button:hover { opacity: 1; transform: translateY(-2px); } }

/* ---------- Story: same car, two histories ---------- */

.historia { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: center; padding: var(--section) var(--m); background: var(--bone); color: var(--ink); }
.historia-img { position: relative; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 40px 80px -50px rgba(20,17,10,.7); }
.historia-img img { width: 100%; height: auto; }
.historia-legend { display: grid; grid-template-columns: 1fr 1fr; }
.historia-legend span { display: grid; gap: 6px; padding: clamp(16px, 2vw, 24px); font-size: var(--fs-small); line-height: 1.45; color: rgba(255,255,255,.85); }
.historia-legend strong { font: 400 clamp(1.3rem, 1rem + .9vw, 1.8rem)/1 var(--display); text-transform: uppercase; color: #fff; }
.historia-legend .lg-ok { background: var(--red-d); color: #fff; }
.historia-legend .lg-bad { background: #26282f; }
.historia-copy p { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); max-width: 42ch; }
.historia-list { margin-top: 28px; display: grid; gap: 10px; }
.historia-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r-sm); background: #fff; font-weight: 500; transition: transform .4s var(--ease), background-color .3s ease; }
.historia-list li::before { content: "!"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; font-size: .85rem; }
@media (hover: hover) { .historia-list li:hover { transform: translateX(8px); background: var(--bone-2); } }

/* ---------- Plate check ---------- */

.placa {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  background: var(--blue); color: #fff; padding: var(--section) var(--m); overflow: hidden; isolation: isolate;
}
.placa::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(123,149,255,.55), transparent); pointer-events: none; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 48px); }
.tabs button { border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: var(--fs-small); font-weight: 600; color: #fff; transition: background-color .3s ease, color .3s ease; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--blue); }
@media (hover: hover) { .tabs button[aria-selected="false"]:hover { background: rgba(255,255,255,.22); } }
.tab-panels h2 { max-width: 13ch; }
.tab-panels p { margin-top: 26px; max-width: 44ch; font-size: var(--fs-lead); line-height: 1.5; color: rgba(255,255,255,.88); }
.tab-panels [role="tabpanel"]:not([hidden]) { animation: panel-in .6s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.placa-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.plan {
  display: grid; gap: 6px; align-content: start; padding: 20px 22px; border-radius: var(--r-sm); text-decoration: none;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .4s var(--ease), background-color .3s ease;
}
.plan-hot { background: #fff; color: var(--ink); box-shadow: none; }
.plan-price { font: 400 2.3rem/1 var(--display); }
.plan-price small { font-size: .45em; vertical-align: .9em; margin-right: 3px; }
.plan-name { font-weight: 700; }
.plan-desc { font-size: var(--fs-small); line-height: 1.45; opacity: .82; }
.placa-try { display: inline-block; margin-top: 24px; color: #fff; text-decoration-color: var(--red); }
.placa .historia-img { align-self: center; }
@media (hover: hover) { .plan:hover { transform: translateY(-4px); background: rgba(255,255,255,.18); } .plan-hot:hover { background: var(--bone); } }

.placa-stage { background: var(--blue-d); border-radius: var(--r); padding: clamp(24px, 3.4vw, 48px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
.plate-form { display: grid; justify-items: center; gap: 14px; margin-bottom: 30px; }
.wa-fallback { justify-self: center; font-weight: 600; }
.plate {
  position: relative; display: grid; width: min(100%, 460px); overflow: hidden;
  background: #fbfbf8; color: #111; border: 5px solid #111; border-radius: 14px; padding: 4px 12px 0;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); cursor: text; transition: translate .45s var(--ease), scale .45s var(--ease), box-shadow .3s ease; /* not "transform": the entry animation owns that */
}
.plate:focus-within { translate: 0 -4px; scale: 1.02; box-shadow: 0 0 0 5px var(--red), 0 26px 50px -18px rgba(0,0,0,.6); }
.plate-band { text-align: center; font: 700 var(--fs-small)/1 var(--text); letter-spacing: .3em; padding: 8px 0 2px; text-transform: uppercase; }
.plate input { width: 100%; border: 0; background: transparent; outline: none; color: #111; font: 400 clamp(2.8rem, 6vw, 5rem)/1 var(--display); text-transform: uppercase; text-align: center; letter-spacing: .03em; padding: 0 0 10px; }
.plate input::placeholder { color: #8e8a7f; }
.plate-scan { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255,198,41,.55), transparent); width: 40%; }
.plate.is-scanning .plate-scan { opacity: 1; animation: scan 1.1s var(--ease-in-out) infinite; }
@keyframes scan { from { transform: translateX(-120%); } to { transform: translateX(260%); } }
.plate-help { font-size: var(--fs-small); color: rgba(255,255,255,.8); text-align: center; min-height: 2.6em; max-width: 46ch; }
.checks-title { font-weight: 700; margin-bottom: 14px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: var(--fs-small); line-height: 1.4; color: rgba(255,255,255,.72); transition: color .3s ease; }
.checks li::before { content: ""; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; background: rgba(255,255,255,.22); transition: background-color .3s ease, transform .4s var(--ease); }
.checks li.is-checking::before { background: var(--red); transform: scale(1.5); }
.checks li.is-done { color: #fff; }
.checks li.is-done::before { background: var(--red); }

/* ---------- Services ---------- */

.servicios { background: var(--bone); color: var(--ink); padding: clamp(56px, 7vw, 110px) var(--m) var(--section); }
.svc-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.svc-head p { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft); max-width: 40ch; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); perspective: 1200px; }
.svc {
  position: relative; border-radius: var(--r); padding: clamp(24px, 2.4vw, 34px); min-height: 440px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden;
  transition: box-shadow .5s var(--ease); transform-style: preserve-3d;
}
.svc h3 { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: .95; margin-top: 10px; }
.svc-price { font: 400 clamp(2.6rem, 1.8rem + 2.4vw, 4.2rem)/.85 var(--display); }
.svc-price span { font-size: .42em; vertical-align: .9em; margin-right: 4px; }
.svc-price s { font-size: .4em; opacity: .6; vertical-align: .9em; }
.svc ul { flex: 1; }
.svc li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 7px 0; font-weight: 500; transition: transform .35s var(--ease); }
.svc li::before { content: "→"; font-weight: 700; }
.svc .btn { align-self: flex-start; }
@media (hover: hover) { .svc li:hover { transform: translateX(6px); } .svc:hover { box-shadow: 0 40px 70px -40px rgba(20,17,10,.6); } }
.svc-yellow { background: var(--yellow); color: var(--ink); }
.svc-yellow li::before { color: var(--red); }
.svc-blue { background: var(--blue); color: #fff; }
.svc-blue li::before { color: var(--yellow); }
.svc-red { background: var(--red); color: #fff; }
.svc-red li::before { color: #fff; }
.svc-ink { background: var(--night); color: #fff; }
.svc-ink li::before { color: var(--red); }
.svc-white { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--bone-2); }
.svc-white li::before { color: var(--red); }
.svc-white .svc-tag span { background: var(--bone); }
.svc .svc-tag { margin-bottom: 14px; }
.svc-price-word { font-size: clamp(2rem, 1.4rem + 1.8vw, 3.2rem); line-height: .9; text-transform: uppercase; }
.svc-plus { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: var(--fs-small); font-weight: 700; background: rgba(255,255,255,.14); }
.svc-plus::before { content: "+"; font-size: 1.1em; }
.svc-white .svc-plus { background: var(--bone); color: var(--red); }
.svc-teal { background: var(--teal-2); color: #fff; }
.svc-teal li::before { color: var(--yellow); }
.svc-wide {
  grid-column: 1 / -1; min-height: 0; background: var(--night); color: #fff;
  flex-direction: row; align-items: center; gap: clamp(20px, 3vw, 48px);
}
.svc-wide h3 { margin: 0; flex: none; }
.svc-more { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-more li { display: block; padding: 10px 18px; border-radius: 999px; background: var(--night-3); font-weight: 500; }
.svc-more li::before { content: none; }
.svc-wide .btn { align-self: center; flex: none; }

/* ---------- Steps ---------- */

.pasos { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); padding: var(--section) var(--m); background: var(--night); }
.pasos-side { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.pasos-side p { margin-top: 20px; color: var(--light-soft); font-size: var(--fs-lead); max-width: 30ch; }
.steps { position: relative; display: grid; gap: clamp(18px, 2vw, 26px); padding-left: 34px; }
.steps-line { position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--night-3); overflow: hidden; }
.steps-line span { position: absolute; inset: 0; background: linear-gradient(var(--red), #fff, var(--red)); transform: scaleY(0); transform-origin: top; }
.step { display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 2.4vw, 36px); align-items: start; background: var(--night-2); border-radius: var(--r); padding: clamp(24px, 3vw, 40px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); transition: transform .45s var(--ease), background-color .3s ease; }
@media (hover: hover) { .step:hover { transform: translateX(8px); background: var(--night-3); } }
.step-n { font: 400 clamp(2.4rem, 1.6rem + 2.2vw, 3.8rem)/.85 var(--display); color: var(--sc); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--light-soft); max-width: 42ch; }

/* ---------- Stats ---------- */

/* Dark, so the page never jumps from solid red straight into teal; the colour lives in the numbers. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); padding: clamp(64px, 8vw, 112px) var(--m); background: var(--night-2); color: #fff; }
.stat { border-left: 2px solid rgba(255,255,255,.12); padding-left: clamp(14px, 1.6vw, 24px); }
.stat-n { font: 400 clamp(2.6rem, 1.6rem + 3.2vw, 5.2rem)/0.9 var(--display); margin-bottom: 12px; white-space: nowrap; }
.stat:nth-child(odd) .stat-n { color: var(--red); }
.stat:nth-child(even) .stat-n { color: #fff; }
.stat p:last-child { max-width: 22ch; color: var(--light-soft); }

/* ---------- Shacman ---------- */

/* Same family as the cars above: the products block stays on the light ground. */
.shacman { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(40px, 5vw, 80px) var(--m) var(--section); background: var(--bone); color: var(--ink); }
.shacman-copy p { margin: 26px 0 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }
.shacman-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 32px; }
.shacman-points li { padding: 8px 14px; border-radius: 999px; background: #fff; font-size: var(--fs-small); font-weight: 600; box-shadow: inset 0 0 0 1px var(--bone-2); }
.shacman-points li:first-child { background: var(--red); color: #fff; box-shadow: none; }
.shacman-photo { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3.2; }
.shacman-photo img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 35% 50%; }

/* ---------- Sell / trade-in ---------- */

.cambio { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding: var(--section) var(--m); background: var(--night); color: var(--light); }
.cambio-copy { position: sticky; top: calc(var(--nav-h) + 40px); }
.cambio-copy p { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.5; color: rgba(246,244,240,.82); max-width: 42ch; }
.cambio-points { margin-top: 30px; display: grid; gap: 12px; }
.cambio-points li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; font-weight: 500; }
.cambio-points li::before { content: "✓"; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: .85rem; font-weight: 700; }
.trade { display: grid; gap: 20px; background: #fff; color: var(--ink); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); box-shadow: 0 40px 80px -50px rgba(20,17,10,.5); }
.trade-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: var(--fs-small); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; padding: 0; margin-bottom: 8px; }
.field > span { margin-bottom: 0; }
.field output { color: var(--red); font-weight: 700; }
.field input[type="text"], .field select { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--bone-2); background: var(--bone); color: var(--ink); outline: none; transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.field input::placeholder { color: #6a645a; }
.field input[type="text"]:focus, .field select:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(255,198,41,.5); }
.field input[type="range"] { width: 100%; accent-color: var(--red); height: 54px; cursor: pointer; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 16px; background: var(--bone); }
.seg button { border: 0; cursor: pointer; min-height: 46px; border-radius: 12px; background: transparent; font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(20,17,10,.35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 2px solid var(--bone-2); background: var(--bone); color: var(--ink); cursor: pointer; padding: 10px 16px; border-radius: 999px; font-size: var(--fs-small); font-weight: 600; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .3s var(--ease); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button:active { transform: scale(.94); }
.trade [hidden] { display: none; }
.trade-preview { background: #e8f9ee; border-radius: 18px 18px 18px 4px; padding: 16px 18px; }
.trade-preview-label { font-size: var(--fs-small); font-weight: 700; color: #15803d; margin-bottom: 6px; }
.trade-msg { font-size: var(--fs-body); line-height: 1.5; }

/* ---------- Close / contact ---------- */

.cierre { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: var(--section) var(--m); background: var(--red); color: #fff; overflow: hidden; }
.cierre-title { font: 400 clamp(3rem, 1.2rem + 6.4vw, 8.4rem)/.84 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); }
.cierre-copy > p { margin-top: 28px; font-size: var(--fs-lead); line-height: 1.45; max-width: 36ch; }
.cierre-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cierre { align-items: start; }
.hours { margin-top: 36px; max-width: 520px; background: rgba(0,0,0,.18); border-radius: var(--r); padding: clamp(22px, 2.6vw, 34px); }
/* Where to find us: the real map, with directions one tap away */
.visit { background: #fff; color: var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
.visit-map { position: relative; aspect-ratio: 4 / 3; background: var(--bone-2); }
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9) contrast(1.05); }
.visit-pin { position: absolute; left: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--red); box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); pointer-events: none; }
.visit-pin::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #fff; }
.visit-info { display: grid; gap: 10px; padding: clamp(20px, 2.4vw, 32px); }
.visit-label { font-size: var(--fs-small); font-weight: 700; color: var(--red); }
.visit-address { font: 400 clamp(1.5rem, 1.1rem + 1vw, 2.1rem)/1 var(--display); text-transform: uppercase; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.visit .btn-line { color: var(--ink); }
@media (hover: hover) { .visit .btn-line:hover { background: var(--bone); } }
.hours-title { font: 400 1.6rem/1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-weight: 500; }
.hours li:last-child { border-bottom: 0; }
.hours-now { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.25); font-size: var(--fs-small); font-weight: 600; }
.hours-now:empty { display: none; }
.hours-now::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #fff); }
.cierre-stage { position: relative; display: grid; place-items: center; padding-bottom: 8px; }
.cierre-stage img { position: relative; z-index: 1; width: min(100%, 520px); filter: drop-shadow(0 24px 24px rgba(0,0,0,.35)); }
.cierre-stage .car-shadow { left: 18%; right: 18%; bottom: 2%; }

/* ---------- Footer ---------- */

.footer { background: var(--night); color: var(--light); padding: clamp(56px, 8vw, 96px) var(--m) 24px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.footer-logo { width: clamp(150px, 14vw, 220px); }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--gap); }
.footer-head { font-weight: 700; margin-bottom: 10px; color: var(--red); }
.footer-head-2 { margin-top: 22px; }
.footer-cols li { padding: 3px 0; color: var(--light-soft); overflow-wrap: anywhere; }
.footer-cols a { text-decoration: none; transition: color .25s ease; }
@media (hover: hover) { .footer-cols a:hover { color: #fff; } }
/* line-height 1 so the letters keep their own box and never run into the legal line below */
.footer-word { margin: clamp(48px, 8vw, 120px) 0 clamp(20px, 2.4vw, 36px); width: 100%; min-width: 0; font: 400 24vw/1 var(--display); text-transform: uppercase; white-space: nowrap; color: var(--red); overflow: hidden; }
.footer-word span, .footer-word .ch { display: inline-block; }
.footer-word { text-align: center; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 8px 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-small); color: var(--light-soft); }
.credits { max-width: 90ch; text-align: right; }
.credits[open] { text-align: left; }
.credits summary { cursor: pointer; }
.credits p { margin-top: 10px; line-height: 1.5; }

/* ---------- Motion layer ---------- */

/* The opening curtain, reused to carry you between the two blocks */
.wipe { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; pointer-events: none; visibility: hidden; clip-path: inset(100% 0% 0% 0%); background: var(--red); color: #fff; }
.wipe[data-tone="prod"] { background: var(--bone); color: var(--red); }
.wipe-word { display: block; overflow: hidden; font: 400 clamp(4.5rem, 1rem + 16vw, 18rem)/.86 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.wipe-word span { display: inline-block; }

/* One red line glides between the menu items; a thin bar fills as you read */
.nav-links { position: relative; }
.nav-links a::after { content: none; }
.nav-ind { position: absolute; left: 0; bottom: 2px; width: 1px; height: 2px; border-radius: 2px; background: var(--red); transform-origin: left; transform: translateX(var(--x, 0px)) scaleX(var(--w, 0)); opacity: var(--o, 0); transition: transform .55s var(--ease), opacity .3s ease; pointer-events: none; }
.nav-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; overflow: hidden; }
.nav-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* Buttons fill from the exact point the cursor enters or the finger lands */
.btn::before { content: ""; position: absolute; z-index: -1; left: var(--px, 50%); top: var(--py, 50%); width: 0; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%; background: var(--fill, color-mix(in srgb, currentColor 14%, transparent)); transition: width .6s var(--ease); pointer-events: none; }
@media (hover: hover) { .btn:hover::before { width: 300%; } }
.btn.is-press::before { width: 300%; transition-duration: .4s; }
.btn-red { --fill: rgba(0,0,0,.22); }

/* Doors: a soft light follows the cursor */
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.24), transparent 70%); }
.door-prod::after { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(228,1,23,.14), transparent 70%); }
@media (hover: hover) { .door:hover::after { opacity: 1; } }

/* Quick actions: the main service and WhatsApp, always within reach after the top */
.dock {
  position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(12,13,18,.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  translate: -50% 170%; opacity: 0; transition: translate .7s var(--ease), opacity .4s ease;
}
.dock.is-on { translate: -50% 0; opacity: 1; }
.dock-plate { min-height: 52px; padding: 0 10px 0 22px; }
.dock-plate b { font: 400 1.2rem/1 var(--display); padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.22); }
.dock-wa { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; transition: transform .4s var(--ease); -webkit-tap-highlight-color: transparent; }
.dock-wa svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-wa:active { transform: scale(.92); }
@media (hover: hover) { .dock-wa:hover { transform: scale(1.08) rotate(-8deg); } }

/* Tabs and switches: the white pill glides to the chosen option instead of jumping */
.tabs, .seg { position: relative; isolation: isolate; }
.pill { position: absolute; left: 0; top: 0; z-index: -1; border-radius: 999px; background: #fff; pointer-events: none; }
.seg .pill { border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(20,17,10,.35); }
.pill.is-ready { transition: transform .55s var(--ease), width .55s var(--ease), height .55s var(--ease); }
.has-pill.tabs button[aria-selected="true"], .has-pill.seg button[aria-pressed="true"] { background: transparent; box-shadow: none; }

/* After a plate is checked, the way to order unfolds under the plate */
.plate-next { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.plate-next-in { min-height: 0; overflow: hidden; opacity: 0; translate: 0 12px; transition: opacity .5s ease .1s, translate .7s var(--ease) .1s; }
.plate-next.is-open { grid-template-rows: 1fr; }
.plate-next.is-open .plate-next-in { opacity: 1; translate: 0 0; }
.plate-form.is-done [data-plate-submit] { display: none; }
.plate-next-title { margin: 4px 0 12px; font-weight: 700; text-align: center; }
.plate-next-title b { color: var(--red); white-space: nowrap; }
.plate-next-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plate-next-plans .btn { padding: 0 12px; }
.plate-next-steps { counter-reset: s; display: grid; gap: 8px; margin: 16px 0 26px; }
.plate-next-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; font-size: var(--fs-small); color: rgba(255,255,255,.8); }
.plate-next-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); font-weight: 700; color: #fff; }

/* ---------- Pages ---------- */

[hidden] { display: none !important; }

/* Home: one message and two doors, centred over moving footage */
.hero-gate { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.hero-video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(12,13,18,.82) 0%, rgba(12,13,18,.7) 40%, rgba(12,13,18,.94) 100%), rgba(80,0,8,.25); }
.gate { display: grid; justify-items: center; gap: clamp(14px, 2.2vh, 26px); width: 100%; max-width: 1080px; padding: calc(var(--nav-h) + clamp(16px, 3vh, 48px)) var(--m) clamp(32px, 5vh, 64px); }
.gate-doors .door { padding: clamp(20px, 2.6vh, 34px) clamp(22px, 2.6vw, 36px); grid-template-rows: auto 1fr; align-items: start; }
.gate-doors .door-go { align-self: center; }
.gate-doors .door-title { font-size: clamp(1.9rem, 1.1rem + 2vw, 3.2rem); }
/* sized so the title, the call and both doors share the first screen */
.gate-title { font-size: clamp(3rem, min(1rem + 6.4vw, 12svh), 7rem); line-height: .86; }
/* the key word gets a line that draws itself in once the opening ends */
.gate-title .hl { position: relative; display: inline-block; }
.gate-title .hl::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -.02em; height: .06em; border-radius: 99px; background: #fff; transform: scaleX(var(--u, 1)); transform-origin: left; }
.js:not(.no-motion) .gate-title .hl { --u: 0; }
/* a faint grid drifts behind dark sections, like an instrument panel */
.grid-lines { position: absolute; inset: -64px; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  animation: grid-drift 24s linear infinite; }
@keyframes grid-drift { to { transform: translate(64px, 64px); } }
/* glass: semi-clear panels with a hairline edge over the dark ground */
.hero-plate, .phone { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.placa .hero-plate { background: rgba(12,13,18,.55); box-shadow: 0 50px 90px -40px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.12); }
.gate-lead { max-width: 52ch; font-size: var(--fs-lead); line-height: 1.5; color: rgba(246,244,240,.88); }
.gate-cta b { font: 400 1.35rem/1 var(--display); padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.22); }
.gate-doors { width: 100%; padding: clamp(8px, 1.4vw, 16px) 0 0; background: none; text-align: left; overflow: visible; }
.gate-facts { justify-content: center; margin-top: 4px; }
.gate-facts li { justify-items: center; text-align: center; }

/* Inside a page: back home, or straight to the other page */
.view-switch { display: flex; flex-wrap: wrap; gap: 6px; padding: calc(var(--nav-h) + 8px) var(--m) clamp(24px, 3vw, 40px); }
.view-switch a { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 999px; font-size: var(--fs-small); font-weight: 700; text-decoration: none; background: rgba(255,255,255,.14); transition: background-color .3s ease, transform .35s var(--ease); }
.view-switch a[aria-current="page"] { background: #fff; color: var(--red); }
.view-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.block-prod .view-switch a { background: rgba(20,17,10,.07); }
.block-prod .view-switch a[aria-current="page"] { background: var(--red); color: #fff; }
@media (hover: hover) { .view-switch a:hover { transform: translateY(-2px); } .view-switch a:not([aria-current]):hover { background: rgba(255,255,255,.24); } .block-prod .view-switch a:not([aria-current]):hover { background: rgba(20,17,10,.12); } }
.block { padding-top: 0; padding-bottom: clamp(28px, 4vw, 56px); }
/* the first section of a page follows its name closely, no empty band in between */
.view .block + section { padding-top: clamp(32px, 5vw, 80px); }
.wipe[data-tone="home"] { background: var(--night); color: #fff; }

/* The plate tool now lives beside its service */
.placa .hero-plate { width: 100%; justify-self: stretch; }
.tab-panels .historia-img { margin-top: 26px; max-width: 620px; }
/* "Write your plate here", inside the white plate where nobody can miss it */
.plate-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px 0 12px; font-size: var(--fs-small); font-weight: 700; color: var(--red); transition: opacity .3s ease, transform .4s var(--ease); }
.plate-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; animation: nudge 1.6s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translate(3px, -3px) rotate(-8deg); } }
.plate:focus-within .plate-hint, .plate.has-value .plate-hint { opacity: 0; transform: translateY(4px); }

/* ---------- Conversation: how WhatsApp attention goes, over footage ---------- */
.chat .phone { justify-self: center; }
.chat { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: var(--section) var(--m); color: #fff; background: var(--night); }
.chat-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.chat-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,13,18,.94) 0%, rgba(12,13,18,.8) 55%, rgba(120,0,12,.55) 100%); }
.chat-copy p { margin-top: 24px; max-width: 44ch; font-size: var(--fs-lead); line-height: 1.5; color: rgba(255,255,255,.88); }
.chat-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chat .chat-note { margin-top: 18px; font-size: var(--fs-small); color: var(--light-soft); }
.phone { width: min(360px, 100%); height: 640px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 44px; overflow: hidden; background: #efeae2; border: 10px solid #0b0b0e; box-shadow: 0 60px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12); color: #111b21; }
.phone-top { display: flex; align-items: center; gap: 12px; padding: 18px 16px 12px; background: #075e54; color: #fff; }
.phone-top img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: var(--red); padding: 8px 4px; }
.phone-top div { display: grid; line-height: 1.2; }
.phone-top span { font-size: .8rem; opacity: .85; }
.phone-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; overflow-y: auto; scrollbar-width: none; background: #efeae2 radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 14px 14px; }
.phone-input { display: flex; align-items: center; gap: 10px; padding: 10px 12px 14px; background: #f0f0f0; }
.phone-input span { flex: 1; padding: 10px 14px; border-radius: 999px; background: #fff; color: #8696a0; font-size: .85rem; }
.phone-input i { width: 40px; height: 40px; border-radius: 50%; background: #25d366; }
.msg { position: relative; max-width: 82%; padding: 8px 10px 18px; border-radius: 12px; font-size: .9rem; line-height: 1.35; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: msg-in .5s var(--ease) both; }
.msg-me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; transform-origin: 100% 100%; }
.msg-them { align-self: flex-start; background: #fff; border-top-left-radius: 4px; transform-origin: 0 100%; }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.msg-time { position: absolute; right: 8px; bottom: 3px; font-size: .68rem; color: #667781; }
.msg-auto { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 700; color: #075e54; }
.msg-text { display: block; }
.msg-file { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; min-width: 200px; }
.msg-doc { width: 40px; height: 46px; border-radius: 8px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; background: var(--red); }
.msg-doc-yape { background: #742284; }
.msg-typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: dot 1s ease-in-out infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .5; } }

/* ---------- Round 4: legibility, Productos palette, the road ---------- */

/* Inside the pages the bar is always solid, so it reads over light or dark grounds alike */
body:not([data-page="home"]) .nav { background: rgba(12,13,18,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }

/* Page names: a full line box, so the clip that lets the letters rise never trims their tops */
.block-word { line-height: 1; padding-top: .06em; }

/* Productos: a dark showroom where the cars and the truck carry the colour */
.block-prod { background: var(--night); color: #fff; }
.block-prod .block-lead { color: var(--light-soft); }
.block-prod .view-switch a { background: rgba(255,255,255,.12); }
.block-prod .view-switch a[aria-current="page"] { background: #fff; color: var(--red); }
@media (hover: hover) { .block-prod .view-switch a:not([aria-current]):hover { background: rgba(255,255,255,.22); } }
.showroom { background: var(--night); color: #fff; }
.showroom .sr-head-side p { color: var(--light-soft); }
.showroom .round-btn { background: rgba(255,255,255,.12); }
.showroom .round-btn:disabled { opacity: .35; }
.showroom .sr-all { color: #fff; }
.showroom .sr-rail { background: rgba(255,255,255,.12); }
.showroom .sr-thumb { background: #fff; }
.showroom .sr-names button { color: var(--light-soft); }
.showroom .sr-names button.is-active { background: #fff; color: var(--ink); }
@media (hover: hover) { .showroom .sr-names button:not(.is-active):hover { background: rgba(255,255,255,.1); color: #fff; } }
.shacman { background: var(--night-2); color: #fff; }
.shacman-copy p { color: rgba(255,255,255,.8); }
.shacman-points li { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: #fff; }
.wipe[data-tone="prod"] { background: var(--night); color: #fff; }

/* Así compras: a road; a car drives it as you scroll and lights each stop it reaches */
.ruta { background: var(--bone); color: var(--ink); padding: var(--section) var(--m); overflow: hidden; }
.ruta-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.ruta-head p { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft); max-width: 40ch; }
.ruta-road { position: relative; }
.ruta-lane { position: relative; height: 96px; border-radius: 999px; background: #25272e; box-shadow: inset 0 -6px 0 rgba(0,0,0,.28); }
.ruta-lane::before { content: ""; position: absolute; left: 32px; right: 32px; top: 50%; height: 4px; translate: 0 -50%; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 30px, transparent 30px 56px); }
.ruta-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 999px; background: var(--red); transform: scaleX(0); transform-origin: left; }
.ruta-car { position: absolute; left: 12px; top: 50%; width: clamp(110px, 10vw, 160px); translate: 0 -64%; will-change: transform; filter: drop-shadow(0 12px 8px rgba(0,0,0,.45)); }
.ruta-stops { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 28px; }
.stop { display: grid; gap: 10px; align-content: start; transition: opacity .5s ease; }
.js:not(.no-motion) .stop { opacity: .4; }
.js:not(.no-motion) .stop.is-reached { opacity: 1; }
.stop-pin { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 400 1.35rem/1 var(--display); background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); transition: background-color .4s ease, color .4s ease, box-shadow .4s ease, scale .5s var(--ease); }
.stop.is-reached .stop-pin { background: var(--red); color: #fff; box-shadow: 0 8px 18px -6px rgba(228,1,23,.6); scale: 1.12; }
.stop h3 { font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); }
.stop p { color: var(--ink-soft); max-width: 32ch; }

/* Conversation: the report arrives ten minutes later, marked like WhatsApp marks the time */
.msg-note { align-self: center; padding: 5px 12px; border-radius: 8px; background: #e1f2fb; color: #54656f; font-size: .72rem; font-weight: 600; animation: msg-in .5s var(--ease) both; }

/* Block names: letters rise like the opening, inside a clipped line */
.block-word { overflow: hidden; }
.block-word .bw { display: inline-block; }

/* ---------- Reveals (set up by script) ---------- */

.rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.is-in .rv, .rv.is-in { opacity: 1; transform: none; }
/* room above for accents (Í, Ó) and below for the baseline, so the clip never cuts a letter */
.split-head .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .04em; margin: -.14em 0 -.04em; }
.split-head .wi { display: inline-block; transform: translateY(105%); transition: transform 1.05s var(--ease); transition-delay: var(--d, 0ms); }
.split-head.is-in .wi { transform: none; }
.reveal-img { clip-path: inset(12% 6% 12% 6% round var(--r)); transition: clip-path 1.3s var(--ease); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.no-motion .rv, .no-motion .split-head .wi { opacity: 1; transform: none; }
.no-motion .reveal-img { clip-path: none; }

/* Opening: keep the hero still until the timeline takes it. */
.intro .gate, .intro .nav { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.1); color: #fff; }
  .menu-toggle span:not(.sr) { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .menu { position: fixed; inset: 0; z-index: 45; display: grid; align-content: center; gap: 6px; padding: var(--nav-h) var(--m) var(--m); background: var(--night); }
  .menu[hidden] { display: none; }
  .menu a { font: 400 clamp(2.4rem, 9vw, 4rem)/1.1 var(--display); text-transform: uppercase; text-decoration: none; }
  .menu a:last-child { color: var(--red); }
  .menu-group { margin-top: 14px; font-size: var(--fs-small); font-weight: 700; color: var(--red); }
  .menu-group:first-child { margin-top: 0; }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 96px; }
  .hero-plate { justify-self: stretch; width: 100%; max-width: 640px; }

  .scroll-hint { display: none; }

  .historia, .placa, .shacman, .cambio, .pasos, .cierre { grid-template-columns: 1fr; }
  .pasos-side, .cambio-copy { position: static; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid .svc:last-child { grid-column: 1 / -1; }
  .doors { grid-template-columns: 1fr; }
  .cierre .hours { max-width: none; }
  .svc { min-height: 360px; }
  .svc-head, .sr-head { grid-template-columns: 1fr; }
  .svc-wide { flex-direction: column; align-items: flex-start; }
  .svc-wide .btn { align-self: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */

@media (max-width: 767px) {
  :root { --nav-h: 64px; --r: 22px; }
  .brand img { width: 108px; }
  .nav .btn-sm { display: none; }
  .menu-toggle { margin-left: auto; }

  .hero-grid { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 64px; gap: 40px; }

  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-facts strong { font-size: 1.45rem; }
  .hero-plate { padding: 20px; }
  .door { grid-template-columns: auto 1fr; grid-template-areas: "n title" "list list"; }
  .door-go { display: none; }
  .seg button { padding: 0 4px; }

  .car-card { width: 86vw; aspect-ratio: auto; min-height: 500px; }
  .cc-top { flex-direction: column; gap: 10px; }
  .cc-price { text-align: left; }
  .cc-price s { display: inline; margin-left: 6px; }
  .cc-stage { min-height: 200px; }
  .cc-stage img { left: 2%; right: 2%; width: 96%; }
  .cc-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .cc-actions .btn { padding: 0 14px; }
  .round-btn { width: 50px; height: 50px; }
  .sr-all { margin-left: 0; flex-basis: 100%; margin-top: 4px; }
  .sr-names { flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .sr-names::-webkit-scrollbar { display: none; }
  .sr-names button { flex: none; padding: 8px 12px; }
  .gallery { width: 100%; height: 100%; max-height: none; margin: 0; inset: 0; border-radius: 0; }
  .gallery-stage img { max-height: 70svh; }
  .gallery-thumbs { justify-content: flex-start; }
  .gallery-thumbs button { width: 60px; height: 46px; }


  .placa-plans { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .block-word { font-size: 15vw; }
  .dock { left: 12px; right: 12px; translate: 0 170%; }
  .dock.is-on { translate: 0 0; }
  .dock-plate { flex: 1; justify-content: space-between; }
  .plate-next-plans { grid-template-columns: 1fr; }
  /* the road turns vertical on a phone: the car drives down past the stops */
  .ruta-head { grid-template-columns: 1fr; }
  .ruta-road { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; }
  .ruta-lane { height: auto; width: 58px; }
  .ruta-lane::before { left: 50%; right: auto; top: 24px; bottom: 24px; width: 4px; height: auto; translate: -50% 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.7) 0 26px, transparent 26px 48px); }
  .ruta-progress { left: auto; right: 0; top: 0; bottom: 0; width: 5px; height: auto; transform: scaleY(0); transform-origin: top; }
  .ruta-car { width: 92px; left: 50%; top: 8px; translate: -50% 0; rotate: 90deg; }
  .ruta-stops { grid-template-columns: 1fr; margin-top: 0; gap: 36px; padding: 6px 0; }
  .gate-title { font-size: 16vw; }
  .gate-cta { width: 100%; }
  .chat { grid-template-columns: 1fr; }
  .phone { justify-self: center; height: 560px; }
  .view-switch a { min-height: 40px; padding: 0 14px; }
  /* Services stack like a deck: each card holds near the top and the next one slides over it */
  .svc-grid { gap: 22px; }
  .svc { position: sticky; top: 16px; transform-origin: 50% 0; box-shadow: 0 -18px 40px -24px rgba(20,17,10,.45); }
  .svc:nth-child(2) { top: 30px; }
  .svc:nth-child(3) { top: 44px; }
  .svc { min-height: 0; }
  .stat-n { font-size: 2.5rem; }
  .trade-row { grid-template-columns: 1fr; }
  .seg button { font-size: var(--fs-small); }
  .cierre-title { font-size: 15vw; }
  .cierre-actions .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-cols > div:first-child, .footer-cols > div:last-child { grid-column: 1 / -1; }
}

/* ===================== Type, round 6 =====================
   The display face moves from a heavy condensed (Anton) to a modern grotesk (Archivo), in sentence case:
   same hierarchy, far less shouting. Sizes are set here, after every earlier rule, so this block wins. */
:root { --display: "Archivo", "Helvetica Neue", Arial, sans-serif; --fs-h2: clamp(1.85rem, 1.2rem + 2.3vw, 3.5rem); --fs-h3: clamp(1.15rem, .95rem + .7vw, 1.55rem); }
h2, h3, .hero-title, .door-title, .block-word, .gallery-title, .historia-legend strong, .svc-price-word, .cierre-title, .visit-address, .wipe-word, .menu a, .hours-title { text-transform: none; }
h2 { font-weight: 700; line-height: 1.04; letter-spacing: -.028em; }
h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
.gate-title { font-weight: 800; font-size: clamp(2.6rem, min(1rem + 4.6vw, 9svh), 5.2rem); line-height: 1; letter-spacing: -.04em; }
.block-word { font-weight: 800; font-size: clamp(2.6rem, 1rem + 5.6vw, 6.6rem); line-height: 1.04; letter-spacing: -.045em; padding-bottom: .08em; }
.door-title, .gate-doors .door-title { font-weight: 800; font-size: clamp(1.55rem, 1rem + 1.5vw, 2.4rem); letter-spacing: -.03em; line-height: 1; }
.door-n { font-weight: 600; font-size: clamp(1.1rem, .95rem + .5vw, 1.5rem); }
.cierre-title { font-weight: 800; font-size: clamp(2.3rem, 1rem + 4.2vw, 5.4rem); line-height: 1; letter-spacing: -.04em; }
.svc-price, .plan-price, .stat-n, .cc-price, .step-n, .hero-facts strong, .stop-pin, .hero-plate-prices b, .dock-plate b, .gate-cta b { font-weight: 700; letter-spacing: -.03em; }
.svc-price { font-size: clamp(2.1rem, 1.6rem + 1.5vw, 3.1rem); line-height: .95; }
.svc h3 { font-size: clamp(1.12rem, 1rem + .55vw, 1.45rem); }
.svc-price-word { font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.3rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.stat-n { font-size: clamp(2.1rem, 1.4rem + 2vw, 3.6rem); }
.car-card h3 { font-size: clamp(1.35rem, 1rem + 1.1vw, 2.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.cc-price { font-size: clamp(1.25rem, 1rem + .75vw, 1.8rem); }
.plan-price { font-size: 1.9rem; }
.plate input { font-weight: 800; letter-spacing: .02em; font-size: clamp(2.3rem, 4.8vw, 3.8rem); }
.hero-facts strong { font-size: clamp(1.35rem, 1.1rem + .7vw, 1.8rem); }
.visit-address { font-weight: 800; font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); letter-spacing: -.025em; line-height: 1.1; }
.historia-legend strong { font-weight: 800; font-size: clamp(1.02rem, .9rem + .45vw, 1.3rem); letter-spacing: -.02em; }
.hours-title { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.gallery-title { font-weight: 800; font-size: clamp(1.05rem, .95rem + .5vw, 1.45rem); letter-spacing: -.02em; }
.stop h3 { font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); }
.footer-word { font-weight: 800; letter-spacing: -.04em; }
.menu a { font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.9rem, 7vw, 3rem); }
.wipe-word { font-weight: 800; letter-spacing: -.04em; }
/* room for descenders (p, g, y) and accents inside the clipped lines that let words rise */
.mask { padding-bottom: .16em; margin-bottom: -.12em; }
.split-head .w { padding: .14em 0 .18em; margin: -.14em 0 -.18em; }
@media (max-width: 767px) {
  .gate-title { font-size: 12.4vw; }
  .block-word { font-size: 12vw; }
  .cierre-title { font-size: 11vw; }
  .stat-n { font-size: 2rem; }
  .hero-facts strong { font-size: 1.25rem; }
}

/* ===================== Motion, round 6 ===================== */
/* Rolling words under the title: the middle one is lit and underlined, its neighbours blur away */
.roller { display: flex; align-items: center; justify-content: center; gap: .45em; margin-top: -4px; font: 600 clamp(1.02rem, .92rem + .5vw, 1.32rem)/1 var(--text); color: rgba(255,255,255,.88); }
.roller-win { position: relative; height: 3.9em; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); }
.roller-track { display: grid; justify-items: end; will-change: transform; }
.roller-track span { display: block; height: 1.3em; line-height: 1.3em; padding: 0 .35em; white-space: nowrap; opacity: .3; filter: blur(1.2px); transition: opacity .6s ease, filter .6s ease, color .6s ease; }
.roller-track span.is-on { opacity: 1; filter: none; color: #fff; background: linear-gradient(transparent 62%, rgba(228,1,23,.8) 62%, rgba(228,1,23,.8) 92%, transparent 92%); }
.roller-tail { white-space: nowrap; }
.no-motion .roller-track span { opacity: 1; filter: none; }
.no-motion .roller-win { height: 1.3em; }

/* Confirmations that pop around the plate card and then float gently */
.placa .hero-plate { position: relative; }
.fchips { position: absolute; inset: 0; pointer-events: none; }
.fchip { position: absolute; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-small); font-weight: 700; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); }
.fchip-1 { left: -26px; top: 14%; }
.fchip-2 { right: -22px; top: 40%; }
.fchip-3 { left: -14px; bottom: 16%; }
.js:not(.no-motion) .fchip { opacity: 0; }

/* Phones: no glass blur behind big panels (it costs frames while scrolling) */
@media (max-width: 767px) {
  .hero-plate, .phone, .placa .hero-plate { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .placa .hero-plate { background: rgba(12,13,18,.82); }
  .fchip-1 { left: 8px; top: -14px; }
  .fchip-2 { right: 8px; top: 36%; }
  .fchip-3 { left: auto; right: 14px; bottom: -14px; }
  .roller { flex-wrap: nowrap; font-size: .98rem; }
}

/* round 6 fixes: chips in front of the plate; a tighter cover on phones so both doors fit */
.fchips { z-index: 3; }
@media (max-width: 767px) {
  .gate { gap: 12px; padding-top: calc(var(--nav-h) + 10px); }
  .gate-lead { font-size: .95rem; line-height: 1.45; }
  .gate-doors .door { padding: 16px 18px; }
  .gate-doors .door-list span { padding: 4px 10px; }
}

/* ===================== Round 7 ===================== */
/* Cover: a plain question above the two doors, and a one-line description inside each */
.gate-ask { margin-top: 6px; font-weight: 700; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: #fff; }
.gate-ask span { display: block; margin-top: 4px; font-weight: 500; font-size: var(--fs-small); color: var(--light-soft); }
.door-title small { display: block; margin-top: 6px; font: 500 var(--fs-small)/1.3 var(--text); letter-spacing: 0; opacity: .82; }

/* What we check: once reviewed each item lights in white with a tick (the red stays for the button) */
.checks li::before { content: ""; display: grid; place-items: center; font-size: 9px; font-weight: 800; line-height: 1; }
.checks li.is-checking::before { background: #fff; transform: scale(1.4); }
.checks li.is-done::before { content: "✓"; width: 16px; height: 16px; margin-top: 1px; background: #fff; color: var(--blue); transform: none; }

/* Quick actions: a discreet pair at the bottom right instead of a wide bar */
.dock { left: auto; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); gap: 8px; padding: 6px; background: rgba(12,13,18,.72); translate: 0 170%; }
.dock.is-on { translate: 0 0; }
.dock-plate { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-small); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .3s ease, transform .35s var(--ease); }
.dock-plate svg { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
@media (hover: hover) { .dock-plate:hover { background: var(--bone); transform: translateY(-2px); } }
.dock-plate:active { transform: scale(.95); }
.dock-wa { width: 44px; height: 44px; }
.dock-wa svg { width: 22px; height: 22px; }

/* Location: the real map at the exact address; tapping it opens Google Maps */
.visit-map { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e8e4dc; }
.visit-map img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .visit-map:hover img { transform: scale(1.05); } }
.visit-pin { left: 50%; top: 50%; translate: -50% -100%; rotate: -45deg; }
.visit-open { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-small); font-weight: 700; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
.visit-osm { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: #555; background: rgba(255,255,255,.75); padding: 1px 5px; border-radius: 4px; }

/* Así compras: steps on the left that advance like stories, the step's picture and words on the right */
.pasos2 { background: var(--bone); color: var(--ink); padding: var(--section) var(--m); }
.p2-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.p2-head p { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink-soft); max-width: 40ch; }
.p2-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 48px); align-items: stretch; }
.p2-list { display: grid; gap: 10px; align-content: start; }
.p2-list button { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 18px 20px 22px; border: 0; border-radius: var(--r-sm); background: #fff; color: var(--ink-soft); text-align: left; cursor: pointer; font: 600 var(--fs-body)/1.2 var(--text); box-shadow: inset 0 0 0 1px var(--bone-2); transition: background-color .4s ease, color .4s ease, transform .4s var(--ease); }
.p2-list button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
@media (hover: hover) { .p2-list button[aria-selected="false"]:hover { transform: translateX(6px); color: var(--ink); } }
.p2-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--display); background: var(--bone); color: var(--ink); transition: background-color .4s ease, color .4s ease; }
.p2-list button[aria-selected="true"] .p2-n { background: var(--red); color: #fff; }
.p2-list button.is-done .p2-n { background: var(--ink); color: #fff; }
.p2-bar { position: absolute; left: 20px; right: 20px; bottom: 9px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.p2-list button[aria-selected="false"] .p2-bar { background: transparent; }
.p2-bar i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
.p2-stage { position: relative; min-height: clamp(320px, 34vw, 460px); border-radius: var(--r); overflow: hidden; background: var(--night); }
.p2-card { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.p2-card.is-on { opacity: 1; }
.p2-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.08; transition: scale 4.6s linear; }
.p2-card.is-on img { scale: 1; }
.p2-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,18,0) 30%, rgba(12,13,18,.88) 100%); }
.p2-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.6vw, 36px); color: #fff; translate: 0 16px; opacity: 0; transition: translate .8s var(--ease) .15s, opacity .6s ease .15s; }
.p2-card.is-on .p2-text { translate: 0 0; opacity: 1; }
.p2-big { display: block; font: 800 clamp(2.2rem, 1.6rem + 2vw, 3.6rem)/1 var(--display); letter-spacing: -.04em; color: var(--red); }
.p2-text h3 { margin-top: 6px; font-size: clamp(1.3rem, 1.05rem + .9vw, 1.9rem); }
.p2-text p { margin-top: 8px; max-width: 46ch; color: rgba(255,255,255,.85); }

@media (max-width: 767px) {
  .dock { right: 12px; left: auto; }
  .p2-head, .p2-body { grid-template-columns: 1fr; }
  .p2-list { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .p2-list button { grid-template-columns: 1fr; justify-items: center; padding: 10px 6px 16px; }
  .p2-t { display: none; }
  .p2-bar { left: 10px; right: 10px; bottom: 6px; }
  .p2-stage { min-height: 420px; }
}

/* ---------- Round 8: filter, compare, send a car; questions ---------- */
.car-card[hidden], .sr-names button[hidden] { display: none; }
.sr-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 0 var(--m) clamp(22px, 2.4vw, 32px); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sr-chips button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,.08); color: var(--light); font: 600 var(--fs-small)/1 var(--text); transition: background-color .3s ease, color .3s ease, transform .35s var(--ease); }
.sr-chips button span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: .75rem; background: rgba(255,255,255,.12); transition: background-color .3s ease, color .3s ease; }
.sr-chips button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.sr-chips button[aria-pressed="true"] span { background: var(--red); color: #fff; }
.sr-chips button:active { transform: scale(.95); }
@media (hover: hover) { .sr-chips button[aria-pressed="false"]:hover { background: rgba(255,255,255,.16); } }
.sr-sort { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--light-soft); }
.sr-sort select { appearance: none; -webkit-appearance: none; min-height: 42px; padding: 0 38px 0 16px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 600 var(--fs-small)/1 var(--text);
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; }
.sr-sort select option { color: var(--ink); }

.cc-drop { display: inline-block; margin-left: 8px; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .72rem/1 var(--text); font-style: normal; letter-spacing: 0; vertical-align: middle; }
.cc-price s + .cc-drop { margin-top: 6px; }
.cc-tools { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; order: 2; }
.cc-tool { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px 0 11px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: inherit; font: 600 .8rem/1 var(--text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 35%, transparent); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .3s var(--ease); }
.cc-tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cc-tool[aria-pressed="true"] { background: var(--fg); color: var(--c1); box-shadow: none; }
.cc-tool:active { transform: scale(.94); }
@media (hover: hover) { .cc-tool:hover { box-shadow: inset 0 0 0 1.5px currentColor; } }
.car-card.is-pinged { animation: ping 1.6s var(--ease) .5s 2; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(228,1,23,.9); } 100% { box-shadow: 0 0 0 22px rgba(228,1,23,0); } }

.cmp-tray { position: fixed; z-index: 40; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; width: max-content; max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px -18px rgba(0,0,0,.6); font-size: var(--fs-small); font-weight: 600; }
.cmp-tray[hidden], body:not([data-page="productos"]) .cmp-tray { display: none; }
.cmp-tray .btn:disabled { opacity: .35; pointer-events: none; }
.cmp-clear { width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: var(--bone); color: var(--ink); }
.cmp-clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

.cmp { width: min(880px, 94vw); max-width: none; max-height: 92svh; padding: 0; border: 0; border-radius: var(--r); background: var(--light); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.cmp[open] { animation: gallery-in .5s var(--ease); }
.cmp::backdrop { background: rgba(8,9,12,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmp-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 12px 24px; background: var(--light); }
.cmp-head h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.cmp-body { padding: 0 24px 24px; }
.cmp-cars, .cmp-row { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 12px; }
.cmp-car { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-sm); color: var(--fg); background: radial-gradient(60% 50% at 50% 60%, color-mix(in srgb, var(--c2) 70%, transparent), transparent 75%), var(--c1); }
.cmp-car img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.cmp-car p { font-weight: 700; line-height: 1.2; }
.cmp-row { padding: 14px 0; border-bottom: 1px solid var(--bone-2); align-items: start; }
.cmp-k { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); padding-top: 2px; }
.cmp-v { line-height: 1.4; }
.cmp-v.is-best { font-weight: 700; }
.cmp-v small { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--red); font-size: .78rem; font-weight: 700; }
.cmp-v small::before { content: "✓"; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: .62rem; }
.cmp-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 20px; }

.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 88px); align-items: start; padding: var(--section) var(--m); background: var(--light); color: var(--ink); }
.faq-head { position: sticky; top: 110px; display: grid; gap: 20px; justify-items: start; }
.faq-head p { color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.45; max-width: 36ch; }
.faq-list { border-top: 1px solid var(--bone-2); }
.faq-list details { border-bottom: 1px solid var(--bone-2); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font: 600 clamp(1.05rem, .95rem + .4vw, 1.3rem)/1.3 var(--display); letter-spacing: -.01em; transition: color .3s ease; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--bone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315130f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 16px; transition: transform .45s var(--ease), background-color .3s ease; }
.faq-list details[open]:not(.is-closing) summary::after { transform: rotate(135deg); background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
@media (hover: hover) { .faq-list summary:hover { color: var(--red); } }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 56px 24px 4px; color: var(--ink-soft); line-height: 1.6; max-width: 60ch; }

@media (max-width: 767px) {
  .sr-filter { flex-direction: column; align-items: stretch; }
  .sr-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--m) * -1); padding: 0 var(--m); }
  .sr-chips::-webkit-scrollbar { display: none; }
  .sr-chips button { flex: none; }
  .cc-tools { gap: 6px; }
  .cmp-tray { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .cmp { width: 100vw; max-height: 94svh; margin: auto 0 0; border-radius: var(--r) var(--r) 0 0; }
  .cmp-body { padding: 0 16px 20px; }
  .cmp-cars, .cmp-row { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .cmp-cars > span:first-child { display: none; }
  .cmp-k { grid-column: 1 / -1; }
  .cmp-foot { display: grid; grid-template-columns: 1fr 1fr; }
  .cmp-foot .btn-red { grid-column: 1 / -1; }
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .faq-a p { padding-right: 8px; }
}

/* ---------- Round 9: the owner's brand sheet (red, charcoal, a Gilroy-like face), his video and logo ---------- */
:root {
  --red: #e30016; --red-d: #b20011;            /* brand: R227 G0 B22 */
  --ink: #282828; --ink-soft: #5c5c5c;         /* brand charcoal: R40 G40 B40 */
  --night: #1b1b1b; --night-2: #242424; --night-3: #303030;
  --bone: #f4f2ef; --bone-2: #e6e3df;
  --display: "Urbanist", "Gilroy", "Helvetica Neue", Arial, sans-serif;
}
/* Urbanist sets wider than Archivo: ease the tracking back */
.gate-title, .block-word, .cierre-title, .footer-word, .wipe-word, .p2-big { letter-spacing: -.03em; }
.door-title, .gate-doors .door-title, .menu a, .car-card h3, .svc-price-word { letter-spacing: -.02em; }
h2, h3 { letter-spacing: -.015em; }
/* the brand's slant: the word that matters leans, as in the logo */
.hl, h2 em, .block-word span { font-style: italic; }
h2 em { color: var(--red); }
.block-svc h2 em { color: #fff; }

.curtain-logo { width: min(64vw, 520px); height: auto; aspect-ratio: 601 / 232; color: #fff; overflow: visible; }
.brand img { height: 40px; width: auto; }
.phone-top img { padding: 9px 5px; }

/* Servicios and Productos open with the words on the left and Garrido's own footage on the right */
.block:has(.reel, .block-film) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--gap); }
.block:has(.reel, .block-film) > .view-switch { grid-column: 1 / -1; }
.reel, .block-film { position: relative; margin: 0 var(--m) 0 0; border-radius: var(--r); overflow: hidden; background: #000; isolation: isolate; }
.reel video, .reel img, .block-film video, .block-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel video:not([hidden]) + img, .block-film video:not([hidden]) + img { display: none; }
.reel { width: clamp(190px, 16vw, 236px); aspect-ratio: 9 / 16; border: 0; padding: 0; cursor: pointer; color: #fff; text-align: left; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); transition: translate .5s var(--ease), box-shadow .5s ease; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.78)); }
.reel-play { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: reel-pulse 2.4s ease-out infinite; transition: scale .4s var(--ease); }
.reel-play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 4px; }
@keyframes reel-pulse { 70% { box-shadow: 0 0 0 18px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.reel-cap { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; }
.reel-cap b { font: 700 1.05rem/1.15 var(--display); }
.reel-cap span { font-size: .8rem; opacity: .85; }
@media (hover: hover) { .reel:hover { translate: 0 -6px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.75); } .reel:hover .reel-play { scale: 1.1; } }
.reel:active .reel-play { scale: .92; }
.block-film { width: clamp(260px, 34vw, 520px); aspect-ratio: 4 / 3; margin-bottom: 0; }
.block-film figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-size: var(--fs-small); font-weight: 600; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); }

.reel-dlg { width: auto; max-width: 94vw; max-height: 96svh; padding: 0; border: 0; background: transparent; overflow: visible; display: none; }
.reel-dlg[open] { display: grid; justify-items: center; gap: 14px; animation: gallery-in .5s var(--ease); }
.reel-dlg::backdrop { background: rgba(8,8,8,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.reel-dlg video { height: min(80svh, 820px); aspect-ratio: 9 / 16; width: auto; max-width: 94vw; border-radius: var(--r); background: #000; }
.reel-dlg .round-btn { position: absolute; top: -8px; right: -64px; }

/* The magnifier */
.lupa { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 72px); align-items: center; padding: var(--section) var(--m); background: var(--ink); color: #fff; overflow: hidden; }
.lupa-copy > p { margin-top: 20px; font-size: var(--fs-lead); line-height: 1.5; color: rgba(255,255,255,.82); max-width: 40ch; }
.lupa-finds { display: grid; gap: 8px; margin: 26px 0 30px; }
.lupa-finds li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.4); font-weight: 600; transition: color .5s ease; }
.lupa-finds li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); transition: background-color .4s ease, box-shadow .4s ease, transform .5s var(--ease); }
.lupa-finds li.is-found { color: #fff; }
.lupa-finds li.is-found::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") no-repeat center / 14px; box-shadow: none; transform: scale(1.12); }
.lupa-stage { position: relative; aspect-ratio: 1468 / 933; cursor: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lupa-base { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 40px rgba(0,0,0,.45)); pointer-events: none; }
.lupa-lens { position: absolute; left: 0; top: 0; width: 200px; height: 200px; border-radius: 50%; pointer-events: none; opacity: 0; scale: .6;
  background: var(--bad) no-repeat; box-shadow: 0 0 0 5px #fff, 0 0 0 9px var(--red), 0 24px 50px -10px rgba(0,0,0,.7); transition: opacity .35s ease, scale .45s var(--ease); will-change: transform; }
.lupa.is-on .lupa-lens, .lupa-stage.is-on .lupa-lens { opacity: 1; scale: 1; }
.lupa-handle { position: absolute; left: 86%; top: 86%; width: 22%; height: 52%; border-radius: 999px; background: linear-gradient(90deg, #1a1a1a, #3a3a3a); rotate: -45deg; transform-origin: top center; box-shadow: 0 0 0 4px var(--red); }
.lupa-hint { position: absolute; left: 50%; bottom: -8px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; transition: opacity .4s ease; }
.lupa-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lupa-hint.is-gone { opacity: 0; }

/* How buying works: four steps on one line */
.ruta2 { padding: var(--section) var(--m); background: var(--bone); color: var(--ink); }
.r2-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; }
.r2-head p { color: var(--ink-soft); font-size: var(--fs-lead); }
.r2-line { position: relative; height: 4px; margin: clamp(36px, 4vw, 56px) 0 0; border-radius: 4px; background: var(--bone-2); }
.r2-line i { position: absolute; inset: 0; border-radius: inherit; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }
.r2-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.r2-step { position: relative; padding-top: 34px; opacity: .45; translate: 0 18px; transition: opacity .6s ease, translate .8s var(--ease); }
.r2-step.is-on { opacity: 1; translate: 0 0; }
.r2-n { position: absolute; top: -20px; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bone-2); color: var(--ink); font: 800 1rem/1 var(--display); transition: background-color .5s ease, color .5s ease, scale .5s var(--ease); }
.r2-step.is-on .r2-n { background: var(--red); color: #fff; scale: 1.1; }
.r2-step figure { order: 0; margin: 0 0 18px; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--bone-2); }
.r2-step figure img { width: 100%; height: 100%; object-fit: cover; scale: 1.08; transition: scale 1.2s var(--ease); }
.r2-step.is-on figure img { scale: 1; }
.r2-step h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); }
.r2-step p { margin-top: 8px; color: var(--ink-soft); line-height: 1.5; }

@media (max-width: 767px) {
  .block:has(.reel, .block-film) { grid-template-columns: 1fr; }
  .reel { margin: 24px var(--m) 0; width: 100%; max-width: none; aspect-ratio: auto; height: 132px; display: grid; }
  .reel::after { background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.75)); }
  .reel video, .reel img { width: 42%; object-position: 50% 30%; }
  .reel-play { left: 21%; width: 52px; height: 52px; }
  .reel-cap { left: 46%; right: 14px; top: 50%; bottom: auto; translate: 0 -50%; }
  .reel { width: auto; }
  .block-film { margin: 24px var(--m) 0; width: auto; aspect-ratio: 16 / 10; }
  .reel-dlg .round-btn { right: 8px; top: 8px; z-index: 1; }
  .reel-dlg video { height: min(76svh, 720px); }
  .lupa { grid-template-columns: 1fr; }
  .lupa-stage { order: -1; margin: 0 calc(var(--m) * -.5); }
  .r2-line { display: none; }
  .r2-steps { grid-template-columns: 1fr; gap: 28px; margin: 32px 0 0 20px; border-left: 3px solid var(--bone-2); padding-left: 24px; }
  .r2-step { padding-top: 0; display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; align-items: start; }
  .r2-step figure { grid-row: 1 / span 2; margin: 0; aspect-ratio: 1; }
  .r2-n { left: -44px; top: 0; width: 38px; height: 38px; }
}

/* ---------- Round 10 ---------- */
/* Servicios / Productos open: words, quick links and Garrido's own footage, side by side */
.block:has(.reel, .block-film) { align-items: center; row-gap: 28px; }
.block .block-row { align-self: center; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px var(--m) 0; max-width: 760px; }
.quick a { display: grid; gap: 3px; height: 100%; padding: 16px 18px 16px; border-radius: var(--r-sm); text-decoration: none; color: inherit; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background-color .3s ease, translate .4s var(--ease), box-shadow .3s ease; position: relative; }
.quick a::after { content: ""; position: absolute; right: 16px; top: 16px; width: 18px; height: 18px; background: currentColor; opacity: .6; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: translate .4s var(--ease), opacity .3s ease; }
.quick-p { font: italic 800 .85rem/1 var(--display); letter-spacing: 0; opacity: .85; }
.quick b { font: 700 clamp(1.05rem, .95rem + .4vw, 1.3rem)/1.15 var(--display); letter-spacing: -.01em; }
.quick a > span:last-child { font-size: var(--fs-small); opacity: .8; }
@media (hover: hover) { .quick a:hover { background: rgba(255,255,255,.2); translate: 0 -3px; } .quick a:hover::after { translate: 4px 0; opacity: 1; } }
.block-svc .quick a:hover { background: #fff; color: var(--red); }
.block-prod .quick a { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.block-prod .quick-p { color: var(--red); opacity: 1; }
@media (hover: hover) { .block-prod .quick a:hover { background: rgba(255,255,255,.12); } }

.reel { width: clamp(260px, 24vw, 350px); margin: 0 var(--m) 0 0; cursor: default; }
.reel::after { content: none; }
.reel-sound { position: absolute; z-index: 1; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(0,0,0,.6); color: #fff; font: 700 .8rem/1 var(--text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .3s ease, scale .3s var(--ease); }
.reel-sound svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reel-sound svg path:first-child { fill: currentColor; }
.reel-sound .rs-on { display: none; }
.reel-sound[aria-pressed="true"] .rs-on { display: inline; }
.reel-sound[aria-pressed="true"] .rs-off { display: none; }
.reel-sound[aria-pressed="false"] { background: var(--red); }
.reel-sound:active { scale: .95; }
.block-film { width: clamp(320px, 38vw, 600px); aspect-ratio: 4 / 3.4; }

/* TIVE card: white on a light ground needs its own edge */
.svc-white { background: #fff; box-shadow: inset 0 0 0 2px var(--red), 0 24px 50px -30px rgba(40,40,40,.45); }
.svc-white h3 { color: var(--red); }

/* Questions, grouped by topic */
.faq-group { margin: 30px 0 4px; font: italic 800 .85rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--red); }
.faq-group:first-child { margin-top: 0; padding-top: 18px; }
.faq-list { border-top: 0; }
.faq-list details { border-top: 1px solid var(--bone-2); border-bottom: 0; }
.faq-list details:last-child { border-bottom: 1px solid var(--bone-2); }
.faq-a p { font-size: 1.02rem; line-height: 1.65; }

/* The magnifier, rebuilt: the car sits framed on its own stage, the lens moves on the compositor */
.lupa-stage { aspect-ratio: auto; cursor: default; padding: clamp(28px, 3vw, 48px) clamp(16px, 2.4vw, 40px) 18px; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(60% 55% at 50% 62%, rgba(227,0,22,.25), transparent 72%), linear-gradient(180deg, #333 0%, #1e1e1e 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.lupa-car { position: relative; aspect-ratio: 1328 / 840; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 99%); mask-image: linear-gradient(180deg, #000 80%, transparent 99%); }
@media (hover: hover) and (pointer: fine) { .lupa-car { cursor: none; } }
.lupa-base { display: block; width: 100%; height: 100%; object-fit: fill; filter: none; }
.lupa-lens { overflow: hidden; background: #151515; transition: opacity .3s ease, scale .35s var(--ease); box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--red), 0 20px 40px -10px rgba(0,0,0,.7); }
.lupa-lens img { position: absolute; left: 0; top: 0; max-width: none; will-change: transform; }
.lupa-hint { position: relative; left: auto; bottom: auto; translate: none; display: flex; width: max-content; margin: 6px auto 0; }
@media (max-width: 767px) {
  .quick { grid-template-columns: 1fr 1fr; gap: 8px; }
  .quick a { padding: 12px 12px 14px; }
  .quick a::after { display: none; }
  .quick a > span:last-child { display: none; }
  .reel { margin: 4px auto 0; width: min(72vw, 300px); height: auto; aspect-ratio: 9 / 16; display: block; }
  .reel video, .reel img { width: 100%; object-position: 50% 50%; }
  .block-film { margin: 4px var(--m) 0; width: auto; aspect-ratio: 16 / 11; }
  .lupa-stage { margin: 0; padding: 22px 10px 14px; }
}

/* ---------- Round 12 ---------- */
/* The owner's own photo: the clean car as it is, framed; the lens shows its right side destroyed */
.lupa-stage { padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.lupa-car { aspect-ratio: 1024 / 694; border-radius: var(--r); overflow: hidden; -webkit-mask-image: none; mask-image: none; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.lupa-hint { margin-top: 16px; }
/* Home video: frame higher so the person's face is in the shot, not just his chest */
.hero-video { object-position: 50% 14%; }
/* Servicios / Productos: the footage sits toward the middle, not stuck to the right edge */
@media (min-width: 768px) {
  .block:has(.reel, .block-film) { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .reel, .block-film { justify-self: center; margin: 0; }
  .block-film { width: min(100%, 560px); }
}
@media (min-width: 768px) {
  .block:has(.reel, .block-film) { grid-template-columns: minmax(0, 720px) minmax(0, 1fr); }
  .reel, .block-film { justify-self: start; margin-left: clamp(24px, 6vw, 110px); }
  .block-film { width: min(calc(100% - clamp(24px, 6vw, 110px)), 560px); }
}

/* ---------- Round 13 ---------- */
.lupa-car { aspect-ratio: 1166 / 790; }
.hero-video { object-position: 50% 22%; }
@media (min-width: 768px) {
  .reel, .block-film { margin-left: clamp(24px, 10vw, 190px); }
  .block-film { width: min(calc(100% - clamp(24px, 10vw, 190px)), 540px); }
}
@media (min-width: 768px) {
  .block-film { width: min(calc(100% - clamp(24px, 10vw, 190px) - var(--m)), 520px); }
}

/* ---------- Round 14: fluidity ---------- */
/* Reveals: quicker and shorter, so nothing waits to appear */
.rv { transform: translateY(22px); transition: opacity .6s var(--ease), transform .75s var(--ease); transition-delay: var(--d, 0ms); }
.split-head .wi { transition-duration: .8s; }
.reveal-img { transition-duration: .95s; }
/* No live blur over moving video or scrolling content: it costs every frame on slower machines */
.nav.is-solid, body:not([data-page="home"]) .nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20,20,20,.96); }
.hero-plate, .phone, .reel-sound { -webkit-backdrop-filter: none; backdrop-filter: none; }
.reel-sound { background: rgba(0,0,0,.72); }
/* Servicios / Productos: footage centred in the space beside the text */
@media (min-width: 768px) {
  .block:has(.reel, .block-film) { padding-right: var(--m); }
  .reel, .block-film { justify-self: center; margin-left: 0; }
  .block-film { width: min(100%, 520px); }
}

/* ---------- Round 15: the options on the home doors must read easily ---------- */
.gate-doors .door-list span { font-size: 15px; font-weight: 600; line-height: 1.25; padding: 7px 14px; }
.gate-doors .door-title small { font-size: 15px; }
@media (max-width: 767px) {
  .gate-doors .door-list { gap: 7px; }
  .gate-doors .door-list span { font-size: 15.5px; padding: 8px 13px; }
  .gate-doors .door-title small { font-size: 15.5px; }
}

/* ---------- Round 16: fluidity on real phones ---------- */
/* Page change: two solid bars part from the middle; moving them costs nothing */
.bar { position: fixed; left: 0; right: 0; z-index: 84; height: 51vh; height: 51lvh; visibility: hidden; pointer-events: none; background: var(--red); will-change: transform; }
.bar-a { top: 0; }
.bar-b { bottom: 0; }
.bar[data-tone="prod"], .bar[data-tone="home"] { background: var(--night); }
/* The rolling words: no blur, which repainted on every change */
.roller-track span { filter: none; transition: opacity .5s ease, color .5s ease; }
@media (hover: none), (pointer: coarse) {
  /* Fewer layers and no repaint effects on touch screens */
  .car-card, .cc-stage img { will-change: auto; }
  .car-shadow { filter: none; }
  .reveal-img { clip-path: none; opacity: 0; transition: opacity .6s ease; }
  .reveal-img.is-in { clip-path: none; opacity: 1; }
  .no-motion .reveal-img { opacity: 1; }
}
@media (max-width: 767px) {
  /* Service cards: a plain stack. The sticky pile fought with its own animations */
  .svc, .svc:nth-child(2), .svc:nth-child(3) { position: relative; top: auto; transform-origin: 50% 50%; box-shadow: 0 18px 36px -26px rgba(40,40,40,.5); }
  .svc-white { box-shadow: inset 0 0 0 2px var(--red), 0 18px 36px -26px rgba(40,40,40,.45); }
}
