/* AMP Argentina — tienda. Tema OSCURO (2026-10-06, como la web actual del dueño): fondo carbón, acento amarillo del
   logo AMP (#FFCB03), celeste #38AAE2 como secundario y los puntos de color de la marca. Las fotos de producto van en
   recuadros blancos. Poppins + Sacramento solo para las notas. Mobile first. Todo color sale de las variables de :root. */

:root {
  color-scheme: dark;
  --bg: #121214;             /* carbón, como la web actual de AMPSENTRIX Argentina */
  --surface: #1a1a1d;
  --surface-2: #222226;
  --ink: #f5f5f2;
  --ink-2: #d2d2cc;
  --muted: #9a9a94;          /* AA sobre --bg y --surface */
  --line: #2a2a2f;
  --line-2: #3a3a41;
  --brand: #ffcb03;          /* el amarillo exacto del logo AMP */
  --brand-ink: #ffcb03;      /* amarillo para texto y links (sobre oscuro tiene contraste de sobra) */
  --brand-soft: rgba(255, 203, 3, .12);
  --on-brand: #141414;       /* texto sobre amarillo */
  --celeste: #38aae2;        /* acento secundario: información, medidor de envío */
  --img-bg: #ffffff;         /* las fotos de producto son de fondo blanco: el recuadro de foto queda blanco */
  --red: #ff5a5f;
  --yellow: #ffcb03;
  --gold: #d9b326;
  --teal: #62c6b2;
  --ok: #4ade80; --ok-bg: rgba(74, 222, 128, .12);
  --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .12);
  --bad: #f87171; --bad-bg: rgba(248, 113, 113, .12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 22px 44px -24px rgba(0, 0, 0, .75);
  --r: 14px;
  --sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --script: "Sacramento", cursive;
  --w: 1440px;             /* ancho máximo: en escritorio usa más pantalla (pedido del dueño 2026-10-06) */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; padding-bottom: 76px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.mono, .price, .tot .big, .amt, .cart-bar .t { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
b, strong { color: var(--ink); }

/* ---------- Puntos de marca (azul · rojo · amarillo · dorado) ---------- */
.dots { display: inline-flex; gap: 22px; align-items: center; }
.dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dots i:nth-child(4n+1) { background: var(--celeste); } .dots i:nth-child(4n+2) { background: var(--red); }
.dots i:nth-child(4n+3) { background: var(--yellow); } .dots i:nth-child(4n+4) { background: var(--gold); }

/* Títulos con contraste de peso: «Nuestras **baterías**» */
.tt { font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
.tt b { font-weight: 700; }

/* ---------- Cabecera ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(18, 18, 20, .82); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 66px; }
.logo { display: flex; align-items: center; flex: none; line-height: 0; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 99px; font-weight: 500; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }
.top-search { flex: 1; min-width: 0; position: relative; }
.top-search input { width: 100%; height: 42px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 16px 0 42px; font: 14.5px var(--sans); color: var(--ink); }
.top-search input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.top-search svg { position: absolute; left: 15px; top: 12px; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; text-decoration: none; height: 42px; padding: 0 16px; border-radius: 99px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; flex: none; }
.cart-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.cart-btn .n { font: 700 11.5px var(--sans); background: var(--brand); color: var(--on-brand); border-radius: 99px; padding: 1px 8px; min-width: 22px; text-align: center; }
.cart-btn .n[data-n="0"] { background: rgba(255, 255, 255, .12); color: var(--ink-2); }

/* ---------- Portada: buscador protagonista ---------- */
.hero { padding: 40px 0 8px; position: relative; text-align: center; }
.hero h1 { font: 400 clamp(32px, 6vw, 60px)/1.06 var(--sans); letter-spacing: -.035em; margin: 0 auto 10px; color: var(--ink); max-width: 16ch; }
.hero h1 b { font-weight: 700; }
.hero h1 em { font-style: normal; font-weight: 700; color: var(--ink); }
.hero p { margin: 0 auto 22px; color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.hero-dots { display: flex; justify-content: center; margin: 4px 0 18px; }
.big-search { position: relative; max-width: 860px; margin: 0 auto; text-align: left; }
.big-search input {
  width: 100%; height: 66px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface);
  padding: 0 64px 0 58px; font: 500 clamp(16px, 2.2vw, 19px) var(--sans); color: var(--ink); box-shadow: var(--shadow-2);
}
.big-search input::placeholder { color: var(--muted); font-weight: 400; }
.big-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft), var(--shadow-2); }
.big-search > svg { position: absolute; left: 22px; top: 22px; width: 22px; height: 22px; stroke: var(--brand-ink); fill: none; stroke-width: 2.4; }
.big-search kbd { position: absolute; right: 22px; top: 21px; font: 600 12px var(--sans); color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 8px; background: var(--surface-2); }
.page-h .big-search, main > .big-search { margin-left: 0; }
.hint { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.hint button { border: 0; background: none; padding: 0; color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent); text-underline-offset: 3px; cursor: pointer; }

/* Nota manuscrita con flecha curva (decorativa, como en ampsentrix.com) */
.nota { position: absolute; font: 400 clamp(26px, 3vw, 36px)/1 var(--script); color: var(--brand); pointer-events: none; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nota svg { width: 92px; height: 70px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nota-hero { left: max(0px, calc(50% - 640px)); top: 210px; flex-direction: column; align-items: flex-start; }
@media (max-width: 1180px) { .nota { display: none; } }

/* Chips de generación */
.gens { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; justify-content: center; }
.gens::-webkit-scrollbar { display: none; }
.gen { flex: none; border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 8px 16px; font: 600 14px var(--sans); cursor: pointer; text-decoration: none; color: var(--ink-2); }
.gen:hover { border-color: var(--brand); color: var(--brand-ink); }
.gen.on { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand); }
.gen small { font: 500 11.5px var(--sans); color: var(--muted); margin-left: 4px; }

/* Accesos a secciones */
.secs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 30px 0 8px; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; display: grid; gap: 4px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s; }
.sec:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.sec b { font: 700 19px var(--sans); letter-spacing: -.02em; }
.sec span { font-size: 13.5px; color: var(--muted); }
.sec i { position: absolute; right: 16px; top: 18px; width: 10px; height: 10px; border-radius: 50%; font-size: 0; }
.secs .sec:nth-child(1) i { background: var(--celeste); } .secs .sec:nth-child(2) i { background: var(--red); }
.secs .sec:nth-child(3) i { background: var(--yellow); } .secs .sec:nth-child(4) i { background: var(--gold); }
.sec.bat { background: var(--brand-soft); border-color: transparent; }

/* ---------- Títulos de bloque ---------- */
.blk { margin: 40px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.blk h2 { font: 400 clamp(22px, 3vw, 28px)/1.15 var(--sans); letter-spacing: -.025em; margin: 0; color: var(--ink); }
.blk h2 b { font-weight: 700; color: var(--brand); }
.blk a { font-size: 14px; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.blk a:hover { text-decoration: underline; }
.blk-c { justify-content: center; text-align: center; }
.blk-c .dots { flex: 1; justify-content: flex-end; max-width: 220px; }
.blk-c .dots:last-child { justify-content: flex-start; }
.crumbs { font-size: 13px; color: var(--muted); margin: 20px 0 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-ink); }
.page-h { margin: 6px 0 18px; }
.page-h h1 { font: 400 clamp(28px, 4.6vw, 42px)/1.08 var(--sans); letter-spacing: -.03em; margin: 0 0 8px; color: var(--ink); }
.page-h h1 b { font-weight: 700; color: var(--brand); }

/* ---------- Tarjeta por modelo (la pieza clave) ---------- */
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); overflow: hidden; }
.model-h { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.model-h h3 { font: 700 19px var(--sans); letter-spacing: -.02em; margin: 0; color: var(--ink); }
.model-h .gen-tag { font: 500 12px var(--sans); color: var(--muted); margin-left: auto; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 18px; border-top: 1px solid var(--line); align-items: center; }
.opt.agotado { opacity: .55; }
.opt-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ln { display: inline-flex; align-items: center; gap: 7px; font: 600 14px var(--sans); color: var(--ink); text-decoration: none; }
.ln::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
a.ln:hover { color: var(--brand-ink); }
.opt-sub { grid-column: 1; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.opt-buy { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 12px; }
.price { text-align: right; line-height: 1.15; }
.price b { font: 700 17px var(--sans); letter-spacing: -.01em; display: block; white-space: nowrap; color: var(--ink); }
.price small { font: 400 11.5px var(--sans); color: var(--muted); white-space: nowrap; }
.stk { font: 500 12px var(--sans); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.stk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stk-ok { color: var(--ok); } .stk-pocas { color: var(--warn); } .stk-sin { color: var(--bad); } .stk-pedido { color: var(--muted); }

/* Botón agregar + stepper (en carrito: la píldora celeste del toggle) */
.add { display: inline-flex; align-items: center; height: 42px; border-radius: 99px; background: var(--ink); color: var(--bg); border: 0; overflow: hidden; flex: none; transition: background .15s; }
.add:hover { background: var(--brand); color: var(--on-brand); }
.add button { border: 0; background: none; color: inherit; height: 42px; cursor: pointer; }
.add .go { padding: 0 18px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.add .go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.6; }
.add.has { background: var(--brand-soft); color: var(--brand-ink); box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--brand-soft); }
.add .mn, .add .pl { width: 38px; font: 600 19px var(--sans); }
.add.has .pl { background: var(--brand); color: var(--on-brand); border-radius: 99px; width: 34px; height: 34px; margin-right: 4px; }
.add .q { width: 34px; text-align: center; font: 700 14.5px var(--sans); border: 0; background: none; color: inherit; -moz-appearance: textfield; }
.add .q::-webkit-inner-spin-button { -webkit-appearance: none; }
.add[disabled], .add.off { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.add.pop { animation: pop .35s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop { 40% { transform: scale(1.08); } }
.fav { border: 0; background: none; cursor: pointer; padding: 4px; color: var(--line-2); line-height: 0; }
.fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav.on { color: var(--gold); } .fav.on svg { fill: currentColor; }

/* ---------- Grilla de productos ---------- */
.grid-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.card-img { aspect-ratio: 4 / 3; background: var(--img-bg); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card-img .ph { font: 700 20px var(--sans); color: var(--line-2); letter-spacing: -.03em; padding: 12px; text-align: center; }
.card-b { padding: 14px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card-b h3 { font: 500 14px/1.35 var(--sans); margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-b h3 a { text-decoration: none; }
.card-b h3 a:hover { color: var(--brand-ink); }
.card-f { display: grid; gap: 10px; margin-top: auto; }
.card-f .price { text-align: left; }
.card-f .add { width: 100%; justify-content: center; }
.card-f .add .go { width: 100%; justify-content: center; }
.card-f .add.has { justify-content: space-between; }
.card-f .add.has .q { flex: 1; }
.badge { justify-self: start; font: 600 11px var(--sans); letter-spacing: .02em; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- Producto ---------- */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 8px; }
.prod-img { background: var(--img-bg); border: 1px solid var(--line); border-radius: 20px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.prod h1 { font: 600 clamp(22px, 3.4vw, 32px)/1.15 var(--sans); letter-spacing: -.025em; margin: 8px 0 10px; color: var(--ink); }
.prod .price b { font-size: 32px; }
.prod .price { text-align: left; margin: 16px 0 6px; }
.compat { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.compat a { font: 500 13px var(--sans); text-decoration: none; padding: 6px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-ink); }
.compat a:hover { background: var(--brand); color: var(--on-brand); }
.line-box { border-left: 4px solid var(--c, var(--line-2)); background: var(--surface-2); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 14px 0; font-size: 14px; }
.buy-row { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.buy-row .add { height: 50px; }
.buy-row .add button, .buy-row .add .q { height: 50px; }
.buy-row .add.has .pl { height: 40px; width: 40px; }
.buy-row .add .go { padding: 0 28px; font-size: 16px; }
.facts { display: grid; gap: 8px; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.facts div { display: flex; gap: 10px; }
.facts b { min-width: 92px; color: var(--muted); font-weight: 400; }

/* ---------- Búsqueda en vivo ---------- */
.live { margin-top: 18px; text-align: left; }
.live-empty { padding: 28px; text-align: center; color: var(--muted); background: var(--surface-2); border-radius: var(--r); }
.live-meta { font-size: 14px; color: var(--muted); margin: 0 0 12px; }

/* ---------- Carrito / checkout ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel-h { padding: 15px 18px; border-bottom: 1px solid var(--line); font: 600 16px var(--sans); color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.panel-b { padding: 18px; }
.line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line .th { width: 60px; height: 60px; border-radius: 10px; background: var(--img-bg); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.line .th img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.line h4 { margin: 0; font: 500 14px/1.35 var(--sans); color: var(--ink); }
.line h4 a { text-decoration: none; }
.line .r { text-align: right; display: grid; gap: 6px; justify-items: end; }
.tot { display: grid; gap: 8px; }
.tot div { display: flex; justify-content: space-between; gap: 10px; }
.tot .big { font: 700 26px var(--sans); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 24px; border-radius: 99px; border: 0; background: var(--brand); color: var(--on-brand); font: 600 16px var(--sans); text-decoration: none; cursor: pointer; width: 100%; transition: background .15s; }
.btn:hover { filter: brightness(1.08); }
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn:disabled { opacity: .5; cursor: progress; }
.f { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.f input, .f select, .f textarea { height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); padding: 0 14px; font: 16px var(--sans); color: var(--ink); width: 100%; }
.f textarea { height: 76px; padding: 12px 14px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.err, .err-box { color: var(--bad); font-size: 12.5px; font-weight: 500; }
.panel-b > .err { display: block; margin-bottom: 8px; }
.err-box { background: var(--bad-bg); padding: 11px 14px; border-radius: 12px; margin-bottom: 14px; }
.f.bad input, .f.bad select { border-color: var(--bad); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.f-row3 { display: grid; grid-template-columns: 2fr 1.3fr 1fr; gap: 0 14px; }
.pay { display: grid; gap: 10px; margin: 6px 0 16px; }
.pay label { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.pay label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay input { width: 18px; height: 18px; accent-color: var(--brand-ink); }
.pay b { display: block; font-size: 15px; font-weight: 600; }
.pay small { color: var(--muted); font-size: 12.5px; }
.pay .amt { font: 700 15px var(--sans); text-align: right; white-space: nowrap; color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.ok-hero { text-align: center; padding: 30px 16px 14px; }
.ok-hero .tick { width: 66px; height: 66px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; font-size: 32px; }
.copy { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); margin-bottom: 8px; }
.copy span { font: 600 15px var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.copy small { display: block; font: 400 11.5px var(--sans); color: var(--muted); }
.copy button { border: 0; background: var(--brand); color: var(--on-brand); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: 12.5px; cursor: pointer; flex: none; }
.note { font-size: 13.5px; color: var(--ink-2); background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; }

/* ---------- Barra de carrito fija (celular) ---------- */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(18, 18, 20, .92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -20px rgba(0, 0, 0, .6); transform: translateY(110%); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.cart-bar.show { transform: none; }
.cart-bar a { display: flex; align-items: center; justify-content: space-between; height: 52px; border-radius: 99px; background: var(--brand); color: var(--on-brand); text-decoration: none; padding: 0 22px; font-weight: 600; max-width: var(--w); margin: 0 auto; }
.cart-bar .t { font: 700 16px var(--sans); }
.cart-bar small { font: 400 12.5px var(--sans); opacity: .75; margin-left: 6px; }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-weight: 500; font-size: 14px; z-index: 50; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Botón volver arriba: dorado y circular, como el de ampsentrix.com */
.arriba { position: fixed; right: 18px; bottom: 22px; z-index: 35; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--on-brand); display: grid; place-items: center; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(10px); transition: .2s; text-decoration: none; }
.arriba.on { opacity: 1; transform: none; }
.arriba svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.6; }

/* ---------- Pie ---------- */
.foot { margin-top: 70px; border-top: 1px solid var(--line); background: var(--surface-2); padding: 34px 0 28px; font-size: 13.5px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 22px; }
.foot b { display: block; color: var(--ink); margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.foot .marca { display: grid; gap: 10px; align-content: start; }
.foot .marca img { height: 30px; width: auto; }
.foot .marca .wm { height: 16px; opacity: .85; }
.foot .dots { gap: 10px; } .foot .dots i { width: 8px; height: 8px; }
.lineas-ref { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.lineas-ref div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); position: relative; }
.lineas-ref div::before { content: ""; position: absolute; left: 16px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.lineas-ref b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; padding-left: 18px; margin-bottom: 2px; }
.filters-l { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; padding: 6px; background: var(--brand-soft); border-radius: 99px; }
.filters-l a { font: 500 13.5px var(--sans); text-decoration: none; padding: 7px 14px; border-radius: 99px; color: var(--ink-2); display: inline-flex; gap: 7px; align-items: center; }
.filters-l a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, transparent); }
.filters-l a:hover { color: var(--brand-ink); }
.filters-l a.on { background: var(--surface-2); color: var(--brand-ink); font-weight: 600; box-shadow: var(--shadow-1); }
.toggle-stock { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; padding-right: 10px; }
.toggle-stock input { appearance: none; width: 40px; height: 22px; border-radius: 99px; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line-2); position: relative; cursor: pointer; transition: .15s; margin: 0; }
.toggle-stock input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--line-2); transition: .15s; }
.toggle-stock input:checked { box-shadow: inset 0 0 0 2px var(--brand); }
.toggle-stock input:checked::after { left: 21px; background: var(--brand); }

/* ---------- Entrada (una sola, sutil) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
  .nota svg path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: trazo 1.2s .5s ease-out forwards; }
  @keyframes trazo { to { stroke-dashoffset: 0; } }
}

/* ---------- Responsive ---------- */
@media (min-width: 900px) { body { padding-bottom: 0; } .cart-bar { display: none; } }
@media (max-width: 899px) {
  .nav { display: none; }
  .top .wrap { gap: 12px; }
  .cart-btn .lbl { display: none; }
  .secs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod, .two { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .big-search kbd { display: none; }
  .big-search input { padding-right: 20px; }
  .arriba { bottom: 88px; }
  .blk-c .dots { display: none; }
}
@media (max-width: 520px) {
  .top .wrap { height: 60px; justify-content: space-between; }
  .logo img { height: 30px; }
  .top-search { display: none; }
  .hero { padding-top: 26px; }
  .hero p { font-size: 15px; }
  .gens { justify-content: flex-start; }
  .grid-p { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-b { padding: 10px; }
  .card-b h3 { font-size: 13px; }
  .card-img img { padding: 6px; }
  .price b { font-size: 15.5px; }
  .opt { grid-template-columns: 1fr; padding: 12px 16px; }
  .opt-buy { grid-row: auto; grid-column: 1; justify-content: space-between; }
  .price { text-align: left; }
  .f-row, .f-row3 { grid-template-columns: 1fr; }
  .line { grid-template-columns: 52px minmax(0, 1fr); }
  .line .r { grid-column: 1 / -1; grid-template-columns: 1fr auto; display: grid; align-items: center; }
  .filters-l { border-radius: 18px; }
}

/* ---------- Envío gratis (desde $200.000 en productos) ---------- */
.em { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin: 0 0 16px; }
.em-t { font-size: 14px; color: var(--ink-2); }
.em-t b { color: var(--ink); font-weight: 700; }
.em small, .em-ok small { font-size: 12px; color: var(--muted); display: block; }
.em-bar { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.em-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--celeste) 0%, var(--celeste) 60%, var(--brand) 100%); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.em-ok { grid-template-columns: auto 1fr; align-items: center; gap: 12px; background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); position: relative; overflow: hidden; }
.em-ok b { color: var(--ok); font-size: 15px; display: block; }
.em-ok small { color: var(--ink-2); }
.em-ic { font-size: 26px; line-height: 1; }
.em-ok::after { content: ""; position: absolute; right: 14px; top: 12px; width: 44px; height: 8px;   /* los puntos de marca */
  background: radial-gradient(circle, var(--brand) 3px, transparent 3.5px) 0 0 / 11px 8px, radial-gradient(circle, var(--red) 3px, transparent 3.5px) 11px 0 / 11px 8px,
              radial-gradient(circle, var(--yellow) 3px, transparent 3.5px) 22px 0 / 11px 8px, radial-gradient(circle, var(--gold) 3px, transparent 3.5px) 33px 0 / 11px 8px;
  background-repeat: no-repeat; opacity: .8; }
@media (prefers-reduced-motion: no-preference) { .em-ok { animation: em-pop .5s cubic-bezier(.2,.9,.3,1.3) both; } }
@keyframes em-pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.destino { display: inline-block; font-weight: 700; font-size: 12px; color: var(--celeste); background: color-mix(in srgb, var(--celeste) 14%, transparent); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.gratis { display: inline-block; font-weight: 700; font-size: 12.5px; letter-spacing: .04em; color: var(--ok); background: var(--ok-bg); padding: 3px 9px; border-radius: 99px; }
.envios { margin-top: 0; }
.envios label:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.em-blk { flex-wrap: wrap; }
.cart-bar .cb-envio { display: block; margin: 1px 0 0; font-size: 11.5px; opacity: .85; }
.cart-bar a > span:first-child small[data-cart-u] { margin-left: 6px; }
.em-sumar { margin-top: 10px; width: 100%; height: 40px; font-size: 13.5px; background: var(--ok); }
.em-sumar:hover { background: var(--ok); filter: brightness(1.1); }
/* La leyenda del envío, con la letra manuscrita de la marca */
.leyenda { font: 400 24px/1.15 var(--script); color: var(--brand-ink); margin: 0 0 14px; }

/* ---------- Editando un pedido (link del WhatsApp) ---------- */
.editando { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; margin: 0 0 18px; border-radius: 14px;
  background: var(--brand-soft); border: 1.5px dashed var(--brand); }
.editando > span { font-size: 22px; }
.editando b { display: block; font-size: 14.5px; color: var(--ink); }
.editando small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.editando a { font-size: 13px; font-weight: 600; color: var(--brand-ink); white-space: nowrap; }
@media (max-width: 560px) { .editando { grid-template-columns: auto 1fr; } .editando a { grid-column: 2; } }
.ghost-btn { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.ghost-btn:hover { background: var(--surface-2); }

/* ---------- Encabezado SEO de categoría: H1 + texto + H2 «Stock de…» ---------- */
.seo-h h1 { font-weight: 700; max-width: 22ch; text-wrap: balance; }
.seo-txt { margin: 0; max-width: 68ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.seo-h2 { margin: 26px 0 14px; align-items: baseline; flex-wrap: wrap; }
.seo-h2 h2 { font-weight: 600; }
.seo-h2 .muted { font-size: 13.5px; }

/* ---------- Inicio con H1 de marca (SEO 2026-10-06) ---------- */
.hero-marca { padding: 46px 0 6px; isolation: isolate; }
.hero-marca::before {   /* resplandor cálido, como el degradé de la web actual, sin imagen */
  content: ""; position: absolute; top: -66px; left: 50%; width: 100vw; transform: translateX(-50%); height: 480px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 50% 0%, rgba(255, 203, 3, .16), transparent 70%),
              radial-gradient(40% 50% at 85% 10%, rgba(56, 170, 226, .10), transparent 70%);
}
.hero-marca h1 { font: 700 clamp(30px, 5.2vw, 56px)/1.08 var(--sans); letter-spacing: -.035em; max-width: 20ch; text-wrap: balance; }
.hero-marca .hm-marca { display: block; color: var(--brand); font-size: .62em; letter-spacing: -.01em; margin-bottom: 6px; }
.hero-marca > p { color: var(--ink-2); font-size: 17px; max-width: 54ch; }
.destacados { list-style: none; padding: 0; margin: 0 auto 26px; max-width: 980px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; text-align: left; }
.destacados li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); }
.destacados svg { grid-row: span 2; width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.destacados b { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.destacados span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.hero-marca .big-search input { height: 58px; }
.hero-marca .big-search > svg { top: 18px; }
.hero-marca .big-search kbd { top: 17px; }
@media (max-width: 900px) { .destacados { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .destacados li { padding: 12px; } .destacados b { font-size: 13.5px; } }

/* Bloque SEO de marca al pie del inicio: posiciona «Ampsentrix» a secas */
.seo-marca { margin: 56px 0 10px; padding: 28px clamp(18px, 4vw, 40px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.seo-marca h2 { font: 400 clamp(22px, 3vw, 30px)/1.2 var(--sans); letter-spacing: -.025em; margin: 0 0 14px; color: var(--ink); }
.seo-marca h2 b { font-weight: 700; color: var(--brand); }
.seo-marca p { margin: 0 0 12px; max-width: 78ch; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.seo-links a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--brand-ink); padding: 8px 14px; border-radius: 99px; background: var(--brand-soft); }
.seo-links a:hover { background: var(--brand); color: var(--on-brand); }

/* Lo más vendido + categorías: links internos para indexar (dueño, 2026-10-06) */
.pop { margin: 48px 0 10px; padding: 26px clamp(18px, 4vw, 36px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pop h2 { font: 400 clamp(22px, 3vw, 28px)/1.2 var(--sans); letter-spacing: -.025em; margin: 0 0 18px; color: var(--ink); }
.pop h2 b { font-weight: 700; color: var(--brand); }
.pop h3 { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.pop-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.pop-prods { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; counter-reset: pop; }
.pop-prods li { break-inside: avoid; counter-increment: pop; display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pop-prods li::before { content: counter(pop); flex: none; width: 20px; color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.pop-prods a, .pop-cats a { color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.pop-prods a:hover, .pop-cats a:hover { color: var(--brand-ink); text-decoration: underline; }
.pop-cats { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.pop-cats li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
@media (max-width: 760px) { .pop-cols { grid-template-columns: 1fr; } .pop-prods { columns: 1; } }

/* ---------- Garantía y cambios ---------- */
.politica { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.politica h2 { font: 600 19px var(--sans); margin: 0 0 10px; color: var(--ink); }
.politica p, .politica li { color: var(--ink-2); line-height: 1.65; }
.politica ul { padding-left: 18px; margin: 10px 0 0; }
@media (max-width: 760px) { .politica { grid-template-columns: 1fr; } }
.garantia-mini { display: inline-block; margin: 10px 0 4px; font-size: 13.5px; font-weight: 600; color: var(--brand-ink); text-decoration: none; }
.garantia-mini:hover { text-decoration: underline; }

/* ---------- Inicio v2: EL buscador como protagonista (pedido del dueño desde su iPhone, 2026-10-06) ---------- */
.hero-marca { padding-top: 34px; }
.hero-marca h1 { font-size: clamp(26px, 4.2vw, 46px); line-height: 1.1; max-width: 22ch; margin-bottom: 8px; }
.hero-marca .hm-marca { font-size: .6em; margin-bottom: 4px; }
.hm-sub { font-size: 14.5px !important; color: var(--muted) !important; margin: 0 auto 22px !important; }

.mega-search { max-width: 820px; margin: 0 auto; text-align: left; }
.ms-label { display: block; font: 700 clamp(16px, 2vw, 19px)/1.3 var(--sans); color: var(--ink); margin: 0 0 10px 6px; }
.ms-label span { display: block; font: 400 13.5px var(--sans); color: var(--muted); margin-top: 2px; }
.ms-campo { position: relative; display: flex; align-items: center; height: 64px; border-radius: 99px; background: var(--surface-2);
  border: 2px solid var(--brand); box-shadow: 0 0 0 6px var(--brand-soft), 0 18px 40px -18px rgba(255, 203, 3, .35); transition: box-shadow .2s; }
.ms-campo:focus-within { box-shadow: 0 0 0 8px rgba(255, 203, 3, .22), 0 18px 44px -16px rgba(255, 203, 3, .45); }
.ms-lupa { width: 22px; height: 22px; margin-left: 22px; flex: none; stroke: var(--brand); fill: none; stroke-width: 2.4; }
.ms-campo input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); padding: 0 12px;
  font: 500 17px var(--sans); outline: none; -webkit-appearance: none; }
.ms-campo input::placeholder { color: var(--muted); font-weight: 400; }
.ms-campo input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
.ms-btn { flex: none; height: 50px; margin-right: 6px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--brand); color: var(--on-brand);
  font: 700 15.5px var(--sans); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ms-btn:hover { filter: brightness(1.08); }
.ms-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2.6; }

.ms-filtros { max-width: 820px; margin: 18px auto 0; text-align: left; }
.ms-tit { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px 6px; }
.ms-filtros .gens { justify-content: flex-start; padding: 0 0 4px; flex-wrap: wrap; }
.ms-filtros .gen { font-size: 13.5px; padding: 8px 14px; }
.ms-frec { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ms-frec .ms-tit { width: 100%; margin-bottom: 0; }
.ms-frec.ms-top { margin: 0 0 16px; }
.frec { border: 1px solid var(--line-2); background: transparent; color: var(--brand-ink); border-radius: 99px; padding: 6px 12px; font: 600 13px var(--sans); cursor: pointer; }
.frec:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* Destacados compactos: una línea cada uno */
.hero-marca .destacados { margin: 26px auto 4px; gap: 8px; }
.hero-marca .destacados li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; grid-template-columns: none; }
.hero-marca .destacados svg { width: 18px; height: 18px; grid-row: auto; flex: none; }
.hero-marca .destacados b { font-size: 13px; white-space: nowrap; }
.hero-marca .destacados span { font-size: 12px; white-space: nowrap; }
.hero-marca .destacados span::before { content: "· "; }

@media (max-width: 640px) {
  .hero-marca { padding-top: 18px; }
  .hero-marca .hero-dots { display: none; }
  .hero-marca h1 { font-size: 27px; }
  .hm-sub { font-size: 13px !important; margin-bottom: 18px !important; }
  .ms-label { margin-left: 4px; }
  .ms-campo { height: 60px; }
  .ms-lupa { display: none; }
  .ms-campo input { padding-left: 20px; font-size: 16px; }   /* 16 px: el iPhone no hace zoom al tocar */
  .ms-btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .ms-btn span { display: none; }
  /* Generaciones: una fila que se desliza, con degradé que avisa que hay más */
  .ms-filtros .gens { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .hero-marca .destacados { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-marca .destacados li { padding: 8px 10px; }
  .hero-marca .destacados b { font-size: 12.5px; white-space: normal; line-height: 1.2; }
  .hero-marca .destacados span { display: none; }
}

/* Inicio en escritorio: el buscador y los filtros usan más ancho (menos aire a los costados) */
@media (min-width: 900px) {
  .mega-search, .ms-filtros { max-width: 1080px; }
  .hero-marca h1 { max-width: 26ch; }
  .hm-sub { max-width: none !important; }
  .hero-marca .destacados { max-width: 1080px; }
}
