/* =========================================================
   Autos.com.ve — sistema de diseño
   Marca: carbón #232323 + rojo #dd1e30 (del sitio original)
   Tipografías autoalojadas: Archivo (títulos) · Inter (texto)
   ========================================================= */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #232323;
  --ink-2: #151515;
  --ink-3: #2e2f2c;
  --accent: #dd1e30;
  --accent-ink: #ffffff;
  --accent-soft: #fdecee;
  --accent-deep: #b3182a;
  --accent-hover: #c41a2b;
  --accent-light: #e86270;
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #fafbf8;
  --line: #e4e6df;
  --line-2: #d4d7cd;
  --text: #1c1d1a;
  --muted: #676b62;
  --faint: #9a9e93;
  --ok: #23874d;
  --ok-soft: #e4f4ea;
  --warn: #b26b00;
  --warn-soft: #fff3dc;
  --danger: #c9372c;
  --danger-soft: #fdeceb;
  --wa: #1fa855;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(20, 22, 15, .06), 0 1px 1px rgba(20, 22, 15, .04);
  --shadow-2: 0 6px 18px -6px rgba(20, 22, 15, .14), 0 2px 6px -2px rgba(20, 22, 15, .06);
  --shadow-3: 0 24px 48px -16px rgba(20, 22, 15, .28);
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-stretch: 108%; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink-2); }
h1 { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 750; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; flex: none; }
.i-lg { width: 26px; height: 26px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- Botones ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font-weight: 650; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
}
.btn:hover { color: var(--b-fg); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-accent:hover { --b-bg: var(--accent-hover); border-color: var(--accent-hover); }
.btn-dark { --b-bg: var(--ink); --b-fg: #fff; --b-bd: var(--ink); }
.btn-dark:hover { --b-bg: #000; border-color: #000; }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; }
.btn-ghost:hover { --b-bg: rgba(0,0,0,.05); border-color: transparent; }
.btn-wa { --b-bg: var(--wa); --b-fg: #fff; --b-bd: var(--wa); }
.btn-wa:hover { --b-bg: #18924a; border-color: #18924a; }
.btn-danger { --b-fg: var(--danger); --b-bd: #f2c4c0; }
.btn-danger:hover { --b-bg: var(--danger-soft); border-color: var(--danger); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn-xs { min-height: 30px; padding: 5px 11px; font-size: 13px; gap: 6px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--ink); }
.link-more:hover .i { transform: translateX(3px); }
.link-more .i { transition: transform .15s; width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; color: var(--ink-2); flex: none; }
.brand svg { height: 34px; width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--ink-3); font-size: 15px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--bg); color: var(--ink-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--bg); }
.dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; background: var(--accent-soft); display: inline-grid; place-items: center; font-weight: 700; color: var(--ink); flex: none; overflow: hidden; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 3px 6px 3px 3px; border-radius: 999px; }
.user-menu > button:hover { background: var(--bg); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 6px; display: none; }
.dropdown.open { display: block; animation: pop .14s ease-out; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; text-align: left; font-weight: 550; font-size: 14.5px; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 0; }
.hero-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 85% 10%, #3b3d36 0%, var(--ink) 45%, var(--ink-2) 100%);
  color: #fff; padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(26px, 4vw, 48px);
  isolation: isolate;
}
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-art svg { position: absolute; right: -60px; bottom: -40px; width: min(820px, 90%); height: auto; opacity: .9; }
.hero-glow { position: absolute; right: 8%; top: -30%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent) 0%, transparent) 65%); filter: blur(10px); }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(32px, 5.2vw, 60px); font-stretch: 112%; font-weight: 800; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: #c9cbc3; max-width: 52ch; font-size: clamp(15px, 1.4vw, 17px); margin-bottom: 26px; }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; color: #c9cbc3; font-size: 14px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 22px; color: #fff; font-stretch: 110%; }

/* ---------- Buscador ---------- */
.searchbox { background: var(--surface); color: var(--text); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-3); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 0; max-width: 1040px; }
.sb-field { position: relative; display: flex; flex-direction: column; padding: 8px 14px; border-right: 1px solid var(--line); min-width: 0; }
.sb-field:nth-child(5) { border-right: 0; }
.sb-field label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.sb-field select, .sb-field input { border: 0; background: transparent; padding: 2px 18px 2px 0; font-weight: 650; font-size: 15px; color: var(--ink-2); appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; text-overflow: ellipsis; }
.sb-field select:focus, .sb-field input:focus { outline: none; }
.sb-field:focus-within { background: var(--surface-2); border-radius: 12px; }
.sb-field .chev { position: absolute; right: 12px; bottom: 12px; width: 14px; height: 14px; color: var(--faint); pointer-events: none; }
.sb-submit { min-width: 130px; border-radius: 13px; margin-left: 4px; }
.sb-more { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.chip-dark { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #e7e9e1; font-size: 13.5px; font-weight: 550; }
.chip-dark:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- Secciones ---------- */
.section { padding: 46px 0 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 6px; }
.eyebrow .i { width: 15px; height: 15px; }

.brands-strip { display: flex; gap: 10px; overflow-x: auto; padding: 22px 2px 6px; scrollbar-width: none; }
.brands-strip::-webkit-scrollbar { display: none; }
.brand-pill { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; }
.brand-pill:hover { border-color: var(--ink); }
.brand-pill .mono { width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; font-stretch: 115%; }
.brand-pill small { color: var(--faint); font-weight: 600; }

/* ---------- Tarjetas de vehículo ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.card { position: relative; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s, border-color .18s; }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--line-2); }
.card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #ecede8; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; letter-spacing: .02em; line-height: 1.2; }
.badge .i { width: 13px; height: 13px; }
.badge-feat { background: var(--accent); color: var(--accent-ink); }
.badge-dark { background: rgba(21,21,21,.82); color: #fff; backdrop-filter: blur(4px); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge-drop { background: #e8f0ff; color: #1b4fbf; }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.card-photos { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.fav-btn { position: absolute; right: 10px; top: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-1); }
.fav-btn:hover { transform: scale(1.06); }
.fav-btn.on { color: #e0334b; }
.fav-btn .i { width: 19px; height: 19px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-price { font-family: var(--font-display); font-size: 22px; font-weight: 800; font-stretch: 110%; color: var(--ink-2); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price small { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.card-price s { font-family: var(--font-body); font-size: 13px; color: var(--faint); font-weight: 500; }
.card-title { font-size: 15.5px; font-weight: 650; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); background: var(--bg); padding: 4px 9px; border-radius: 8px; }
.spec .i { width: 14px; height: 14px; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.card-foot .loc { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.card-foot .loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-foot .i { width: 15px; height: 15px; }
.seller-chip { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-3); }
.verified { color: var(--accent-deep); }

/* Tarjeta banner dentro de resultados */
.card-ad { background: var(--ink); color: #fff; border: 0; }
.card-ad .card-media { aspect-ratio: 4/3; }
.card-ad .card-body { gap: 6px; }
.card-ad h3 { color: #fff; margin: 0; font-size: 17px; }
.card-ad p { color: #c9cbc3; margin: 0; font-size: 14px; }
.ad-label { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: rgba(0,0,0,.55); color: #fff; padding: 3px 8px; border-radius: 6px; }

/* ---------- Banners ---------- */
.banner { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); color: #fff; isolation: isolate; }
.banner picture, .banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,15,15,.85) 0%, rgba(15,15,15,.55) 38%, rgba(15,15,15,0) 70%); }
.banner.light { color: var(--ink-2); }
.banner.light::before { background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.6) 38%, rgba(255,255,255,0) 70%); }
.banner-inner { padding: clamp(22px, 4vw, 48px); max-width: 560px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-height: inherit; justify-content: center; }
.banner h3 { color: inherit; font-size: clamp(22px, 3vw, 34px); font-stretch: 112%; font-weight: 800; margin: 0; }
.banner p { margin: 0; opacity: .88; font-size: 15.5px; }
.banner .ad-label { left: auto; right: 12px; }
.banner-hero { min-height: 300px; }
.banner-mid { min-height: 220px; }
.banner-side { min-height: 340px; border-radius: var(--radius); }
.banner-side::before { background: linear-gradient(0deg, rgba(15,15,15,.88) 0%, rgba(15,15,15,.25) 55%, rgba(15,15,15,0) 75%); }
.banner-side .banner-inner { justify-content: flex-end; min-height: 340px; padding: 22px; }
.banner-side h3 { font-size: 22px; }
.banner-panel { min-height: 120px; border-radius: var(--radius); }
.banner-panel .banner-inner { padding: 20px 24px; max-width: 640px; }
.banner-panel h3 { font-size: 22px; }
.banner-slider { position: relative; }
.banner-slider [data-slide] { display: none; }
.banner-slider [data-slide].active { display: block; animation: fade .5s ease; }
.slider-dots { position: absolute; bottom: 14px; right: 18px; display: flex; gap: 6px; z-index: 3; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); }
.slider-dots button.on { background: var(--accent); width: 22px; }
@keyframes fade { from { opacity: .3; } }

/* ---------- Bloques de la portada ---------- */
.cta-sell { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cta-sell-copy { padding: clamp(24px, 4vw, 48px); }
.cta-sell-copy h2 { font-size: clamp(26px, 3vw, 36px); }
.steps-mini { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 14px; }
.steps-mini li { display: flex; gap: 14px; align-items: flex-start; }
.steps-mini .n { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.steps-mini b { display: block; }
.steps-mini span { color: var(--muted); font-size: 14px; }
.cta-sell-visual { background: var(--ink); position: relative; display: grid; place-items: center; padding: 30px; min-height: 320px; }
.mock-phone { width: 250px; background: #fff; border-radius: 28px; padding: 14px; box-shadow: var(--shadow-3); transform: rotate(-3deg); border: 6px solid #0d0d0d; }
.mock-phone .m-img { aspect-ratio: 4/3; border-radius: 14px; background: linear-gradient(135deg, #d9dcd2, #eef0ea); display: grid; place-items: center; color: #a3a79b; }
.mock-phone .m-line { height: 10px; border-radius: 6px; background: var(--bg); margin-top: 10px; }
.mock-phone .m-line.w60 { width: 60%; }
.mock-phone .m-price { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 10px; }
.mock-phone .m-btn { margin-top: 12px; height: 38px; border-radius: 999px; background: var(--wa); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.mock-stat { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-3); font-size: 12.5px; color: var(--muted); }
.mock-stat b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--ink-2); }
.mock-stat.s1 { left: 8%; top: 18%; }
.mock-stat.s2 { right: 8%; bottom: 16%; }
.mock-stat .up { color: var(--ok); font-weight: 700; }

.types-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.type-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 650; }
.type-tile:hover { border-color: var(--ink); }
.type-tile svg.body { width: 86px; height: 40px; color: var(--ink); }
.type-tile small { color: var(--faint); font-weight: 600; }

.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust { display: flex; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trust .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.trust h3 { font-size: 16px; margin: 0 0 4px; }
.trust p { margin: 0; color: var(--muted); font-size: 14px; }

.near-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.city-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: 14px; }
.city-switch:hover { border-color: var(--ink); }
.empty-near { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.empty-near .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }

/* ---------- Búsqueda ---------- */
.page-head { padding: 26px 0 8px; }
.crumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--faint); }
.search-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 50px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 18px; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.filters-head { display: none; }
.f-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-group:last-of-type { border-bottom: 0; }
.f-group > label, .f-title { display: block; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 550; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; cursor: pointer; background: var(--surface); }
.seg input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.results-bar h1 { font-size: clamp(22px, 2.4vw, 30px); margin: 0; }
.results-bar .count { color: var(--muted); font-weight: 550; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.af { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink-2); font-size: 13.5px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff); }
.af .i { width: 15px; height: 15px; }
.af:hover { background: color-mix(in srgb, var(--accent) 16%, #fff); }
.sort-select { min-height: 40px; padding: 8px 34px 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232323' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; appearance: none; font-weight: 600; }
.mobile-filter-btn { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 30px 0 10px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); font-weight: 650; }
.pager a:hover { border-color: var(--ink); }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.save-search { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; margin-bottom: 16px; flex-wrap: wrap; }
.save-search p { margin: 0; color: #c9cbc3; font-size: 14px; }
.save-search b { color: #fff; }
.empty { text-align: center; padding: 50px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: var(--bg); display: grid; place-items: center; color: var(--muted); }
.seo-text { margin: 30px 0 10px; color: var(--muted); font-size: 14.5px; max-width: 80ch; }
.seo-text h2 { font-size: 18px; color: var(--ink); }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--danger); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--surface); font-size: 15.5px; transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; padding-right: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23676b62' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 15px; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input-sm, .select-sm { min-height: 40px; padding: 8px 12px; font-size: 14.5px; border-radius: 10px; }
.select-sm { padding-right: 32px; background-position: right 10px center; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .prefix { position: absolute; left: 14px; font-weight: 700; color: var(--muted); }
.input-group .input { padding-left: 30px; }
.input-group .suffix-select { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; border-radius: 8px; background: var(--bg); padding: 0 10px; font-weight: 650; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); }
.toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; margin: 0; cursor: pointer; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.toggle input:checked { background: var(--ink); }
.toggle input:checked::after { transform: translateX(18px); background: var(--accent); }
.toggle b { display: block; font-size: 14.5px; }
.toggle span { font-size: 13px; color: var(--muted); }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.choice-cards input { position: absolute; opacity: 0; pointer-events: none; }
.choice-cards label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); text-align: center; font-weight: 650; font-size: 14px; cursor: pointer; }
.choice-cards label svg { color: var(--ink); }
.choice-cards input:checked + label { border-color: var(--ink); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--ink) inset; }
.choice-cards input:focus-visible + label { outline: 3px solid var(--accent); }

/* ---------- Avisos / flash ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; border: 1px solid; margin-bottom: 16px; }
.alert .i { margin-top: 1px; }
.alert p { margin: 0; }
.alert-ok { background: var(--ok-soft); border-color: #bfe3cc; color: #145a33; }
.alert-err { background: var(--danger-soft); border-color: #f2c4c0; color: #8c231b; }
.alert-warn { background: var(--warn-soft); border-color: #f3d9a4; color: #7a4a00; }
.alert-info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, #fff); color: var(--ink-2); }
.flash-stack { position: fixed; top: calc(var(--header-h) + 12px); right: 16px; z-index: 90; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.flash-stack .alert { box-shadow: var(--shadow-3); margin: 0; animation: pop .2s ease-out; }

/* ---------- Ficha del vehículo ---------- */
.vd { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 40px; }
.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; background: #111; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-2); z-index: 2; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 92px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg); opacity: .7; }
.gallery-thumbs button.on { border-color: var(--ink); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vd-panel { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.box-tight { padding: 16px 18px; }
.vd-title { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.vd-price { font-family: var(--font-display); font-weight: 800; font-size: 36px; font-stretch: 112%; color: var(--ink-2); line-height: 1; }
.vd-ves { color: var(--muted); font-size: 14px; margin-top: 6px; }
.vd-actions { display: grid; gap: 10px; margin-top: 18px; }
.vd-actions .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.market { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; }
.market-bar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #2bb673, #e7c14a 50%, #f0a020); margin: 10px 0 6px; }
.market-bar i { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid #fff; box-shadow: var(--shadow-1); transform: translateX(-50%); }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-grid div { background: var(--surface); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.spec-grid .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--ink); flex: none; }
.spec-grid small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.spec-grid b { font-size: 15px; }
.desc { white-space: pre-line; font-size: 15.5px; line-height: 1.65; }
.seller-card { display: flex; gap: 14px; align-items: center; }
.seller-card .name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.seller-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; flex: none; overflow: hidden; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.tips li { display: flex; gap: 8px; }
.tips .i { width: 16px; height: 16px; color: var(--accent-deep); margin-top: 2px; }
.sticky-contact { display: none; }
.status-banner { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 600; display: flex; gap: 10px; align-items: center; }

/* ---------- Perfil público del vendedor ---------- */
.seller-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin: 20px 0 26px; }
.seller-hero .seller-logo { width: 92px; height: 92px; font-size: 32px; border-radius: 22px; }
.seller-hero h1 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 4px; }
.seller-stats { display: flex; gap: 24px; margin-left: auto; }
.seller-stats b { display: block; font-family: var(--font-display); font-size: 24px; }
.seller-stats span { color: var(--muted); font-size: 13px; }

/* ---------- Panel ---------- */
.panel-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding: 26px 0 60px; align-items: start; }
.panel-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 2px; }
.panel-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-weight: 600; color: var(--ink-3); }
.panel-nav a:hover { background: var(--surface); }
.panel-nav a.on { background: var(--ink); color: #fff; }
.panel-nav a.on .i { color: var(--accent); }
.panel-nav .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; }
.panel-nav .btn { margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .lbl .i { width: 16px; height: 16px; }
.kpi .val { font-family: var(--font-display); font-size: 30px; font-weight: 800; font-stretch: 110%; margin-top: 6px; color: var(--ink-2); }
.kpi .sub { font-size: 12.5px; color: var(--faint); }
.kpi.dark { background: var(--ink); border-color: var(--ink); }
.kpi.dark .lbl, .kpi.dark .sub { color: #b9bbb3; }
.kpi.dark .val { color: var(--accent); }
.quota { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.quota .meter { flex: 1; min-width: 160px; height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.quota .meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.my-listing { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
.my-listing + .my-listing { margin-top: 12px; }
.my-listing .thumb { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: var(--bg); }
.my-listing .thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-listing h3 { font-size: 16.5px; margin: 0 0 4px; font-family: var(--font-body); font-weight: 700; }
.mini-stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); }
.mini-stats span { display: inline-flex; align-items: center; gap: 5px; }
.mini-stats b { color: var(--ink-2); }
.mini-stats .i { width: 15px; height: 15px; }
.my-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.notif { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: var(--accent-soft); }
.notif .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.notif-pop { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-3); display: none; overflow: hidden; }
.notif-pop.open { display: block; animation: pop .14s ease-out; }
.notif-pop .notif { padding: 12px 14px; font-size: 14px; }
.notif-pop header { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); font-weight: 700; }
.chart { width: 100%; height: 220px; }
.chart-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: var(--surface-2); }

/* ---------- Asistente de publicación ---------- */
.wizard { max-width: 860px; margin: 0 auto; padding: 26px 0 80px; }
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; counter-reset: st; }
.wizard-steps li { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: 14.5px; color: var(--muted); }
.wizard-steps li::before { counter-increment: st; content: counter(st); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); font-family: var(--font-display); font-weight: 800; flex: none; }
.wizard-steps li.on { color: var(--ink-2); border-color: var(--ink); }
.wizard-steps li.on::before { background: var(--ink); color: var(--accent); }
.wizard-steps li.done::before { content: "✓"; background: var(--accent); color: var(--accent-ink); }
.step { display: none; }
.step.on { display: block; animation: fade .25s ease; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); }
.step-card h2 { font-size: 24px; margin-bottom: 4px; }
.step-card > p.muted { margin-bottom: 22px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(0deg, var(--bg) 70%, transparent); }
.dropzone { position: relative; border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 30px 20px; text-align: center; background: var(--surface-2); transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--ink); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ic { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--ink); color: var(--accent); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.photo { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); cursor: grab; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .rm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 999px; border: 0; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; }
.photo .rm .i { width: 15px; height: 15px; }
.photo .cover-tag { position: absolute; left: 6px; bottom: 6px; }
.photo.uploading::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6) linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent) no-repeat; background-size: 50% 100%; animation: shimmer 1s infinite linear; }
.photo .pct { position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent); transform-origin: left; }
.photo.dragging { opacity: .4; }
@keyframes shimmer { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.preview-card { max-width: 320px; }

/* ---------- Pago / destacar ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; padding: 26px 0 60px; align-items: start; }
.plan-hero { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 24px; position: relative; overflow: hidden; }
.plan-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); }
.plan-hero .price { font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; font-stretch: 112%; }
.plan-hero ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan-hero li { display: flex; gap: 10px; color: #dfe1d9; font-size: 14.5px; }
.plan-hero li .i { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.methods { display: grid; gap: 10px; }
.methods input { position: absolute; opacity: 0; pointer-events: none; }
.method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 650; }
.method .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; }
.method .amt { margin-left: auto; font-family: var(--font-display); font-weight: 800; }
.methods input:checked + .method { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; background: var(--accent-soft); }
.methods input:focus-visible + .method { outline: 3px solid var(--accent); }
.pay-details { display: none; margin-top: 12px; }
.pay-details.on { display: block; animation: fade .2s; }
.pay-data { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.pay-data div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pay-data div:last-child { border-bottom: 0; }
.copy-btn { border: 0; background: var(--bg); border-radius: 8px; padding: 5px 9px; font: 600 12.5px var(--font-body); display: inline-flex; align-items: center; gap: 5px; }
.copy-btn .i { width: 14px; height: 14px; }
.amount-box { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff; margin: 12px 0; }
.amount-box b { font-family: var(--font-display); font-size: 24px; color: var(--accent); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { display: flex; gap: 12px; font-size: 14px; }
.timeline .n { flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan.pro { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.plan.pro h2, .plan.pro .p-price { color: #fff; }
.plan .p-price { font-family: var(--font-display); font-size: 46px; font-weight: 800; line-height: 1; font-stretch: 112%; }
.plan .p-price small { font-size: 15px; font-family: var(--font-body); font-weight: 600; color: var(--muted); }
.plan.pro .p-price { color: var(--accent); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .i { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-deep); }
.plan.pro li { color: #dfe1d9; }
.plan.pro li .i { color: var(--accent); }
.plan .btn { margin-top: auto; }

/* ---------- Páginas de contenido ---------- */
.prose { max-width: 780px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 44px); margin: 10px auto 60px; font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 21px; margin-top: 1.6em; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); }

/* ---------- Comparador ---------- */
.compare-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 8px 8px 20px; display: none; align-items: center; gap: 14px; box-shadow: var(--shadow-3); }
.compare-bar.on { display: flex; animation: pop .2s; }
.compare-table th { width: 180px; }
.compare-table td img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.cmp-btn { position: absolute; left: 10px; bottom: 10px; z-index: 3; border: 0; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.92); display: inline-flex; align-items: center; gap: 5px; opacity: 0; transition: opacity .15s; }
.card:hover .cmp-btn, .cmp-btn.on { opacity: 1; }
.cmp-btn.on { background: var(--accent); }
.cmp-btn .i { width: 14px; height: 14px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15,15,15,.55); backdrop-filter: blur(3px); }
.modal.open { display: flex; animation: fade .15s; }
.modal-card { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-3); animation: pop .18s ease-out; }
.modal-card h2 { font-size: 22px; }
.modal-close { float: right; margin: -6px -6px 0 0; }

/* ---------- Cookies ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 95; max-width: 560px; background: var(--ink-2); color: #e7e9e1; border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-3); display: none; }
.cookie.on { display: block; animation: pop .25s ease-out; }
.cookie h2 { color: #fff; font-size: 18px; display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.cookie p { font-size: 14px; color: #b9bbb3; margin-bottom: 14px; }
.cookie p a { color: #fff; text-decoration: underline; }
.cookie .row { gap: 8px; }
.cookie .btn-ghost { --b-fg: #e7e9e1; }
.cookie .btn-ghost:hover { --b-bg: rgba(255,255,255,.08); }
.cookie-prefs { display: none; margin: 4px 0 14px; gap: 8px; }
.cookie-prefs.on { display: grid; }
.cookie-prefs .toggle { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.cookie-prefs .toggle span { color: #9ea097; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 60px; background: var(--ink-2); color: #b9bbb3; padding: 50px 0 26px; font-size: 14.5px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.site-footer h3 { color: #fff; font-size: 14px; font-family: var(--font-body); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer button.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.site-footer button.linklike:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2c2d29; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 12px; background: #23241f; display: grid; place-items: center; color: #fff; }
.social a:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- Login ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: clamp(30px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h1 { color: #fff; font-stretch: 112%; }
.auth-side h1 em { font-style: normal; color: var(--accent); }
.auth-side ul { list-style: none; padding: 0; display: grid; gap: 14px; margin: 20px 0 0; }
.auth-side li { display: flex; gap: 12px; color: #dfe1d9; }
.auth-side li .i { color: var(--accent); }
.auth-main { display: grid; place-items: center; padding: 30px 20px; }
.auth-card { width: min(420px, 100%); }
.btn-google { --b-bg: #fff; --b-fg: #1f1f1f; --b-bd: #d6d8d2; min-height: 54px; font-size: 16px; width: 100%; gap: 12px; }
.btn-google:hover { --b-bg: #f7f8f6; }
.btn-google .i { width: 22px; height: 22px; }
.legal-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* ---------- Errores ---------- */
.error-page { text-align: center; padding: 80px 20px; }
.error-page .code { font-family: var(--font-display); font-size: 110px; font-weight: 900; line-height: 1; color: var(--ink); font-stretch: 120%; }
.error-page .code span { color: var(--accent); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scroller { grid-auto-columns: calc((100% - 36px) / 3); }
  .searchbox { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sb-field { border-bottom: 1px solid var(--line); }
  .sb-field:nth-child(3) { border-right: 0; }
  .sb-field:nth-child(4), .sb-field:nth-child(5) { border-bottom: 0; }
  .sb-submit { grid-column: auto; margin: 6px 0 0 6px; }
  .types-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vd { grid-template-columns: minmax(0, 1fr) 340px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .main-nav, .header-actions .hide-m { display: none; }
  .nav-toggle { display: inline-grid; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--surface); padding: 16px 20px 30px; overflow: auto; }
  .mobile-nav.open { display: block; animation: fade .15s; }
  .mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 17px; }
  .mobile-nav .btn { margin-top: 16px; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 80; border-radius: 0; max-height: none; display: none; padding: 0 18px 90px; }
  .filters.open { display: block; animation: fade .15s; }
  .filters-head { display: flex; position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 14px 0; border-bottom: 1px solid var(--line); justify-content: space-between; align-items: center; }
  .filters-apply { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 18px; background: var(--surface); border-top: 1px solid var(--line); }
  .mobile-filter-btn { display: inline-flex; }
  .vd { grid-template-columns: 1fr; }
  .vd-panel { position: static; }
  .sticky-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -10px rgba(0,0,0,.2); }
  body.has-sticky { padding-bottom: 76px; }
  .panel-layout { grid-template-columns: 1fr; padding-top: 14px; }
  .panel-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .panel-nav::-webkit-scrollbar { display: none; }
  .panel-nav a { flex: none; padding: 9px 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
  .panel-nav .btn { display: none; }
  .cta-sell { grid-template-columns: 1fr; }
  .cta-sell-visual { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 30px 22px; }
  .auth-side ul { display: none; }
  .trust-row { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seller-stats { margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 12px; }
  .hero-card { border-radius: 18px; padding: 26px 16px 18px; }
  .hero-art svg { width: 130%; right: -45%; bottom: auto; top: 6px; opacity: .45; }
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 18px; }
  .searchbox { grid-template-columns: 1fr 1fr; border-radius: 16px; padding: 6px; }
  .sb-field { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .sb-field:nth-child(2n) { border-right: 0; }
  .sb-field:nth-child(5) { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
  .sb-submit { grid-column: 1 / -1; margin: 6px 0 0; min-height: 50px; }
  .grid-cards, .grid-cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .scroller { grid-auto-columns: 72%; gap: 12px; }
  .card-body { padding: 10px 12px 12px; gap: 6px; }
  .card-price { font-size: 18px; }
  .card-title { font-size: 14px; }
  .spec { font-size: 11.5px; padding: 3px 7px; }
  .grid-cards .specs .spec:nth-child(n+3) { display: none; }
  .card-foot { font-size: 12px; }
  .grid-cards .seller-chip { display: none; }
  .fav-btn { width: 34px; height: 34px; right: 8px; top: 8px; }
  .section { padding-top: 34px; }
  .types-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .type-tile { padding: 12px 6px 10px; font-size: 13px; }
  .type-tile svg.body { width: 64px; height: 30px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .kpis { gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .val { font-size: 24px; }
  .my-listing { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .my-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .my-actions .btn { flex: 1; }
  .wizard-steps li { font-size: 12.5px; padding: 10px; flex-direction: column; text-align: center; gap: 6px; }
  .spec-grid div { padding: 12px; gap: 10px; }
  .spec-grid .ic { width: 32px; height: 32px; }
  .vd-price { font-size: 30px; }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner-hero { min-height: 420px; }
  .banner-hero::before, .banner-mid::before { background: linear-gradient(0deg, rgba(15,15,15,.9) 0%, rgba(15,15,15,.55) 50%, rgba(15,15,15,.1) 100%); }
  .banner-hero .banner-inner, .banner-mid .banner-inner { justify-content: flex-end; min-height: inherit; }
  .banner-mid { min-height: 300px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 18px; }
  .compare-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; }
  .seller-hero { padding: 20px; }
}

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

@media print {
  .site-header, .site-footer, .cookie, .sticky-contact, .vd-actions, .fav-btn, .banner { display: none !important; }
  body { background: #fff; }
}

/* ---------- Utilidades (sin estilos en línea por la CSP) ---------- */
.p-14 { padding: 14px; } .p-dd { padding: 10px 12px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-14 { margin-top: 14px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mw-34 { max-width: 34ch; } .mw-60 { max-width: 60ch; } .mw-520 { max-width: 520px; } .mw-720 { max-width: 720px; }
.center { text-align: center; } .right { text-align: right; } .mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; } .fw-7 { font-weight: 700; } .fs-13 { font-size: 13px; } .fs-18 { font-size: 18px; }
.compare-bar .icon-btn { color: #fff; } .compare-bar .icon-btn:hover { background: rgba(255,255,255,.1); }
.text-accent { color: var(--accent-deep); } .text-ok { color: var(--ok); } .text-danger { color: var(--danger); } .text-warn { color: var(--warn); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.gap-6 { gap: 6px; } .gap-16 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Diseño sin cabecera (instalador, acceso admin) ---------- */
.bare-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 16px; gap: 26px; }
.bare-logo svg { height: 40px; }
.bare-card { width: min(720px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow-2); }
.bare-card.narrow { width: min(440px, 100%); }
.req { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 14px; }
.req li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--ok-soft); color: #145a33; }
.req li.bad { background: var(--danger-soft); color: #8c231b; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--bg); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
@media (max-width: 640px) { .req { grid-template-columns: 1fr; } }

.more-actions { position: relative; }
.more-actions summary { list-style: none; width: 100%; }
.more-actions summary::-webkit-details-marker { display: none; }
.more-actions .dropdown { display: none; z-index: 5; }
.more-actions[open] .dropdown { display: block; }
.my-listing.is-new { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.quota .meter i { width: 0; transition: width .4s ease; }

.lg-faint { background: var(--faint); } .lg-ink { background: var(--ink); } .lg-wa { background: var(--wa); }
form.inline { display: inline; }
.grid-span { grid-column: 1 / -1; }

.plan-hero .muted { color: #b9bbb3; }
.thumb-sm { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.step-card h2 .badge { vertical-align: 3px; margin-right: 6px; }

/* =========================================================
   Administración
   ========================================================= */
body.admin { background: #f1f2ee; }
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--ink-2); color: #c9cbc3; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; }
.admin-side .brand { color: #fff; padding: 0 8px; }
.admin-side .brand svg { height: 30px; }
.admin-tag { display: inline-block; margin: 10px 8px 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a, .admin-side-foot a, .admin-side-foot button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 550; font-size: 14.5px; color: #c9cbc3; background: none; border: 0; width: 100%; text-align: left; }
.admin-side nav a:hover, .admin-side-foot a:hover, .admin-side-foot button:hover { background: #23241f; color: #fff; }
.admin-side nav a.on { background: var(--accent); color: var(--accent-ink); }
.admin-side .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; }
.admin-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #2c2d29; display: grid; gap: 2px; }
.admin-main { padding: 20px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 20px; }
.admin-top h1 { font-size: 26px; margin: 0; flex: 1; }
.admin-menu { display: none; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 180px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cell-media { display: flex; gap: 12px; align-items: center; min-width: 240px; }
.cell-media img { width: 72px; height: 54px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg); }
.receipt-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.pay-review { display: grid; grid-template-columns: 140px minmax(0, 1fr) 280px; gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-items: start; }
.pay-review + .pay-review { margin-top: 12px; }
.pay-review dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 14px; }
.pay-review dt { color: var(--muted); }
.pay-review dd { margin: 0; font-weight: 600; }
.guide { background: var(--ink); color: #dfe1d9; border-radius: var(--radius); padding: 18px; font-size: 14px; }
.guide h3 { color: #fff; font-size: 16px; }
.guide dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.guide dt { color: #9ea097; }
.guide dd { margin: 0; color: #fff; font-weight: 600; }
.guide .tipline { margin-top: 12px; padding-top: 12px; border-top: 1px solid #3a3b36; color: #c9cbc3; }
.placement-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.placement-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: 13.5px; }
.placement-card b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.ratio-box { margin: 10px 0; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 8px; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.counter-hint { font-size: 12px; color: var(--muted); text-align: right; }
.counter-hint.over { color: var(--danger); font-weight: 700; }
.banner-preview-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; background: var(--surface); }
.health li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.health { list-style: none; margin: 0; padding: 0; }
@media (max-width: 1000px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 30% 0 0; z-index: 70; display: none; height: auto; }
  .admin-side.open { display: flex; }
  .admin-menu { display: inline-grid; }
  .pay-review { grid-template-columns: 1fr; }
}

/* ---------- Ajustes de pulido ---------- */
.i, .i-sm, .i-lg { display: inline-block; vertical-align: -0.2em; }
.tips li { display: block; position: relative; padding-left: 24px; }
.tips li > .i { position: absolute; left: 0; top: 2px; }
.spec-grid { background: var(--surface); gap: 0; }
.spec-grid div { box-shadow: 0 0 0 .5px var(--line); }
.wizard-steps { padding: 0; margin-left: 0; margin-right: 0; }
.show-m { display: none !important; }
@media (max-width: 900px) {
  .hide-m { display: none !important; }
  .show-m { display: inline-flex !important; }
}
@media (max-width: 900px) {
  .vd { display: flex; flex-direction: column; gap: 14px; }
  .vd > .stack { display: contents; }
  .vd > .stack > * { margin-top: 0 !important; min-width: 0; }
  .vd .gallery { order: 1; }
  .vd-panel { order: 2; min-width: 0; }
  .vd > .stack > .box { order: 3; }
  .gallery-main { aspect-ratio: 4 / 3; }
}
.vd-actions .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-actions .row .btn { padding-left: 8px; padding-right: 8px; min-width: 0; }
@media (max-width: 900px) { .vd-panel { width: 100%; } }
@media (max-width: 900px) { .header-actions { gap: 4px; } .site-header .wrap { gap: 10px; } .brand svg { height: 28px; } }

/* Acento sobre fondos oscuros: versión clara para textos pequeños */
.hero .eyebrow, .auth-side .eyebrow, .text-accent { color: var(--accent-light); }
.admin-tag { color: var(--accent-light); }

/* ---------- Barra de íconos inferior (móvil) ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -12px rgba(0,0,0,.25);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .tab .i { width: 24px; height: 24px; }
  .tab-ic { position: relative; display: grid; place-items: center; height: 28px; }
  .tab.on { color: var(--accent); }
  .tab.on .tab-txt { color: var(--ink-2); }
  .tab-center .tab-ic { width: 52px; height: 52px; margin-top: -24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); border: 4px solid #fff; }
  .tab-center .i { width: 26px; height: 26px; }
  .tab-center { color: var(--ink-2); }
  .tab-dot { position: absolute; top: 0; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
  body:not(.no-tabbar):not(.admin):not(.bare) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.no-tabbar .tabbar { display: none; }
  body:not(.no-tabbar) .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:not(.no-tabbar) .compare-bar { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 20px; }
}

/* =========================================================
   Movimiento y gestos
   ========================================================= */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* 1. Transiciones entre pantallas (Chrome/Edge 126+, Safari 18.2+; el resto carga normal) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.tabbar { view-transition-name: tabbar; }
.vt-photo { view-transition-name: car-photo; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
::view-transition-group(car-photo) { animation-duration: .45s; animation-timing-function: var(--ease-out); }
::view-transition-old(car-photo), ::view-transition-new(car-photo) { animation-duration: .45s; height: 100%; object-fit: cover; overflow: clip; }
::view-transition-group(site-header), ::view-transition-group(tabbar) { animation: none; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px) scale(.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* 2. Aparición al hacer scroll */
[data-rv] { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--rv-delay, 0ms); }
[data-rv].in { opacity: 1; transform: none; }

/* 3. Respuesta al presionar */
.btn, .tab, .chip-dark, .brand-pill, .type-tile, .city-switch, .af, .seg label, .choice-cards label, .method, .icon-btn, .fav-btn, .g-nav, .copy-btn, .swipe-btn {
  transition: transform .18s var(--ease-spring), background .15s, border-color .15s, box-shadow .2s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .chip-dark:active, .brand-pill:active, .city-switch:active, .af:active, .seg label:active, .copy-btn:active, .swipe-btn:active { transform: scale(.95); }
.icon-btn:active, .fav-btn:active, .g-nav:active { transform: scale(.88); }
.tab:active .tab-ic { transform: scale(.86); }
.tab-ic { transition: transform .2s var(--ease-spring); }
.tab-center:active .tab-ic { transform: scale(.9) rotate(90deg); }
.type-tile:active, .choice-cards label:active, .method:active { transform: scale(.97); }
.card:active { transform: scale(.985); transition-duration: .1s; }
a.link-more:active { opacity: .6; }

/* Inclinación 3D de tarjetas con brillo que sigue al cursor (sólo escritorio) */
@media (hover: hover) and (pointer: fine) {
  .card, .type-tile, .plan { transform-style: preserve-3d; transition: transform .35s var(--ease-out), box-shadow .25s, border-color .2s; }
  .card.tilting, .type-tile.tilting, .plan.tilting { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-3px); transition-duration: .08s; }
  .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .25s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 45%); z-index: 4; }
  .card.tilting::after { opacity: 1; }
}

/* Favorito: pequeño «latido» con destello */
.fav-btn.pop .i, [data-fav].pop .i { animation: heart-pop .5s var(--ease-spring); }
.fav-btn.pop { animation: ring .5s ease-out; }
@keyframes heart-pop { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, #e0334b 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }

/* Parallax del hero */
.hero-art svg, .hero-glow { will-change: transform; }

/* 4. Galería deslizable */
.gallery-main { position: relative; overflow: hidden; }
.g-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: zoom-in; touch-action: pan-x pan-y; }
.g-track::-webkit-scrollbar { display: none; }
.g-track.dragging { scroll-snap-type: none; cursor: grabbing; }
.g-track:focus-visible { outline-offset: -4px; }
.g-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.g-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.g-zoom { position: absolute; left: 12px; bottom: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgba(21,21,21,.7); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.gallery-thumbs button { transition: opacity .2s, border-color .2s, transform .2s var(--ease-spring); }
.gallery-thumbs button:active { transform: scale(.92); }

/* 5. Visor a pantalla completa */
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; color: #fff; opacity: 0; transition: opacity .25s var(--ease-out); }
.lb.on { opacity: 1; }
.lb.off { opacity: 0; }
.lb-bg { position: absolute; inset: 0; background: #0b0b0b; transition: opacity .2s; }
.lb-track { position: relative; flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track.zoomed { overflow: hidden; touch-action: none; }
.lb-slide { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb.on .lb-slide img { animation: lb-in .35s var(--ease-out); }
@keyframes lb-in { from { transform: scale(.94); opacity: .4; } }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; background: linear-gradient(rgba(0,0,0,.55), transparent); z-index: 2; font-weight: 700; font-size: 14px; }
.lb-close { width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lb-close:active { transform: scale(.88); }
.lb-hint { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.6); margin: 0; animation: hint-out 4s forwards; pointer-events: none; }
@keyframes hint-out { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* 6. Deslizar para acciones en «Mis anuncios» */
.swipe { position: relative; border-radius: var(--radius); }
.swipe + .swipe { margin-top: 12px; }
.swipe .my-listing + .my-listing { margin-top: 0; }
.swipe-front { position: relative; z-index: 1; transition: transform .3s var(--ease-out); touch-action: pan-y; }
.swipe-actions { position: absolute; inset: 0 0 0 auto; display: none; gap: 0; border-radius: var(--radius); overflow: hidden; }
.swipe-actions form { display: flex; }
.swipe-btn { width: 84px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; font-weight: 700; background: var(--ink); color: #fff; }
.swipe-btn.sold { background: var(--ok); }
@media (max-width: 900px) { .swipe-actions { display: flex; } }

/* Sin movimiento si el sistema lo pide */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
}
