.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-4); }
html { scroll-padding-top: 130px; }

/* ── Barra de aviso ─────────────────────────────────────────────────── */
.announce { background: var(--hero-ink); color: var(--hero-bg); font-size: 13px; font-weight: 600; }
.announce-in { max-width: 1280px; margin: 0 auto; padding: 7px var(--sp-4); display: flex; gap: var(--sp-2); align-items: center; justify-content: center; text-align: center; }
.announce svg { width: 18px; height: 18px; flex: none; }
.announce strong { letter-spacing: .04em; color: #fff; }
.announce-sep { opacity: .5; margin: 0 4px; }

/* ── Cabecera ───────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: 1280px; margin: 0 auto; padding: var(--sp-3) var(--sp-4); display: flex; gap: var(--sp-4); align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.brand-mark svg { width: 20px; height: 20px; }
.search { flex: 1; position: relative; max-width: 640px; margin: 0 auto; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 44px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cart-btn { position: relative; height: 46px; padding: 0 18px; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--sale); color: #fff; font-size: 12px; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35) } }

.cats {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-4) var(--sp-3);
  display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats.arrastrando { cursor: grabbing; user-select: none; }
.cats.arrastrando .chip { pointer-events: none; }
.cats-wrap { position: relative; max-width: 1280px; margin: 0 auto; }
.cats-arrow {
  position: absolute; top: 0; bottom: 12px; z-index: 2; width: 56px; border: none; cursor: pointer;
  display: flex; align-items: center; color: var(--ink); padding: 0 8px; transition: opacity .15s;
}
.cats-arrow svg {
  width: 30px; height: 30px; padding: 6px; border-radius: 50%; flex: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cats-arrow:hover svg { background: var(--surface-2); }
.cats-arrow.prev { left: 0; justify-content: flex-start; background: linear-gradient(90deg, var(--bg) 40%, transparent); }
.cats-arrow.next { right: 0; justify-content: flex-end; background: linear-gradient(270deg, var(--bg) 40%, transparent); }
.cats-arrow[hidden] { display: flex; opacity: 0; pointer-events: none; }
@media (hover: none) { .cats-arrow { display: none !important; } }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-weight: 500; opacity: .6; font-size: 12px; }

/* ── Portada ────────────────────────────────────────────────────────── */
.hero {
  margin-top: var(--sp-5); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--hero-bg); color: var(--hero-ink);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
}
.hero-text { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--hero-ink) 10%, transparent); font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.eyebrow.ship { background: var(--accent); color: var(--accent-ink); padding: 7px 14px; font-size: 14px; box-shadow: var(--shadow); }
.eyebrow.ship svg { width: 18px; height: 18px; }
.hero h1 { margin: 0; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.035em; line-height: 1.05; font-weight: 800; }
.hero p { margin: 0; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.5; opacity: .85; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-2); }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.ghost-on-hero { background: transparent; border-color: color-mix(in srgb, var(--hero-ink) 30%, transparent); color: var(--hero-ink); }
.btn.ghost-on-hero:hover { background: color-mix(in srgb, var(--hero-ink) 8%, transparent); }
.hero-art {
  height: 420px; padding: var(--sp-4) var(--sp-4) var(--sp-4) 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.hero-art figure { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); position: relative; box-shadow: var(--shadow); }
.hero-art figure:first-child { grid-row: span 2; }
/* Las fotos no deben estirar la rejilla: ocupan su celda y se recortan. */
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.perks {
  list-style: none; margin: var(--sp-4) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3);
}
.perks li.perk-ship { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.perks li.perk-ship .perk-ic { background: rgba(255, 255, 255, .18); color: var(--accent-ink); }
.perks li.perk-ship > div span { color: var(--accent-ink); opacity: .85; }
.perks li {
  display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.perk-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.perk-ic svg { width: 20px; height: 20px; }
.perks strong { display: block; font-size: 14.5px; }
.perks li > div span { display: block; font-size: 13px; color: var(--ink-2); }

/* Secciones */
.block { margin-top: var(--sp-7); }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.block-head h2 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.025em; line-height: 1.2; }
.block-head h3 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.block-head .sub { color: var(--ink-2); font-size: 14px; margin: 4px 0 0; }
.see-all { font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.see-all:hover { text-decoration: underline; }
.head-r { display: flex; align-items: center; gap: var(--sp-3); }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
}
.rail-nav button:hover { background: var(--surface-2); }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-nav svg { width: 18px; height: 18px; }
@media (hover: none) { .rail-nav { display: none; } }

/* Mosaico de categorías */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); }
.cat-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 14px; border-radius: var(--radius);
  background: var(--tint, var(--surface-2)); border: 1px solid transparent; cursor: pointer; text-align: left;
  transition: transform .2s, box-shadow .2s, border-color .2s; color: var(--ink);
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.cat-tile .ph { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile strong { font-size: 14px; line-height: 1.25; padding: 0 4px; }
.cat-tile small { font-size: 12.5px; color: var(--ink-2); padding: 0 4px; margin-top: -6px; }

/* Carriles horizontales */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 232px); gap: var(--sp-4);
  overflow-x: auto; padding: 4px 2px 12px; margin: -4px -2px 0; scroll-snap-type: x mandatory; scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.rail .card { scroll-snap-align: start; }

/* ── Listado ────────────────────────────────────────────────────────── */
.listing { scroll-margin-top: 130px; }
.list-head { margin-bottom: var(--sp-2); }
.list-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; }
.list-head .back {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; margin-bottom: 6px; background: none; border: none; padding: 0; cursor: pointer;
}
.list-head .back:hover { color: var(--ink); }
.list-head .back svg { width: 16px; height: 16px; }
.toolbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center;
  margin: var(--sp-3) 0 var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line);
}
.result-count { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.tools { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.tools .select { width: auto; height: 38px; border-radius: 999px; padding: 0 14px; font-weight: 600; font-size: 14px; }
.toggle { position: relative; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, color .15s, border-color .15s;
}
.toggle span::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .6;
}
.toggle:hover span { color: var(--ink); border-color: var(--ink-3); }
.toggle input:checked + span { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.toggle input:checked + span::before {
  opacity: 1; background: currentColor;
  -webkit-mask: none;
  box-shadow: inset 0 0 0 2px var(--accent-soft);
}
.toggle input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ── Tarjeta de producto ────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-5) var(--sp-4); }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s; cursor: pointer; position: relative;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: color-mix(in srgb, var(--line) 50%, var(--ink-3)); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-img { aspect-ratio: 1; background: var(--surface-2); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, opacity .3s; }
.card-img .alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-img .alt { opacity: 1; }
.card:hover .card-img img:only-of-type { transform: scale(1.05); }
.card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.card-badges .badge { box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.badge.low { background: var(--surface); color: var(--warn); }
.badge.new { background: var(--accent); color: var(--accent-ink); letter-spacing: .03em; }
.badge.vid { background: rgba(15, 14, 12, .72); color: #fff; margin-left: auto; }
.badge.vid svg { width: 11px; height: 11px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name {
  font-weight: 600; font-size: 14.5px; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.card-ship { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.card-ship svg { width: 15px; height: 15px; flex: none; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.price { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.price-old { color: var(--ink-3); text-decoration: line-through; font-size: 13px; font-weight: 500; margin-left: 6px; }
.price-bs { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-top: -2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-bs { flex-basis: 100%; font-size: 17px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pd-bs small { font-size: 13px; font-weight: 600; color: var(--accent); }
.tasa-note {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--hero-ink); font-size: 13px;
}
.tasa-note strong { color: var(--accent); }
.add {
  height: 38px; padding: 0 12px 0 10px; border-radius: 999px; border: none; cursor: pointer; flex: none;
  background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; gap: 4px;
  font-weight: 700; font-size: 13px; transition: background .15s, color .15s;
}
.add:hover { background: var(--accent); color: var(--accent-ink); }
.add:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.add svg { width: 18px; height: 18px; }
.card.agotado .card-img img { opacity: .55; filter: grayscale(.7); }
.card.agotado .price { color: var(--ink-3); }
.no-img { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }

.empty { grid-column: 1 / -1; text-align: center; padding: 64px 16px; color: var(--ink-2); }
.empty svg { width: 44px; height: 44px; color: var(--ink-3); margin: 0 auto 12px; display: block; }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }
.more { display: flex; justify-content: center; margin: 40px 0 56px; }

/* ── Pie ────────────────────────────────────────────────────────────── */
.foot { margin-top: var(--sp-8); background: var(--surface); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: var(--sp-6); padding-top: var(--sp-7); padding-bottom: var(--sp-6); }
.foot h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 var(--sp-3); }
.foot-brand strong { font-size: 20px; letter-spacing: -.02em; }
.foot-brand p { margin: 6px 0 var(--sp-4); max-width: 36ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.steps li p { margin: 2px 0 0; flex: 1; min-width: 0; }
.steps li strong { color: var(--accent); }
.steps li span { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 12px; }
.foot-cats { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--sp-5); }
.foot-cats li { break-inside: avoid; margin-bottom: 6px; }
.foot-cats button { background: none; border: none; padding: 0; cursor: pointer; color: var(--ink-2); font-size: 14px; text-align: left; }
.foot-cats button:hover { color: var(--accent); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: var(--sp-4); padding-bottom: var(--sp-5); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* ── Detalle ────────────────────────────────────────────────────────── */
.pd { width: min(1100px, 100%); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.gallery { position: sticky; top: 0; min-width: 0; padding: 20px; background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; }
.g-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.g-main img, .g-main video { width: 100%; height: 100%; object-fit: contain; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.g-thumbs button {
  flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer;
  border: 2px solid transparent; background: var(--surface); position: relative; opacity: .75; transition: opacity .15s;
}
.g-thumbs button:hover { opacity: 1; }
.g-thumbs button.on { border-color: var(--accent); opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); color: #fff; }
.g-thumbs .play svg { width: 22px; height: 22px; }
.pd-info { padding: 32px 32px 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); text-decoration: none; align-self: flex-start; }
.pd-cat:hover { text-decoration: underline; }
.pd-info h2 { margin: 0; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; letter-spacing: -.02em; padding-right: 32px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pd-price .price { font-size: 32px; }
.pd-stock { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.pd-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pd-stock.ok { color: var(--accent); }
.pd-stock.low { color: var(--warn); }
.pd-stock.no { color: var(--danger); }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pd-buy .btn { flex: 1; height: 50px; font-size: 15px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; height: 50px; }
.qty button { width: 42px; height: 100%; border: none; background: transparent; font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 44px; border: none; text-align: center; background: transparent; outline: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn.wa { height: 50px; background: #25d366; border-color: #25d366; color: #0b3d20; }
.btn.wa:hover { filter: brightness(1.05); background: #25d366; }
.btn.wa.sm { height: 36px; }
.pd-perks { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 6px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); }
.pd-perks li { display: flex; gap: 8px; align-items: center; }
.pd-perks svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.pd-perks .pd-ship { color: var(--ink); font-size: 14.5px; }
.pd-perks .pd-ship strong { color: var(--accent); }
.pd-perks .pd-ship svg { width: 20px; height: 20px; }
.share { align-self: flex-start; }
.pd-desc { border-top: 1px solid var(--line); padding-top: 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.pd-desc p { margin: 0 0 10px; }
.pd-desc.vacia { font-style: italic; }
.pd-desc.recortada { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ver-mas { align-self: flex-start; margin-top: -6px; }
.pd-dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin: 0; }
.pd-dims div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.pd-dims dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; }
.pd-dims dd { margin: 0; font-weight: 600; font-size: 14px; }
.pd-rel { border-top: 1px solid var(--line); padding: 24px 28px 28px; }
.pd-rel .rail { grid-auto-columns: minmax(170px, 196px); }

/* ── Carrito ────────────────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15, 14, 12, .45); animation: fade .15s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: slide .2s ease;
}
@keyframes slide { from { transform: translateX(30px); opacity: 0 } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.total strong { font-size: 22px; letter-spacing: -.02em; }
.subtotal { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.subtotal .free { color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.wa-full { height: 50px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img, .line .no-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.line-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.line-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.line-ctrl .qty { height: 32px; }
.line-ctrl .qty button { width: 30px; font-size: 16px; }
.line-ctrl .qty input { width: 32px; font-size: 13px; }
.line-price { font-weight: 700; text-align: right; }
.line-price small, .total-r small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.total-r { text-align: right; }
.total-r small { font-size: 13.5px; color: var(--ink-2); }
#cart-tasa { margin: -4px 0 0; }
.line-rm { border: none; background: none; color: var(--ink-3); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0; }
.cart-empty { text-align: center; padding: 56px 0; color: var(--ink-2); }
.cart-empty svg { width: 44px; height: 44px; color: var(--ink-3); margin: 0 auto 10px; display: block; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { height: auto; padding: 0 var(--sp-4) var(--sp-4); grid-template-rows: 170px; }
  .hero-art figure:first-child { grid-row: auto; }
  .hero-art figure:nth-child(n+4) { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .pd-grid { grid-template-columns: 1fr; }
  .gallery { position: static; padding: 12px; }
  .pd-info { padding: 20px 16px 24px; }
  .pd-info h2 { padding-right: 0; }
  .pd-rel { padding: 20px 16px 24px; }
}
@media (max-width: 720px) {
  /* En móvil: beneficios compactos en 2×2 (icono + título). */
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
  .perks li { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; }
  .perks strong { font-size: 12.5px; line-height: 1.25; }
  .perks li > div span { display: none; }
  .perk-ic { width: 34px; height: 34px; border-radius: 10px; }
  .perk-ic svg { width: 18px; height: 18px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 170px; }
  .announce-in { font-size: 13px; padding: 7px 12px; }
  .announce-sep { display: none; }
  .announce-extra { display: block; font-weight: 600; opacity: .9; font-size: 12px; }
  .top-in { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .search input { height: 44px; }
  .brand { flex: 1; font-size: 18px; }
  .cart-label { display: none; }
  .cart-btn { height: 42px; padding: 0 14px; }
  .hero { margin-top: var(--sp-4); border-radius: 18px; }
  .hero-text { padding: 22px 20px 18px; gap: 10px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-cta .ghost-on-hero { display: none; } /* las categorías ya están en la barra de arriba */
  .hero-art { grid-template-rows: 112px; gap: 8px; padding: 0 12px 12px; }
  .hero-art figcaption { display: none; }
  .block { margin-top: var(--sp-6); }
  .cat-tiles { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
  .cat-tile { padding: 8px 8px 10px; gap: 8px; }
  .cat-tile strong { font-size: 12.5px; padding: 0 2px; }
  .cat-tile small { font-size: 11.5px; padding: 0 2px; }
  .rail { grid-auto-columns: 46%; gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px; }
  .card-name { font-size: 13.5px; }
  .price { font-size: 16px; }
  .price-old { display: block; margin-left: 0; }
  .add { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .add .add-txt { display: none; }
  .card-badges { top: 8px; left: 8px; right: 8px; }
  .toolbar { gap: 10px; }
  .tools { width: 100%; flex-wrap: nowrap; }
  .toggle { flex: none; }
  .toggle span { padding: 0 12px; font-size: 13px; }
  .tools .select { flex: 1; min-width: 0; font-size: 13px; }
  .overlay { padding: 0; align-items: stretch; }
  .dialog { border-radius: 0; max-height: 100dvh; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--sp-5); padding-top: var(--sp-6); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
