/* Archivo, variable in weight and width (Google Fonts, OFL), self-hosted */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Public site, round 6b design. Shared components first, then layout. */
/* Shared components. Directions set the color, type and radius tokens; this file only uses them. */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms; --t-ui: 200ms;
  --shadow-sm: 0 0 0 1px var(--ring), 0 1px 1px -0.5px var(--shade), 0 3px 3px -1.5px var(--shade);
  --shadow-md: 0 0 0 1px var(--ring), 0 1px 1px -0.5px var(--shade), 0 3px 3px -1.5px var(--shade), 0 6px 6px -3px var(--shade), 0 12px 12px -6px var(--shade), 0 24px 24px -12px var(--shade);
}

/* press feedback on everything pressable */
.btn, .seg button, .tag, .send-btn, .th, .gal-full, .v-btn, .card-link { transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out), box-shadow var(--t-ui) var(--ease-out); }
.btn:active, .seg button:active, .send-btn:active, .th:active, .gal-full:active, .v-btn:active, .card-link:active { transform: scale(0.97); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; background: var(--action); color: var(--on-action); border-radius: var(--r-ctl); box-shadow: var(--shadow-sm); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { color: var(--on-action); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--action-hover); } }
.btn-alt { background: var(--text); color: var(--page); }
.btn-alt:hover { color: var(--page); }
@media (hover: hover) and (pointer: fine) { .btn-alt:hover { background: var(--text); opacity: .88; } }

/* skeleton shimmer until the photo decodes */
.sk { position: relative; background: var(--surface-2); overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, var(--shine) 50%, transparent 80%); transform: translateX(-100%); animation: sk 1.6s var(--ease-io) infinite; pointer-events: none; }
.sk.loaded::after { display: none; }
.sk img { opacity: 0; transition: opacity 320ms var(--ease-out); }
.sk.loaded img { opacity: 1; }
@keyframes sk { to { transform: translateX(100%); } }

/* spec tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--pill); background: var(--chip); color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag svg { width: 16px; height: 16px; color: var(--muted); }
.tag[data-v="automática"] { background: var(--chip-a); }
.tag[data-v="diesel"], .tag[data-v="diésel"] { background: var(--chip-b); }

/* status */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-ring); }
.status[data-s="sold"] i { background: var(--muted); box-shadow: none; }

/* segmented filters */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ring); max-width: 100%; overflow-x: auto; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg button b { font-weight: 600; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg button[aria-pressed="true"] { background: var(--page); color: var(--text); box-shadow: var(--shadow-sm); }
.fcount { margin: 0 0 0 auto; color: var(--muted); font-size: 14px; }
.fcount b { color: var(--text); }
[data-item][hidden] { display: none !important; }
::view-transition-group(*) { animation-duration: 260ms; animation-timing-function: var(--ease-out); }

/* gallery */
.gal { --ratio: 3 / 4; display: grid; gap: 8px; min-width: 0; }
.gal-stage { position: relative; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0; border-radius: var(--r-card); }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track li { flex: 0 0 100%; scroll-snap-align: start; }
.gal-track button { display: block; width: 100%; aspect-ratio: var(--ratio); padding: 0; border: 0; cursor: zoom-in; }
.gal-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-count { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 4px 10px; border-radius: var(--pill); background: var(--scrim); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gal-full { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--pill); background: var(--scrim); color: #fff; cursor: pointer; }
.gal-full svg { width: 20px; height: 20px; }
.gal-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.th { flex: 0 0 64px; height: 64px; padding: 0; border: 0; border-radius: var(--r-ctl); cursor: pointer; opacity: .55; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th[aria-current] { opacity: 1; box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--text); }

/* full-screen viewer */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0b0b; color: #fff; }
.viewer[open] { display: grid; place-items: center; animation: v-in 220ms var(--ease-out); }
.viewer::backdrop { background: #0b0b0b; }
.viewer img { max-width: 100vw; max-height: 86vh; object-fit: contain; }
.v-count { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.v-btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: var(--pill); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.v-btn svg { width: 22px; height: 22px; }
.v-prev { left: 12px; top: 50%; } .v-next { right: 12px; top: 50%; } .v-close { right: 12px; top: 12px; }
@keyframes v-in { from { opacity: 0; } }

/* share */
.send-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: var(--pill); background: var(--chip); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.send-btn svg { width: 18px; height: 18px; }
.send-btn.done { background: var(--ok-ring); }

/* buying steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-sm); counter-increment: s; }
.step-ic { width: 44px; height: 44px; border-radius: var(--pill); display: grid; place-items: center; background: var(--chip); color: var(--text); position: relative; }
.step-ic svg { width: 22px; height: 22px; }
.step-ic::after { content: counter(s); position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); color: var(--page); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.step-t { margin: 0; font-weight: 700; }
.step-d { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* trade-in form */
.cotiza { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-md); }
.cotiza-t { margin: 0; font-weight: 700; font-size: 18px; }
.cotiza label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.cotiza input { width: 100%; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: var(--page); color: var(--text); font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1px var(--ring); transition: box-shadow var(--t-ui) var(--ease-out); }
.cotiza input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--text); }
.cotiza-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cotiza, .steps, .step, .cotiza label { min-width: 0; }
.cotiza-n { margin: 0; color: var(--muted); font-size: 12px; }

/* shop card: map full-bleed, address panel on top of it */
.shop { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.shop-map { position: relative; display: block; aspect-ratio: 4 / 5; }
.shop-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, calc(-100% - 18px)); padding: 6px 10px; border-radius: var(--r-ctl); background: var(--text); color: var(--page); font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-sm); }
.shop-info { position: absolute; left: 12px; right: 12px; bottom: 30px; padding: 18px; border-radius: calc(var(--r-card) - 4px); background: var(--surface); box-shadow: var(--shadow-md); display: grid; gap: 6px; }
.shop-name { margin: 0; font-weight: 700; font-size: 18px; }
.shop-addr { margin: 0; color: var(--muted); }
.shop-links { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-links a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--pill); background: var(--chip); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.shop-links svg { width: 18px; height: 18px; }
.shop .credit { position: absolute; left: 14px; bottom: 10px; margin: 0; color: var(--muted); font-size: 11px; }
@media (min-width: 768px) {
  .shop-map { aspect-ratio: auto; height: 440px; }
  .shop-info { right: auto; left: 24px; bottom: 40px; width: 340px; padding: 22px; }
}

/* sticky price bar (phone) */
.pbar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--page); box-shadow: 0 -1px 0 var(--ring), 0 -8px 24px -12px var(--shade); }
.pbar-p { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pbar-n { margin: 0; color: var(--muted); font-size: 12px; }
@media (min-width: 1024px) { .pbar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .timer circle:not(.t-bg) { transition: none !important; }
  .sk::after { display: none; }
}

/* a swipeable row must never widen its grid parent */
.stock { grid-template-columns: minmax(0, 1fr); }
.stock > *, .stock-bar { min-width: 0; }
/* Safari does not resolve height:100% inside an aspect-ratio box: pin the photo to the frame instead */
.sk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal-track button.sk { position: relative; }

/* filter groups: icon + options inline on desktop, trigger + menu on phone */
.fgroup { position: relative; display: contents; }
.ftrigger { display: none; }
.seg-ic { display: inline-grid; place-items: center; width: 30px; color: var(--muted); }
.seg-ic svg, .seg-view svg { width: 18px; height: 18px; }
.seg button span { pointer-events: none; }
.seg-view button { gap: 6px; }

@media (max-width: 767px) {
  .filterbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .fcount { grid-row: 1; grid-column: 1 / 3; align-self: center; margin: 0; }
  .seg-view { grid-row: 1; grid-column: 3; justify-self: end; }
  .seg-view span { display: none; }
  .seg-view button { padding: 0 10px; }
  .fgroup { display: block; grid-row: 2; min-width: 0; }
  .ftrigger { display: flex; align-items: center; gap: 8px; width: 100%; height: 52px; padding: 0 10px; border: 0; border-radius: var(--r-ctl); background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--ring); font: inherit; text-align: left; cursor: pointer; transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-ui) var(--ease-out); }
  .ftrigger:active { transform: scale(0.97); }
  .ftrigger > svg:first-child { flex: none; width: 18px; height: 18px; color: var(--muted); }
  .ftrigger > svg:last-child { display: none; }
  .ft-text { display: grid; min-width: 0; line-height: 1.15; }
  .ft-text small { font-size: 11px; color: var(--muted); }
  .ft-text b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ftrigger.on { box-shadow: inset 0 0 0 2px var(--text); }
  .fgroup.open .ftrigger { box-shadow: inset 0 0 0 2px var(--muted); }
  .fgroup > .seg { display: none; }
  .fgroup.open > .seg { display: flex; flex-direction: column; align-items: stretch; position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 200px; padding: 6px; gap: 2px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-md), 0 18px 40px -12px var(--shade); animation: menu-in 160ms var(--ease-out); transform-origin: top left; }
  .fgroup[data-group="fuel"].open > .seg { left: auto; right: 0; transform-origin: top right; }
  .fgroup.open > .seg .seg-ic { display: none; }
  .fgroup.open > .seg button { justify-content: space-between; height: 44px; border-radius: var(--r-ctl); font-size: 15px; color: var(--text); }
  .fgroup.open > .seg button[aria-pressed="true"] { background: var(--chip); box-shadow: none; }
}
@keyframes menu-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }

/* countdown ring for autoplaying carousels; dims while paused */
.timer { display: inline-grid; width: 20px; height: 20px; transition: opacity var(--t-ui) var(--ease-out); }
.timer[hidden] { display: none; }
.timer svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.timer .t-bg { stroke: var(--line); }
.paused .timer { opacity: .4; }
.gal-count { display: flex; align-items: center; gap: 6px; }
.gal-count .timer, .gal-count .timer svg { width: 16px; height: 16px; }
.gal-count .timer circle { stroke: #fff; }
.gal-count .timer .t-bg { stroke: rgba(255, 255, 255, .3); }

.timer circle:not(.t-bg) { transition: stroke-dashoffset 100ms linear; }

:root {
  --page: #0F0F0E; --surface: #1A1917; --surface-2: #232220; --text: #F4F2EE; --muted: #A8A49C; --line: #2C2A27;
  --action: #D0101C; --action-hover: #B00C17; --on-action: #FFFFFF;
  --chip: rgba(244, 242, 238, .08); --chip-a: rgba(120, 170, 255, .16); --chip-b: rgba(255, 196, 80, .16);
  --ring: rgba(244, 242, 238, .08); --shade: rgba(0, 0, 0, .35); --shine: rgba(255, 255, 255, .06); --scrim: rgba(0, 0, 0, .55);
  --yellow: #E3B23C; --on-yellow: #161513; --ok: #3DDC84; --ok-ring: rgba(61, 220, 132, .2);
  --font: "Archivo", system-ui, sans-serif; --narrow: 72%; --wide: 118%;
  --t1: 12px; --t2: 16px; --t3: 21px; --t4: 28px; --t5: 38px; --t6: 50px; --t7: 120px;
  --r-card: 18px; --r-ctl: 12px; --pill: 999px;
  --gut: 16px; --wall-h: min(76vh, 700px); --measure: 60ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 400 var(--t2)/1.5 var(--font); background: var(--page); }
/* film grain over the whole page: the vidriera at night */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: var(--t5); font-weight: 800; font-stretch: var(--narrow); line-height: .95; letter-spacing: -0.01em; text-wrap: balance; }
ul { list-style: none; margin: 0; padding: 0; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 0 var(--gut); height: 64px; background: var(--page); box-shadow: 0 1px 0 var(--ring); }
.brand img { width: 150px; }
.top nav { display: none; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.top nav a:hover { color: var(--text); }
.head-wa { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--pill); background: var(--chip); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.head-wa svg { width: 18px; height: 18px; fill: #25D366; }
.head-wa span { display: none; }

/* stock */
.stock { padding: 40px var(--gut) 0; display: grid; gap: 18px; }
.stock > h2 { font-size: var(--t5); }
.slide { position: relative; display: block; text-decoration: none; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.slide .ph { aspect-ratio: 3 / 4; }
.slide .ph img { width: 100%; height: 100%; object-fit: cover; }
.tag-card { padding: 14px 14px 16px; display: grid; gap: 4px; }
.tc-top { display: flex; justify-content: space-between; }
.t-price { font-size: var(--t5); font-weight: 900; font-stretch: var(--narrow); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.t-name { font-size: var(--t2); font-weight: 600; margin-bottom: 6px; }
.tag-card .tag { height: 26px; font-size: 12px; padding: 0 8px; }

/* financiación */
.fin { margin: 96px var(--gut) 0; padding: 28px 20px; border-radius: 28px; background: radial-gradient(120% 80% at 0% 0%, #2A1513 0%, var(--surface) 55%); box-shadow: var(--shadow-md); display: grid; gap: 24px; }
.fin-head { display: grid; gap: 12px; }
.fin-head h2 { font-size: var(--t5); }
.fin-head p { color: var(--muted); max-width: 40ch; }
.fin-body { display: grid; gap: 16px; }
.fin .step, .fin .cotiza { background: var(--surface-2); }
.fin .cotiza .btn-alt { background: var(--action); color: var(--on-action); }

/* dónde estamos */
.loc { margin: 96px var(--gut) 0; display: grid; gap: 18px; }

/* vendidos */

footer { margin-top: 96px; padding: 28px var(--gut) 40px; color: var(--muted); font-size: var(--t1); display: grid; gap: 8px; box-shadow: 0 -1px 0 var(--ring); }
footer .links a { margin-right: 16px; }

/* car page: the cutout over its giant model name */
.stage { position: relative; display: grid; justify-items: center; padding: 28px 0 8px; overflow: hidden; background: radial-gradient(70% 60% at 50% 70%, #2B2926 0%, var(--page) 70%); }
.stage-word { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); font-size: clamp(88px, 30vw, 360px); font-weight: 900; font-stretch: var(--wide); line-height: .8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 242, 238, .28); white-space: nowrap; user-select: none; }
.stage-car { position: relative; width: min(86vw, 820px); margin-top: clamp(28px, 9vw, 120px); filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .6)); }
.car-grid { display: grid; gap: 24px; padding: 24px var(--gut) 0; }
.panel { display: grid; gap: 14px; justify-items: start; align-content: start; }
.back { font-size: var(--t1); color: var(--muted); }
.panel h1 { font-size: var(--t5); font-weight: 900; font-stretch: var(--narrow); line-height: .95; letter-spacing: -0.015em; }
.price { font-size: var(--t6); font-weight: 900; font-stretch: var(--narrow); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.alt { font-size: 14px; color: var(--muted); }
.sheet { width: 100%; margin-top: 8px; padding: 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-sm); }
.sheet summary { cursor: pointer; font-weight: 700; }
.sheet h2 { font-size: var(--t2); font-stretch: 100%; margin-top: 18px; }
.sheet .note { color: var(--muted); font-size: var(--t1); margin-top: 8px; }
.sheet .note span { display: block; }
.sheet .kv { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; box-shadow: 0 1px 0 var(--ring); font-size: 14px; }
.sheet .kv span { color: var(--muted); }
.sheet .kv b { font-weight: 600; text-align: right; }
.sheet p, .sheet li { font-size: 14px; }
.sheet .src { color: var(--muted); margin-top: 12px; }
.others { margin-top: 80px; display: grid; gap: 16px; }
.others { padding: 0 var(--gut); }
.others h2 { font-size: var(--t4); }
.others .t-price { font-size: var(--t4); }

@media (min-width: 768px) {
  :root { --gut: max(32px, calc((100vw - 1248px) / 2)); }
  .top nav { display: flex; }
  .head-wa { margin-left: 0; }
  .head-wa span { display: inline; }
  .brand img { width: 176px; }
  .top { height: 72px; }
  .fin { padding: 48px; }
  .fin-head h2 { font-size: var(--t6); }
  .fin-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}
@media (min-width: 1024px) {
  .car-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; }
  .panel { position: sticky; top: 80px; }
  .gal { --ratio: 4 / 3; }
}

/* hero reel: swipe, arrows, dots, autoplay with a countdown; not named banner/promo/share, content blockers hide those */
.reel { position: relative; padding: 16px var(--gut) 0; }
.b-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-card); }
.b-track::-webkit-scrollbar { display: none; }
.b-track li { flex: 0 0 100%; scroll-snap-align: start; }
.reel-item { display: block; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; background: var(--surface); }
.c-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--pill); background: var(--page); color: var(--text); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform var(--t-press) var(--ease-out), opacity var(--t-ui) var(--ease-out); }
.c-btn:active { transform: scale(0.97); }
.c-btn:disabled { opacity: .35; cursor: default; }
.c-btn svg { width: 20px; height: 20px; }
.reel .c-btn { position: absolute; top: calc(50% - 6px); display: none; }
.c-prev { left: calc(var(--gut) + 14px); } .c-next { right: calc(var(--gut) + 14px); }
.b-foot { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 12px; }
.dots { display: flex; justify-content: center; gap: 8px; }

.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--pill); background: var(--muted); opacity: .5; cursor: pointer; transition: width var(--t-ui) var(--ease-out), opacity var(--t-ui) var(--ease-out); }
.dots button[aria-current] { width: 24px; opacity: 1; background: var(--text); }

/* stock grid: 2 columns on phone, 3 from tablet */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid[hidden] { display: none; }
.grid .slide { height: 100%; }
.grid .ph { aspect-ratio: 3 / 4; }
.grid .tag-card { padding: 10px 10px 12px; }
.grid .t-price { font-size: var(--t3); }
.grid .t-name { font-size: 14px; line-height: 1.25; }
.grid .tags { gap: 4px; }
.grid .tag { height: 24px; font-size: 12px; padding: 0 7px; gap: 4px; }
.grid .tag svg { display: none; }
.stock-foot { padding-top: 6px; }
.seg button:disabled { opacity: .4; cursor: default; }
.seg-view { margin-left: auto; }

/* table view (from Clasificado) */
.table-card { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.list { width: 100%; border-collapse: collapse; }
.list thead { display: none; }
.list tbody tr { display: grid; grid-template-columns: 112px 1fr; grid-template-areas: "ph name" "ph price"; gap: 2px 14px; padding: 12px; align-items: start; box-shadow: 0 1px 0 var(--line); position: relative; }
.list tbody tr[hidden] { display: none; }
.list td, .list th { padding: 0; text-align: left; font-weight: 400; }
.list .c-ph { grid-area: ph; } .list .c-name { grid-area: name; } .list .c-price { grid-area: price; align-self: end; }
.list tbody td:not(.c-ph):not(.c-price) { display: none; }
.thumb { display: block; width: 112px; aspect-ratio: 4 / 3; border-radius: var(--r-ctl); }
.thumb img { object-position: 50% 62%; }
.c-name > a { font-weight: 700; text-decoration: none; display: block; line-height: 1.25; }
.c-name > a::after { content: ""; position: absolute; inset: 0; }
.m-tags .tags { margin-top: 6px; gap: 4px; }
.m-tags .tag { height: 24px; font-size: 12px; padding: 0 7px; }
.m-tags .tag svg { display: none; }
.c-price { font-size: var(--t3); font-weight: 900; font-stretch: var(--narrow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); background: var(--chip); font-size: 13px; font-weight: 600; }
.cell-tag[data-v="automática"] { background: var(--chip-a); }
.cell-tag[data-v="diesel"], .cell-tag[data-v="gnc"] { background: var(--chip-b); }
@media (hover: hover) and (pointer: fine) { .list tbody tr:hover { background: var(--surface-2); } }

/* vendidos carousel */
.sold { margin-top: 96px; display: grid; gap: 14px; }
.sold-head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut); }
.sold-head h2 { font-size: var(--t4); }
.sold-nav { display: flex; gap: 8px; }
@media (max-width: 767px) { .sold-nav [data-prev-slide], .sold-nav [data-next-slide] { display: none; } }
.sold ul { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut); scroll-padding: 0 var(--gut); scrollbar-width: none; }
.sold ul::-webkit-scrollbar { display: none; }
.sold li { flex: 0 0 140px; scroll-snap-align: start; }
.sold .sk { aspect-ratio: 3 / 4; border-radius: 12px; }
.sold .sk img { filter: saturate(.4); }
.sold p { display: grid; gap: 2px; margin-top: 8px; color: var(--muted); font-size: var(--t1); }

footer .f-logo { width: 140px; opacity: .8; margin-bottom: 8px; }

@media (min-width: 768px) {
  .reel-item { aspect-ratio: 16 / 5; }
  .reel .c-btn { display: grid; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid .tag-card { padding: 14px 14px 16px; }
  .grid .t-price { font-size: var(--t5); }
  .grid .t-name { font-size: var(--t2); }
  .grid .tag { height: 28px; font-size: 13px; padding: 0 9px; }
  .grid .tag svg { display: block; }
  .stock > h2 { font-size: var(--t6); }
  .list thead { display: table-header-group; }
  .list thead th { padding: 14px 12px; color: var(--muted); font-size: var(--t1); font-weight: 500; background: var(--surface-2); }
  .list tbody tr { display: table-row; padding: 0; }
  .list tbody td, .list tbody th { padding: 10px 12px; vertical-align: middle; box-shadow: 0 1px 0 var(--line); }
  .list tbody td:not(.c-ph):not(.c-price) { display: table-cell; }
  .list .c-ph { width: 128px; }
  .thumb { width: 104px; }
  .m-tags { display: none; }
  .c-num { text-align: right !important; font-variant-numeric: tabular-nums; }
  .c-price { font-size: var(--t4); text-align: right !important; }
  .sold li { flex-basis: 180px; }
}
@media (max-width: 767px) {
  /* an odd last car takes the full row instead of leaving a hole */
  .grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid > li:last-child:nth-child(odd) .ph { aspect-ratio: 4 / 3; }
}
@media (min-width: 768px) { #others > li:nth-child(4) { display: none; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* in-page targets clear the sticky header */
#financiacion, #autos, #ubicacion { scroll-margin-top: 88px; }

/* car hero: the model name always fits the width (about .86em per letter in Archivo 900 wide), and on desktop the hero
   stays short enough that name, price and the button show on the first screen */
.stage { --ws: min(300px, calc((min(100vw, 1280px) - 2 * var(--gut)) / (var(--n, 6) * .9))); padding-top: 20px; }
.stage-word { font-size: var(--ws); top: 20px; max-width: calc(100vw - 2 * var(--gut)); overflow: hidden; }
.stage-car { margin-top: calc(var(--ws) * .45); }
/* desktop: hero and photos on the left, name, price and button on the right from the first pixel */
@media (min-width: 1024px) {
  /* the panel sticks only while the hero and photos scroll; it stops before Otros autos */
  .car-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 40px; padding: 24px var(--gut) 0; align-items: start; }
  .car-top .car-grid { display: contents; }
  .car-top .stage { grid-column: 1; grid-row: 1; border-radius: var(--r-card); padding-top: 16px;
    --ws: min(220px, calc((100vw - 2 * var(--gut) - 440px) / (var(--n, 6) * .9))); }
  .car-top .stage-word { top: 16px; max-width: 100%; }
  .car-top .stage-car { width: min(78%, 620px); margin-top: calc(var(--ws) * .35); }
  .car-top .gal { grid-column: 1; grid-row: 2; margin-top: 16px; }
  .car-top .panel { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 88px; }
  .car-top .desc { grid-column: 1; grid-row: 3; margin-top: 40px; align-self: start; }
}

/* the ticker drifts pixel by pixel: snapping would fight it */
.sold.ticking ul { scroll-snap-type: none; }

/* ---------- production additions ---------- */
/* <picture> wraps every photo (WebP + fallback); it must not take part in layout */
picture { display: contents; }
.f-logo { display: block; }
.sold-card { display: block; text-decoration: none; color: inherit; }
.sold-card:hover span { text-decoration: underline; }

/* banners as live HTML: three compositions on the stock cutouts */
.reel-item { position: relative; display: block; overflow: hidden; color: var(--text); text-decoration: none; isolation: isolate; }
.bn-text { position: absolute; z-index: 2; left: 22px; top: 22px; right: 22px; display: grid; gap: 8px; justify-items: start; }
.bn-h { font-size: var(--t5); font-weight: 900; font-stretch: var(--narrow); line-height: .9; letter-spacing: -0.01em; }
.bn-sub { font-size: 14px; line-height: 1.35; max-width: 26ch; opacity: .9; }
.bn-pill { display: none; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 16px; border-radius: var(--pill); font-weight: 800; font-size: 15px; }
.bn-pill svg { width: 18px; height: 18px; fill: currentColor; }
.bn-fin { background: var(--action); }
.bn-fin .bn-word { position: absolute; right: -4%; bottom: -6%; font-size: 52vw; font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .45); white-space: nowrap; }
.bn-fin .bn-car { position: absolute; z-index: 1; right: -8%; bottom: -4%; width: 72%; height: auto; filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .45)); }
.bn-fin .bn-pill { background: #fff; color: var(--action); }
.bn-usado { background: radial-gradient(110% 90% at 70% 100%, #3A3632 0%, #161513 62%); }
.bn-cars { position: absolute; left: 4%; right: 2%; bottom: 8%; display: flex; align-items: flex-end; justify-content: space-between; gap: 2%; }
.bn-cars img { height: auto; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .5)); }
.bn-old { width: 40%; filter: grayscale(1) brightness(.75) drop-shadow(0 16px 14px rgba(0, 0, 0, .5)) !important; }
.bn-new { width: 50%; }
.bn-arrow { flex: none; align-self: center; width: 44px; height: 44px; margin-top: 10%; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--on-yellow); font-size: 24px; font-weight: 900; }
.bn-usado .bn-pill { background: var(--yellow); color: var(--on-yellow); }
.bn-shop { background: var(--page); }
.bn-shop .bn-facade { position: absolute; inset: 0 0 46% 0; width: 100%; height: 54%; object-fit: cover; object-position: 50% 0; }
.bn-shop .bn-text { top: auto; bottom: 20px; }
.bn-tag { position: absolute; z-index: 2; right: 16px; top: 16px; background: var(--yellow); color: var(--on-yellow); font-weight: 900; font-stretch: var(--narrow); font-size: 22px; line-height: 1; padding: 7px 14px 5px; border-radius: var(--pill); transform: rotate(-3deg); }
.bn-shop .bn-pill { background: var(--text); color: var(--page); }
@media (min-width: 768px) {
  .bn-text { left: 48px; top: 50%; transform: translateY(-50%); right: auto; width: 44%; gap: 10px; }
  .bn-h { font-size: var(--t6); }
  .bn-sub { font-size: 17px; }
  .bn-pill { display: inline-flex; }
  .bn-fin .bn-word { font-size: 26vw; right: 2%; bottom: auto; top: 6%; }
  .bn-fin .bn-car { width: 44%; right: 4%; bottom: -10%; }
  .bn-cars { left: 46%; right: 3%; bottom: 10%; }
  .bn-shop .bn-facade { inset: 0 0 0 auto; width: 56%; height: 100%; }
  .bn-shop .bn-text { top: 50%; bottom: auto; }
  .bn-tag { right: 32px; top: auto; bottom: 28px; font-size: 34px; padding: 8px 20px 6px; }
}
@media (min-width: 1280px) { .bn-fin .bn-word { font-size: 330px; } }

/* sold car page */
.sold-note { color: var(--muted); }
.perma { color: var(--muted); font-size: var(--t1); }

/* Novedades: email signup and WhatsApp channel */
.news { margin: 96px var(--gut) 0; padding: 28px 22px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-md); display: grid; gap: 12px; }
.news h2 { font-size: var(--t5); }
.news-lede { color: var(--muted); font-size: var(--t2); }
.news-form { display: grid; gap: 10px; max-width: 520px; }
.news-row { display: flex; gap: 8px; }
.news-row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; border-radius: var(--r-ctl); background: var(--page); color: var(--text); font: inherit; box-shadow: inset 0 0 0 1px var(--ring); }
.news-row input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--text); }
.news-row .btn, .btn-quiet { min-height: 48px; background: var(--text); color: var(--page); border: 0; border-radius: var(--r-ctl); padding: 0 18px; font: inherit; font-weight: 800; cursor: pointer; }
.news-consent { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13px; }
.news-consent input { margin-top: 2px; accent-color: var(--action); }
.news-msg { color: var(--action); font-size: 13px; min-height: 1em; }
.news-fine, .news-fine a { color: var(--muted); font-size: 12px; }
.news-done { color: var(--ok); font-weight: 700; }
.news .alt a { font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.textlink { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.news-prompt { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-md), 0 24px 60px -12px rgba(0, 0, 0, .7); display: grid; gap: 10px; animation: v-in 220ms var(--ease-out); }
.news-prompt[hidden] { display: none; }
.news-prompt .news-lede { color: var(--text); font-weight: 800; font-size: var(--t3); }
.news-later { color: var(--muted); font-size: 14px; justify-self: start; }
@media (min-width: 768px) {
  .news { padding: 40px 48px; grid-template-columns: 1fr 1.2fr; column-gap: 48px; align-items: start; }
  .news h2, .news > .news-lede { grid-column: 1; }
  .news .news-form, .news .alt { grid-column: 2; grid-row: 1 / span 3; }
  .news .alt { grid-row: 4; }
  .news-prompt { left: auto; right: 24px; bottom: 24px; width: 420px; }
}

/* 404 and privacy */
.page { min-height: 60vh; padding: 48px var(--gut) 0; }
.notfound { display: grid; gap: 14px; justify-items: start; max-width: 1280px; margin: 0 auto; }
.nf-code { font-size: clamp(120px, 34vw, 300px); font-weight: 900; font-stretch: 125%; line-height: .8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(244, 242, 238, .35); }
.notfound h1 { font-size: var(--t6); font-weight: 900; font-stretch: var(--narrow); line-height: .95; }
.lede { color: var(--muted); font-size: var(--t3); max-width: 36ch; }
.legal { max-width: 68ch; margin: 0 auto; display: grid; gap: 14px; }
.legal h1 { font-size: var(--t6); font-weight: 900; font-stretch: var(--narrow); line-height: .95; }
.legal p { color: var(--muted); }
.legal p.back { color: var(--muted); }

/* car page extras: catalog version, listing text, USD price, address line, highlights */
.version { color: var(--muted); font-size: var(--t1); margin-top: 8px; }
.desc { margin: 64px 0 0; padding: 0 var(--gut); display: grid; gap: 8px; }
.desc h2 { font-size: var(--t4); margin-bottom: 4px; }
.desc p { color: var(--muted); max-width: var(--measure); }
.car-grid > .desc { margin-top: 40px; padding: 0; }
.usd { display: block; font-size: var(--t2); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.visit { color: var(--muted); font-size: 14px; }
.tag-hl { background: var(--ok-ring); }
.tag-hl svg { color: var(--ok); }
.pbar { transition: transform var(--t-ui) var(--ease-out); }
.pbar.away { transform: translateY(110%); }
/* pause for moving rows (WCAG 2.2.2) */
.c-pause .i-play, .c-pause[aria-pressed="true"] .i-pause { display: none; }
.c-pause[aria-pressed="true"] .i-play { display: block; }
.b-foot .c-pause { width: 32px; height: 32px; }
.b-foot .c-pause svg { width: 14px; height: 14px; }
@media (max-width: 479px) {
  .news-row { flex-direction: column; }
  .news-row input { flex: none; }
  .news-row .btn, .news-row button { width: 100%; }
}

/* share menu */
.send-menu { position: relative; display: inline-block; }
.send-pop { position: absolute; z-index: 40; left: 0; top: calc(100% + 6px); min-width: 230px; padding: 6px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-md), 0 18px 40px -12px var(--shade); display: grid; gap: 2px; animation: menu-in 160ms var(--ease-out); transform-origin: top left; }
.send-pop[hidden] { display: none; }
.send-pop button { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.send-pop button:hover, .send-pop button:focus-visible { background: var(--chip); }
.send-pop button:disabled { opacity: .6; cursor: progress; }
.send-pop svg { width: 18px; height: 18px; }

/* catalog print: only the table, on white, every car with its photo */
.table-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.print-head { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; color: #111 !important; }
  body::before, header.top, .reel, .filterbar, .stock > h2, .stock-foot, .table-tools, .fin, .loc, .sold, .news, .news-prompt, footer, .pbar, .viewer, #grid { display: none !important; }
  main > *:not(#autos) { display: none !important; }
  [data-pane="table"] { display: block !important; }
  .print-head { display: block; margin-bottom: 8mm; font-size: 11pt; color: #444; }
  .print-head .ph-name { font-size: 20pt; font-weight: 900; color: #111; }
  .stock { padding: 0 !important; }
  .table-card { box-shadow: none !important; background: #fff !important; border-radius: 0; overflow: visible; }
  .list { font-size: 10pt; color: #111; }
  .list thead { display: table-header-group !important; }
  .list thead th { background: #eee !important; color: #333 !important; padding: 6px 8px !important; }
  .list tbody tr { display: table-row !important; break-inside: avoid; background: #fff !important; }
  .list tbody td, .list tbody th { display: table-cell !important; padding: 6px 8px !important; box-shadow: none !important; border-bottom: 1px solid #ddd; color: #111 !important; vertical-align: middle; }
  .list tbody tr[hidden] { display: table-row !important; }
  .m-tags { display: none !important; }
  .thumb { width: 90px !important; }
  .thumb::after { display: none !important; }
  .thumb img { opacity: 1 !important; }
  .cell-tag { background: none !important; padding: 0 !important; color: #111 !important; }
  .status { color: #111 !important; }
  .status i { box-shadow: none !important; }
  .c-name > a { color: #111 !important; text-decoration: none; }
  .c-name > a::after { content: none !important; }
  .c-price { font-size: 12pt !important; color: #111 !important; font-stretch: 100% !important; font-weight: 800 !important; white-space: nowrap; }
  .list { table-layout: auto; border-collapse: collapse; }
  .list .c-ph { width: 96px !important; }
  .list .c-name { min-width: 52mm; }
  .list .c-name > a { white-space: normal; }
  .thumb { border-radius: 6px !important; }
  .list tbody td, .list tbody th { border-bottom: 1px solid #ddd !important; border-top: 0 !important; }
  .list tbody tr:last-child td, .list tbody tr:last-child th { border-bottom: 1px solid #ddd !important; }
  .table-card { border: 0 !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media print {
  .list tbody tr, .list tbody td, .list tbody th, .table-card, [data-pane="table"] { box-shadow: none !important; border-left: 0 !important; border-right: 0 !important; outline: 0 !important; }
  .list tbody td, .list tbody th { border-bottom: 1px solid #ddd !important; }
}

/* share inside the phone price bar: icon only, menu opens upward */
.pbar-t { min-width: 0; }
.pbar-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-act { display: flex; align-items: center; gap: 8px; flex: none; }
.pbar .send-btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
.pbar .send-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pbar .send-btn svg { width: 20px; height: 20px; }
.pbar .send-pop { top: auto; bottom: calc(100% + 8px); left: auto; right: -56px; transform-origin: bottom right; }
.pbar .send-pop span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
/* print is always light: the theme tokens switch, so nothing dark-themed can leak onto paper */
@media print {
  :root { --page: #FFFFFF; --surface: #FFFFFF; --surface-2: #F2F2F0; --text: #111111; --muted: #555555; --line: #DDDDDD;
    --chip: #F0F0EE; --chip-a: #E3ECFB; --chip-b: #FBF0D6; --ring: rgba(0, 0, 0, .1); --shade: transparent; --ok: #18A058; --ok-ring: transparent; }
  html, body, main, .stock, [data-pane="table"] { background: #fff !important; color: #111 !important; }
  .print-head p { color: #444 !important; }
  .print-head .ph-name { color: #111 !important; }
}

/* share at the top of the car page, over the car: always on the first screen */
.stage-send { position: absolute; z-index: 3; top: 12px; right: var(--gut); }
.stage-send .send-btn { background: var(--surface); box-shadow: var(--shadow-sm); }
.stage-send .send-pop { right: 0; left: auto; transform-origin: top right; }
.stage-send:empty { display: none; }
/* the phone bar clears Safari's floating toolbar */
.pbar { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { .stage-send { display: none; } }
.pbar-t { flex: 1 1 auto; }
@media (max-width: 374px) { .pbar-p { font-size: 18px; } .pbar .btn span { display: none; } .pbar .btn { padding: 0 14px; } }
/* the Novedades popup never covers the phone price bar (price, share, Consultar) */
@media (max-width: 1023px) {
  body:has(.pbar) .news-prompt { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) {
  .news-prompt { padding: 14px 14px 12px; gap: 8px; border-radius: 16px; }
  .news-prompt .news-lede { font-size: 15px; padding-right: 72px; }
  .news-prompt .news-form { gap: 6px; }
  .news-prompt .news-row { flex-direction: row; }
  .news-prompt .news-row input { flex: 1 1 auto; height: 44px; }
  .news-prompt .news-row .btn, .news-prompt .news-row button { width: auto; min-height: 44px; padding: 0 14px; }
  .news-prompt .news-consent { font-size: 12px; }
  .news-prompt .news-fine { display: none; }
  .news-prompt .news-later { position: absolute; top: 14px; right: 14px; font-size: 13px; }
}
.news-msg:empty { display: none; }

/* price drop (last 14 days): red chip with the amount; the old price struck through on the car page */
.drop { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; margin-left: 8px; vertical-align: middle; border-radius: var(--pill); background: var(--action); color: #fff; font-size: 13px; font-weight: 800; font-stretch: 100%; letter-spacing: 0; white-space: nowrap; }
.t-price .drop { height: 22px; font-size: 11px; padding: 0 8px; margin-left: 6px; }
.c-price .drop { display: block; width: max-content; margin: 4px 0 0 auto; }
.was { display: block; color: var(--muted); font-size: var(--t3); font-weight: 600; }
.panel .price .drop { font-size: 15px; height: 32px; padding: 0 14px; }
@media (max-width: 767px) { .t-price .drop { display: flex; width: max-content; margin: 4px 0 0; } }
@media print { .drop { background: none !important; color: #111 !important; border: 1px solid #111; } }

/* car page: the drop chip sits next to the old price, above the current one */
.was-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.was-row .was { display: inline; }
.was-row .drop { margin-left: 0; }

/* hero controls: one row under the slides; the countdown ring wraps the pause button */
.reel .c-btn { position: static; display: grid; }
.b-foot .c-btn { width: 36px; height: 36px; box-shadow: none; background: var(--chip); }
.b-foot .c-btn svg { width: 16px; height: 16px; }
.b-foot .c-pause { position: relative; }
.b-foot .c-pause .timer { position: absolute; inset: -3px; width: auto; height: auto; pointer-events: none; }
.b-foot .c-pause .timer svg { width: 100%; height: 100%; }
.b-foot .c-pause > svg { position: relative; }
.b-foot .c-prev { margin-right: 4px; } .b-foot .c-next { margin-left: 4px; }
@media (max-width: 767px) { .b-foot .c-prev, .b-foot .c-next { display: none; } }
/* 3: the financing car sits whole inside the slide */
.bn-fin .bn-car { bottom: 4%; width: 64%; right: -4%; }
@media (min-width: 768px) { .bn-fin .bn-car { width: 40%; right: 5%; bottom: 6%; } }
/* 4: seamless stage: no box, the glow fades into the page */
.car-top .stage, .stage { background: radial-gradient(60% 55% at 50% 62%, rgba(255, 255, 255, .05) 0%, transparent 70%); border-radius: 0; }
/* 5: the gallery follows the car closely */
.stage { padding-bottom: 0; }
@media (min-width: 1024px) { .car-top .gal { margin-top: -24px; position: relative; z-index: 1; } }
/* 8: ficha summary with its own chevron, no browser marker */
.sheet summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform var(--t-ui) var(--ease-out); margin-right: 4px; }
.sheet[open] summary::after { transform: rotate(-135deg); }
/* the panel is taller than the car: rows size to the car and the gallery, the panel spans them without stretching row 1 */
@media (min-width: 1024px) {
  .car-top { grid-template-rows: auto auto 1fr; }
  .car-top .stage { align-self: start; }
  .car-top .gal { margin-top: 0; align-self: start; }
}
