/* AutoParts — piezas propias del dominio repuestos (compatibilidad, mi vehículo, números de parte). */
:root { --ap-red: #D7141A; --ap-red-dark: #A80F14; --ap-ok: #1E8E3E; --ap-ok-bg: #ECF8EF; --ap-no: #B3261E; --ap-no-bg: #FDECEC; }

/* Tarjeta de producto */
.pfit { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-block; margin-bottom: 4px; }
.pfit.ok { background: var(--ap-ok-bg); color: var(--ap-ok); }
.pfit.no { background: var(--ap-no-bg); color: var(--ap-no); }
.ppn { font-size: 12px; color: var(--ink-soft, #666); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* Ficha de producto */
.pn-line { font-size: 13.5px; color: var(--ink-soft, #555); }
.fitcheck { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 14px; border: 1px solid transparent; text-decoration: none; color: inherit; }
.fitcheck a { margin-left: 8px; font-weight: 600; font-size: 13px; }
.fitcheck-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-weight: 800; flex: none; }
.fitcheck.ok { background: var(--ap-ok-bg); border-color: #BFE6C9; } .fitcheck.ok .fitcheck-ico { background: var(--ap-ok); }
.fitcheck.no { background: var(--ap-no-bg); border-color: #F3C2BF; } .fitcheck.no .fitcheck-ico { background: var(--ap-no); }
.fitcheck.ask { background: #F6F7F9; border-color: #E3E5E8; } .fitcheck.ask .fitcheck-ico { background: #333; }
.fitcheck.ask span:not(.fitcheck-ico) { color: var(--ink-soft, #666); font-size: 13px; }
.fitcheck.ask:hover { border-color: var(--ap-red); }

.fit-table { padding: 0; overflow: hidden; }
.fit-search { padding: 12px; border-bottom: 1px solid var(--line, #eee); }
.fit-group { border-bottom: 1px solid var(--line, #eee); }
.fit-group:last-child { border-bottom: 0; }
.fit-group > summary { cursor: pointer; padding: 12px 16px; list-style: none; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fit-group > summary::-webkit-details-marker { display: none; }
.fit-group > summary::before { content: '›'; font-weight: 800; transition: transform .15s; color: var(--ap-red); }
.fit-group[open] > summary::before { transform: rotate(90deg); }
.fit-group .data-table { font-size: 13px; }
.fit-group tr.mine td { background: var(--ap-ok-bg); font-weight: 600; }
.oem-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; }
.oem-chip { font-size: 12.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line, #e3e3e3); background: #fff; color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; }
.oem-chip span { color: var(--ink-soft, #777); font-weight: 600; }
.oem-chip:hover { border-color: var(--ap-red); color: var(--ap-red); }

/* Inicio: hero "Encontrá el repuesto exacto" */
.ap-hero { margin-top: 18px; border-radius: 18px; padding: 28px; background: linear-gradient(120deg, #fff 0%, #fff 55%, #FDECEC 100%); border: 1px solid #F1E1E1; position: relative; overflow: hidden; }
.ap-hero h1 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.1; margin: 0 0 6px; letter-spacing: -.02em; }
.ap-hero h1 em { font-style: normal; color: var(--ap-red); }
.ap-hero p.lead { margin: 0 0 18px; color: var(--ink-soft, #555); font-size: 15.5px; }
.ap-hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.ap-panel { background: #fff; border: 1px solid #ECECEC; border-radius: 14px; padding: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.05); }
.ap-panel h3 { margin: 0 0 10px; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.ap-panel h3 .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ap-red); color: #fff; font-size: 12px; }
.ap-pn-form { display: flex; gap: 8px; }
.ap-pn-form .input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.ap-hint { font-size: 12.5px; color: var(--ink-soft, #777); margin-top: 8px; }
.ap-hint a { font-weight: 600; }
.ap-garage { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-garage .car { font-size: 18px; font-weight: 800; }
.ap-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--ink-soft, #666); }
.ap-stats b { display: block; font-size: 20px; color: #111; }
@media (max-width: 900px) { .ap-hero-grid { grid-template-columns: 1fr; } .ap-hero { padding: 18px; } }

/* Modelos populares */
.ap-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ap-model { display: block; padding: 14px; border-radius: 12px; border: 1px solid var(--line, #eaeaea); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.ap-model:hover { border-color: var(--ap-red); transform: translateY(-2px); }
.ap-model .mk { font-size: 12px; color: var(--ink-soft, #777); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ap-model .md { font-size: 17px; font-weight: 800; }
.ap-model .ct { font-size: 12.5px; color: var(--ap-red); font-weight: 600; margin-top: 4px; }

/* Chip de vehículo en el header */
.ap-vchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line, #e5e5e5); background: #fff; color: inherit; text-decoration: none; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ap-vchip:hover { border-color: var(--ap-red); }
.ap-vchip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-ok); flex: none; }
.ap-vchip.empty .dot { background: var(--ap-red); }

/* Logos de marcas compatibles en la tarjeta */
.pmakes { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 6px 0 2px; padding: 6px 8px;
  border: 1px solid var(--line, #E6E8EE); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.pmakes:hover { border-color: var(--ap-red); background: #FFF8F8; }
.pmakes-logos { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pmakes-logos img { height: 20px; width: 30px; object-fit: contain; }
.pmakes-logos .mk { font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.pmakes-logos .more { font-size: 11px; font-weight: 700; color: var(--ink-soft, #666); background: #F2F3F5; border-radius: 999px; padding: 2px 6px; }
.pmakes-cta { font-size: 11.5px; font-weight: 700; color: var(--ap-red); white-space: nowrap; }

/* Logo en los grupos de compatibilidad de la ficha */
.fit-logo { height: 22px; width: 34px; object-fit: contain; vertical-align: middle; margin-right: 4px; }

/* Drawer de compatibilidad (reusa .cart-drawer) */
.fit-drawer { width: min(460px, 100vw); }
.fit-drawer .dbody { display: flex; flex-direction: column; gap: 12px; padding-bottom: 0; }
.fd-loading { display: flex; align-items: center; gap: 10px; padding: 30px 4px; color: var(--ink-soft, #666); }
.fd-loading span { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #F3C2BF; border-top-color: var(--ap-red); animation: fdspin .8s linear infinite; }
@keyframes fdspin { to { transform: rotate(360deg); } }
.fd-product { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.fd-product img { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--line, #eee); border-radius: 10px; background: #fff; }
.fd-title { font-weight: 700; font-size: 14px; line-height: 1.3; color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-meta { font-size: 12px; color: var(--ink-soft, #666); margin-top: 2px; }
.fd-price { font-size: 19px; font-weight: 800; margin-top: 4px; }
.fd-price .was { font-size: 13px; font-weight: 500; color: var(--ink-soft, #888); text-decoration: line-through; margin-left: 6px; }
.fd-stock { font-size: 12px; font-weight: 600; } .fd-stock.ok { color: var(--ap-ok); } .fd-stock.out { color: var(--ap-no); }
.fd-head-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.fd-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.fd-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--line, #E3E5E8); border-radius: 10px;
  background: #fff; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; }
.fd-tab img { height: 20px; width: 32px; object-fit: contain; }
.fd-tab .n { font-size: 11px; color: var(--ink-soft, #777); font-weight: 600; }
.fd-tab.active { border-color: var(--ap-red); background: #FFF4F4; box-shadow: inset 0 0 0 1px var(--ap-red); }
.fd-list { display: flex; flex-direction: column; border: 1px solid var(--line, #eee); border-radius: 12px; overflow: hidden; }
.fd-model { border-bottom: 1px solid var(--line, #eee); }
.fd-model:last-of-type { border-bottom: 0; }
.fd-model > summary { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; }
.fd-model > summary::-webkit-details-marker { display: none; }
.fd-model.mine > summary { background: var(--ap-ok-bg); }
.fd-logo img { width: 40px; height: 26px; object-fit: contain; display: block; }
.fd-name { font-size: 14px; line-height: 1.2; } .fd-name .muted { font-size: 12px; display: block; }
.fd-years { font-size: 12.5px; font-weight: 600; color: var(--ink-soft, #555); font-variant-numeric: tabular-nums; }
.fd-model ul { list-style: none; margin: 0; padding: 0 12px 10px 62px; font-size: 12.5px; }
.fd-model li { display: grid; grid-template-columns: 82px 1fr; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line, #eee); }
.fd-model li span:first-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.fd-empty { padding: 16px; font-size: 13px; }
.fd-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr 1.25fr; gap: 8px; align-items: center;
  margin: 4px -20px 0; padding: 12px 20px; background: #fff; border-top: 1px solid var(--line, #eee); box-shadow: 0 -6px 18px rgba(0,0,0,.05); }
.fd-actions .btn { height: 44px; padding: 0 10px; white-space: nowrap; }
.fd-qty { display: flex; align-items: center; border: 1px solid var(--line, #E3E5E8); border-radius: 10px; height: 44px; }
.fd-qty button { width: 32px; height: 100%; border: 0; background: none; font-size: 18px; cursor: pointer; }
.fd-qty input { width: 30px; border: 0; text-align: center; font-weight: 700; font: inherit; background: none; }
.fd-more { display: block; text-align: center; font-size: 13px; font-weight: 600; padding: 10px 0 16px; }

/* Ajustes: en el cuerpo flex del drawer nada se encoge (las pestañas quedaban aplastadas) */
.fit-drawer .dbody > * { flex-shrink: 0; }
.pmakes-logos { flex: 1 1 auto; overflow: hidden; }
.pmakes-cta { flex: none; }
/* El drawer de compatibilidad va por encima de avisos flotantes (instalar app, chat) */
.fit-drawer { z-index: 1001; }
#fit-overlay { z-index: 1000; }

/* Botón destacado de compatibilidad en la ficha (abre el drawer) */
.fit-cta { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico txt go" "ico logos go"; column-gap: 12px; row-gap: 6px; align-items: center;
  width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--ap-red); background: #FFF6F6; cursor: pointer; font: inherit; color: inherit;
  box-shadow: 0 6px 18px rgba(215,20,26,.10); transition: transform .15s, box-shadow .15s, background .15s; }
.fit-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(215,20,26,.18); background: #FFEFEF; }
.fit-cta-ico { grid-area: ico; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ap-red); color: #fff; font-size: 20px; font-weight: 800; }
.fit-cta-txt { grid-area: txt; display: flex; flex-direction: column; line-height: 1.25; }
.fit-cta-txt strong { font-size: 16px; }
.fit-cta-txt small { font-size: 13px; color: var(--ink-soft, #555); }
.fit-cta-logos { grid-area: logos; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fit-cta-logos img { height: 24px; width: 38px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; border: 1px solid #F1D6D6; }
.fit-cta-logos .more { font-size: 12px; font-weight: 700; color: var(--ap-red); }
.fit-cta-go { grid-area: go; font-weight: 800; color: #fff; background: var(--ap-red); border-radius: 10px; padding: 10px 14px; white-space: nowrap; font-size: 14px; }
.fit-cta.ok { border-color: var(--ap-ok); background: var(--ap-ok-bg); box-shadow: 0 6px 18px rgba(30,142,62,.12); }
.fit-cta.ok .fit-cta-ico, .fit-cta.ok .fit-cta-go { background: var(--ap-ok); }
.fit-cta.no .fit-cta-ico { background: var(--ap-no); }
@media (max-width: 560px) { .fit-cta { grid-template-columns: auto 1fr; grid-template-areas: "ico txt" "logos logos" "go go"; } .fit-cta-go { text-align: center; } }

/* Selector dentro del drawer */
.fd-pick { border: 2px solid var(--ap-red); border-radius: 12px; padding: 12px; background: #FFF8F8; }
.fd-pick-title { font-size: 14px; margin-bottom: 8px; }
.fd-pick .vpick { grid-template-columns: 1fr 1fr; }
.fd-pick .vpick .btn { grid-column: 1 / -1; }
.fd-pick .vpick-engine { grid-column: 1 / -1; }

/* Inicio: logos en populares y "Comprá por marca" */
.ap-model .mk-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.ap-model .mk-row img { height: 22px; width: 34px; object-fit: contain; }
.ap-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ap-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border: 1px solid var(--line, #eaeaea); border-radius: 14px;
  background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.ap-brand:hover { border-color: var(--ap-red); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.ap-brand-logo { height: 52px; display: grid; place-items: center; }
.ap-brand-logo img { max-height: 52px; max-width: 86px; object-fit: contain; }
.ap-brand-name { font-weight: 800; font-size: 14px; }
.ap-brand-n { font-size: 12px; color: var(--ap-red); font-weight: 600; }
.fd-pick .vpick-field:nth-of-type(3) { grid-column: 1 / -1; }

/* ═══════════ INICIO (rediseño) ═══════════ */
.aps-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }
.aps-head h2 { margin: 2px 0 0; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
.aps-kicker { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ap-red); }

/* Hero oscuro */
.aph { position: relative; margin-top: 18px; border-radius: 22px; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(215,20,26,.38), transparent 60%),
    linear-gradient(135deg, #14171C 0%, #1E232B 55%, #14171C 100%); }
.aph::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 85%); mask-image: linear-gradient(90deg, #000 30%, transparent 85%); }
.aph::after { content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 140%; background: linear-gradient(180deg, #D7141A, #8E0B10);
  transform: skewX(-18deg); opacity: .22; pointer-events: none; }
.aph-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; padding: 40px 40px 26px; align-items: center; }
.aph-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #F2F2F2; }
.aph-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ECC71; box-shadow: 0 0 0 4px rgba(46,204,113,.2); }
.aph h1 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -.035em; margin: 16px 0 12px; color: #fff; }
.aph h1 em { font-style: normal; color: #fff; background: linear-gradient(transparent 62%, #D7141A 62%, #D7141A 90%, transparent 90%); padding: 0 4px; }
.aph-lead { color: #C9CDD4; font-size: 16px; max-width: 560px; margin: 0 0 20px; line-height: 1.5; }
.aph-search { background: #fff; color: #1E2330; border-radius: 16px; padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.aph-tabs { display: flex; gap: 6px; margin-bottom: 12px; background: #F3F4F6; padding: 4px; border-radius: 12px; width: fit-content; }
.aph-tabs button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 13.5px; padding: 8px 14px; border-radius: 9px; cursor: pointer; color: #555; }
.aph-tabs button.active { background: #fff; color: #D7141A; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.aph-search .vpick .btn, .aph-search .ap-pn-form .btn { height: 46px; }
.aph-search .ap-hint { color: #666; }
.aph-garage { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.aph-garage-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--ap-ok); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.aph-garage small { display: block; font-size: 12px; color: #777; font-weight: 600; }
.aph-garage strong { font-size: 18px; }
.aph-link { font-weight: 700; font-size: 13.5px; }
.aph-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 18px 0 0; font-size: 13.5px; color: #D5D8DE; font-weight: 600; }
.aph-trust li { display: flex; align-items: center; gap: 8px; }
.aph-trust svg { width: 20px; height: 20px; fill: none; stroke: #FF5A5F; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Collage de repuestos */
.aph-art { position: relative; height: 420px; }
.aph-ring { position: absolute; inset: 40px 30px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.12); }
.aph-card { position: absolute; width: 190px; background: #fff; border-radius: 18px; padding: 10px 10px 12px; box-shadow: 0 24px 50px rgba(0,0,0,.4);
  text-decoration: none; color: #1E2330; transition: transform .25s; }
.aph-card img { width: 100%; height: 130px; object-fit: contain; display: block; }
.aph-card-cat { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #888; margin-top: 6px; }
.aph-card-price { display: block; font-size: 17px; font-weight: 800; color: #D7141A; }
.aph-card-0 { left: 4%; top: 10px; transform: rotate(-7deg); }
.aph-card-1 { right: 2%; top: 30px; transform: rotate(6deg); }
.aph-card-2 { left: 12%; bottom: 0; transform: rotate(4deg); }
.aph-card-3 { right: 10%; bottom: 14px; transform: rotate(-5deg); }
.aph-card:hover { transform: rotate(0) scale(1.04); z-index: 2; }

.aph-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.18); }
.aph-stats > div { padding: 16px 20px; border-right: 1px solid rgba(255,255,255,.08); }
.aph-stats > div:last-child { border-right: 0; }
.aph-stats b { display: block; font-size: 24px; letter-spacing: -.02em; }
.aph-stats span { font-size: 12.5px; color: #AEB3BB; }

@media (max-width: 1000px) {
  .aph-grid { grid-template-columns: 1fr; padding: 26px 20px 20px; }
  .aph-art { display: none; }
  .aph-stats { grid-template-columns: repeat(2, 1fr); }
  .aph-stats > div { border-bottom: 1px solid rgba(255,255,255,.08); }
}

/* Marcas: fila de logos */
.apb-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.apb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; border-radius: 16px; background: #fff;
  border: 1px solid #ECEDF0; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.apb:hover { transform: translateY(-3px); border-color: #F3C2BF; box-shadow: 0 12px 26px rgba(215,20,26,.10); }
.apb-logo { height: 48px; display: grid; place-items: center; }
.apb-logo img { max-height: 44px; max-width: 78px; object-fit: contain; }
.apb-name { font-weight: 800; font-size: 13.5px; }
.apb-n { font-size: 11.5px; color: #8A8F98; font-weight: 600; }
.apb:hover .apb-n { color: var(--ap-red); }

/* Categorías */
.apc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.apc { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #ECEDF0; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.apc:hover { box-shadow: 0 16px 34px rgba(0,0,0,.08); transform: translateY(-3px); }
.apc-main { position: relative; display: block; height: 170px; text-decoration: none; color: #fff; overflow: hidden; }
.apc-0 .apc-main { background: linear-gradient(135deg, #D7141A, #8E0B10); }
.apc-1 .apc-main { background: linear-gradient(135deg, #1E2330, #3A4150); }
.apc-2 .apc-main { background: linear-gradient(135deg, #2B3240, #545E70); }
.apc-3 .apc-main { background: linear-gradient(135deg, #A80F14, #E1484C); }
.apc-main img { position: absolute; right: -14px; bottom: -10px; width: 62%; height: 88%; object-fit: contain; background: #fff; border-radius: 22px 0 0 0; padding: 10px;
  box-shadow: -10px -10px 30px rgba(0,0,0,.18); transition: transform .3s; }
.apc:hover .apc-main img { transform: scale(1.05) rotate(-2deg); }
.apc-txt { position: absolute; left: 16px; top: 16px; display: flex; flex-direction: column; z-index: 1; }
.apc-txt strong { font-size: 20px; letter-spacing: -.01em; }
.apc-txt small { font-size: 12.5px; opacity: .85; font-weight: 600; }
.apc-subs { display: flex; flex-direction: column; padding: 10px 14px 12px; gap: 2px; }
.apc-subs a { font-size: 13.5px; font-weight: 600; color: #333; text-decoration: none; padding: 4px 0; }
.apc-subs a:hover { color: var(--ap-red); }
@media (max-width: 900px) { .apc-grid { grid-template-columns: repeat(2, 1fr); } }

/* Vehículos populares */
.apv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.apv { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff;
  border: 1px solid #ECEDF0; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.apv:hover { border-color: var(--ap-red); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.06); }
.apv-logo { width: 52px; height: 52px; border-radius: 12px; background: #F6F7F9; display: grid; place-items: center; }
.apv-logo img { max-width: 40px; max-height: 30px; object-fit: contain; }
.apv-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.apv-txt small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8A8F98; }
.apv-txt strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apv-txt em { font-style: normal; font-size: 12px; color: #8A8F98; }
.apv-n { text-align: center; font-weight: 800; font-size: 18px; color: var(--ap-red); line-height: 1; }
.apv-n small { display: block; font-size: 10.5px; font-weight: 600; color: #8A8F98; }

/* Cómo funciona */
.aph-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; border-radius: 18px; background: #F7F8FA; border: 1px solid #ECEDF0; }
.aph-how-step { display: flex; gap: 14px; align-items: flex-start; }
.aph-how-step .n { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 2px solid var(--ap-red); color: var(--ap-red); display: grid; place-items: center; font-weight: 800; }
.aph-how-step strong { font-size: 15px; }
.aph-how-step p { margin: 4px 0 0; font-size: 13.5px; color: #666; line-height: 1.45; }
@media (max-width: 800px) { .aph-how { grid-template-columns: 1fr; } }

/* Banda para vendedores */
.ap-sell { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: 20px; color: #fff;
  background: radial-gradient(600px 240px at 90% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, #D7141A, #8E0B10); }
.ap-sell h2 { margin: 4px 0 6px; font-size: clamp(20px, 2.6vw, 28px); color: #fff; letter-spacing: -.02em; }
.ap-sell p { margin: 0; max-width: 640px; opacity: .9; font-size: 14.5px; }
.ap-sell-btn { background: #fff; color: #D7141A; font-weight: 800; border: 0; }
.ap-sell-btn:hover { background: #FFF1F1; color: #A80F14; }

/* Ajustes del inicio: sin desborde en móvil, collage sin encimarse, marcas en una fila */
.aph-grid > *, .aph-search, .aph-pane { min-width: 0; }
.aph-search .vpick { min-width: 0; }
.aph-art { height: 480px; }
.aph-card { width: 172px; }
.aph-card img { height: 112px; }
.aph-card-0 { left: 0; top: 0; }
.aph-card-1 { right: 0; top: 24px; }
.aph-card-2 { left: 16%; bottom: 0; top: auto; }
.aph-card-3 { right: 6%; bottom: 10px; top: auto; }
.apb-row { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
@media (max-width: 760px) {
  .apb-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .apb-row::-webkit-scrollbar { display: none; }
  .apb { flex: 0 0 104px; scroll-snap-align: start; }
  .aph h1 { font-size: 32px; }
  .aph-tabs { width: 100%; }
  .aph-tabs button { flex: 1; padding: 8px 6px; font-size: 12.5px; }
  .aph-stats b { font-size: 20px; }
  .aph-stats > div { padding: 12px 16px; }
  .aph-stats > div:last-child { grid-column: 1 / -1; }
  .apc-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .apc-main { height: 132px; }
  .apc-main img { width: 58%; height: 62%; }
  .apc-txt strong { font-size: 16px; }
  .apc-subs a { font-size: 12.5px; }
  .ap-sell { padding: 22px 20px; }
}

/* Hero compacto + vitrina del repuesto destacado (reemplaza el collage) */
.aph-grid { padding: 28px 32px 22px; gap: 32px; grid-template-columns: 1.3fr 1fr; }
.aph h1 { font-size: clamp(28px, 3.6vw, 44px); margin: 12px 0 8px; }
.aph-lead { font-size: 15px; margin-bottom: 16px; }
.aph-trust { margin-top: 14px; }
.aph-stats > div { padding: 12px 20px; }
.aph-stats b { font-size: 20px; }
.aph-stats span { font-size: 12px; }

.aph-show { position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 16px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.aph-show-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.aph-show-tag { color: #FF8A8D; }
.aph-show-ok { color: #7BE2A0; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3); padding: 4px 9px; border-radius: 999px; letter-spacing: .02em; text-transform: none; font-size: 12px; }
.aph-show-main { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; }
.aph-show-img { display: grid; place-items: center; height: 150px; border-radius: 16px; background: radial-gradient(circle at 50% 45%, #fff 0%, #fff 55%, #EEF0F3 100%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.aph-show-img img { max-width: 86%; max-height: 86%; object-fit: contain; transition: transform .3s; }
.aph-show:hover .aph-show-img img { transform: scale(1.06) rotate(-3deg); }
.aph-show-body { min-width: 0; }
.aph-show-body small { display: block; font-size: 12px; color: #AEB3BB; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aph-show-body strong { display: block; font-size: 22px; letter-spacing: -.02em; margin: 2px 0 8px; color: #fff; }
.aph-show-fits { font-size: 13.5px; color: #D5D8DE; }
.aph-show-fits b { font-size: 22px; color: #fff; margin-right: 2px; }
.aph-show-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.aph-show-logos span { width: 42px; height: 30px; border-radius: 8px; background: #fff; display: grid; place-items: center; }
.aph-show-logos img { max-width: 32px; max-height: 20px; object-fit: contain; }
.aph-show-logos em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: rgba(255,255,255,.12); border-radius: 8px; padding: 6px 8px; }
.aph-show-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.aph-show-price { font-size: 24px; font-weight: 800; color: #fff; }
.aph-show-price s { font-size: 13px; color: #8E949D; font-weight: 500; margin-left: 6px; }
.aph-show-foot .btn { height: 42px; white-space: nowrap; }
@media (max-width: 1000px) { .aph-show { display: none; } }
