:root {
  --bg: #090c18;
  --bg-2: #10152a;
  --bg-3: #171d36;
  --navy: #2e3f74;
  --navy-d: #1c2650;
  --navy-dd: #121935;
  --ink: #12162a;
  --paper: #f4f3ee;
  --card: #ffffff;
  --line: #e2e0d6;
  --muted: #646a7e;
  --tx: #f5f6fb;
  --tx-2: rgba(245, 246, 251, .66);
  --tx-3: rgba(245, 246, 251, .42);
  --hair: rgba(255, 255, 255, .09);
  --tag: #ffd23f;
  --tag-d: #f2b705;
  --ok: #1d8f52;
  --bad: #c2412d;
  --a: #2e3f74;
  --b: #e8a800;
  --r: 14px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font-family: var(--font); font-size: 16px; line-height: 1.45; font-variation-settings: "wdth" 100;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: .98; letter-spacing: -.035em; margin: 0; }
h2 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 14px; color: var(--tx-2); }
.sub { color: var(--tx-2); max-width: 36rem; margin: 14px 0 0; font-size: 1.05rem; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent; }
body:not([data-vista="inicio"]) .top, .top.solida { background: rgba(9, 12, 24, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hair); }
.top-in { max-width: 1200px; margin: 0 auto; height: 68px; padding: 0 20px; display: flex; align-items: center; gap: 16px; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; gap: 28px; margin: 0 auto; font-size: .92rem; font-weight: 550; }
.nav a { text-decoration: none; color: var(--tx-2); transition: color .15s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--tx); }
.top-wa { text-decoration: none; font-size: .88rem; font-weight: 650; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 16px;
  transition: background .15s; white-space: nowrap; }
.top-wa:hover { background: rgba(255,255,255,.08); }
@media (max-width: 720px) {
  .top-in { height: 58px; padding: 0 16px; gap: 10px; }
  .brand img { height: 21px; }
  .nav { gap: 16px; margin: 0 0 0 auto; font-size: .88rem; }
  .top-wa { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--tag); color: #14130c; border: 0;
  border-radius: 999px; padding: 18px 30px; font-weight: 750; font-size: 1.08rem; letter-spacing: -.01em; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 40px -8px rgba(255, 210, 63, .55), inset 0 -2px 0 rgba(0,0,0,.12); transition: transform .15s ease, box-shadow .15s ease; }
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 14px 48px -8px rgba(255, 210, 63, .7), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-main:active { transform: translateY(1px); }
.btn-main svg { width: 21px; height: 21px; }
.btn-main.btn-sm { padding: 13px 22px; font-size: .98rem; }
.btn-main[disabled] { opacity: .4; pointer-events: none; box-shadow: none; }
.btn-sub { color: var(--tx-2); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 12px 4px; transition: color .15s; white-space: nowrap; }
.btn-sub:hover { color: var(--tx); }
.btn-sub span { display: inline-block; transition: transform .15s; }
.btn-sub:hover span { transform: translateX(3px); }

/* Old-style buttons (stock detail, duelo) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; cursor: pointer;
  padding: 14px 22px; font-weight: 750; font-size: 1rem; text-decoration: none; transition: transform .12s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-tag { background: var(--tag); color: var(--ink); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-wa { background: #1faa59; color: #fff; }
.btn-big { font-size: 1.08rem; padding: 17px 26px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Price tag */
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--tag); color: var(--ink); font-weight: 850; font-stretch: 80%;
  border-radius: 6px 10px 10px 6px; padding: 5px 10px 5px 16px; position: relative; transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.25); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: rgba(0,0,0,.35); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 52%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 52%); }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: 0;
  transition: opacity 1.6s ease; transform: scale(1.04); }
.hero-bg img.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.13) translateX(-1.5%); } }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9,12,24,.6) 0%, rgba(9,12,24,0) 60%),
    linear-gradient(0deg, var(--bg) 0%, rgba(9,12,24,0) 32%),
    linear-gradient(180deg, rgba(9,12,24,.7) 0%, rgba(9,12,24,0) 18%); }

.hero-in { width: 100%; max-width: 1200px; margin: 0 auto; padding: 150px 20px 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-in > * { max-width: 600px; }
.pulso { width: 7px; height: 7px; border-radius: 50%; background: var(--tag); box-shadow: 0 0 0 0 rgba(255,210,63,.6); animation: pulso 2s infinite; }
@keyframes pulso { 70% { box-shadow: 0 0 0 9px rgba(255,210,63,0); } 100% { box-shadow: 0 0 0 0 rgba(255,210,63,0); } }
.hero h1 { font-size: clamp(3.1rem, 6.6vw, 5.9rem); max-width: 720px; line-height: .95; letter-spacing: -.045em; font-weight: 800; }
.hero h1 .hl { color: var(--tag); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.45; color: var(--tx-2); margin: 26px 0 36px; max-width: 520px; }
.cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.fine { font-size: .8rem; color: var(--tx-3); margin: 18px 0 0; }
.fine .link { color: var(--tx-2); }

.hero-tag { position: absolute; right: max(24px, calc((100vw - 1200px) / 2 + 20px)); top: 64%; z-index: 2; border: 0; cursor: pointer;
  background: var(--tag); color: var(--ink); font-family: var(--font); text-align: left; padding: 9px 16px 9px 24px; border-radius: 8px 14px 14px 8px;
  transform: rotate(-4deg); box-shadow: 0 12px 30px rgba(0,0,0,.45); transition: opacity .6s ease, transform .6s ease; }
.hero-tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--bg); }
.hero-tag b { display: block; font-size: 1.35rem; font-weight: 850; font-stretch: 80%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-tag small { display: block; font-size: .74rem; font-weight: 650; opacity: .75; }
.hero-tag.fuera { opacity: 0; transform: rotate(-4deg) translateY(8px); }

.hero-pie { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px 22px; text-align: center; }
.hero-pie > p:first-child { font-size: .9rem; color: var(--tx-2); margin: 0 0 14px; }
.hero-pie b { color: var(--tx); }
.marcas { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 34px; }
.marcas button { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em;
  color: rgba(255,255,255,.34); transition: color .15s; font-stretch: 92%; }
.marcas button:hover { color: rgba(255,255,255,.85); }
.proto { font-size: .72rem; color: var(--tx-3); margin: 22px 0 0; }

@media (max-width: 860px) {
  .hero-bg { width: 100%; height: 58svh; bottom: auto;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.45) 68%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.45) 68%, transparent 96%); }
  .hero-bg img { object-position: 50% 62%; }
  .hero-bg::after { background:
    linear-gradient(0deg, rgba(9,12,24,.7) 0%, rgba(9,12,24,0) 55%),
    linear-gradient(180deg, rgba(9,12,24,.96) 0%, rgba(9,12,24,.6) 16%, rgba(9,12,24,0) 34%); }
  .hero-in { padding: max(30svh, 190px) 16px 22px; justify-content: flex-end; }
  .hero h1 { font-size: clamp(2.9rem, 14vw, 4rem); }
  .lead { margin: 16px 0 24px; font-size: 1.04rem; }
  .cta { gap: 6px; flex-direction: column; align-items: stretch; }
  .btn-main { width: 100%; padding: 17px 24px; }
  .btn-sub { text-align: center; }
  .fine { text-align: center; margin-top: 8px; }
  .hero-tag { top: 14svh; right: 16px; padding: 7px 12px 7px 20px; }
  .hero-tag b { font-size: 1.05rem; }
  .hero-pie { padding-bottom: 18px; }
  .marcas { gap: 2px 18px; }
  .marcas button { font-size: 1rem; }
  .hero-pie > p:first-child { font-size: .82rem; margin-bottom: 8px; }
  .proto { margin-top: 12px; }
}

/* ── Inner views ─────────────────────────────────────────────────────── */
.vista:not(#v-inicio) { padding-top: 68px; min-height: 100svh; }
@media (max-width: 720px) { .vista:not(#v-inicio) { padding-top: 58px; } }
section.stock, section.duelo, section.nosotros { padding: 56px 20px 64px; }
.duelo, .pista { scroll-margin-top: 80px; }
.sec-head { max-width: 1200px; margin: 0 auto 28px; }
.pie { padding: 26px 20px 44px; font-size: .8rem; color: var(--tx-3); max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--hair); }

/* Stock */
.filtros { max-width: 1200px; margin: 0 auto 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--hair); background: var(--bg-2); border-radius: 999px; padding: 8px 15px; font-weight: 600;
  font-size: .88rem; cursor: pointer; white-space: nowrap; color: var(--tx-2); }
.chip[aria-pressed="true"] { background: var(--tx); border-color: var(--tx); color: var(--bg); }
.chip small { opacity: .6; margin-left: 4px; }
.filtros-2 { display: flex; gap: 8px; }
.filtros-2 input, .filtros-2 select { min-width: 0; border: 1px solid var(--hair); background: var(--bg-2); border-radius: 12px; padding: 11px 13px; }
.filtros-2 input { flex: 1; }
.filtros-2 select { flex: none; max-width: 46%; }

.grid { max-width: 1200px; margin: 0 auto; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; } }
.card { background: var(--bg-2); border-radius: var(--r); overflow: hidden; cursor: pointer; border: 1px solid var(--hair); padding: 0; text-align: left;
  display: flex; flex-direction: column; transition: transform .15s ease, border-color .15s; color: var(--tx); }
.card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.2); }
.card .ph { position: relative; aspect-ratio: 4/3; background: #0f1322; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .tag { position: absolute; left: 8px; bottom: 8px; font-size: .95rem; }
.card .nuevo { position: absolute; right: 8px; top: 8px; background: var(--ok); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 6px; }
.card .tx { padding: 11px 12px 13px; display: grid; gap: 3px; }
.card .ti { font-weight: 750; font-size: .95rem; line-height: 1.2; letter-spacing: -.01em; }
.card .me { color: var(--tx-2); font-size: .82rem; }
.vacio { text-align: center; color: var(--tx-2); }

/* Nosotros */
.equipo { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 599px) { .equipo { grid-template-columns: 1fr; } }
.persona { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; text-decoration: none; background: var(--bg-2); display: block; }
@media (max-width: 599px) { .persona { aspect-ratio: 5/4; } }
@media (min-width: 600px) and (max-width: 900px) { .persona { aspect-ratio: 3/4; } .persona-tx { left: 12px; right: 12px; } .persona-tx b { font-size: 1.1rem; } .persona-tx span { font-size: .8rem; } }
.persona img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.persona:hover img { transform: scale(1.04); }
.persona::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,12,24,.95) 0%, rgba(9,12,24,.5) 34%, rgba(9,12,24,0) 60%); }
.persona-tx { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: grid; gap: 4px; }
.persona-tx b { font-size: 1.4rem; letter-spacing: -.02em; }
.persona-tx span { color: var(--tx-2); font-size: .92rem; line-height: 1.35; }
.persona-tx small { color: var(--tag); font-size: .78rem; font-weight: 600; }
.ig-head { max-width: 1200px; margin: 48px auto 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ig-head a { color: var(--tx-2); text-decoration: none; font-size: .9rem; font-weight: 600; }
.ig-tira { max-width: 1200px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ig-tira::-webkit-scrollbar { display: none; }
.ig-tira a { scroll-snap-align: start; border-radius: 14px; overflow: hidden; aspect-ratio: 9/16; background: var(--bg-2); }
.ig-tira img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s; opacity: .88; }
.ig-tira a:hover img { transform: scale(1.04); opacity: 1; }
.visita { max-width: 1200px; margin: 48px auto 0; display: flex; gap: 22px; align-items: center; background: var(--bg-2); border: 1px solid var(--hair);
  border-radius: 20px; padding: 24px; }
.visita .sello { width: 86px; flex: none; }
.visita h3 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
.visita p { color: var(--tx-2); margin: 8px 0 16px; }

/* ── Sheets ──────────────────────────────────────────────────────────── */
.hoja { position: fixed; inset: 0; z-index: 50; background: rgba(5,7,15,.62); display: flex; align-items: flex-end; justify-content: center;
  animation: fade .2s ease; }
.hoja-in { background: var(--paper); color: var(--ink); width: 100%; max-width: 640px; max-height: 94dvh; overflow-y: auto; border-radius: 22px 22px 0 0;
  animation: up .28s cubic-bezier(.2,.8,.2,1); position: relative; overscroll-behavior: contain; color-scheme: light; }
@media (min-width: 700px) { .hoja { align-items: center; } .hoja-in { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.cerrar { position: sticky; top: 10px; display: block; margin: 10px 10px -48px auto; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(10,13,28,.7); color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.hoja-pad { padding: 20px 18px 28px; }
.hoja .kicker { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .7rem; opacity: .75; }
.hoja-pad > .kicker:first-child, .hoja-pad > .reco:first-child { padding-right: 46px; }

/* Car detail (light sheet) */
.galeria { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #0f1322; scrollbar-width: none; }
.galeria::-webkit-scrollbar { display: none; }
.galeria img { flex: none; width: 100%; aspect-ratio: 4/3; object-fit: cover; scroll-snap-align: center; }
.gal-n { position: absolute; left: 12px; top: 12px; background: rgba(10,13,28,.7); color: #fff; font-size: .78rem; padding: 3px 8px; border-radius: 999px; }
.det-ti { font-size: 1.8rem; margin: 2px 0 12px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.spec { background: var(--card); border-radius: 10px; padding: 8px 10px; }
.spec small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.spec b { font-size: 1rem; }
.precios { background: var(--navy-d); color: #fff; border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; }
.precios .p1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.precios .p1 .tag { font-size: 1.5rem; }
.precios .row { display: flex; justify-content: space-between; font-size: .92rem; opacity: .9; }
.desc { margin: 16px 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .94rem; }
.desc li.b { font-weight: 750; }
.acciones { display: grid; gap: 10px; margin-top: 16px; }
.acciones .btn { width: 100%; }
.fuente { font-size: .8rem; color: var(--muted); margin-top: 14px; }
.hoja .card { background: var(--card); color: var(--ink); border-color: var(--line); }
.hoja .card .me { color: var(--muted); }

/* ── Tasación: the glass modal ───────────────────────────────────────── */
.hoja-glass { background: rgba(5,7,15,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hoja-glass .hoja-in { max-width: 440px; background: rgba(17,21,40,.9); color: var(--tx); color-scheme: dark;
  border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.hoja-glass .cerrar { background: rgba(255,255,255,.1); }
.hoja-glass .hoja-pad { padding: 22px 22px 24px; }
.hoja-glass .kicker { color: var(--tx-2); opacity: 1; }
.hoja-glass .hint { color: var(--tx-3); font-size: .8rem; font-weight: 500; margin: 0; }

.tas-foto { position: relative; background: #0f1322; overflow: hidden; margin: 14px 14px 0; border-radius: 16px; }
.tas-foto img { width: 100%; max-height: 260px; object-fit: cover; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(255,210,63,.45), transparent); animation: scan 1.6s linear infinite; }
@keyframes scan { to { top: 100%; } }
.scan-box { position: absolute; inset: 14% 10%; border: 2px solid rgba(255,210,63,.9); border-radius: 12px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { inset: 16% 12%; opacity: .6; } }
.lineas { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.lineas li { display: flex; gap: 10px; align-items: center; font-weight: 550; opacity: .3; transition: opacity .3s; }
.lineas li.on { opacity: 1; }
.lineas li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--tag); flex: none; }
.lineas li.on::before { background: var(--tag); }

/* Verify step: thumbnail + what we saw + four fields */
.verif { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.verif img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; flex: none; }
.reco { font-size: .74rem; font-weight: 700; color: #6be3a0; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 4px; }
.es-un { font-size: 1.55rem; letter-spacing: -.03em; }
.es-un small { display: block; font-size: .86rem; font-weight: 500; letter-spacing: 0; color: var(--tx-2); margin-top: 5px; }
.det-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.det-chips span { border: 1px solid var(--hair); background: rgba(255,255,255,.04); border-radius: 999px; padding: 4px 10px; font-size: .8rem; color: var(--tx-2); }
.det-chips span.est { color: var(--tx); border-color: rgba(255,255,255,.22); }
.nota { color: var(--tx-2); font-size: .9rem; margin: 10px 0 0; }
.form { display: grid; gap: 12px; margin: 18px 0 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .8rem; color: var(--tx-2); }
.form input, .form select { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px 13px;
  font-size: 1.02rem; width: 100%; color: var(--tx); }
.form input:focus, .form select:focus { outline: none; border-color: var(--tag); box-shadow: 0 0 0 3px rgba(255,210,63,.18); }
.form select option { background: var(--bg-2); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .btn-main { width: 100%; margin-top: 4px; }
.error { background: rgba(194,65,45,.16); color: #ffb4a6; border-radius: 12px; padding: 12px 14px; font-weight: 600; margin: 0; }
.hoja-glass .acciones .btn-main, .hoja-glass .acciones .btn { width: 100%; }
.hoja-glass .btn-ghost { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: var(--tx); }

/* Result: the price tag */
.precio-tag { position: relative; margin: 18px 4px 6px; background: var(--tag); color: #14130c; border-radius: 12px 22px 22px 12px;
  padding: 18px 20px 16px 40px; transform: rotate(-2deg); box-shadow: 0 18px 44px -10px rgba(255,210,63,.45); animation: cuelga .7s cubic-bezier(.2,1.4,.4,1); }
@keyframes cuelga { from { transform: rotate(-10deg) translateY(-14px); opacity: 0; } }
.precio-tag::before { content: ""; position: absolute; left: 15px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
  background: rgba(17,21,40,1); box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.precio-tag .lbl { font-size: .84rem; font-weight: 600; opacity: .72; }
.precio-tag .monto { font-size: clamp(2.3rem, 11vw, 2.9rem); font-weight: 850; letter-spacing: -.04em; line-height: 1; margin: 6px 0 4px;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.precio-tag .monto span { opacity: .45; font-weight: 600; }
.precio-tag .mill { font-size: .84rem; font-weight: 650; opacity: .72; }
.base { font-size: .82rem; color: var(--tx-3); margin: 14px 0 0; text-align: center; }
.mas { margin: 12px 0 0; border-top: 1px solid var(--hair); }
.mas summary { cursor: pointer; list-style: none; padding: 13px 0; font-size: .9rem; font-weight: 600; color: var(--tx-2); display: flex; justify-content: space-between; }
.mas summary::-webkit-details-marker { display: none; }
.mas summary::after { content: "+"; font-size: 1.1rem; line-height: 1; color: var(--tx-3); }
.mas[open] summary::after { content: "–"; }
.mas[open] { padding-bottom: 8px; }
.chart { margin: 4px 0 6px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 10px; fill: rgba(255,255,255,.5); }
.ley { display: flex; flex-wrap: wrap; gap: 12px; font-size: .74rem; color: var(--tx-2); }
.ley i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.honesto { font-size: .86rem; color: var(--tx-2); margin: 10px 0 0; }
.vender { margin: 18px 0 0; }
.vender h3 { font-size: 1.15rem; margin-bottom: 10px; }
.caminos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.camino { text-align: left; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); border-radius: 14px; padding: 12px 13px;
  cursor: pointer; display: grid; gap: 3px; color: var(--tx); transition: border-color .15s, background .15s; }
.camino b { font-size: .98rem; letter-spacing: -.01em; }
.camino small { color: var(--tx-2); font-size: .78rem; line-height: 1.3; }
.camino .k { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tag); }
.camino[aria-pressed="true"] { border-color: var(--tag); background: rgba(255,210,63,.08); }
.enviar-wa { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; background: #1faa59; color: #fff; text-decoration: none;
  border-radius: 999px; padding: 16px 22px; font-weight: 750; font-size: 1.04rem; box-shadow: 0 10px 34px -10px rgba(31,170,89,.7); }
.enviado { text-align: center; padding-top: 30px; }
.enviado h2 { font-size: 2rem; }
.enviado .cod { display: inline-block; font-size: 2rem; font-weight: 850; letter-spacing: .14em; background: var(--tag); color: #14130c; padding: 4px 16px;
  border-radius: 10px; margin: 14px 0 6px; transform: rotate(-2deg); }
.mini { display: grid; gap: 8px; margin-top: 4px; }
.mini .card { flex-direction: row; background: rgba(255,255,255,.04); color: var(--tx); border-color: var(--hair); }
.mini .card .ph { width: 112px; flex: none; aspect-ratio: 4/3; }
.mini .card .tag { font-size: .78rem; }
.mini .card .me { color: var(--tx-2); }
.mini .dif { font-size: .8rem; color: var(--tag); font-weight: 650; }
.otra { display: block; margin: 16px auto 0; color: var(--tx-2); font-size: .88rem; }

/* ── Duelo ───────────────────────────────────────────────────────────── */
.duelo-pick { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pick { background: var(--bg-2); border: 1.5px dashed rgba(255,255,255,.22); border-radius: 16px; padding: 0; cursor: pointer;
  overflow: hidden; min-height: 150px; text-align: left; color: #fff; display: flex; flex-direction: column; }
.pick.lleno { border-style: solid; }
.pick-a.lleno { border-color: #7f95e0; }
.pick-b.lleno { border-color: var(--b); }
.pick img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pick .tx { padding: 8px 10px; font-size: .8rem; line-height: 1.2; color: var(--tx-2); }
.pick .tx b { display: block; font-size: .9rem; color: var(--tx); }
.pick .vacio-p { margin: auto; padding: 16px; text-align: center; opacity: .7; font-weight: 600; }
.vs { font-weight: 850; font-size: 1.6rem; color: var(--tag); letter-spacing: -.03em; }
.duelo-btns { display: flex; gap: 10px; justify-content: center; margin: 22px auto 0; flex-wrap: wrap; }

.pista { max-width: 900px; margin: 26px auto 0; position: relative; border-radius: 16px; overflow: hidden;
  background: repeating-linear-gradient(90deg, #1a1f33 0 60px, #1d2238 60px 120px); padding: 34px 0 8px; }
.carril { position: relative; height: 112px; border-bottom: 3px dashed rgba(255,255,255,.2); }
.carril:last-of-type { border-bottom: 0; }
.corredor { position: absolute; left: 2%; bottom: 6px; width: min(150px, 32%); transition: left 1.1s cubic-bezier(.3,.1,.2,1); }
.corredor svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 4px rgba(0,0,0,.4)); }
.corredor .tag { position: absolute; left: 50%; top: -30px; transform: translateX(-50%) rotate(-4deg); font-size: .82rem; padding: 3px 8px 3px 14px; }
.corredor.corre .rueda { animation: gira .35s linear infinite; transform-origin: center; transform-box: fill-box; }
.corredor.corre { animation: vibra .18s ease-in-out infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes vibra { 50% { transform: translateY(-1px); } }
.meta { position: absolute; right: 0; top: 0; bottom: 0; width: 18px;
  background: conic-gradient(#fff 0 25%, #111 0 50%, #fff 0 75%, #111 0) 0 0 / 9px 9px; opacity: .9; }
.semaforo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 10px; background: #05070f;
  padding: 12px 16px; border-radius: 14px; z-index: 4; }
.semaforo i { width: 26px; height: 26px; border-radius: 50%; background: #333; }
.semaforo i.r { background: #e5483b; box-shadow: 0 0 16px #e5483b; }
.semaforo i.g { background: #2fd06b; box-shadow: 0 0 16px #2fd06b; }
.rondas { max-width: 900px; margin: 16px auto 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ronda { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; background: var(--bg-2); border: 1px solid var(--hair);
  border-radius: 12px; padding: 10px 12px; animation: up .3s ease; font-variant-numeric: tabular-nums; }
.ronda .n { text-align: center; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.ronda .n b { display: block; font-size: .95rem; letter-spacing: 0; opacity: 1; color: #fff; }
.ronda .va { font-weight: 700; opacity: .55; }
.ronda .va:last-child { text-align: right; }
.ronda .va.gana { opacity: 1; color: var(--tag); }
.ronda .va.gana::after { content: " ●"; font-size: .7em; }
.ronda .va:last-child.gana::after { content: ""; }
.ronda .va:last-child.gana::before { content: "● "; font-size: .7em; }
.ganador { max-width: 900px; margin: 18px auto 0; text-align: center; animation: up .4s ease; }
.ganador h3 { font-size: clamp(1.8rem, 8vw, 2.8rem); color: var(--tag); margin: 6px 0; }
.ganador p { opacity: .8; margin: 6px 0 16px; }
.ganador .acciones { grid-template-columns: 1fr 1fr; max-width: 560px; margin: 0 auto; }
.ganador .compartir { margin-top: 12px; }
.ganador .kicker { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-2); margin: 0; }

/* Pick a car for the duel (light sheet) */
.elegir-lista { display: grid; gap: 8px; }
.elegir-lista button { display: flex; gap: 12px; align-items: center; background: var(--card); border: 0; border-radius: 12px; padding: 8px; text-align: left; cursor: pointer; color: var(--ink); }
.elegir-lista img { width: 84px; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; flex: none; }
.elegir-lista b { display: block; font-size: .92rem; line-height: 1.15; }
.elegir-lista small { color: var(--muted); }

@media (max-width: 520px) {
  section.stock, section.duelo, section.nosotros { padding: 36px 16px 48px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .tag { font-size: .82rem; }
  .card .ti { font-size: .86rem; }
  .ronda { gap: 6px; padding: 9px 10px; font-size: .84rem; }
  .ronda .va { min-width: 0; overflow-wrap: anywhere; }
  .duelo-pick { gap: 8px; }
  .pick { min-height: 120px; }
  .ganador .acciones { grid-template-columns: 1fr; }
  .visita { padding: 18px; }
  .pie { padding: 22px 16px 40px; }
}
@media (max-width: 380px) {
  .nav { gap: 12px; font-size: .82rem; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .caminos { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .visita { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* La talla: the AI's friendly roast, and the card to share it */
.talla { margin: 16px 0 4px; padding: 16px 18px; border-radius: 16px; background: rgba(255,210,63,.08); border: 1px solid rgba(255,210,63,.35); }
.talla .k { display: block; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: #ffd23f; }
.talla p { margin: 8px 0 12px; font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--tx); }
.btn-share { width: 100%; border: 0; border-radius: 999px; padding: 12px 16px; font: inherit; font-weight: 750; background: #ffd23f; color: #14130c; cursor: pointer; }
.talla-card { display: block; width: 100%; margin-top: 12px; border-radius: 12px; }
