:root {
  --blue: #1b2cf0;
  --blue-deep: #1212b4;
  --blue-light: #2f6bff;
  --yellow: #ffe600;
  --black: #000;
  --ink: #111318;
  --muted: #5b6070;
  --line: #e4e6ec;
  --bg: #f3f4f7;
  --card: #fff;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 20, 40, .08);
  --font: "Montserrat", "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
main { min-height: 60vh; outline: none; }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- barra de anuncios ---------- */
.announce { background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 8px; }
.announce p { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: .3px; text-align: center; flex: 1; transition: opacity .25s; }
.announce-nav { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; padding: 0 10px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 30; background: var(--black); color: #fff; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 12px; min-height: 72px; }
.header-left, .header-right { display: flex; align-items: center; gap: 4px; }
.header-right { justify-content: flex-end; }
.icon-btn { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; position: relative; border-radius: 8px; text-decoration: none; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg.wa { fill: currentColor; stroke: none; }
.badge { position: absolute; top: 0; right: 0; background: var(--yellow); color: #000; font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.badge.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.logo-cart { width: 44px; height: 36px; }
.logo-text { font-weight: 900; font-size: 30px; letter-spacing: -1px; white-space: nowrap; }
.logo-text b { color: var(--yellow); font-weight: 900; }
.logo-text i { color: var(--blue-light); font-style: normal; }

.search-bar { background: #111; padding: 10px 14px 14px; position: sticky; top: 72px; z-index: 29; }
.search-bar form { display: flex; max-width: 700px; margin: 0 auto; gap: 8px; }
.search-bar input { flex: 1; border: 0; border-radius: 8px; padding: 12px 14px; font-size: 16px; }
.search-bar button { background: var(--yellow); border: 0; border-radius: 8px; font-weight: 700; padding: 0 18px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blue-deep); }
.hero-track { display: flex; transition: transform .5s ease; }
.slide { min-width: 100%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 10px; padding: 34px 6vw; min-height: 300px; color: #fff; }
.slide h1, .slide h2 { margin: 0; font-weight: 900; line-height: .95; text-transform: uppercase; }
.slide .big { color: var(--yellow); font-size: clamp(32px, 6vw, 68px); }
.slide .outline { color: transparent; -webkit-text-stroke: 2px var(--yellow); font-size: clamp(30px, 5.6vw, 64px); margin-top: 8px; }
.slide p { margin: 16px 0 0; font-size: 14px; opacity: .9; }
.slide .cta { display: inline-block; margin-top: 18px; background: var(--yellow); color: #000; font-weight: 800; padding: 12px 22px; border-radius: 999px; text-decoration: none; }
.slide-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: clamp(34px, 6vw, 70px); text-align: center; }
.slide-art span { background: rgba(255,255,255,.1); border-radius: 18px; padding: 10px 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.slide.alt { background: linear-gradient(120deg, #000 0%, #1b2cf0 100%); }
.dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 4px; background: var(--bg); }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #cfd2da; padding: 0; }
.dots button.on { background: #222; }

/* ---------- secciones ---------- */
.section { padding-top: 26px; padding-bottom: 8px; }
.section h2.title { font-size: 30px; margin: 0 0 16px; font-weight: 800; }
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.cat-card { scroll-snap-align: start; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform .15s; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card img, .cat-card .cat-ph { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: linear-gradient(120deg, var(--blue), var(--blue-light)); }
.cat-card span { display: block; padding: 14px 18px; font-weight: 800; font-size: 20px; }
.feat { background: var(--blue-deep); padding: 26px 0 30px; margin-top: 18px; }
.feat h2.title { color: #fff; }
.feat-band { background: #fff; padding-top: 24px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15,20,40,.14); }
.card .img { aspect-ratio: 1; background: #f6f7f9; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 20px; }
.compare { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.transfer { font-size: 13px; color: var(--green); font-weight: 600; }
.tags { position: absolute; top: 10px; left: 0; display: flex; flex-direction: column; gap: 6px; z-index: 1; }
.tag { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 0 6px 6px 0; color: #fff; display: inline-flex; align-items: center; gap: 4px; width: max-content; }
.tag.ship { background: #6abf2a; }
.tag.off { background: var(--blue); }
.tag.out { background: #444; }
.card-add { margin-top: 10px; background: #000; color: #fff; border: 0; border-radius: 8px; padding: 10px; font-weight: 700; font-size: 14px; }
.card-add:hover { background: var(--blue); }
.card-add:disabled { background: #bbb; cursor: not-allowed; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 26px 0; }
.benefit { background: #fff; border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.benefit .ico { font-size: 28px; }
.benefit strong { display: block; }
.benefit small { color: var(--muted); }

/* ---------- listado ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { text-decoration: none; }
.list-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.list-head h1 { margin: 0; font-size: 30px; }
.list-head select { padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font: inherit; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.chip { white-space: nowrap; border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; }
.chip.on { background: #000; color: #fff; border-color: #000; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { font-size: 48px; }

/* ---------- producto ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; background: #fff; border-radius: var(--radius); padding: 24px; margin: 14px 0 24px; box-shadow: var(--shadow); }
.gallery .main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #f6f7f9; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 70px; height: 70px; flex: none; background: #f6f7f9; }
.thumbs button.on { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.pdp .price { font-size: 32px; }
.pdp .off-pill { background: var(--blue); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 6px; }
.pdp .transfer { font-size: 15px; margin-top: 4px; }
.stock-line { margin: 14px 0; font-size: 14px; font-weight: 600; }
.stock-line.low { color: #b45309; }
.stock-line.out { color: var(--red); }
.buy-row { display: flex; gap: 10px; margin: 18px 0 10px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 42px; border: 0; background: #f4f5f7; font-size: 20px; }
.qty input { width: 48px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn { border: 0; border-radius: 8px; padding: 14px 20px; font-weight: 800; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0f1fd0; }
.btn-dark { background: #000; color: #fff; }
.btn-yellow { background: var(--yellow); color: #000; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-wa { background: #25d366; color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.grow { flex: 1; min-width: 160px; }
.perks { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.desc { margin-top: 18px; white-space: pre-line; color: #333; }
.desc h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }

/* ---------- drawers ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 50; display: flex; flex-direction: column; transition: transform .28s ease; }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 18px; }
.close { background: none; border: 0; font-size: 30px; line-height: 1; padding: 0 4px; }
.menu-list a { display: block; padding: 15px 20px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.menu-list a:hover { background: #f6f7fb; }
.cart-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cart-items { flex: 1; overflow-y: auto; padding: 6px 18px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; background: #f3f3f3; }
.cart-item h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.cart-item .qty button { width: 32px; font-size: 16px; }
.cart-item .qty input { width: 36px; font-size: 14px; }
.cart-item .rm { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 6px 0 0; }
.cart-item .line { font-weight: 800; white-space: nowrap; }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; }
.sum-row.total { font-size: 20px; font-weight: 800; }
.freebar { font-size: 13px; color: var(--muted); }
.freebar .bar { height: 6px; background: #e6e8ef; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.freebar .bar i { display: block; height: 100%; background: var(--green); }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 20px 0 34px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel h2 { margin: 0 0 14px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.panel h2 .n { background: #000; color: #fff; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.panel + .panel { margin-top: 16px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: #333; }
.field input, .field select, .field textarea { border: 1px solid #cfd3dc; border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 16px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue-light); border-color: transparent; }
.field.err input, .field.err select { border-color: var(--red); background: #fff7f7; }
.field .msg { color: var(--red); font-size: 12px; }
.pay-opt { display: flex; gap: 12px; border: 2px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; align-items: flex-start; }
.pay-opt + .pay-opt { margin-top: 10px; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: #f5f7ff; }
.pay-opt input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; }
.pay-opt small { display: block; color: var(--muted); }
.pay-opt .save { color: var(--green); font-weight: 700; }
.summary { position: sticky; top: 90px; }
.sum-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; font-size: 14px; padding: 8px 0; }
.sum-item img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; }
.sum-item .q { color: var(--muted); font-size: 12px; }
.summary .sum-row { padding: 4px 0; font-size: 15px; }
.summary .sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.secure { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; }

/* ---------- gracias ---------- */
.thanks { max-width: 720px; margin: 26px auto 40px; }
.thanks .ok { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 34px; margin: 0 auto 10px; }
.thanks h1 { text-align: center; margin: 0 0 4px; }
.thanks .ok.wait { background: #f59e0b; }
.thanks .ok.fail { background: var(--red); font-weight: 900; }
.mp-badge { display: inline-block; background: #009ee3; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.alt-pay { margin: 4px 0 12px; }
.alt-pay summary { cursor: pointer; color: var(--blue); font-weight: 600; padding: 6px 0; }
.thanks .lead { text-align: center; color: var(--muted); margin: 0 0 20px; }
.bank { background: #f6f8ff; border: 1px dashed var(--blue-light); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.bank-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; flex-wrap: wrap; }
.bank-row code { font-size: 15px; font-weight: 700; word-break: break-all; }
.copy-btn { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 13px; }

/* ---------- info ---------- */
.info { background: #fff; border-radius: var(--radius); padding: 24px; margin: 20px 0 30px; box-shadow: var(--shadow); max-width: 820px; }
.info h1 { margin-top: 0; }

/* ---------- footer y extras ---------- */
.footer { background: #000; color: #ddd; margin-top: 30px; padding: 34px 20px 20px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; }
.footer a { text-decoration: none; color: #ddd; }
.footer a:hover { color: var(--yellow); }
.footer p { font-size: 14px; color: #aaa; }
.footer-logo { font-weight: 900; font-size: 26px; color: var(--yellow); }
.footer-logo b { font-weight: 900; }
.footer-logo i { font-style: normal; color: var(--blue-light); }
.copy { text-align: center; font-size: 12px; color: #777; margin: 26px 0 0; }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -4px 18px rgba(0,0,0,.12); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 14px; align-items: center; justify-content: center; z-index: 35; }
.cookie p { margin: 0; font-size: 15px; max-width: 640px; }
.cookie button { background: #222; color: #fff; border: 0; border-radius: 4px; padding: 12px 20px; font-weight: 700; letter-spacing: .5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: #111; color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 60; transition: transform .3s, visibility .3s; visibility: hidden; width: max-content; text-align: center; font-weight: 600; max-width: 90vw; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.demo-flag { position: fixed; right: 12px; bottom: 12px; z-index: 34; background: var(--yellow); color: #000; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 6px; box-shadow: var(--shadow); }
.cookie:not([hidden]) ~ .demo-flag { bottom: 90px; }

@media (max-width: 860px) {
  .pdp, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .header { padding: 8px 6px; min-height: 64px; }
  .search-bar { top: 64px; }
  .icon-btn { width: 40px; height: 40px; }
  .logo-cart { width: 32px; height: 26px; }
  .logo-text { font-size: 21px; }
  .slide { grid-template-columns: 1fr; text-align: center; padding: 28px 18px; min-height: 0; }
  .slide-art { font-size: 34px; max-width: 300px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .body { padding: 10px; }
  .card h3 { font-size: 13px; }
  .price { font-size: 17px; }
  .pdp { padding: 14px; }
  .fields { grid-template-columns: 1fr; }
  .section h2.title, .list-head h1 { font-size: 24px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: left; }
}

.pay-opt.mp-only { border-color: #009ee3; background: #f0f9ff; cursor: default; align-items: center; }
.mp-logo { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #009ee3; color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 15px; }

.pay-cta { margin-top: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; margin-bottom: 12px; }
.pay-total strong { font-size: 24px; }
.pay-cta #coSubmit { width: 100%; padding: 16px 20px; font-size: 17px; }
.pay-cta .secure { margin-bottom: 0; }
