/* Repuestos Cerón SpA — estilos del sitio. Colores tomados del logo (negro + amarillo #FECB20). */
/* Fuentes servidas desde la tienda (antes Google Fonts): latín básico, que incluye tildes, ñ, ¿ y ¡ */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-800-latin.woff2") format("woff2"); }
/* Reemplazos del mismo ancho (Arial o Roboto ajustadas) mientras cargan las fuentes: los títulos no cambian
   de largo al llegar la fuente real y la página no salta. Medido: Barlow 700 en mayúsculas = 67 % de Arial negrita. */
@font-face { font-family: "Barlow Condensed Fallback"; font-weight: 600 800; size-adjust: 67%; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"), local("Helvetica Bold"); }
@font-face { font-family: "Inter Fallback"; font-weight: 400 500; size-adjust: 106%; src: local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular"), local("Helvetica"); }
@font-face { font-family: "Inter Fallback"; font-weight: 600 700; size-adjust: 101%; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"), local("Helvetica Bold"); }

:root {
  --ink: #0b0b0b;
  --ink-2: #151515;
  --ink-3: #222;
  --ink-4: #2f2f2f;
  --bg: #f4f4f1;
  --surface: #fff;
  --text: #17181a;
  --muted: #5d6066;
  --line: #e2e2dc;
  --line-dark: rgba(255, 255, 255, .12);
  --yellow: #fecb20;
  --yellow-2: #f2b705;
  --yellow-soft: #fff5cf;
  --green: #17894a;
  --green-soft: #e6f5ec;
  --red: #c62f24;
  --red-soft: #fdecea;
  --wa: #25d366;
  --wa-2: #1ebe5b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 10px 30px -12px rgba(0, 0, 0, .18);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .45);
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-d: "Barlow Condensed", "Barlow Condensed Fallback", "Arial Narrow", system-ui, sans-serif;
  --hdr-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: max(140px, calc(var(--hdr-h) + 16px)); } /* --hdr-h lo mide app.js: en celular el encabezado fijo mide más de 140 px */
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 700; line-height: 1.05; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.eyebrow { font: 700 .78rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #8a6400; margin: 0 0 .8em; }
/* Sobre fondo claro el amarillo no se lee (contraste 1,6): dorado oscuro. Sobre fondo negro, amarillo */
.hero .eyebrow, .section-dark .eyebrow, .encargo-in .eyebrow { color: var(--yellow-2); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 70ch; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: .7em 1.2em; border: 2px solid transparent; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, transform .18s, box-shadow .18s, border-color .18s; }
.btn:hover { background: var(--yellow-2); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(242, 183, 5, .7); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-lg { min-height: 52px; font-size: 1rem; padding: .8em 1.5em; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--text); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn-wa { background: var(--wa); color: #06361a; }
.btn-wa:hover { background: var(--wa-2); box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .7); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn:hover { background: rgba(0, 0, 0, .06); }
.icon-btn .i { width: 22px; height: 22px; }
.link-btn { background: none; border: 0; padding: 8px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .9rem; }

/* ---------- Cabecera ---------- */
.demo-bar { background: var(--yellow); color: var(--ink); text-align: center; font-size: .8rem; font-weight: 600; padding: 6px 16px; }
.hdr { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; box-shadow: 0 1px 0 var(--line-dark); transition: transform .25s ease; }
/* En celular se esconde al bajar y aparece al subir (app.js agrega .hdr-oculto) */
@media (max-width: 899px) { .hdr.hdr-oculto { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .hdr { transition: none; } }
.topbar { background: #000; font-size: .78rem; color: #c9c9c9; border-bottom: 1px solid var(--line-dark); }
.topbar-in { display: flex; align-items: center; gap: 22px; min-height: 34px; overflow: hidden; }
.topbar-in > * { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar .i { color: var(--yellow); }
.topbar a { margin-left: auto; color: #fff; font-weight: 600; text-decoration: none; }
.topbar a .i { color: var(--wa); }
.snd-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: #ddd; font-size: .76rem; cursor: pointer; }
.snd-btn:hover { border-color: var(--yellow); color: #fff; }
.snd-btn .i { width: 16px; height: 16px; color: var(--yellow); }
.snd-btn .snd-off, .snd-btn[aria-pressed=false] .snd-on { display: none; }
.snd-btn[aria-pressed=false] .snd-off { display: inline; color: #888; }
.snd-btn[aria-pressed=false] { color: #888; }
.hdr-main { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo . auto cart" "search search search search"; align-items: center; gap: 10px 10px; padding-top: 10px; padding-bottom: 12px; }
.logo { grid-area: logo; display: block; }
.logo img { height: 46px; width: auto; }
.search { grid-area: search; position: relative; display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 4px 4px 4px 14px; }
.search-i { color: #777; width: 20px; height: 20px; }
.search input { flex: 1; min-width: 0; min-height: 40px; border: 0; outline: 0; background: transparent; padding: 8px 10px; color: var(--text); font-size: 16px; }
.search input:focus { box-shadow: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { box-shadow: 0 0 0 3px var(--yellow); }
.search-btn { min-height: 38px; padding: .45em 1.1em; }
.auto-chip { grid-area: auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 999px; background: var(--ink-3); color: #fff; cursor: pointer; text-align: left; }
.auto-chip:hover { border-color: var(--yellow); }
.auto-chip .i { color: var(--yellow); width: 22px; height: 22px; }
.auto-chip span { display: grid; line-height: 1.1; }
.auto-chip small { font-size: .66rem; color: #aaa; text-transform: uppercase; letter-spacing: .08em; }
.auto-chip b { font-size: .85rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto-chip.is-set { border-color: var(--yellow); background: rgba(254, 203, 32, .12); }
.cart-btn { grid-area: cart; position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); cursor: pointer; transition: transform .2s; }
.cart-btn .i { width: 24px; height: 24px; }
.cart-btn:hover { transform: scale(1.05); }
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--ink); font: 800 .72rem/21px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--ink); }
.cart-count:empty, .cart-count[data-zero] { display: none; }
.catnav { background: var(--ink-2); border-top: 1px solid var(--line-dark); }
.catnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a { display: inline-flex; align-items: center; gap: 6px; padding: 11px 12px; font-size: .86rem; font-weight: 500; color: #ddd; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover, .catnav a[aria-current] { color: #fff; border-bottom-color: var(--yellow); }
.catnav .catnav-hot { color: var(--yellow); font-weight: 700; }
.catnav .catnav-hot .i { width: 16px; height: 16px; }
@media (max-width: 640px) { .hide-sm { display: none !important; } .auto-chip span small { display: none; } .auto-chip b { max-width: 84px; } }
@media (min-width: 900px) {
  .hdr-main { grid-template-columns: auto minmax(300px, 1fr) auto auto; grid-template-areas: "logo search auto cart"; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
  .logo img { height: 58px; }
  .search { max-width: 640px; }
}

/* Resultados de búsqueda */
.sr { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.sr-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.sr-item:hover, .sr-item.is-active { background: var(--yellow-soft); }
.sr-thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; overflow: hidden; }
.sr-thumb .i { width: 24px; height: 24px; }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-txt { min-width: 0; }
.sr-txt b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-txt small { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-price { font-weight: 800; font-size: .92rem; text-align: right; }
.sr-price small { display: block; font-weight: 600; font-size: .7rem; }
.sr-all { display: block; padding: 12px 14px; font-weight: 700; text-align: center; background: var(--bg); text-decoration: none; }
.sr-all:hover { background: var(--yellow-soft); }
.sr-none { padding: 16px; font-size: .92rem; }
.sr-none a { font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 11, 11, .96) 0%, rgba(11, 11, 11, .82) 45%, rgba(11, 11, 11, .35) 100%), linear-gradient(0deg, rgba(11, 11, 11, .9), transparent 40%); }
.hero-in { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 44px; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); line-height: .98; margin-bottom: .35em; }
.hero h1 span { color: var(--yellow); }
.hero-lead { font-size: 1.08rem; color: #d7d7d7; max-width: 56ch; }
.hero-pillars { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-pillars li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; padding: 10px 12px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); backdrop-filter: blur(4px); }
.hero-pillars .i { color: var(--yellow); width: 22px; height: 22px; }
.hero-card { background: #fff; color: var(--text); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--yellow); align-self: center; }
.hero-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.55rem; }
.hero-card h2 .i { width: 30px; height: 30px; color: var(--ink); background: var(--yellow); border-radius: 8px; padding: 4px; }
.hero-card-alt { margin: 14px 0 0; font-size: .86rem; color: var(--muted); text-align: center; }
.hero-card-alt a { color: var(--text); font-weight: 600; }
@media (min-width: 980px) {
  .hero-in { grid-template-columns: 1.25fr .9fr; gap: 56px; padding-top: 72px; padding-bottom: 80px; align-items: center; }
  .hero-pillars { grid-template-columns: repeat(4, auto); justify-content: start; }
  .hero-card { padding: 30px; }
}

/* Buscador por vehículo */
.finder { display: grid; gap: 12px; }
.finder label, .card-form label, .co-form label { display: grid; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--text); }
:where(select, input:not([type=checkbox], [type=radio]), textarea) {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 16px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 0; resize: vertical; }
select { max-width: 100%; text-overflow: ellipsis; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
select:disabled { background-color: #f3f3f0; color: #999; }
:where(select, input, textarea):focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(254, 203, 32, .5); }
[aria-invalid=true] { border-color: var(--red) !important; }

/* ---------- Secciones ---------- */
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 900px) { .section { padding-top: 84px; padding-bottom: 84px; } }
.section-alt { background: #fff; }
.section-dark { background: var(--ink); color: #fff; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sec-head h2 { margin: 0; }
.sec-head-center { justify-content: center; text-align: center; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.more .i { transition: transform .2s; }
.more:hover .i { transform: translateX(3px); }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, .1)); transition: background .3s; }
.cat:hover img { transform: scale(1.06); }
.cat:hover::after { background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .35) 70%, rgba(254, 203, 32, .12)); }
.cat-txt { position: absolute; left: 14px; right: 14px; bottom: 12px; display: grid; gap: 2px; }
.cat-txt .i { width: 26px; height: 26px; color: var(--yellow); margin-bottom: 4px; }
.cat-txt b { font: 700 1.2rem/1.05 var(--font-d); text-transform: uppercase; }
.cat-txt small { font-size: .78rem; color: #cfcfcf; }
@media (min-width: 700px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(5, 1fr); } .cat-xl { grid-column: span var(--span, 2); grid-row: span var(--rows, 2); aspect-ratio: auto; } .cat-xl.cat-banner { aspect-ratio: 16/5; } .cat-xl .cat-txt b { font-size: 2rem; } }

/* ---------- Tarjeta de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1180px) { .grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d2d2ca; }
.pcard-media { position: relative; display: block; aspect-ratio: 4/3; background: var(--ink); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-off { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font: 800 .8rem/1 var(--font); padding: 6px 8px; border-radius: 6px; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 14px; }
.pcard-meta { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.pcard-meta span { color: #bbb; }
.pcard-title { font: 600 .95rem/1.3 var(--font); letter-spacing: 0; text-transform: none; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-title a { text-decoration: none; }
.pcard-title a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.pcard-veh { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin: 0 0 8px; }
.pcard-veh .i { width: 16px; height: 16px; margin-top: 1px; }
.pcard-veh span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { margin-top: auto; display: grid; gap: 8px; }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.price strong { font: 800 1.35rem/1.1 var(--font); letter-spacing: -.01em; }
.price s { color: var(--muted); font-size: .85rem; }
.price-ask strong { font-size: 1.1rem; }
.pcard .btn { min-height: 40px; font-size: .88rem; padding: .5em 1em; }
.pcard .btn .i { width: 18px; height: 18px; }
@media (max-width: 420px) { .pcard-body { padding: 10px; } .price strong { font-size: 1.15rem; } .pcard .btn { font-size: .82rem; padding: .5em .6em; } }

/* Placeholder de foto: ficha visual por categoría */
.ph { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; color: var(--yellow);
  background: radial-gradient(circle at 70% 30%, rgba(254, 203, 32, .16), transparent 55%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px), linear-gradient(160deg, #1d1d1d, #0b0b0b); }
.ph-i { width: 42%; height: 42%; stroke-width: 1.2; filter: drop-shadow(0 6px 18px rgba(254, 203, 32, .25)); transition: transform .4s ease; }
.pcard:hover .ph-i { transform: scale(1.06) rotate(-3deg); }
.ph-brand { position: absolute; left: 12px; bottom: 10px; font: 700 .9rem/1 var(--font-d); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.ph-sku { position: absolute; right: 12px; bottom: 10px; font: 600 .68rem/1 var(--font); letter-spacing: .06em; color: #8d8d8d; }
.ph-xl { height: auto; aspect-ratio: 4/3; border-radius: var(--radius); }
.ph-xl .ph-brand { font-size: 1.4rem; left: 20px; bottom: 18px; }
.ph-xl .ph-sku { font-size: .8rem; right: 20px; bottom: 20px; }

/* Stock */
.stock { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .78rem; font-weight: 700; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock .i { width: 15px; height: 15px; }
.stock-ok { color: var(--green); }
.stock-low { color: var(--red); }
.stock-low .dot { animation: pulse 1.6s infinite; }
.stock-out { color: var(--muted); }
.stock-pedido { color: #8a6100; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 47, 36, .5); } 70% { box-shadow: 0 0 0 7px rgba(198, 47, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 47, 36, 0); } }
.fit-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; margin: 0 0 8px; width: fit-content; }
.fit-badge .i { width: 14px; height: 14px; }
.fit-yes { background: var(--green-soft); color: var(--green); }
.fit-uni { background: #eef1f6; color: #3b4a63; }
.fit-no { background: #f4f4f1; color: var(--muted); }

/* ---------- Bloques home ---------- */
.split { display: grid; gap: 28px; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.split-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split-rev .split-media { order: 2; } }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks .i { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--yellow); color: var(--ink); stroke-width: 3; margin-top: 1px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px 22px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--ink-2); }
.steps h3 { font-size: 1.5rem; text-transform: uppercase; margin: 14px 0 6px; }
.steps p { color: #bdbdbd; margin: 0; }
.step-n { position: absolute; top: 18px; right: 20px; font: 800 3rem/1 var(--font-d); color: rgba(254, 203, 32, .22); }
.step-i { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--yellow); color: var(--ink); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.encargo-in { position: relative; display: grid; border-radius: 24px; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.encargo-in > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; z-index: -1; }
.encargo-in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 11, 11, .95), rgba(11, 11, 11, .7)); }
.encargo-copy { padding: 32px 22px; max-width: 760px; }
.encargo-copy p:not(.eyebrow) { color: #d0d0d0; }
.encargo-form { display: grid; gap: 12px; margin-top: 20px; }
.encargo-form label { display: grid; gap: 6px; font-size: .84rem; font-weight: 600; }
.encargo-form input { border-color: transparent; }
@media (min-width: 800px) { .encargo-copy { padding: 56px; } .encargo-form { grid-template-columns: 180px 1fr auto; align-items: end; } }
.brands { list-style: none; padding: 0; margin: 0 0 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.brands a { display: block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font: 700 1.05rem/1 var(--font-d); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: #444; background: var(--bg); transition: all .18s; }
.brands a:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.veh-head { margin-bottom: 20px; }
.veh-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.veh-links a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); text-decoration: none; font-size: .92rem; transition: background .18s; }
.veh-links a:hover { background: var(--yellow-soft); }
.veh-links .i { color: var(--muted); }
.veh-links small { margin-left: auto; font-weight: 700; font-size: .75rem; color: var(--muted); background: #fff; border-radius: 999px; padding: 2px 8px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }
.cta { background: var(--yellow); color: var(--ink); }
.cta-in { display: grid; gap: 22px; justify-items: center; text-align: center; padding-top: 48px; padding-bottom: 48px; }
.cta-in img { width: 110px; height: 110px; border-radius: 50%; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; max-width: 56ch; }
.cta .btn { background: var(--ink); color: #fff; }
.cta .btn:hover { background: var(--ink-3); }
.cta .btn-wa { background: #fff; color: var(--ink); }
.cta .btn-row { justify-content: center; align-items: center; }
.cta-in > * { align-self: center; }
@media (min-width: 900px) { .cta-in { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; gap: 32px; } }

/* ---------- Pie ---------- */
.ftr { background: var(--ink); color: #bdbdbd; font-size: .92rem; padding-top: 56px; }
.ftr-grid { display: grid; gap: 34px; }
.ftr h2 { font-size: 1.1rem; color: #fff; margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--yellow); }
.ftr-brand { display: grid; gap: 18px; }
.ftr-brand img { width: 110px; height: 110px; }
.ftr-lema { font: 700 1.3rem/1 var(--font-d); text-transform: uppercase; color: var(--yellow); letter-spacing: .04em; margin-bottom: 8px; }
.ftr-contact { margin-top: 14px !important; }
.ftr-contact li, .ftr-contact a { display: flex; gap: 8px; align-items: center; }
.ftr-contact .i { color: var(--yellow); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 44px; padding-top: 20px; padding-bottom: 90px; border-top: 1px solid var(--line-dark); font-size: .8rem; color: #8a8a8a; }
.ftr-bottom p { margin: 0; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr .8fr; } .ftr-brand { grid-template-columns: auto 1fr; } .ftr-bottom { padding-bottom: 28px; } }

/* ---------- Carrito (drawer), modal, toast, WhatsApp ---------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden], .modal[hidden] { display: none; }
.drawer-bg, .modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fade .2s ease; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow-lg); animation: slide .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.6rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--bg); }
.drawer-foot p { margin: 0; }
.drawer-empty { text-align: center; padding: 48px 10px; color: var(--muted); }
.drawer-empty .i { width: 54px; height: 54px; margin: 0 auto 14px; color: #c9c9c2; }
.citem { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.citem-thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; overflow: hidden; }
.citem-thumb .i { width: 30px; height: 30px; }
.citem-thumb img { width: 100%; height: 100%; object-fit: cover; }
.citem-name { font-weight: 600; font-size: .9rem; line-height: 1.3; text-decoration: none; display: block; }
.citem-meta { font-size: .76rem; color: var(--muted); margin: 2px 0 8px; }
.citem-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.citem-price { font-weight: 800; }
.citem-warn { font-size: .76rem; color: var(--red); font-weight: 600; margin: 6px 0 0; }
.citem-del { background: none; border: 0; color: var(--muted); font-size: .78rem; text-decoration: underline; cursor: pointer; padding: 4px 0; margin-top: 4px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sum-row strong { font-size: 1.35rem; font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: none; font-size: 1.15rem; font-weight: 600; cursor: pointer; }
.qty button:hover { background: var(--bg); }
.qty input { width: 44px; min-height: 38px; height: 38px; padding: 0; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; border-radius: 0; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty input:focus { box-shadow: none; }
.qty-sm button { width: 32px; height: 32px; font-size: 1rem; }
.qty-sm input { width: 34px; height: 32px; min-height: 32px; font-size: .88rem; }
.modal { display: grid; place-items: center; padding: 16px; }
.modal-panel { position: relative; width: min(460px, 100%); background: #fff; border-radius: 20px; padding: 28px 24px 18px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--yellow); animation: pop .25s cubic-bezier(.2, .8, .2, 1); max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-panel h2 { font-size: 2rem; margin-bottom: .2em; }
.modal-x { position: absolute; top: 10px; right: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: .92rem; animation: pop .25s ease; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }
.toast .i { color: var(--yellow); }
.toast .btn { min-height: 36px; padding: .35em 1em; font-size: .85rem; }
/* WhatsApp: botón flotante con pulso + burbuja de ayuda */
.wa-widget { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: grid; justify-items: end; gap: 14px; }
body.has-buybar .wa-widget { bottom: calc(86px + env(safe-area-inset-bottom)); }
.wa-float { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .75); animation: waRing 2.4s ease-out infinite; transition: transform .2s; }
.wa-float .i { width: 38px; height: 38px; }
.wa-float span { display: none; line-height: 1.15; padding-right: 8px; }
.wa-float b { display: block; font-size: .98rem; }
.wa-float small { display: block; font-size: .78rem; opacity: .95; }
.wa-float:hover { transform: translateY(-2px) scale(1.03); }
@keyframes waRing { 0% { box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .75), 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .75), 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .75), 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (min-width: 700px) { .wa-float { padding: 10px 20px 10px 12px; } .wa-float span { display: block; } }
.wa-pop { position: relative; width: min(340px, calc(100vw - 32px)); display: grid; gap: 12px; padding: 16px; background: #fff; border-radius: 18px; border-top: 4px solid var(--wa); box-shadow: var(--shadow-lg); animation: pop .35s cubic-bezier(.2, .8, .2, 1); transform-origin: bottom right; }
.wa-pop::after { content: ""; position: absolute; right: 26px; bottom: -8px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }
.wa-pop-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; }
.wa-pop-x .i { width: 16px; height: 16px; }
.wa-pop-head { display: flex; align-items: center; gap: 10px; padding-right: 36px; }
.wa-pop-head img { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.wa-pop-head b { display: block; font-size: 1rem; }
.wa-pop-head small { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); flex: none; }
.wa-pop-bubble { padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: #e8f8ee; color: #173d27; font-size: .9rem; line-height: 1.45; }
.wa-pop-bubble p { margin: 0 0 6px; }
.wa-pop-bubble p:last-child { margin: 0; }
.wa-pop-hora { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: .75rem; color: var(--muted); text-align: center; }
.wa-pop-hora .i { width: 14px; height: 14px; flex: none; }
/* Franja de ayuda por WhatsApp en la portada */
.wa-band { background: linear-gradient(100deg, #083826 0%, #0d5237 60%, #0f6340 100%); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.wa-band-in { display: grid; gap: 16px; padding-top: 26px; padding-bottom: 26px; align-items: center; }
.wa-band-icon { display: none; width: 66px; height: 66px; border-radius: 50%; background: var(--wa); color: #fff; place-items: center; animation: waRing 2.4s ease-out infinite; }
.wa-band-icon .i { width: 36px; height: 36px; }
.wa-band h2 { margin: 0 0 10px; font-size: clamp(1.45rem, 3vw, 2.05rem); color: #fff; }
.wa-band h2 span { color: #6dfca3; }
.wa-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: #d4f3e1; }
.wa-steps li { display: flex; align-items: center; gap: 8px; }
.wa-steps b { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: .8rem; }
.wa-band-btn { width: 100%; white-space: normal; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .8); }
.wa-band-btn .i { width: 24px; height: 24px; }
@media (min-width: 900px) { .wa-band-in { grid-template-columns: auto 1fr auto; gap: 24px; } .wa-band-icon { display: grid; } .wa-band-btn { width: auto; white-space: nowrap; } }

/* ---------- Listado con filtros ---------- */
.crumbs { padding-top: 16px; font-size: .82rem; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #bbb; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing { padding-top: 18px; padding-bottom: 64px; }
.listing-head { margin-bottom: 22px; }
.listing-head h1 { margin-bottom: .25em; }
.listing-grid { display: grid; gap: 24px; }
.filters { display: none; }
.js .filters { display: block; }
.filters-head, .filters-apply { display: none; }
.fbox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; margin-bottom: 12px; }
.fbox summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; }
.fbox summary::-webkit-details-marker { display: none; }
.fbox summary::after { content: "–"; color: var(--muted); }
.fbox:not([open]) summary::after { content: "+"; }
.fbox[open] { padding-bottom: 12px; }
.fbox-auto { padding: 16px; }
.fbox-auto:empty { display: none; }
.fbox-auto p { margin: 0 0 10px; font-size: .9rem; }
.fbox-auto b { display: block; font: 700 1.25rem/1.1 var(--font-d); text-transform: uppercase; }
.fbox-auto .btn { min-height: 38px; font-size: .85rem; }
.opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.opt small { margin-left: auto; color: var(--muted); font-size: .76rem; }
.switch { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: #d4d4ce; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(16px); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.results-bar p { margin: 0; color: var(--muted); }
.results-bar strong { color: var(--text); }
.results-tools { display: flex; gap: 8px; }
.sort select { min-height: 42px; border-radius: 999px; font-size: .88rem; font-weight: 600; padding: 8px 36px 8px 14px; }
.btn-filters { min-height: 42px; font-size: .88rem; padding: .4em 1em; }
.btn-filters .i { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .82rem; border: 0; cursor: pointer; }
.chip .i { width: 14px; height: 14px; color: var(--yellow); }
.chip-clear { background: transparent; color: var(--text); text-decoration: underline; padding: 6px; }
.empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed #cfcfc6; border-radius: var(--radius); }
.empty-i { width: 52px; height: 52px; color: var(--yellow-2); margin: 0 auto 12px; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 20px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pcard[hidden] { display: none; }
.tip { display: flex; gap: 16px; margin-top: 32px; padding: 22px; border-radius: var(--radius); background: var(--yellow-soft); border: 1px solid #f3dd8a; }
.tip-i { width: 36px; height: 36px; flex: none; padding: 7px; border-radius: 10px; background: var(--yellow); color: var(--ink); }
.tip h2 { font-size: 1.3rem; margin-bottom: .3em; }
.tip p { margin: 0; }
@media (max-width: 979px) {
  .filters { position: fixed; inset: 0; z-index: 85; display: none !important; overflow-y: auto; background: var(--bg); padding: 0 16px 24px; }
  .filters.is-open { display: block !important; animation: fade .2s; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); padding: 12px 0; z-index: 1; }
  .filters-head h2 { margin: 0; }
  .filters-apply { display: flex; position: sticky; bottom: 12px; }
}
@media (min-width: 980px) {
  .listing-grid { grid-template-columns: 260px 1fr; align-items: start; }
  .filters { position: sticky; top: calc(var(--hdr-h) + 16px); max-height: calc(100vh - var(--hdr-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
  .btn-filters { display: none; }
}

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; gap: 24px; padding-top: 18px; padding-bottom: 28px; }
.pdp > * { min-width: 0; }
.pdp-media { position: relative; }
.pdp-media > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: #fff; }
/* Galería de fotos: se desliza con el dedo; flechas y miniaturas en pantallas grandes */
.gal { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.gal-slide { position: relative; flex: 0 0 100%; margin: 0; aspect-ratio: 1 / 1; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
/* Fondo difuminado con la miniatura (240 px): con la foto grande se descargaban todas las fotos al abrir la ficha */
.gal-slide::before { content: ""; position: absolute; inset: -40px; background: var(--foto) center / cover; filter: blur(28px) saturate(.9) brightness(.92); }
.gal-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(11, 11, 11, .72); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: background .2s, opacity .2s; }
.gal-nav:hover { background: var(--ink); }
.gal-nav:disabled { opacity: 0; pointer-events: none; }
.gal-nav .i { width: 22px; height: 22px; }
.gal-prev { left: 12px; } .gal-prev .i { rotate: 180deg; }
.gal-next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 11, 11, .72); color: #fff; font: 600 .78rem/1.4 var(--font); }
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gal-thumb { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: #fff; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb:hover { opacity: 1; }
.gal-thumb.is-on { border-color: var(--yellow-2); opacity: 1; }
@media (max-width: 640px) { .gal-nav { display: none; } .gal-thumb { flex-basis: 60px; height: 60px; } }
.pdp-price-ask strong { font-size: 2rem; }
.pdp-ask-note { color: var(--muted); font-size: .92rem; }
.pdp-media .badge-off { top: 16px; left: 16px; font-size: 1rem; }
.pdp-photo-note { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.pdp-photo-note a { color: var(--text); font-weight: 600; }
.pdp-info { display: grid; gap: 14px; align-content: start; }
.pdp-info > * { margin: 0; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pdp-meta a { color: var(--text); }
.pdp-meta span { color: #c3c3bb; }
.pdp h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.pdp-brand { color: var(--yellow-2); }
.pdp-veh { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.pdp-veh .i { width: 22px; height: 22px; color: var(--muted); }
.fit-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
.fit-check .i { width: 22px; height: 22px; flex: none; }
.fit-check p { margin: 0; }
.fit-check b { display: block; }
.fit-check.fit-yes { background: var(--green-soft); color: #0f5e33; border: 1px solid #bfe3cd; }
.fit-check.fit-no { background: var(--red-soft); color: #7d1d16; border: 1px solid #f3c4bf; }
.fit-check.fit-uni { background: #eef1f6; color: #2b3950; border: 1px solid #d5dce8; }
.fit-check.fit-ask { background: #fff; border: 1px dashed #cfcfc6; }
.fit-check button { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 600; color: inherit; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pdp-price strong { font: 800 2.4rem/1 var(--font); letter-spacing: -.02em; }
.pdp-price s { color: var(--muted); font-size: 1.1rem; }
.pdp-price small { color: var(--muted); font-size: .82rem; }
.pdp-info .stock { font-size: .95rem; }
.pdp-buy { display: flex; gap: 10px; }
.pdp-buy .qty button { width: 44px; height: 50px; }
.pdp-buy .qty input { height: 50px; }
.btn-grow { flex: 1; }
.pdp-trust { list-style: none; padding: 14px 0 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); font-size: .84rem; }
.pdp-trust li { display: flex; gap: 8px; align-items: center; }
.pdp-trust .i { color: var(--green); }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 24px; } .pdp-media { position: sticky; top: calc(var(--hdr-h) + 20px); align-self: start; } }
.pdp-details { display: grid; gap: 16px; padding-bottom: 20px; }
.pdp-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pdp-box h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 8px; }
.pdp-box p:last-child { margin-bottom: 0; }
.pdp-tip { background: var(--yellow-soft); border-color: #f3dd8a; }
@media (min-width: 900px) { .pdp-details { grid-template-columns: 1fr 1fr; } }
.compat { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 12px; }
.compat th { text-align: left; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; background: var(--bg); }
.compat td { padding: 10px; border-bottom: 1px solid var(--line); }
.compat a { font-weight: 600; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; word-break: break-word; }
.related { padding-top: 32px; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .2); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); animation: up .25s ease; }
.buybar[hidden] { display: none; }
@keyframes up { from { transform: translateY(100%); } }
.buybar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybar-in div { min-width: 0; display: grid; }
.buybar-in b { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.buybar-in strong { font-size: 1.15rem; }

/* ---------- Formularios, checkout, resultados ---------- */
.card-form, .co-form, .co-summary { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.card-form h2 { font-size: 1.8rem; margin: 0; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.card-form label small, .co-form label small { font-weight: 400; color: var(--muted); }
.form-ok { position: absolute; inset: 0; background: #fff; border-radius: 20px; display: grid; place-content: center; text-align: center; padding: 28px; gap: 8px; }
.form-ok[hidden] { display: none; }
.card-form { position: relative; }
.ok-i { width: 60px; height: 60px; margin: 0 auto 8px; padding: 12px; border-radius: 50%; background: var(--green-soft); color: var(--green); stroke-width: 2.5; }
.cotizar { display: grid; gap: 28px; padding-top: 20px; padding-bottom: 64px; }
.cotizar-copy img { border-radius: 20px; margin-top: 24px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
@media (min-width: 960px) { .cotizar { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.checkout { padding-top: 24px; padding-bottom: 64px; }
.co-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .co-grid { grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; } .co-summary { position: sticky; top: calc(var(--hdr-h) + 20px); } }
.co-grid > *, .cotizar > * { min-width: 0; }
.co-form fieldset { min-width: 0; border: 0; padding: 0 0 18px; margin: 0; display: grid; gap: 14px; border-bottom: 1px solid var(--line); }
.co-form fieldset:last-of-type { border-bottom: 0; }
.co-form legend { display: flex; align-items: center; gap: 10px; font: 700 1.4rem/1 var(--font-d); text-transform: uppercase; padding: 0; margin-bottom: 14px; }
.co-form legend span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); font: 800 .95rem/1 var(--font); }
.co-form legend small { font: 400 .85rem var(--font); text-transform: none; color: var(--muted); }
.radios { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .92rem; }
.radios > span { font-weight: 600; font-size: .84rem; width: 100%; }
.radios label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 500; }
.radios input { accent-color: var(--ink); width: 18px; height: 18px; }
.radios-cards { display: grid; gap: 10px; }
@media (min-width: 600px) { .radios-cards { grid-template-columns: 1fr 1fr; } }
.radios-cards label { position: relative; display: grid; gap: 2px; padding: 14px 14px 14px 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.radios-cards input { position: absolute; left: 14px; top: 16px; }
.radios-cards label:has(input:checked) { border-color: var(--ink); background: var(--yellow-soft); }
.radios-cards b { display: flex; align-items: center; gap: 6px; }
.radios-cards small { color: var(--muted); font-weight: 400; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--red-soft); color: #7d1d16; font-size: .92rem; border: 1px solid #f3c4bf; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.btn-pay { background: var(--ink); color: #fff; }
.btn-pay:hover { background: var(--ink-3); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.btn-pay.is-loading::after { content: ""; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.co-summary h2 { font-size: 1.6rem; margin: 0; }
.co-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.co-item .citem-thumb { width: 52px; height: 52px; }
.co-item b { display: block; font-weight: 600; line-height: 1.3; }
.co-item small { color: var(--muted); }
.co-item strong { white-space: nowrap; }
.sum-total { padding-top: 12px; border-top: 2px solid var(--ink); }
.co-summary .pdp-trust { grid-template-columns: 1fr; }
.co-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.result { padding-top: 48px; padding-bottom: 72px; }
.result-card { max-width: 620px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px 24px; }
.result-card[hidden] { display: none; }
.result-card .btn { margin: 6px 4px 0; }
.res-i { width: 72px; height: 72px; margin: 0 auto 16px; padding: 16px; border-radius: 50%; background: var(--bg); stroke-width: 2.4; }
.res-ok { background: var(--green-soft); color: var(--green); }
.res-pend { background: var(--yellow-soft); color: #946c00; }
.res-bad { background: var(--red-soft); color: var(--red); }
.ref { font-weight: 700; }

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

/* ---------- Medios de pago: marcas de tarjetas, selector y comprobante ---------- */
.marcas { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mk { position: relative; display: inline-grid; place-items: center; height: 22px; min-width: 36px; padding: 0 6px; border: 1px solid #d9d9d2; border-radius: 4px; background: #fff; font: 800 10px/1 var(--font); letter-spacing: .02em; white-space: nowrap; }
.mk-visa { color: #1a1f71; font-size: 11.5px; font-style: italic; font-weight: 900; letter-spacing: 0; }
.mk-mc i { position: absolute; top: 4px; width: 13px; height: 13px; border-radius: 50%; }
.mk-mc i:first-child { left: 6px; background: #eb001b; }
.mk-mc i:last-child { left: 14px; background: #f79e1b; mix-blend-mode: multiply; }
.mk-amex { background: #2e77bc; border-color: #2e77bc; color: #fff; }
.mk-diners { color: #004a97; font-weight: 700; }
.mk-magna { color: #5c2d91; font-weight: 800; }
.mk-redcompra { color: #d4001a; font-weight: 800; }
.mk-mp { display: inline-flex; align-items: center; gap: 1px; background: #00a8e1; border-color: #00a8e1; color: #0b2a4a; font-weight: 500; }
.mk-mp b { font-weight: 800; }
.mk-ico { width: 20px; height: 20px; color: var(--muted); }
.pdp-pagos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.co-marcas { padding-top: 2px; }
.pie-pagos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pie-pagos > span:first-child { color: #8a8a8a; }
.co-form .medios { display: grid; gap: 10px; }
.co-form .medio { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.co-form .medio:hover { border-color: #c9c9c0; }
.co-form .medio:has(input:checked) { border-color: var(--ink); background: var(--yellow-soft); }
.co-form .medio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.co-form .medio .marcas { grid-column: 2; }
.medio-cab b { display: block; font-size: .98rem; }
.medio-cab small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
@media (min-width: 640px) { .co-form .medio { grid-template-columns: auto 1fr auto; } .co-form .medio .marcas { grid-column: 3; justify-content: flex-end; max-width: 240px; } }
.voucher { display: grid; max-width: 440px; margin: 18px auto 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; }
.voucher div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.voucher div:last-child { border-bottom: 0; }
.voucher dt { color: var(--muted); }
.voucher dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.prueba { display: inline-block; margin: 6px 0 14px; padding: 6px 12px; border-radius: 8px; background: var(--yellow-soft); color: #7a5b00; font-size: .82rem; font-weight: 600; }

/* Paso opcional plegable del checkout ("Tu vehículo") */
.co-paso { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.co-paso summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 4px 0; }
.co-paso summary::-webkit-details-marker { display: none; }
.co-paso summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 8px; }
.paso-n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); font: 800 .95rem/1 var(--font); }
.paso-t { display: grid; gap: 2px; min-width: 0; }
.paso-t b { font: 700 1.4rem/1 var(--font-d); text-transform: uppercase; }
.paso-t small { font: 400 .85rem var(--font); color: var(--muted); }
.paso-t em { font-style: normal; font-size: .88rem; color: var(--text); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.paso-abrir { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--bg); transition: transform .2s; }
.paso-abrir .i { width: 18px; height: 18px; transform: rotate(90deg); }
.co-paso[open] .paso-abrir { transform: rotate(180deg); }
.co-paso[open] .paso-t em { display: none; }
.co-paso-cuerpo { display: grid; gap: 14px; padding-top: 14px; }
.correo-ok { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 14px; padding: 8px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: .88rem; font-weight: 600; }
.correo-ok .i { width: 18px; height: 18px; }
/* Precio por transferencia y marca "débito" */
.mk-deb { color: #3b4a63; font-weight: 700; text-transform: uppercase; font-size: 9px; letter-spacing: .06em; }
.precio-transf { margin: -4px 0 0; font-size: .78rem; font-weight: 700; color: var(--green); }
.pdp-transf { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--green-soft); color: #0f5e33; font-size: .92rem; width: fit-content; }
.pdp-transf .i { width: 18px; height: 18px; flex: none; }
.medio-dcto { font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; background: var(--green); border-radius: 999px; padding: 2px 7px; vertical-align: 2px; margin-left: 4px; }
.sum-dcto { color: var(--green); font-weight: 600; }
.mk-qr { background: #0b0b0b; border-color: #0b0b0b; color: var(--yellow); font-weight: 900; letter-spacing: .08em; }
/* Sección "Visítanos" */
.visitanos-in { display: grid; gap: 24px; align-items: center; }
.visitanos-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.visitanos-datos { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.visitanos-datos li { display: flex; gap: 12px; align-items: flex-start; }
.visitanos-datos .i { width: 22px; height: 22px; flex: none; color: var(--yellow-2); margin-top: 1px; }
.visitanos-datos b { display: block; }
.visitanos-mapa { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #e9e8e2; aspect-ratio: 4 / 3; }
.visitanos-mapa iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) { .visitanos-in { grid-template-columns: 1fr 1.2fr; gap: 56px; } }
