/* =====================================================================
   Productos de limpieza D Lupita · Estilos
   Paleta: fondo #F8F7F4, texto #222222, botones negros, WhatsApp verde.
   ===================================================================== */

:root {
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --ink: #222222;
  --muted: #5E5B55;
  --line: #E4E0D8;
  --btn: #111111;
  --btn-ink: #FFFFFF;
  --btn-hover: #333333;
  --wa: #117A43;
  --wa-hover: #0C6436;
  --brand: #1D3C9E;
  --brand-soft: #E9EDF8;
  --ok: #1B7A3A;
  --warn-bg: #FFF4DC;
  --warn-ink: #6B4A00;
  --free-bg: #E6F3EA;
  --free-ink: #14572C;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --top-h: 56px;
  --media-h: clamp(170px, calc(100vh - 460px), 440px);
  --media-h: clamp(170px, calc(100svh - 460px), 440px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --surface: #1A1A1A; --ink: #EDEBE7; --muted: #A9A59E; --line: #2B2B2B;
    --btn: #F2F0EC; --btn-ink: #111111; --btn-hover: #D9D6D0;
    --wa: #1E9E5A; --wa-hover: #22B266; --brand: #9DB2F2; --brand-soft: #1C2440; --ok: #6FCF97;
    --warn-bg: #3A2E12; --warn-ink: #F5D891; --free-bg: #143322; --free-ink: #A6E3BC;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111; --surface: #1A1A1A; --ink: #EDEBE7; --muted: #A9A59E; --line: #2B2B2B;
  --btn: #F2F0EC; --btn-ink: #111111; --btn-hover: #D9D6D0;
  --wa: #1E9E5A; --wa-hover: #22B266; --brand: #9DB2F2; --brand-soft: #1C2440; --ok: #6FCF97;
  --warn-bg: #3A2E12; --warn-ink: #F5D891; --free-bg: #143322; --free-ink: #A6E3BC;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
:root[data-theme="dark"] .btn.ok, .btn.ok { color: #fff; background: #1B7A3A; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Encabezado ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(var(--gutter), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.top__brand img { width: 36px; height: 36px; border-radius: 50%; }
.top__actions { display: flex; gap: 6px; align-items: center; }
.icon-btn, .cart-btn {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent;
}
.icon-btn:hover, .cart-btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.cart-btn { background: var(--btn); color: var(--btn-ink); }
.cart-btn:hover { background: var(--btn-hover); }
.cart-btn__count {
  position: absolute; top: -2px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--bg);
  background: var(--wa); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
}
.cart-btn.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.14); } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 10px var(--gutter) 8px; display: grid; justify-items: center; gap: 2px; }
.hero__logo { width: 60px; height: 60px; border-radius: 50%; box-shadow: var(--shadow); }
.hero__title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hero__slogan { font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.envio {
  margin-top: 6px; display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--brand); color: #fff; border-radius: 16px; padding: 7px 14px 7px 12px;
  font-size: 13px; line-height: 1.3; max-width: 560px;
}
:root[data-theme="dark"] .envio { color: #0E1633; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .envio { color: #0E1633; } }
.envio svg { width: 22px; height: 22px; }
.envio strong { font-weight: 800; }
[data-ruta="producto"] .hero { display: none; }

/* ---------- Catálogo / barra de filtros ---------- */
.catalogo { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 0 10px; }
.search { position: relative; display: block; flex: 0 0 38px; transition: flex-basis .2s var(--ease); }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink); width: 18px; height: 18px; pointer-events: none; }
.search input {
  width: 100%; height: 38px; padding: 0 14px 0 36px; border-radius: 999px; font-size: 16px;
  border: 1px solid var(--line); background: var(--surface); outline: none; cursor: pointer;
}
.search input::placeholder { color: transparent; }
.search:focus-within, .search.con-texto { flex-basis: 100%; }
.search:focus-within input::placeholder, .search.con-texto input::placeholder { color: var(--muted); }
.toolbar:focus-within .chips, .search.con-texto + .chips { display: none; }
.search input:focus { border-color: var(--ink); cursor: text; }
.chips { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.chip__sep { flex: none; width: 1px; margin: 6px 2px; background: var(--line); }

/* ---------- Escenario (una foto protagonista) ---------- */
.stage { position: relative; display: grid; gap: 12px; }
.stage__media { position: relative; }
.stage__frame {
  margin: 0; height: var(--media-h); background: #fff; border-radius: var(--radius);
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
  touch-action: pan-y; user-select: none;
}
.stage__frame { position: relative; }
.stage__frame img { position: absolute; inset: 8px 0; width: 100%; height: calc(100% - 16px); object-fit: contain; -webkit-user-drag: none; }
.stage__frame.sin-foto::after { content: attr(data-codigo); font-weight: 800; font-size: 28px; color: #B9B4AA; letter-spacing: .08em; }
.stage__frame.sin-foto img { display: none; }
.nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: #111; box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.nav:hover { background: #fff; }
.nav--prev { left: 8px; } .nav--next { right: 8px; }
.stage__count {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #555;
  background: rgba(255,255,255,.9); border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums;
}
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.stage { gap: 10px; }
.stage__name { font-size: 22px; font-weight: 800; margin-top: 1px; }
.stage__color { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stage__color:empty { display: none; }
.stage__buy { display: grid; gap: 8px; margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 14px; }
.price > span:first-child { font-size: 26px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.stock i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.buy-row { display: flex; gap: 10px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.qty button { width: 42px; height: 48px; border: 0; background: transparent; display: grid; place-items: center; border-radius: 12px; }
.qty button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.qty output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.stage__tools { display: flex; gap: 6px; }
.ghost {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 0; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink);
}
.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ghost[aria-pressed="true"] svg { fill: #C8323C; stroke: #C8323C; }
.stage__desc { color: var(--muted); font-size: 14.5px; max-width: 56ch; margin-top: 4px; }
.stage__empty { display: grid; gap: 12px; justify-items: center; padding: 48px 0; text-align: center; color: var(--muted); }
.stage.vacio .stage__media, .stage.vacio .stage__info { display: none; }

/* transición fade + slide (~250 ms en total) */
.anim { transition: opacity 125ms var(--ease), transform 125ms var(--ease); }
.anim.sale { opacity: 0; transform: translateX(calc(var(--dir, 1) * -22px)); }
.anim.entra { opacity: 0; transform: translateX(calc(var(--dir, 1) * 22px)); transition: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.985); }
.btn--dark { background: var(--btn); color: var(--btn-ink); }
.btn--dark:hover { background: var(--btn-hover); }
.btn--light { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--light:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--grow { flex: 1; }
.btn--block { width: 100%; }
.btn--sm { height: 38px; font-size: 13.5px; padding: 0 14px; }
.btn.ok { background: var(--ok); color: #fff; }

/* ---------- Carriles (relacionados / para ti) ---------- */
.rail { padding: 26px 0 6px; }
.rail--tint { max-width: 1180px; margin: 12px auto 0; padding: 22px var(--gutter) 10px; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rail__title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.rail__head .rail__title { margin: 0; }
.rail__list { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; }
.rail__list::-webkit-scrollbar { display: none; }
.rail__list > li { flex: 0 0 132px; scroll-snap-align: start; }

/* ---------- Tarjetas ---------- */
.card { display: grid; gap: 6px; text-decoration: none; }
.card__img { aspect-ratio: 3 / 4; background: #fff; border-radius: var(--radius-sm); overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); }
.card__img { position: relative; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px 0; }
.card__img.sin-foto::after { content: attr(data-codigo); font-weight: 800; color: #B9B4AA; }
.card__img.sin-foto img { display: none; }
.card__name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.card__price { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.card__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.card__add { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; flex: none; }
.card__add svg { width: 16px; height: 16px; stroke-width: 2.2; }
.card.actual .card__img { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Todo el catálogo ---------- */
.todo, .resenas, .visita { max-width: 1180px; margin: 0 auto; padding: 36px var(--gutter) 8px; }
.section-title { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }

/* ---------- Reseñas ---------- */
.resenas__resumen { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--muted); }
.resenas__resumen strong { font-size: 34px; color: var(--ink); letter-spacing: -.03em; }
.estrellas { display: inline-flex; gap: 2px; color: #D59A0B; }
.estrellas svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.estrellas svg.off { fill: var(--line); }
.resenas__lista { display: grid; gap: 12px; margin-bottom: 16px; }
.resena { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; }
.resena p { font-size: 14.5px; }
.resena footer { font-size: 13px; color: var(--muted); }
.stars { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; width: 100%; }
.stars input { position: absolute; opacity: 0; }
.stars label { width: 36px; height: 36px; cursor: pointer; background: var(--line); -webkit-mask: var(--star) center / 30px no-repeat; mask: var(--star) center / 30px no-repeat; }
.stars { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3.5 2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9l-5.2 2.7 1-5.8-4.3-4.1 5.9-.9L12 3.5Z'/%3E%3C/svg%3E"); }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { background: #D59A0B; }
.stars input:focus-visible + label { outline: 2px solid var(--brand); }
.trampa { position: absolute; left: -9999px; }

/* ---------- Visita / pie ---------- */
.visita__grid { display: grid; gap: 18px; }
.visita h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.visita p { margin-bottom: 4px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-underline-offset: 3px; }
.link svg { width: 18px; height: 18px; }
.pie { max-width: 1180px; margin: 40px auto 0; padding: 24px var(--gutter) calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.pie a { font-weight: 700; color: var(--ink); }

/* ---------- Barra inferior del carrito ---------- */
.cartbar {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px;
  border: 0; border-radius: 16px; background: var(--btn); color: var(--btn-ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 700; animation: subir .3s var(--ease);
}
.cartbar__n { font-variant-numeric: tabular-nums; }
.cartbar__t { margin-left: auto; font-variant-numeric: tabular-nums; }
.cartbar__cta { background: var(--wa); color: #fff; border-radius: 11px; height: 40px; padding: 0 14px; display: grid; place-items: center; }
@keyframes subir { from { transform: translateY(24px); opacity: 0; } }
.cartbar.tapada { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.cartbar { transition: transform .25s var(--ease), opacity .2s; }

/* ---------- Diálogos ---------- */
dialog { color: var(--ink); background: var(--surface); border: 0; padding: 0; }
dialog::backdrop { background: rgba(10,10,10,.45); backdrop-filter: blur(2px); }
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100%);
  display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: deslizar .25s var(--ease); }
@keyframes deslizar { from { transform: translateX(40px); opacity: 0; } }
.drawer__head, .modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 10px 20px; }
.drawer__head h2, .modal__head h2 { font-size: 20px; font-weight: 800; }
.cart-list { flex: 1; overflow-y: auto; padding: 4px 20px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 56px; height: 72px; background: #fff; border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.cart-item__img { position: relative; }
.cart-item__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cart-item__name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.cart-item__meta { font-size: 12.5px; color: var(--muted); }
.cart-item__side { display: grid; justify-items: end; gap: 6px; }
.cart-item__sub { font-weight: 800; font-variant-numeric: tabular-nums; }
.qty--sm button { width: 34px; height: 34px; }
.qty--sm svg { width: 16px; height: 16px; }
.cart-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); padding: 40px 20px; }
.drawer__foot { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.cart-total strong { font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hint { font-size: 12.5px; color: var(--muted); }

.modal { width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); border-radius: 20px; overflow-y: auto; }
.modal[open] { animation: aparecer .22s var(--ease); }
@keyframes aparecer { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal form, .enviado { padding: 0 20px 20px; display: grid; gap: 14px; }
.modal form .modal__head { padding: 14px 0 0; }
.enviado { padding-top: 22px; }
.enviado h2 { font-size: 21px; font-weight: 800; }
.enviado p { color: var(--muted); }
.stack { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label, .segmented legend { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); outline: none; font-size: 16px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #C0392B; }
.error { color: #B3261E; font-size: 13px; min-height: 0; }
:root[data-theme="dark"] .error { color: #FF8A80; }
.error:empty { display: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented legend { margin-bottom: 6px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 14px; text-align: center; cursor: pointer;
}
.segmented input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.aviso { border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.aviso.gratis { background: var(--free-bg); color: var(--free-ink); }
.aviso.costo { background: var(--warn-bg); color: var(--warn-ink); }
.aviso:empty { display: none; }
.tienda { display: flex; gap: 12px; align-items: flex-start; background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.tienda svg { color: var(--brand); margin-top: 2px; }
.tienda div { display: grid; gap: 4px; }
.resumen { font-size: 14px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: opacity .2s, transform .2s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail__list > li { flex-basis: 150px; }
  .visita__grid { grid-template-columns: repeat(3, 1fr); }
  .resenas__lista { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; --top-h: 64px; }
  .hero { padding: 36px var(--gutter) 28px; gap: 6px; }
  .hero__logo { width: 132px; height: 132px; }
  .hero__slogan { font-size: 30px; }
  .envio { font-size: 15.5px; padding: 12px 24px 12px 18px; margin-top: 14px; max-width: 760px; border-radius: 999px; }
  .toolbar { gap: 14px; padding: 8px 0 18px; }
  .search, .search:focus-within, .search.con-texto { flex: 0 0 300px; }
  .search input { height: 42px; font-size: 15px; cursor: text; }
  .search input::placeholder { color: var(--muted); }
  .toolbar:focus-within .chips, .search.con-texto + .chips { display: flex; }
  .chips { margin: 0; padding: 0; }
  .stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .stage__frame { height: min(620px, calc(100vh - 250px)); }
  .stage__name { font-size: 38px; }
  .price > span:first-child { font-size: 34px; }
  .stage__info { max-width: 460px; }
  .nav--prev { left: 14px; } .nav--next { right: 14px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
  .cartbar { display: none; }
  .section-title { font-size: 28px; }
  .resenas__lista { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

[data-ruta="producto"] { --media-h: clamp(220px, calc(100vh - 340px), 560px); --media-h: clamp(220px, calc(100svh - 340px), 560px); }
[data-ruta="producto"] .catalogo { padding-top: 6px; }

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