:root {
  --brand: #d90f1c;
  --brand-dark: #a80a15;
  --ink: #1d1d1f;
  --muted: #6b6b70;
  --line: #ececef;
  --bg: #f6f6f7;
  --card: #ffffff;
  --ok: #128c4a;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); padding: 8px 16px 10px; }
.top-row { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.brand img { height: 34px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 2px; }
.icon-btn { position: relative; border: 0; background: transparent; color: var(--ink); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; }
.icon-btn:hover { background: var(--bg); }
.badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.search { display: flex; align-items: center; gap: 8px; max-width: 1200px; margin: 8px auto 0; background: var(--bg); border-radius: 999px; padding: 0 16px; color: var(--muted); }
.search input { flex: 1; border: 0; background: transparent; padding: 11px 0; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 13.5px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }

main { max-width: 1200px; margin: 0 auto; padding: 14px 16px 120px; outline: none; }
.loading, .empty { text-align: center; color: var(--muted); padding: 60px 16px; }
.count { color: var(--muted); font-size: 13px; font-weight: 400; }

/* Portada: carrusel de destacados */
.hero-car { position: relative; border-radius: 22px; overflow: hidden; background: #3a0a10; box-shadow: 0 10px 30px rgba(90,10,20,.18); }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: none; width: 100%; scroll-snap-align: center; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 212px; padding: 20px 16px 34px 20px; text-decoration: none; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(26px) saturate(1.8) brightness(1.05); transform: scale(1.2); animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.2) translateX(-12px); } to { transform: scale(1.32) translateX(12px); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 90% at 100% 50%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 45%),
  linear-gradient(100deg, rgba(25,6,10,.86) 0%, rgba(45,8,16,.55) 45%, rgba(0,0,0,.05) 100%); }
.hero-txt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; flex: 1; }
.hero-kick { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-slide strong { font-size: 20px; line-height: 1.18; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-hook { font-size: 13px; opacity: .88; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hero-price { display: flex; align-items: baseline; gap: 8px; }
.hero-price b { font-size: 22px; font-weight: 800; }
.hero-price s { font-size: 13px; opacity: .7; }
.hero-btn { margin-top: 4px; background: #fff; color: var(--brand-dark); font-size: 13.5px; font-weight: 800; padding: 9px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.2); transition: transform .15s; }
.hero-slide:hover .hero-btn { transform: translateX(3px); }
.hero-pic { position: relative; flex: none; width: 112px; height: 112px; }
@media (max-width: 759px) { .hero-slide strong { font-size: 18px; -webkit-line-clamp: 3; } .hero-slide { padding-right: 18px; } .hero-off { width: 46px; height: 46px; font-size: 13.5px; } }
.hero-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 14px 30px rgba(0,0,0,.35); transform: rotate(3deg); transition: transform 5s ease-out; }
.hero-slide.on .hero-pic img { transform: rotate(-2deg) scale(1.06); }
.hero-off { position: absolute; top: -10px; left: -12px; width: 52px; height: 52px; border-radius: 50%; background: #ffd23f; color: #5a0a12; font-weight: 900; font-size: 15px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.3); transform: rotate(-12deg); }
.hero-slide.on .hero-off { animation: pop .5s .25s both; }
@keyframes pop { from { transform: rotate(-12deg) scale(.4); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: 1; } }
.hero-slide.on .hero-txt > * { animation: rise .5s both; }
.hero-slide.on .hero-txt > :nth-child(2) { animation-delay: .06s; } .hero-slide.on .hero-txt > :nth-child(3) { animation-delay: .12s; }
.hero-slide.on .hero-txt > :nth-child(4) { animation-delay: .18s; } .hero-slide.on .hero-txt > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-dots { position: absolute; left: 20px; bottom: 13px; display: flex; gap: 6px; }
.hero-dots button { width: 8px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.4); overflow: hidden; transition: width .25s; }
.hero-dots button.on { width: 28px; }
.hero-dots i { display: block; height: 100%; width: 0; background: #fff; }
.hero-dots button.on i { animation: fill 5s linear forwards; }
.hero-car:hover .hero-dots button.on i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
@media (min-width: 760px) {
  .hero-slide { min-height: 280px; padding: 30px 48px 44px; }
  .hero-slide strong { font-size: 32px; max-width: 560px; }
  .hero-hook { font-size: 15px; }
  .hero-price b { font-size: 28px; }
  .hero-pic { width: 220px; height: 220px; margin-right: 20px; }
  .hero-off { width: 66px; height: 66px; font-size: 18px; }
  .hero-dots { left: 48px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide *, .hero-dots i { animation: none !important; transition: none !important; } }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink); }
.trust span { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.2; }
.trust small { font-weight: 400; color: var(--muted); font-size: 10.5px; }
.trust svg { width: 24px; height: 24px; color: var(--brand); }
.cats { display: flex; gap: 14px; overflow-x: auto; margin: 10px -16px 4px; padding: 6px 16px 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 12px; line-height: 1.2; text-align: center; color: var(--ink); }
.cat-img { width: 66px; height: 66px; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cats a:hover .cat-img { box-shadow: 0 0 0 2px var(--brand); }
@media (min-width: 960px) { .cats { justify-content: center; gap: 22px; } .cats a { width: 92px; font-size: 13px; } .cat-img { width: 82px; height: 82px; } }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.sec-head h1, .sec-head h2 { font-size: 18px; margin: 0; line-height: 1.25; }
.sec-head a { color: var(--brand); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chips + .sec-head { margin-top: 4px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2.2); gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll .card { scroll-snap-align: start; }
@media (min-width: 640px) { .row-scroll { grid-auto-columns: calc((100% - 36px) / 3.3); } }
@media (min-width: 960px) { .row-scroll { grid-auto-columns: calc((100% - 64px) / 5); gap: 16px; margin: 0; padding: 0 0 6px; } }

/* Cuadrícula de productos */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 1; background: #fafafa; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card.out .ph img { filter: grayscale(.85); opacity: .6; }
.card .info { padding: 9px 11px 8px; display: flex; flex-direction: column; gap: 3px; flex: 1; text-decoration: none; }
.card .cat { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .name { font-size: 13.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card .few { font-size: 11.5px; color: #b45309; font-weight: 600; }
.prices { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.price { font-weight: 800; font-size: 16px; }
.price.promo { color: var(--brand); }
.was { color: var(--muted); text-decoration: line-through; font-size: 12.5px; }
.tag { position: absolute; top: 8px; left: 8px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--brand); color: #fff; }
.tag.out { background: #4a4a4f; }
.tag.big { top: 12px; left: 12px; font-size: 13px; padding: 4px 10px; }
.fav { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--ink); }
.fav svg, .fav-lg svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.fav.on, .fav-lg.on { color: var(--brand); }
.fav.on svg, .fav-lg.on svg { fill: currentColor; }
.fav-lg svg { width: 22px; height: 22px; }
.add-btn { margin: 0 10px 11px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; padding: 7px 10px; font-size: 13.5px; font-weight: 700; text-align: center; text-decoration: none; transition: background .15s, color .15s; }
.add-btn:hover, .add-btn.done { background: var(--brand); color: #fff; }
.add-btn.ghost { border-color: var(--line); color: var(--muted); }
.add-btn.ghost:hover { background: var(--bg); color: var(--ink); }
.add-btn:active { transform: scale(.97); }

/* Ficha de producto */
.back { border: 0; background: transparent; color: var(--muted); padding: 4px 0 12px; font-size: 14px; }
.pdp-top { display: flex; justify-content: space-between; align-items: center; margin: -6px -8px 6px; }
.pdp { display: grid; gap: 18px; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } .pdp .gallery { position: sticky; top: 130px; } }
.gallery { position: relative; }
.gallery .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; background: #fff; scrollbar-width: none; border: 1px solid var(--line); }
.gallery .slides::-webkit-scrollbar { display: none; }
.gallery .slides img { flex: none; width: 100%; aspect-ratio: 1; object-fit: contain; scroll-snap-align: center; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots button { width: 7px; height: 7px; border-radius: 4px; border: 0; padding: 0; background: #d4d4d8; transition: width .2s; }
.dots button.on { width: 20px; background: var(--ink); }
.thumbs { display: none; gap: 8px; margin-top: 10px; overflow-x: auto; }
@media (min-width: 860px) { .thumbs { display: flex; } .dots { display: none; } }
.thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-cat { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.pdp h1 { font-size: 22px; line-height: 1.25; margin: 4px 0 4px; }
.pdp .sub { color: var(--muted); margin: 0 0 10px; }
.pdp .prices .price { font-size: 28px; }
.pdp .save { background: #fde8ea; color: var(--brand-dark); font-weight: 700; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; }
.stock { color: var(--ok); font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.stock.off { color: var(--muted); }
.code { color: var(--muted); font-size: 12px; margin-top: 4px; }
.buy-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 4px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.perks { display: grid; gap: 6px; margin: 14px 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); }
.intro { font-size: 15px; margin: 6px 0 10px; }
.intro p { margin: 0 0 6px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 14px 2px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc details > div { padding: 0 2px 14px; font-size: 14.5px; }
.acc p { margin: 0 0 8px; }
.acc ul { margin: 0 0 8px; padding-left: 20px; }
.acc li { margin-bottom: 4px; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.06); }
.buy-bar .btn { flex: 1; border-radius: 999px; }
.wa-round { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--wa); display: grid; place-items: center; }
@media (min-width: 860px) { .buy-bar { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); bottom: 16px; border-radius: 999px; border: 1px solid var(--line); padding: 8px; } }
body[data-route="p"] .install { display: none; }
.buy { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qty button { border: 0; background: transparent; width: 40px; height: 44px; font-size: 20px; color: var(--ink); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.btn { border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 46px; }
.btn.primary { background: var(--brand); color: #fff; flex: 1; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.out-box { background: #f1f1f3; border-radius: 12px; padding: 12px 14px; margin: 16px 0; color: var(--muted); }
.desc { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); white-space: normal; }
.desc h3 { font-size: 14px; letter-spacing: .02em; margin: 16px 0 6px; }
.desc h3:first-child { margin-top: 0; }
.desc p { margin: 0 0 8px; }

/* Carrito y pago */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.panel h2 { font-size: 17px; margin: 0 0 12px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.line:first-of-type { border-top: 0; }
.line img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #fafafa; }
.line .n { font-size: 14px; font-weight: 600; line-height: 1.3; }
.line .u { color: var(--muted); font-size: 13px; }
.line .qty button { width: 32px; height: 34px; font-size: 18px; }
.line .rm { border: 0; background: transparent; color: var(--muted); font-size: 12.5px; text-decoration: underline; padding: 4px 0; }
.line .lt { font-weight: 700; text-align: right; }
.totals { display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .big { font-size: 19px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.form { display: grid; gap: 12px; }
@media (min-width: 640px) { .form.two { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input, textarea, select { font: inherit; border: 1px solid #d9d9de; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 14px; width: 100%; }
.pay-opt:hover { border-color: var(--brand); }
.pay-opt .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: var(--bg); flex: none; }
.pay-opt b { display: block; }
.pay-opt small { color: var(--muted); }
.pay-opt.wa .ic { background: #e3f6ea; }
.testmode { display: inline-block; background: #fff4cc; color: #7a5b00; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 2px 6px; margin-left: 6px; }
.err { color: var(--brand-dark); background: #fde8ea; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.bold-box { display: grid; gap: 10px; justify-items: center; padding: 10px 0; }

/* Estado del pedido */
.status { text-align: center; padding: 28px 16px; }
.status .big-ic { font-size: 54px; line-height: 1; }
.status h1 { font-size: 22px; margin: 10px 0 6px; }
.status p { color: var(--muted); margin: 0 auto 6px; max-width: 460px; }
.status .ref { font-family: ui-monospace, Consolas, monospace; background: var(--bg); padding: 2px 8px; border-radius: 6px; color: var(--ink); }

/* Barra fija del carrito en móvil */
.sticky-cart { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: #fff; border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 560px; margin: 0 auto; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 40; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Botón flotante de WhatsApp: sube cuando está la barra del carrito; no sale donde ya hay botón de WhatsApp */
.wa-fab { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 29; width: 58px; height: 58px; border-radius: 50%; border: 0; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: bottom .2s, transform .15s; }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: ring 2.6s ease-out 2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }
body.has-cart .wa-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
body[data-route="p"] .wa-fab, body[data-route="carrito"] .wa-fab, body[data-route="pagar"] .wa-fab { display: none; }
@media (prefers-reduced-motion: reduce) { .wa-fab::after { animation: none; } }
/* Instalar app */
.install-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px 10px 10px; margin-bottom: 12px; box-shadow: var(--shadow); }
.install-bar img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.install-bar span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; }
.install-bar small { color: var(--muted); font-size: 12px; }
.install-bar .btn { flex: none; min-height: 38px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; }
.install-bar .x { border: 0; background: transparent; color: var(--muted); font-size: 22px; width: 30px; height: 30px; flex: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 480px; border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; animation: up .25s ease-out; }
@media (min-width: 600px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-ic { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 8px; }
.sheet h2 { margin: 0 0 10px; font-size: 19px; }
.sheet p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.sheet ol { text-align: left; margin: 0 0 16px; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.sheet li { margin-bottom: 6px; }
.ios-share { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; color: #0a84ff; font-weight: 700; }
.install { position: fixed; right: 16px; bottom: 84px; z-index: 25; border: 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 16px; font-weight: 700; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
footer.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 34px 16px 10px; display: grid; gap: 10px; justify-items: center; }
footer.foot p { margin: 0; }
