/* Vynorixx — línea gráfica: #00D1FF, #0066FF, #0A1A3A, #050B1A, #FFFFFF */
:root {
  --electric: #00D1FF;
  --blue: #2B6BFF;
  --blue-medium: #0066FF;
  --navy: #0A1A3A;
  --ink: #050B1A;
  --white: #FFFFFF;
  --surface: #121B2E;
  --surface-2: #17223A;
  --tile: #141C2C;
  --line: rgba(120, 150, 220, .16);
  --line-strong: rgba(43, 107, 255, .55);
  --text: #F3F6FC;
  --muted: #9AA6BD;
  --danger: #F2545B;
  --gold: #F5B83D;
  --radius: 22px;
  --radius-sm: 14px;
  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --nav-h: 76px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* Fondo: los mismos tres brillos de siempre, ahora flotando despacio (como las burbujas de la app),
   y encima luces pequeñas que suben (canvas #bg-particles, app.js). Solo movimiento, sin parpadeo. */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: var(--ink); }
.bg-glow::before, .bg-glow::after { content: ''; position: absolute; inset: -12%; will-change: transform; }
.bg-glow::before {
  background:
    radial-gradient(60vw 40vh at 10% -5%, rgba(20, 70, 200, .55), transparent 70%),
    radial-gradient(40vw 40vh at 95% 35%, rgba(70, 40, 160, .22), transparent 70%);
  animation: glow-drift-a 26s ease-in-out infinite alternate;
}
.bg-glow::after {
  background: radial-gradient(40vw 35vh at 0% 90%, rgba(0, 120, 140, .10), transparent 70%);
  animation: glow-drift-b 32s ease-in-out infinite alternate;
}
@keyframes glow-drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(4vw, 3vh, 0) scale(1.08); } }
@keyframes glow-drift-b { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(5vw, -4vh, 0) scale(1.1); } }
#bg-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

svg.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.fill { fill: currentColor; stroke: none; }

/* ---------- Top bar (escritorio) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 11, 26, .72);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1540px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 56px; height: auto; }
.brand-name { font-family: var(--font-title); font-weight: 800; letter-spacing: .06em; font-size: 20px; }
.topnav { display: flex; gap: 6px; flex: 1; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.topnav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.topnav a.active { color: var(--blue); background: rgba(43,107,255,.12); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 20px;
}
.icon-btn:hover { border-color: var(--line-strong); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 16px; border: 0;
  font-weight: 600; font-size: 17px; transition: transform .12s, filter .12s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 26px rgba(43,107,255,.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; border: 1.5px solid var(--line-strong); color: var(--blue); }
.btn-block { width: 100%; }
.btn-publish { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-publish [data-icon] { font-size: 18px; display: inline-flex; }
.link { color: var(--blue); font-weight: 600; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Layout ---------- */
main { max-width: 1540px; margin: 0 auto; padding: 24px 24px 56px; outline: none; }
.page-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 24px; }
.page-head h1 { font-family: var(--font-body); font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); }
.back { font-size: 28px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: none; border: 0; }
.back:hover { background: rgba(255,255,255,.06); }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 17px; }

.card {
  background: linear-gradient(180deg, rgba(23,34,58,.85), rgba(16,24,42,.85));
  border: 1px solid var(--line); border-radius: var(--radius);
}

/* ---------- Inicio ---------- */
.home-top { display: flex; flex-direction: column; align-items: center; gap: 44px; padding: 28px 0 0; }
.hero { text-align: center; padding: 36px 0 8px; }
.hero h1 {
  font-family: var(--font-title); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(34px, 5vw, 60px); line-height: 1.05; margin: 0 0 14px;
}
.hero .lead { color: #C9D2E3; font-size: clamp(17px, 2vw, 21px); margin: 0 0 26px; }
.hero .searchbar { margin: 0 auto; text-align: left; }
.hero-logo { width: 100%; height: auto; max-width: 340px; filter: drop-shadow(0 10px 40px rgba(0,140,255,.45)); }

/* ---------- Publicidad ---------- */
.ads { width: 100%; max-width: 1080px; margin-inline: auto; }
.ads-track { position: relative; height: 200px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ad-slide {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  border-radius: var(--radius); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s;
}
.ad-slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; z-index: 1; }
.ad-slide.blue { background: linear-gradient(120deg, #13306f, #0d1938 70%); }
.ad-slide.teal { background: linear-gradient(120deg, #0b4a5c, #0b1c33 70%); }
.ad-slide.violet { background: linear-gradient(120deg, #3a2479, #111a38 70%); }
.ad-text { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px 28px; min-width: 0; }
.ad-label { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #C9D2E3; background: rgba(5,11,26,.45); border: 1px solid rgba(255,255,255,.12); padding: 3px 9px; border-radius: 999px; }
.ad-advertiser { color: var(--electric); font-weight: 600; font-size: 14px; margin-top: 4px; }
.ad-title { font-family: var(--font-title); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.01em; }
.ad-sub { color: #C9D2E3; font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ad-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 600; color: #fff; }
.ad-art { position: relative; overflow: hidden; display: grid; place-items: center; }
.ad-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-slide .ad-art img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.ad-icon { width: 120px; height: 120px; border-radius: 34px; display: grid; place-items: center; font-size: 56px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.ad-dots { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
/* Botón de 24 px de alto para tocarlo fácil; la barra visible (6 px) es ::before y el progreso ::after. */
.ad-dot { position: relative; width: 34px; height: 24px; padding: 0; border: 0; background: none; }
.ad-dot::before, .ad-dot.on::after { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 6px; border-radius: 999px; }
.ad-dot::before { background: rgba(255,255,255,.18); }
.ad-dot.on { width: 52px; }
.ad-dot.on::after { background: var(--blue); transform-origin: left; animation: ad-progress var(--ad-seconds) linear forwards; }
.ads.paused .ad-dot.on::after { animation-play-state: paused; }
@keyframes ad-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ad-page { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.ad-hero { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); }
.ad-hero.blue { background: linear-gradient(135deg, #13306f, #0d1938); }
.ad-hero.teal { background: linear-gradient(135deg, #0b4a5c, #0b1c33); }
.ad-hero.violet { background: linear-gradient(135deg, #3a2479, #111a38); }
.ad-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-hero .ad-icon { width: 160px; height: 160px; font-size: 76px; border-radius: 44px; }
.ad-info { padding: 26px; }
.ad-info h2 { font-family: var(--font-title); font-size: 30px; line-height: 1.1; margin: 14px 0 8px; }
.ad-page-sub { color: #C9D2E3; font-size: 18px; margin: 0 0 14px; }
.ad-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 6px; }
.ad-note { margin-top: 20px; }

.searchbar {
  display: flex; align-items: center; gap: 12px;
  background: #1F2738; border: 1px solid transparent; border-radius: 999px;
  padding: 0 10px 0 22px; height: 64px; max-width: 640px;
}
.searchbar:focus-within { border-color: var(--line-strong); }
.searchbar > [data-icon] { font-size: 22px; color: #C9D2E3; display: inline-flex; }
.searchbar input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 19px; }
.searchbar input::placeholder { color: #8C96A8; }
.searchbar .icon-btn { border: 0; background: none; font-size: 22px; color: #C9D2E3; }

.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 22px 14px; margin-top: 36px; }
@media (min-width: 901px) {
  .cat-grid .cat[href$="cat=helicopteros"] { grid-column: 7; grid-row: 1; }
  .cat-grid .cat[href$="cat=aviones"] { grid-column: 7; grid-row: 2; }
}
.cat { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #C9D2E3; font-size: 16px; text-align: center; }
.cat-icon {
  width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(180deg, #1A2232, #10161F); border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.35);
  transition: transform .15s, border-color .15s;
}
.cat:hover .cat-icon { transform: translateY(-3px); border-color: var(--line-strong); color: #fff; }
/* Imágenes de categoría (vehículos blancos, fondo transparente): ocupan casi toda la tarjeta, que no cambia de tamaño. */
.cat-img { display: block; width: 1.25em; height: 1.25em; object-fit: contain; }
.cat-icon .cat-img { width: 72px; height: 72px; }
.vcard-media .cat-img { width: 96px; height: 96px; }

.discover {
  display: flex; align-items: center; gap: 24px; padding: 24px 28px; margin-top: 40px;
  background: linear-gradient(120deg, #142650, #101a33 60%); border: 1px solid rgba(43,107,255,.4); border-radius: var(--radius);
}
.discover-stack { position: relative; width: 120px; height: 100px; flex: none; }
.discover-stack span {
  position: absolute; inset: 6px 14px; border-radius: 16px; background: #0B111D; border: 2px solid #1B2436;
  display: grid; place-items: center; font-size: 26px; color: #6E7B93;
}
.discover-stack span:nth-child(1) { transform: rotate(-8deg) translateX(-8px); }
.discover-stack span:nth-child(2) { transform: rotate(4deg) translateX(4px); }
.discover h3 { margin: 0 0 4px; font-size: 26px; }
.discover p { margin: 0; color: var(--muted); font-size: 18px; }
.discover .go { margin-left: auto; width: 60px; height: 60px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-size: 26px; flex: none; }

.premium-card { padding: 28px; max-width: 420px; }
.premium-badge {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  background: rgba(120,150,220,.12); border: 1px solid var(--line); margin-bottom: 22px;
}
.premium-card h3 { font-size: 26px; margin: 0 0 12px; }
.premium-card p { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.premium-card a { font-weight: 600; font-size: 18px; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Listados ---------- */
.grid-listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.vcard { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease-out, border-color .2s, box-shadow .2s; }
.vcard-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #0B111D; display: grid; place-items: center; color: #3A4760; font-size: 48px; }
.vcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
@media (hover: hover) {
  .vcard:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 16px 36px rgba(0,0,0,.45), 0 6px 28px rgba(43,107,255,.2); }
  .vcard:hover .vcard-media img { transform: scale(1.04); }
}
.vcard-fav {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(5,11,26,.65); border: 0; display: grid; place-items: center; font-size: 20px; color: #fff;
}
.vcard-fav.on { color: #FF5A7A; }
.vcard-badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: linear-gradient(90deg, var(--blue-medium), var(--electric)); color: #fff;
}
.vcard-badge.demo { background: rgba(5,11,26,.7); color: var(--muted); border: 1px solid var(--line); }
.vcard-fav.on svg { fill: currentColor; }
.vcard-body { padding: 16px 18px 18px; }
.vcard-title { font-weight: 600; font-size: 17px; margin: 0 0 4px; }
.vcard-price { color: var(--blue); font-family: var(--font-title); font-weight: 700; font-size: 22px; letter-spacing: -.01em; margin: 0 0 10px; }
.vcard-meta { display: flex; gap: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.vcard-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Estados vacíos ---------- */
.empty { text-align: center; padding: 56px 16px; max-width: 520px; margin: 0 auto; }
.empty-icon { width: 120px; height: 120px; border-radius: 50%; background: #13203B; display: grid; place-items: center; font-size: 46px; color: var(--blue); margin: 0 auto 26px; }
.empty h2 { font-size: 30px; margin: 0 0 10px; }
.empty p { color: var(--muted); font-size: 19px; margin: 0 0 28px; }

/* ---------- Buscar ---------- */
.chips { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 22px; border-radius: 999px; background: #121A2A; border: 1px solid var(--line); font-size: 18px; color: #D3DAE7;
}
.chip [data-icon] { color: var(--blue); display: inline-flex; }
.chip:hover { border-color: var(--line-strong); }
.row-card { display: flex; align-items: center; gap: 20px; padding: 22px 24px; margin-top: 18px; }
.row-card.highlight { background: linear-gradient(120deg, #182c62, #121c38); border-color: rgba(43,107,255,.55); }
.row-card h3 { margin: 0 0 4px; font-size: 22px; }
.row-card p { margin: 0; color: var(--muted); font-size: 17px; }
.row-card .chev { margin-left: auto; color: var(--muted); font-size: 24px; display: inline-flex; }
.sq-icon { width: 80px; height: 80px; border-radius: 20px; background: var(--blue); display: grid; place-items: center; font-size: 34px; color: #fff; flex: none; }
.plain-icon { font-size: 30px; color: var(--blue); display: inline-flex; flex: none; }
.explore-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.explore-item { display: flex; align-items: stretch; overflow: hidden; min-height: 140px; }
.explore-art { width: 34%; flex: none; display: grid; place-items: center; font-size: 56px; color: rgba(255,255,255,.85); }
.explore-art.a { background: radial-gradient(circle at 30% 30%, #1fb6ff, #0a3c8c 70%); }
.explore-art.b { background: radial-gradient(circle at 30% 30%, #4a5770, #0b111d 70%); }
.explore-art.c { background: radial-gradient(circle at 30% 30%, #6d7f9a, #1a2333 70%); }
.explore-info { display: flex; align-items: center; gap: 18px; padding: 18px 20px; flex: 1; min-width: 0; }
.explore-info .sq-icon { width: 64px; height: 64px; font-size: 28px; border-radius: 16px; }
.explore-info h3 { margin: 0; font-size: 22px; }
.explore-info p { margin: 2px 0; color: var(--muted); }
.explore-info .chev { margin-left: auto; color: var(--muted); font-size: 22px; display: inline-flex; }

/* ---------- Resultados ---------- */
.results-head { text-align: center; position: relative; margin: 4px 0 20px; }
.results-head h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); }
.results-head .back { position: absolute; left: 0; top: 6px; }
.results-head .tools { position: absolute; right: 0; top: 6px; display: flex; gap: 6px; }
.results-head .tools button { background: none; border: 0; font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.results-head .tools button:hover { background: rgba(255,255,255,.06); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 6px; background: #0E1524; border: 1px solid var(--line); border-radius: 999px; max-width: 560px; margin: 0 auto 18px; }
.segmented button { border: 0; background: none; height: 52px; border-radius: 999px; font-size: 19px; color: var(--muted); }
.segmented button.on { background: var(--blue); color: #fff; }
.filters-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pill-select {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: #0E1730; font-size: 17px;
}
.pill-select [data-icon] { color: var(--blue); display: inline-flex; }
select.plain { background: transparent; border: 0; color: var(--muted); font-size: 17px; outline: none; }
select.plain option { background: var(--ink); color: var(--text); }
.tag { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #0E1730; font-size: 17px; }
.tag button { background: none; border: 0; display: inline-flex; font-size: 18px; padding: 0; }
.map-placeholder { height: 420px; display: grid; place-items: center; text-align: center; color: var(--muted); }

/* ---------- Formularios / publicar ---------- */
.wizard { max-width: 760px; margin: 0 auto; }
.wizard-head { text-align: center; position: relative; padding: 18px 0 18px; }
.wizard-head h1 { margin: 0; font-size: clamp(26px, 3.5vw, 34px); }
.wizard-head .sub { color: var(--muted); font-size: 18px; }
.wizard-head .back { position: absolute; left: 0; top: 24px; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 6px 0 28px; }
.progress span { height: 6px; border-radius: 6px; background: #1F2A3F; }
.progress span.on { background: var(--blue); }
.wizard h2 { font-size: 32px; margin: 0 0 10px; }
.wizard .intro { color: #B9C3D6; font-size: 19px; margin: 0 0 24px; }
.drop-row { display: flex; gap: 16px; flex-wrap: wrap; }
.drop {
  width: 168px; height: 168px; border: 2px dashed rgba(43,107,255,.55); border-radius: 18px; background: #101828;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--blue); font-weight: 600; font-size: 18px; cursor: pointer;
}
.drop [data-icon] { font-size: 36px; display: inline-flex; }
.drop:hover { background: #13203a; }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #0B111D; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(5,11,26,.75); color: #fff; display: grid; place-items: center; }
.thumb .cover { position: absolute; left: 6px; bottom: 6px; font-size: 12px; background: var(--blue); padding: 2px 8px; border-radius: 999px; }
.hint { color: var(--muted); font-size: 17px; margin: 16px 0 24px; }
.video-drop {
  display: flex; align-items: center; gap: 18px; padding: 20px 28px; border: 2px dashed rgba(43,107,255,.55); border-radius: 18px; background: #101828; cursor: pointer;
}
.video-drop [data-icon] { font-size: 34px; color: var(--blue); display: inline-flex; }
.video-drop strong { color: var(--blue); font-size: 19px; display: block; }
.video-drop input { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 15px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 14px; background: #101828; border: 1.5px solid var(--line); font-size: 17px; outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field .err { color: var(--danger); font-size: 14px; margin-top: 6px; min-height: 1em; }
.field select option { background: var(--ink); }
/* Listas desplegables con buscador (marca, modelo, versión): la flechita abre la lista completa. */
.combo { position: relative; }
.field .combo input { padding-right: 54px; }
.combo-btn { position: absolute; right: 6px; top: 6px; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.combo-btn:hover, .combo-btn:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.06); outline: none; }
.combo-btn .ic { width: 20px; height: 20px; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 300px; overflow-y: auto; padding: 6px; background: #0d1626; border: 1.5px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.combo-opt { display: block; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: 16px; cursor: pointer; }
.combo-opt:hover, .combo-opt:focus-visible { background: rgba(31, 107, 255, 0.18); outline: none; }
.combo-opt.on { color: var(--blue); font-weight: 600; }
.combo-note { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 14px; }
.vin-row { display: flex; flex-wrap: wrap; gap: 10px; }
.vin-row input { flex: 1 1 220px; text-transform: uppercase; letter-spacing: 0.5px; }
.vin-row .btn { white-space: nowrap; }
.wizard-foot { position: sticky; bottom: 0; padding: 18px 0 18px; margin-top: 32px; background: linear-gradient(transparent, var(--ink) 30%); display: flex; gap: 12px; }
.review { padding: 22px; }
.review dl, .specs { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px 22px; margin: 0; }
.review dt, .specs dt { color: var(--muted); }
.review dt, .specs dt, .review dd, .specs dd { min-width: 0; overflow-wrap: anywhere; }
.review dd, .specs dd { margin: 0; font-weight: 500; }

/* ---------- Perfil ---------- */
.profile-wrap { max-width: 860px; margin: 0 auto; }
.profile-card { display: flex; align-items: center; gap: 26px; padding: 26px 30px; }
.avatar { width: 112px; height: 112px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: 40px; flex: none; }
.profile-card h2 { margin: 0 0 4px; font-size: 30px; }
.profile-card .muted { font-size: 19px; }
.stars { display: flex; align-items: center; gap: 4px; color: var(--gold); font-size: 20px; margin-top: 6px; }
.stars .muted { margin-left: 8px; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 22px 10px; margin-top: 22px; text-align: center; }
.stats strong { display: block; font-size: 34px; font-family: var(--font-title); }
.stats span { color: var(--muted); font-size: 18px; }
.public-btn { margin-top: 22px; width: 100%; height: 76px; border-radius: var(--radius); font-size: 21px; background: rgba(14,23,48,.6); }
.group-label { color: var(--muted); letter-spacing: .12em; font-weight: 700; font-size: 16px; margin: 40px 0 14px 8px; text-transform: uppercase; }
.list { overflow: hidden; }
.list a, .list button.li {
  display: flex; align-items: center; gap: 22px; width: 100%; padding: 18px 26px; border: 0; background: none; text-align: left; font-size: 21px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.list > :last-child { border-bottom: 0; }
.list a:hover, .list button.li:hover { background: rgba(255,255,255,.03); }
.li-icon { width: 58px; height: 58px; border-radius: 16px; background: #1A2846; display: grid; place-items: center; font-size: 26px; color: var(--blue); flex: none; }
.li-end { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 19px; }
.li-end [data-icon] { font-size: 22px; display: inline-flex; }
.danger { color: var(--danger); }
.li-icon.danger-bg { background: #3A1A22; color: var(--danger); }

/* ---------- Detalle ---------- */
.detail {
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr; gap: 0 28px;
  grid-template-areas: "media info" "body info";
}
.detail-media { grid-area: media; }
.detail-body { grid-area: body; }
.detail-info { grid-area: info; }
.gallery-main { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: #0B111D; display: grid; place-items: center; font-size: 72px; color: #3A4760; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #0B111D; flex: none; }
.gallery-thumbs button.on { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 26px; align-self: start; }
.detail-info h1 { margin: 0 0 6px; font-size: 30px; }
.detail-info .price { color: var(--blue); font-family: var(--font-title); font-size: 34px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 18px; }
.detail-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.detail-actions .btn { white-space: nowrap; }
.detail-actions .btn-block { flex: 1; width: auto; }
.detail-actions p { flex: 1; margin: 0; }
/* ---------- Login / descarga ---------- */
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 14px; white-space: nowrap; }
.btn-publish { white-space: nowrap; }
.btn-sm [data-icon] { display: inline-flex; font-size: 18px; }
.center { text-align: center; }
.empty-icon.ok { background: rgba(34,197,94,.14); color: #22C55E; }
.verify { max-width: 600px; }
.verify-steps { list-style: none; padding: 18px 20px; margin: 0 0 24px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(16,24,40,.7); display: grid; gap: 14px; }
.verify-steps li { display: flex; gap: 12px; align-items: flex-start; color: #C9D2E3; }
.verify-steps svg { font-size: 22px; color: var(--blue); flex: none; margin-top: 1px; }
.verify-error { color: var(--danger) !important; font-weight: 600; }
.verify-privacy { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin-top: 26px !important; }
.verify-privacy svg { flex: none; margin-top: 2px; color: var(--blue); }
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.form-error { color: var(--danger); margin: 0; min-height: 1em; font-size: 15px; }
.download { text-align: center; }
.download-logo { width: 160px; margin: 0 auto 8px; filter: drop-shadow(0 6px 24px rgba(0,140,255,.45)); }
.store-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.store-btn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #050B1A; text-align: left; }
.store-btn svg { font-size: 26px; }
.store-btn small { display: block; font-size: 11px; opacity: .7; }
.store-btn strong { font-size: 17px; }
.store-btn.soon { background: #1A2338; color: var(--text); cursor: default; }
@media (max-width: 1100px) { .topbar .btn-sm .lbl { display: none; } .topbar .btn-sm { width: 44px; padding: 0; border-radius: 50%; } }
@media (max-width: 420px) { .store-row { grid-template-columns: 1fr; } }

/* ---------- Tipo de vendedor ---------- */
.dealer-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: rgba(0,209,255,.12); color: var(--electric); font-size: 12px; font-weight: 600; }
.seller-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.seller-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seller-opt > span { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; border: 1.5px solid var(--line); background: #101828; cursor: pointer; height: 100%; }
.seller-opt > span svg { font-size: 26px; color: var(--blue); margin-bottom: 4px; }
.seller-opt strong { font-size: 18px; }
.seller-opt input:checked + span { border-color: var(--blue); background: rgba(43,107,255,.14); }
.seller-opt input:focus-visible + span { outline: 2px solid var(--electric); }
[hidden] { display: none !important; }

/* ---------- Financiamiento ---------- */
.finance { padding: 24px; margin-top: 28px; }
.finance-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.finance-head h2 { margin: 0; font-size: 22px; }
.finance-head p { margin: 2px 0 0; }
.finance input[type="range"] { width: 100%; accent-color: var(--blue); min-height: 0; padding: 0; border: 0; background: none; height: 28px; }
.term-row { display: flex; flex-wrap: wrap; gap: 8px; }
.term input { position: absolute; opacity: 0; pointer-events: none; }
.term span { display: inline-block; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #101828; cursor: pointer; font-size: 15px; }
.term input:checked + span { border-color: var(--blue); background: rgba(43,107,255,.18); color: #fff; }
.term input:focus-visible + span { outline: 2px solid var(--electric); }
.finance-out { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 22px 0 10px; padding: 20px; border-radius: 16px; background: rgba(43,107,255,.1); border: 1px solid rgba(43,107,255,.35); }
.monthly { display: flex; flex-direction: column; gap: 4px; }
.monthly strong { font-family: var(--font-title); font-size: 34px; color: #fff; }
@media (max-width: 767px) { .finance-out { grid-template-columns: 1fr; } .monthly strong { font-size: 28px; } }

/* ---------- Análisis de precio ---------- */
.price-chip { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; font-family: var(--font-body); }
.price-chip.great, .gauge.great .gauge-head strong { color: #22C55E; }
.price-chip.good, .gauge.good .gauge-head strong { color: #86EFAC; }
.price-chip.fair, .gauge.fair .gauge-head strong { color: var(--electric); }
.price-chip.high, .gauge.high .gauge-head strong { color: #FB923C; }
.price-chip.over, .gauge.over .gauge-head strong { color: #F2545B; }
.price-chip.low, .gauge.low .gauge-head strong { color: #F5B301; }
.price-chip.low { background: rgba(245,179,1,.15); }
.price-warning { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 18px; border-radius: 14px; border: 1px solid rgba(245,179,1,.45); background: rgba(245,179,1,.1); }
.price-warning > svg { font-size: 22px; color: #F5B301; margin-top: 1px; }
.price-warning strong { color: #F5B301; }
.price-warning p { margin: 4px 0 0; font-size: 15px; }
.price-chip.great { background: rgba(34,197,94,.14); }
.price-chip.good { background: rgba(134,239,172,.12); }
.price-chip.fair { background: rgba(0,209,255,.12); }
.price-chip.high { background: rgba(251,146,60,.14); }
.price-chip.over { background: rgba(242,84,91,.15); }
.gauge { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.review .gauge { margin-top: 0; padding-top: 0; border-top: 0; }
.gauge-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gauge-head strong { font-size: 20px; }
.gauge-bar { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #22C55E 0%, #86EFAC 30%, #00D1FF 50%, #FB923C 72%, #F2545B 100%); }
.gauge-marker { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0,0,0,.5); }
.gauge-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin: 8px 0 10px; }
.gauge p { margin: 4px 0; }
.desc { white-space: pre-line; color: #C9D2E3; }

/* ---------- Páginas de texto ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-family: var(--font-title); font-size: 36px; }
.prose h2 { font-size: 22px; margin-top: 30px; }
.prose p, .prose li { color: #C9D2E3; font-size: 17px; }
.plan-card { padding: 28px; max-width: 420px; margin: 20px 0; border-color: rgba(43,107,255,.55); background: linear-gradient(135deg, #142a5e, #0f1a33); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-family: var(--font-title); font-size: 48px; }
.plan-price span { color: var(--muted); font-size: 20px; }
.plan-note { margin-top: 16px; }
.plan-note p { margin: 6px 0 12px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.feature { padding: 22px; text-align: center; }
.feature [data-icon] { font-size: 34px; color: var(--electric); display: inline-flex; margin-bottom: 8px; }

/* ---------- Modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(2,6,15,.7); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { width: min(460px, 100%); padding: 26px; }
.modal h2 { margin: 0 0 14px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: flex-end; }
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 90;
  background: #1B2A4A; border: 1px solid var(--line-strong); padding: 14px 22px; border-radius: 14px; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: linear-gradient(180deg, rgba(10,26,58,.35), transparent); }
.footer-inner { max-width: 1540px; margin: 0 auto; padding: 40px 24px 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px 40px; }
.footer-about p { margin: 8px 0 18px; max-width: 320px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 800; letter-spacing: .08em; font-size: 20px; }
.footer-brand img { width: 44px; height: auto; }
.footer-col h3 { margin: 4px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #C9D2E3; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.lang-switch [data-icon] { display: inline-flex; font-size: 16px; margin-right: 4px; }
.lang-switch button { background: none; border: 1px solid transparent; border-radius: 999px; padding: 6px 12px; color: var(--muted); font-size: 14px; }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { color: var(--text); border-color: var(--line-strong); background: rgba(43,107,255,.12); }
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr 1fr; padding: 32px 16px 24px; gap: 28px 20px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-glow::before, .bg-glow::after { animation: none; }
  .vcard, .vcard-media img, .cat-icon, .ad-slide, .ad-slide.on { transition: none; }
  .vcard:hover, .vcard:hover .vcard-media img { transform: none; }
}

/* ---------- Bottom nav (móvil) ---------- */
.bottomnav { display: none; }

@media (max-width: 900px) {
  .ad-page { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .detail { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "media" "info" "body"; gap: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  main { padding: 12px 16px calc(var(--nav-h) + 40px); }
  .topbar-inner { padding: 10px 16px; gap: 12px; }
  .topnav, .btn-publish, .brand-name { display: none; }
  .brand { margin-right: auto; }
  .site-footer { padding-bottom: calc(var(--nav-h) + 20px); }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(8,12,22,.96); border-top: 1px solid rgba(255,255,255,.06);
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: #9AA6BD; }
  .bottomnav a [data-icon] { font-size: 26px; display: inline-flex; }
  .bottomnav a.active { color: var(--blue); }
  .bottomnav .fab {
    width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; justify-self: center; justify-content: center;
    box-shadow: 0 0 26px rgba(43,107,255,.55); margin-top: -8px;
  }
  .bottomnav .fab [data-icon] { font-size: 30px; }
  .wizard-foot { bottom: var(--nav-h); }
  .hero-logo { max-width: 210px; }
  .home-top { gap: 30px; padding-top: 16px; }
  .hero { padding-top: 26px; }
  .ads-track { height: 200px; }
  .ad-slide { grid-template-columns: 1.4fr 1fr; }
  .ad-text { padding: 16px 0 16px 16px; gap: 4px; }
  .ad-advertiser { font-size: 12px; }
  .ad-title { font-size: 19px; }
  .ad-sub { font-size: 13px; }
  .ad-cta { font-size: 14px; }
  .ad-icon { width: 76px; height: 76px; border-radius: 22px; font-size: 36px; }
  .ad-info { padding: 20px; }
  .ad-info h2 { font-size: 24px; }
  .ad-actions .btn { flex: 1 1 100%; }
  .section-head { align-items: center; }
  .section-head p { font-size: 14px; }
  .section-head .link { white-space: nowrap; flex: none; }
  .detail-info { padding: 20px; }
  .detail-body > :first-child { margin-top: 8px; }
  /* Tarjetas compactas en 2 columnas; Premium como carrusel horizontal */
  .grid-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-listings .vcard { border-radius: 18px; }
  .vcard-body { padding: 10px 12px 12px; }
  .vcard-title { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .vcard-price { font-size: 17px; margin-bottom: 6px; }
  .vcard-price .price-chip { display: table; margin: 4px 0 0; font-size: 11px; padding: 2px 8px; }
  .vcard-meta { gap: 4px 10px; font-size: 12px; }
  .vcard-meta > span:nth-child(2) { display: none; }
  .vcard-fav { top: 8px; right: 8px; width: 32px; height: 32px; font-size: 16px; }
  .vcard-badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 11px; }
  .grid-listings.carousel {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px;
  }
  .grid-listings.carousel::-webkit-scrollbar { display: none; }
  .grid-listings.carousel .vcard { scroll-snap-align: start; }
  .carousel .vcard-title { font-size: 15px; }
  .carousel .vcard-price { font-size: 19px; }
  .carousel .vcard-meta > span:nth-child(2) { display: inline-flex; }
  .detail-info .price { font-size: 30px; }
  .searchbar { height: 56px; }
  .searchbar input { font-size: 17px; }
  .cat-icon { width: 68px; height: 68px; border-radius: 20px; font-size: 26px; }
  .cat-icon .cat-img { width: 58px; height: 58px; }
  .cat { font-size: 14px; }
  .discover { padding: 18px; gap: 14px; }
  .discover-stack { width: 84px; height: 80px; }
  .discover h3 { font-size: 21px; }
  .discover p { font-size: 15px; }
  .discover .go { width: 48px; height: 48px; font-size: 22px; }
  .row-card { padding: 16px; gap: 14px; }
  .row-card h3 { font-size: 19px; }
  .row-card p { font-size: 15px; }
  .sq-icon { width: 60px; height: 60px; font-size: 28px; }
  .explore-list { grid-template-columns: 1fr; }
  .explore-info h3 { font-size: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .drop { width: calc(50% - 8px); height: 140px; }
  .profile-card { padding: 20px; gap: 16px; }
  .avatar { width: 76px; height: 76px; font-size: 28px; }
  .profile-card h2 { font-size: 23px; }
  .profile-card .muted { font-size: 15px; }
  .stats strong { font-size: 26px; }
  .stats span { font-size: 14px; }
  .list a, .list button.li { padding: 14px 16px; gap: 16px; font-size: 18px; }
  .li-icon { width: 48px; height: 48px; font-size: 22px; }
  .public-btn { height: 60px; font-size: 18px; }
  .segmented button { height: 46px; font-size: 17px; }
  .empty h2 { font-size: 24px; }
  .empty p { font-size: 16px; }
}
/* Interactive Results map */
.results-map { position:relative; height: min(72vh, 760px); min-height:440px; border:1px solid #26344c; border-radius:20px; overflow:hidden; background:#101722; isolation:isolate; }
#results-map-canvas { width:100%; height:100%; background:#101722; }
.results-map .leaflet-container { font:inherit; }
.vehicle-map-icon { background:none; border:0; display:grid; place-items:center; }
.map-dot { display:block; width:18px; height:18px; background:#1F6BFF; border:3px solid white; border-radius:50%; box-shadow:0 2px 8px #0008; }
.map-cluster,.map-price { display:grid; place-items:center; min-width:36px; height:36px; padding:0 10px; border:2px solid white; border-radius:22px; background:#1F6BFF; color:white; font-size:13px; font-weight:750; box-shadow:0 3px 12px #0007; white-space:nowrap; }
.map-price { background:#0d2147; border-color:#1F6BFF; }
.map-buttons { position:absolute; z-index:1000; top:16px; right:16px; display:grid; gap:6px; }
.map-buttons button { width:42px; height:42px; border:1px solid #3b4d6c; border-radius:12px; background:#101b2f; color:white; font-size:24px; cursor:pointer; }
.map-buttons button:focus-visible,.vehicle-map-icon:focus-visible { outline:3px solid #1F6BFF; outline-offset:4px; }
.map-status { position:absolute; z-index:900; top:12px; left:12px; max-width:calc(100% - 84px); background:#101b2fee; color:#fff; border-radius:10px; padding:8px 12px; font-size:12px; pointer-events:none; }
.map-status:empty { display:none; }
.map-selection { position:absolute; z-index:900; bottom:52px; left:16px; right:72px; pointer-events:none; }
.map-vehicle { display:flex; gap:12px; padding:12px; max-width:460px; background:#101b2ff5; border:1px solid #3b4d6c; color:#fff; border-radius:16px; box-shadow:0 8px 30px #0006; pointer-events:auto; }
.map-vehicle img { width:90px; height:80px; object-fit:cover; border-radius:10px; }
.map-vehicle span { display:grid; gap:4px; }
.map-vehicle b { color:#75a7ff; }
.map-vehicle small { color:#c4cddd; }
.leaflet-container .leaflet-control-attribution { background: rgba(10,16,30,.55); color: #9aa6bb; font-size: 9px; line-height: 1.3; padding: 1px 5px; border-radius: 6px 0 0 0; }
.leaflet-container .leaflet-control-attribution a { color: #9aa6bb; text-decoration: none; }
/* MapTiler's free plan requires a legible logo: keep a small dark pill so its white text reads on light tiles. */
.maptiler-logo { display: block; background: rgba(10,16,30,.55); padding: 2px 6px; border-radius: 6px; }
.maptiler-logo img { display: block; width: 64px; height: auto; }
@media(max-width:600px) { .results-map { min-height:480px; height:70vh; } .map-selection { left:10px; right:10px; } }

/* Nearby location picker */
/* Results locator: scoped so the List tab and Nearby retain their layouts. */
main:has(.locator) { max-width:none; padding:18px 24px 24px; }
.locator { display:grid; grid-template-columns:450px minmax(0,1fr); gap:24px; max-width:1880px; margin:auto; }
.locator-sidebar { display:flex; flex-direction:column; min-width:0; height:calc(100dvh - 110px); }
.locator-heading { display:flex; align-items:center; gap:12px; margin:0 0 16px; }
.locator-heading h1 { font-size:26px; font-weight:750; letter-spacing:-.7px; margin:0; line-height:1.2; }
.locator-heading .back { flex:none; }
.locator-list-link { margin-left:auto; font-size:13px; color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
.locator-search { display:flex; align-items:center; gap:10px; padding:4px 4px 4px 13px; background:#0B1220; border:1px solid var(--line); border-radius:12px; }
.locator-search > svg { width:19px; flex:none; color:var(--muted); }
.locator-search input { min-width:0; flex:1; width:0; background:transparent; border:0; box-shadow:none; padding:9px 0; font-size:12px; }
.locator-search .btn { padding:11px 16px; border-radius:9px; font-size:13px; }
.locator .btn-primary { background:#1F6BFF; box-shadow:0 3px 14px #1f6bff28; }
.locator-categories { display:flex; gap:8px; overflow-x:auto; padding:13px 0; scrollbar-width:thin; flex-shrink:0; }
.locator-chip { display:flex; align-items:center; gap:8px; white-space:nowrap; border:1px solid var(--line); border-radius:22px; padding:10px 13px; font-size:12px; font-weight:600; background:#0B1220; }
.locator-chip svg { width:23px; height:20px; flex:none; }
.locator-chip.on { background:#1F6BFF; border-color:#568fff; box-shadow:0 3px 12px #1f6bff35; }
.locator-count-row { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:6px 0 14px; font-size:13px; }
.locator-count-row label { display:flex; align-items:center; gap:6px; min-width:0; color:var(--muted); }
.locator-count-row svg { width:17px; }
.locator-count-row select { max-width:165px; background:transparent; border:0; padding:4px; font-size:12px; }
.locator-list { overflow-y:auto; overscroll-behavior:contain; min-height:0; padding:2px 5px 12px 2px; scrollbar-width:thin; scrollbar-color:#283651 transparent; }
.locator-card { display:grid; grid-template-columns:164px minmax(0,1fr); gap:13px; padding:8px; margin-bottom:10px; border:2px solid transparent; border-radius:16px; background:#0B1220; box-shadow:0 0 0 1px var(--line),0 6px 18px #0002; transition:border-color .15s,background .15s; }
.locator-card[hidden] { display:none; }
.locator-card:hover { background:#111A2E; }
.locator-card.is-selected { border-color:#1F6BFF; box-shadow:0 0 18px #1f6bff22; }
.locator-photo { position:relative; min-height:140px; border-radius:11px; overflow:hidden; background:var(--surface); display:grid; place-items:center; }
.locator-photo > img { width:100%; height:100%; position:absolute; object-fit:cover; }
.locator-photo > svg { width:60px; color:var(--muted); }
.locator-photo .vcard-fav { top:7px; right:7px; width:32px; height:32px; border-radius:10px; background:#060f1eef; }
.locator-info { min-width:0; }
.locator-info h2 { margin:2px 0 3px; font:700 15px/1.28 var(--font-body); }
.locator-trim { color:var(--muted); font-size:12px; margin:0; }
.locator-price { font-size:23px; font-weight:800; color:#4b88ff; margin:1px 0; line-height:1.3; }
.locator-city { display:flex; gap:6px; align-items:center; color:var(--muted); margin:0 0 7px; font-size:11px; }
.locator-city svg { width:14px; height:14px; color:#8faeff; flex:none; }
.locator-specs { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:7px; }
.locator-specs span { display:flex; align-items:center; gap:4px; border:1px solid var(--line); border-radius:10px; background:#111A2E; padding:2px 6px; font-size:9px; color:#c3cfe8; white-space:nowrap; }
.locator-specs svg { width:12px; height:12px; }
.locator-actions { display:flex; gap:7px; }
.locator-contact { display:grid; place-items:center; width:33px; flex:none; border:1px solid var(--line); border-radius:9px; background:#060d19; color:white; cursor:pointer; }
.locator-contact svg { width:18px; height:18px; }
.locator-actions .btn { flex:1; padding:8px 6px; font-size:11px; border-radius:9px; min-width:0; }
.locator-actions .btn svg { display:none; }
.locator-empty { color:var(--muted); font-size:14px; padding:12px; }
.locator-map-column { position:sticky; top:90px; min-width:0; height:calc(100dvh - 110px); display:flex; flex-direction:column; gap:13px; }
.locator-filters { display:flex; align-items:center; flex-wrap:wrap; gap:9px; position:relative; z-index:1100; }
.locator-filter { position:relative; }
.locator-filter summary { display:flex; align-items:center; gap:16px; padding:10px 13px; cursor:pointer; background:#0B1220; border:1px solid var(--line); border-radius:10px; list-style:none; font-size:12px; font-weight:600; }
.locator-filter summary::-webkit-details-marker { display:none; }
.locator-filter summary svg { width:14px; height:14px; }
.locator-popover { position:absolute; top:calc(100% + 7px); left:0; width:230px; padding:15px; display:grid; gap:10px; border:1px solid #2b3a57; background:#111A2E; border-radius:14px; box-shadow:0 15px 40px #0008; }
.locator-popover label { display:grid; gap:5px; font-size:12px; color:var(--muted); }
.locator-popover input { width:100%; min-width:0; }
.locator-category-menu { max-height:360px; overflow:auto; }
.locator-category-menu a { padding:6px 8px; border-radius:7px; font-size:13px; }
.locator-category-menu a:hover { background:#1F6BFF; }
.locator-location { margin-left:auto; max-width:100%; font-size:11px; gap:6px; padding:10px; }
.locator .results-map { flex:1; height:auto; min-height:0; border-radius:16px; border-color:var(--line); box-shadow:0 12px 40px #0003; }
.locator-pin { position:relative; display:block; width:18px; height:18px; }
.locator-pin .map-price { position:absolute; bottom:29px; left:50%; transform:translateX(-50%); height:33px; padding:0 14px; font-size:12px; background:#0B1730; border:2px solid #1F6BFF; box-shadow:0 0 0 3px #1f6bff20,0 4px 12px #0006; transition:background .15s,scale .15s; }
.locator-pin .map-dot { box-shadow:0 0 0 3px #1f6bff44,0 0 12px #1f6bff; }
.map-city { position:absolute; left:25px; top:0; color:white; font-size:11px; font-weight:600; white-space:nowrap; text-shadow:0 1px 3px #000,0 0 4px #000; }
.vehicle-map-icon.is-active .map-price { background:#1F6BFF; scale:1.08; }
.vehicle-map-icon.is-active .map-dot { background:#76a6ff; }
.locator :is(button,a,input,select,summary,[tabindex]):focus-visible { outline:3px solid #6b9cff; outline-offset:3px; }
@media(max-width:1270px) and (min-width:1024px) { .locator { grid-template-columns:420px minmax(0,1fr); gap:16px; } .locator-card { grid-template-columns:150px minmax(0,1fr); gap:10px; } }
@media(max-width:1023px) {
  main:has(.locator) { padding:14px 16px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 32px); }
  .locator { display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:'heading' 'search' 'categories' 'filters' 'map' 'count' 'cards' 'empty'; gap:12px; }
  .locator-sidebar, .locator-map-column { display:contents; }
  .locator-heading { grid-area:heading; margin-bottom:4px; }
  .locator-search { grid-area:search; }
  .locator-categories { grid-area:categories; min-width:0; padding:2px 0 8px; }
  .locator-filters { grid-area:filters; min-width:0; }
  .locator .results-map { grid-area:map; }
  .locator-count-row { grid-area:count; margin:6px 0 2px; }
  .locator-list { grid-area:cards; }
  .locator-empty { grid-area:empty; }
  .locator .results-map { flex:none; height:45vh; min-height:280px; }
  .locator-sidebar { height:auto; }
  .locator-list { overflow:visible; }
  .locator-location { margin-left:0; }
  .locator-card { grid-template-columns:190px minmax(0,1fr); }
  .locator-info h2 { font-size:18px; }
  .locator-heading h1 { font-size:24px; }
}
@media(max-width:519px) {
  .locator-card { grid-template-columns:1fr; padding:9px; }
  .locator-photo { min-height:0; aspect-ratio:16/9; }
  .locator-info { padding:3px 4px 5px; }
  .locator-actions .btn { font-size:13px; padding:10px; }
  .locator-contact { width:42px; }
  .locator-specs span { font-size:11px; }
  .locator-search input { font-size:11px; }
  .locator-popover { width:200px; }
  .locator-filter:nth-child(3) .locator-popover { left:auto; right:0; }
}

.topnav button { padding:8px 14px; border:0; border-radius:999px; background:transparent; color:var(--muted); font-weight:500; white-space:nowrap; }
.topnav button:hover { color:var(--text); background:#ffffff0d; }
.location-dialog { max-height:calc(100dvh - 32px); overflow-y:auto; padding:22px; }
.location-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.location-heading h2 { margin:0; }
.location-search { position:relative; margin-bottom:16px; }
.location-search input { width:100%; font-size:14px; }
.location-options { position:absolute; top:100%; left:0; right:0; z-index:1100; max-height:240px; overflow:auto; background:#17223A; border:1px solid var(--line-strong); border-radius:12px; box-shadow:0 12px 28px #0008; }
.location-options [role="option"] { padding:12px; cursor:pointer; font-size:14px; }
.location-options [aria-selected="true"], .location-options [role="option"]:hover { background:#1F6BFF55; }
.location-map-wrap { height:320px; position:relative; isolation:isolate; border-radius:16px; overflow:hidden; background:#101722; }
#location-map { height:100%; width:100%; }
.location-center-pin { position:absolute; top:50%; left:50%; transform:translate(-50%,-100%); color:#1F6BFF; font-size:38px; z-index:600; pointer-events:none; filter:drop-shadow(0 2px 2px #fff); }
.location-geolocate { position:absolute; right:12px; bottom:32px; z-index:800; background:#17223A; color:white; font-size:26px; box-shadow:0 2px 10px #0008; }
.location-place { margin:12px 0 4px; font-weight:600; overflow-wrap:anywhere; }
.location-status { margin:0 0 16px; min-height:19px; }
.location-range { display:grid; grid-template-columns:repeat(13,minmax(0,1fr)); padding-top:8px; margin-bottom:20px; }
.location-range output { grid-row:1; justify-self:center; white-space:nowrap; padding:4px 8px; border-radius:8px; background:#1F6BFF; color:white; font-size:13px; margin-bottom:8px; }
.location-range input { grid-column:1/-1; grid-row:2; width:100%; margin:0; accent-color:#1F6BFF; min-height:28px; }
.location-range output:first-child { max-width:none; }
.location-step-0 { grid-column:1; justify-self:start!important; }
.location-step-1 { grid-column:2; }.location-step-2 { grid-column:3; }.location-step-3 { grid-column:4; }.location-step-4 { grid-column:5; }.location-step-5 { grid-column:6; }.location-step-6 { grid-column:7; }.location-step-7 { grid-column:8; }.location-step-8 { grid-column:9; }.location-step-9 { grid-column:10; }.location-step-10 { grid-column:11; }.location-step-11 { grid-column:12; }.location-step-12 { grid-column:13; justify-self:end!important; }
.location-apply { background:#1F6BFF; }
@media(max-width:599px) {
  .location-backdrop { padding:0; align-items:end; }
  .location-dialog { width:100%; max-height:94dvh; border-radius:22px 22px 0 0; padding:20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .location-map-wrap { height: min(320px, 40dvh); }
}

.detail-video { width: 100%; max-height: 480px; }
@media (max-width: 359px) { .review dl, .specs { grid-template-columns: minmax(0,1fr); gap: 6px; } .review dd, .specs dd { margin-bottom: 10px; } }

/* ---------- Compartir (estilo de la app: tarjetas oscuras, insignia de color por red) ---------- */
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.share-head h2 { margin: 0; font-size: 20px; }
.share-list { display: grid; gap: 8px; }
.share-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 14px; border-radius: 14px;
  border: 1px solid #1C2840; background: #111A2A; color: #fff; font: inherit; font-weight: 600; text-align: left; cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s; }
.share-row:hover { border-color: #2A3A58; background: #142036; }
.share-row:active { transform: scale(.98); border-color: #1F6BFF; }
.share-row:focus-visible { outline: 2px solid #3B82FF; outline-offset: 2px; }
.share-row > .ic { color: #667389; width: 18px; height: 18px; flex: none; }
.share-label { flex: 1; }
.share-badge { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid; }
.share-badge .ic, .share-badge svg { width: 20px; height: 20px; }
.share-badge.blue { color: #3B82FF; background: #3B82FF22; border-color: #3B82FF55; }
.share-badge.fb { color: #1877F2; background: #1877F222; border-color: #1877F255; }
.share-badge.xx { color: #E7E9EA; background: #E7E9EA1A; border-color: #E7E9EA44; }
.share-badge.bsky { color: #1185FE; background: #1185FE22; border-color: #1185FE55; }
.share-badge.mail { color: #A78BFA; background: #A78BFA22; border-color: #A78BFA55; }