/* AutoPartes del Mundo — hoja de estilos única */
@font-face { font-family: 'SUSE'; src: url('../assets/fonts/SUSE-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'SUSE'; src: url('../assets/fonts/SUSE-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'SUSE'; src: url('../assets/fonts/SUSE-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'SUSE'; src: url('../assets/fonts/SUSE-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #14161a;
  --muted: #5b6270;
  --line: #e4e6ea;
  --bg: #f5f5f2;
  --card: #ffffff;
  --brand: #849324;
  --brand-strong: #5d6a14;
  --brand-soft: #eef2d8;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --ok: #1a7f37;
  --ok-soft: #e6f4ea;
  --warn: #8a5a00;
  --warn-soft: #fff4d6;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,22,26,.06), 0 4px 16px rgba(20,22,26,.06);
  --logo: 100px;
  --header-h: 124px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: 'SUSE', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem; line-height: 1.5; color: var(--ink); background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #1b6ef3; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; width: 100%; }
.page { padding-top: 28px; padding-bottom: 56px; }
.page-narrow { max-width: 760px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  background: var(--brand-strong); color: #fff; transition: background .15s, transform .05s, box-shadow .15s;
  min-height: 42px;
}
.btn:hover { background: #4d5911; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: #f1f2f4; }
.btn-dark { background: #14161a; }
.btn-dark:hover { background: #2a2e36; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8f1c12; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(20,22,26,.07); }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 10px; cursor: pointer; display: inline-flex; color: inherit; position: relative; }
.icon-btn:hover { background: rgba(20,22,26,.07); }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=file], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #cfd3da; border-radius: 10px; min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-strong); outline: 3px solid rgba(132,147,36,.28); outline-offset: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 10px; font-size: .92rem; min-height: 1.2em; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }

/* ---------- Cards / badges ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eceef1; color: #3b4150; white-space: nowrap; }
.badge-pendiente, .badge-pendiente_pago { background: var(--warn-soft); color: var(--warn); }
.badge-cotizado { background: #e3eefc; color: #0b4a9e; }
.badge-vendido, .badge-pagada, .badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-cancelada, .badge-danger { background: var(--danger-soft); color: var(--danger); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); margin-bottom: 16px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.skeleton { background: linear-gradient(90deg, #e9ebee 25%, #f4f5f7 37%, #e9ebee 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 10px; min-height: 220px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header-top { display: flex; align-items: center; gap: 16px; padding: 6px 0; transition: padding .25s ease; }
.brand img { height: var(--logo); width: var(--logo); object-fit: contain; transition: height .25s ease, width .25s ease; }
.search { flex: 1; max-width: 560px; position: relative; }
.search input { padding-left: 42px; border-radius: 999px; background: #f3f4f6; border-color: transparent; }
.search input:focus { background: #fff; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cart-count { position: absolute; top: 0; right: 0; 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; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-chip .hello { font-size: .88rem; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-nav { background: #14161a; color: #fff; }
.nav-inner { display: flex; align-items: center; gap: 4px; min-height: 48px; flex-wrap: wrap; }
.main-nav a, .main-nav button { color: #fff; text-decoration: none; background: none; border: 0; font: inherit; font-size: .93rem; padding: 8px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.main-nav a:hover, .main-nav button:hover { background: rgba(255,255,255,.12); }
.main-nav a[aria-current="page"] { background: rgba(255,255,255,.16); }
.main-nav .spacer { margin-left: auto; }
.main-nav .nav-cta { background: var(--brand); color: #14161a; font-weight: 700; }
.main-nav .nav-cta:hover { background: #9cae2c; }
.mi-auto-text { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Drawers ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(400px, 92vw); background: #fff; z-index: 100; display: flex; flex-direction: column; transition: transform .25s ease; box-shadow: var(--shadow); }
.drawer-right { right: 0; transform: translateX(105%); }
.drawer-left { left: 0; transform: translateX(-105%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.15rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .name { font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: #f3f4f6; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.cat-menu ul { list-style: none; margin: 0; padding-left: 14px; }
.cat-menu > ul { padding-left: 0; }
.cat-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.cat-menu a:hover { background: var(--brand-soft); }
.cat-menu > ul > li > a { font-weight: 700; }

/* ---------- Dialogs ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(440px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 92vh; overflow: auto; }
dialog::backdrop { background: rgba(0,0,0,.5); }
.dialog-body { padding: 26px 24px 22px; position: relative; }
.dialog-close { position: absolute; top: 8px; right: 8px; font-size: 1.6rem; line-height: 1; }
.dialog-body h2 { text-align: center; margin-bottom: .3em; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border-color: #cfd3da; }
.btn-google:hover { background: #f6f7f8; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-strong); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Home ---------- */
.hero { position: relative; background: #14161a; overflow: hidden; }
.hero-slides { display: flex; transition: transform .6s ease; }
.hero-slide { min-width: 100%; aspect-ratio: 16 / 6; max-height: 460px; position: relative; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(16px, 8vw, 110px); color: #fff; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.05) 70%); }
.hero-copy h1 { color: #fff; max-width: 15ch; margin-bottom: .3em; }
.hero-copy p { max-width: 42ch; font-size: 1.05rem; }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button[aria-current="true"] { background: #fff; }
.section { padding: 36px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
.cat-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat-box { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; display: block; color: #fff; text-decoration: none; }
.cat-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-box:hover img { transform: scale(1.05); }
.cat-box span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 14px; font-weight: 700; font-size: 1.1rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.brands { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; padding: 20px 0; }
.brands img { height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .2s; }
.brands img:hover { filter: none; opacity: 1; }
.cta-band { background: #14161a; color: #fff; border-radius: var(--radius); padding: 28px; display: flex; gap: 18px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #cfd3da; }

/* ---------- Productos ---------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 64px); }
.filters ul { list-style: none; margin: 0; padding-left: 16px; }
.filters > ul, .filters .tree { padding-left: 0; }
.filters label { display: flex; gap: 8px; align-items: center; padding: 5px 0; cursor: pointer; font-size: .93rem; }
.filters input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { background: var(--brand-soft); color: var(--brand-strong); border: 0; border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.product h3 { margin: 0; font-size: 1.02rem; }
.product .cat { font-size: .8rem; color: var(--muted); }
.product .desc { font-size: .88rem; color: var(--muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product .price { font-size: 1.3rem; font-weight: 700; }
.product .actions { display: flex; gap: 8px; margin-top: 8px; }
.product .actions .btn { flex: 1; padding: 8px 10px; }
.stock-low { color: var(--danger); font-weight: 600; font-size: .8rem; }
.pager { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 24px; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.detail .price { font-size: 2rem; font-weight: 700; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }

/* ---------- Mi cuenta / paneles ---------- */
.account { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.side-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 64px); }
.side-nav a, .side-nav button { text-align: left; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; font-weight: 500; }
.side-nav a:hover, .side-nav button:hover { background: #ebece8; }
.side-nav [aria-current="true"], .side-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.panel-section[hidden] { display: none; }
.order { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; display: grid; gap: 8px; }
.order + .order { margin-top: 12px; }
.order-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.order img.thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { background: #f6f7f8; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi b { display: block; font-size: 1.9rem; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .85rem; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
.legal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 40px); }
.legal h2 { margin-top: 1.4em; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #14161a; color: #cfd3da; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 40px 0 28px; }
.site-footer h4 { color: #fff; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #cfd3da; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #2b2f37; padding: 16px 0; font-size: .85rem; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- Toast ---------- */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; width: min(440px, 92vw); pointer-events: none; }
.toast { background: #14161a; color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); animation: up .2s ease; pointer-events: auto; }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .catalog, .account, .detail { grid-template-columns: 1fr; }
  .filters, .side-nav { position: static; }
  .side-nav { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .side-nav a, .side-nav button { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters-box { display: none; }
  .filters-box.open { display: block; }
}
@media (min-width: 901px) { .filters-toggle { display: none; } }
@media (max-width: 640px) {
  .header-top { flex-wrap: wrap; padding: 8px 0; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  :root { --logo: 64px; --header-h: 112px; }
  :root.is-shrunk { --logo: 44px; --header-h: 92px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-slide { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .user-chip .hello, .mi-auto-text { display: none; }
  .nav-inner { padding-top: 6px; padding-bottom: 6px; }
  .main-nav .nav-cta { order: -1; flex: 1 1 100%; justify-content: center; }
  .main-nav .spacer { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .drawer, .overlay { display: none; } }

/* ---------- Ajustes finos ---------- */
.header-actions { flex-shrink: 0; }
.user-chip .btn { flex-shrink: 0; }
.main-nav .nav-cta[aria-current="page"] { background: var(--brand); }
input[type=file] { padding: 8px 10px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #f3f4f6; cursor: pointer; }

/* ---------- Solicitud con varias partes ---------- */
.item-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.item-card + .item-card { margin-top: 14px; }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.item-head h3 { margin: 0; font-size: 1rem; }
.item-grid { display: grid; grid-template-columns: 1fr 110px; gap: 0 12px; }
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 40; max-height: 280px; overflow-y: auto; list-style: none; margin: 0; padding: 4px; }
.combo-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.combo-list li small { display: block; color: var(--muted); }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--brand-soft); }
.picked { font-size: .82rem; color: var(--brand-strong); margin-top: 4px; }
.tree-pick ul { list-style: none; margin: 0; padding-left: 16px; }
.tree-pick > ul { padding-left: 0; }
.tree-pick summary { cursor: pointer; font-weight: 600; padding: 6px 4px; }
.tree-pick button.leaf { background: none; border: 0; font: inherit; padding: 6px 8px; border-radius: 8px; cursor: pointer; text-align: left; width: 100%; }
.tree-pick button.leaf:hover { background: var(--brand-soft); }
.img-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.img-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Oferta / pago / seguimiento ---------- */
.steps-bar { display: flex; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.steps-bar li { flex: 1; min-width: 130px; padding: 10px 12px; border-radius: 10px; background: #ebece8; color: var(--muted); font-weight: 600; font-size: .9rem; }
.steps-bar li.done { background: var(--ok-soft); color: var(--ok); }
.steps-bar li.now { background: var(--brand-soft); color: var(--brand-strong); outline: 2px solid var(--brand); }
.total-line { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; padding: 14px 0 4px; border-top: 2px solid var(--line); margin-top: 8px; }
.bank { background: #f6f7f2; border: 1px dashed var(--brand); border-radius: var(--radius); padding: 14px 16px; }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; word-break: break-all; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 16px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand); }
.timeline li:last-child { padding-bottom: 0; }
.timeline small { color: var(--muted); display: block; }
.parts-list { list-style: none; margin: 0; padding: 0; }
.parts-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.parts-list li:last-child { border-bottom: 0; }
.parts-list .grow { flex: 1; }
.parts-list img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 640px) { .item-grid { grid-template-columns: 1fr; } }
.badge-cotizando { background: #e3eefc; color: #0b4a9e; }
.badge-pago_informado { background: var(--warn-soft); color: var(--warn); }
.timeline { margin-top: 12px; }

/* ---------- Header grande que se achica al hacer scroll ---------- */
:root.is-shrunk { --logo: 54px; --header-h: 78px; }
:root.is-shrunk .header-top { padding: 4px 0; }
.site-header { transition: box-shadow .25s ease; }
:root.is-shrunk .site-header { box-shadow: 0 2px 12px rgba(20,22,26,.12); }
.vehiculos-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .vehiculos-grid { grid-template-columns: 1fr; } }
