@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;0,900;1,900&display=swap');

:root {
  --y: #fcdc00; --y-d: #e6c800; --orange: #f47a2c; --dk: #33363a; --tx: #454545; --mu: #8a8d90; --line: #e6e6e6;
  --gn: #0b6b3a; --red: #d8232a;
  /* alias usados por el panel admin */
  --g: var(--dk); --g-d: #1f2124; --g-l: #f6f6f6; --terra: var(--dk); --terra-d: #1f2124; --green: var(--dk);
  --mustard: var(--y); --cream: #f4f4f4; --paper: #fff; --ink: var(--tx); --muted: var(--mu);
  --shadow: 0 8px 24px -12px rgba(0, 0, 0, .35); --r: 6px;
  --serif: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif; --sans: var(--serif);
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--tx); background: #fff; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.serif { font-family: var(--serif); }

/* ---------- Barra oscura ---------- */
.topbar { background: var(--dk); color: #fff; font-size: .82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.contact { display: flex; gap: 6px 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.contact a, .contact > span { display: inline-flex; align-items: center; gap: 7px; transition: .2s; }
.contact a:hover { color: var(--y); }
.contact svg { width: 15px; height: 15px; flex: none; }
.tb-ico { display: flex; gap: 18px; flex: none; }
.tb-ico a { display: grid; place-items: center; }
.tb-ico svg { width: 22px; height: 22px; }

/* ---------- Franja naranja ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--orange); color: var(--dk); }
.header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 84px; }
.burger { width: 44px; height: 44px; display: none; flex-direction: column; justify-content: center; gap: 7px; }
.burger i { display: block; height: 4px; background: var(--dk); border-radius: 2px; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo b { font-family: var(--serif); font-style: italic; font-weight: 900; font-size: 2.3rem; letter-spacing: -.02em; color: #fff; text-shadow: 2px 2px 0 var(--dk); }
.logo b span { color: #fff; }
.logo small { color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-top: 2px; }
.h-left { display: flex; align-items: center; }
.search { position: relative; max-width: 360px; width: 100%; }
.search input { width: 100%; padding: 11px 44px 11px 16px; border-radius: 99px; border: 0; background: #fff; font: inherit; outline: 0; }
.search span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.h-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.cart-btn { position: relative; background: var(--dk); color: #fff; padding: 11px 20px; border-radius: 99px; font-weight: 700; display: flex; gap: 8px; align-items: center; transition: .2s; }
.cart-btn:hover { background: #000; }
.cart-btn .n { background: var(--y); color: var(--dk); min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: .78rem; padding: 0 6px; }
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.12); } }

/* ---------- Categorías (barra) ---------- */
.cats-bar { background: #fff; border-bottom: 1px solid var(--line); }
.cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat-i { flex: none; padding: 14px 16px; font-weight: 700; font-size: .92rem; text-transform: uppercase; border-bottom: 4px solid transparent; transition: .2s; white-space: nowrap; }
.cat-i:hover { background: #fafafa; }
.cat-i.on { border-color: var(--y); color: #000; }

/* ---------- Banner ---------- */
.slider { position: relative; margin: 24px auto 0; border-radius: 4px; overflow: hidden; }
.slides { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slide { flex: none; width: 100%; min-height: 340px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 30px 6%; color: #fff; position: relative; overflow: hidden; text-align: left; }
.slide h2 { font-weight: 900; font-size: clamp(2rem, 5.5vw, 4.4rem); text-transform: uppercase; line-height: .95; letter-spacing: -.01em; }
.slide p { font-size: 1.1rem; margin: 14px 0 20px; font-weight: 600; opacity: .95; max-width: 34ch; }
.slide .cta { display: inline-block; background: var(--red); color: #fff; padding: 10px 26px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: .9rem; }
.slide .art { position: relative; height: 280px; }
.slide .art img { position: absolute; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .3)); }
.s1 { background: #2f3439; } .s2 { background: var(--gn); } .s3 { background: var(--red); }
.dots { display: flex; justify-content: center; gap: 12px; padding: 16px 0; }
.dots button { width: 14px; height: 14px; border-radius: 50%; background: #c9d0cf; transition: .2s; }
.dots button.on { background: #6f8583; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .85); font-size: 1.4rem; z-index: 3; }
.sl-nav.l { left: 12px; } .sl-nav.r { right: 12px; }

/* ---------- Secciones y carruseles ---------- */
.sec { margin-top: 26px; }
.sec-h { text-align: center; font-size: 1.9rem; font-weight: 700; color: var(--tx); margin: 22px 0 18px; }
.sec-h small { display: block; font-size: .95rem; color: var(--mu); font-weight: 400; }
.rail-wrap { position: relative; }
.rail { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.arr { position: absolute; top: 40%; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 1.3rem; }
.arr.l { left: -10px; } .arr.r { right: -10px; }
.arr:hover { background: var(--y); }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }

.card { text-align: center; padding: 14px 12px 22px; display: flex; flex-direction: column; align-items: center; position: relative; animation: rise .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.rail .card, .rail .deal { flex: none; width: 20%; min-width: 210px; }
.card .pic { height: 170px; width: 100%; display: grid; place-items: center; margin-bottom: 8px; }
.card .pic img { height: 160px; width: 160px; object-fit: contain; mix-blend-mode: multiply; transition: .3s; }
.card:hover .pic img { transform: scale(1.08); }
.tag { position: absolute; top: 8px; left: 10px; padding: 2px 9px; border-radius: 3px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.tag.of { background: var(--red); } .tag.nu { background: var(--gn); } .tag.sg { background: var(--y); color: #000; left: auto; right: 10px; }
.price { font-size: 1.7rem; font-weight: 700; color: var(--tx); line-height: 1.1; }
.price small { font-size: .78rem; font-weight: 400; margin-left: 3px; }
.sin-imp { font-size: .8rem; color: var(--mu); }
.antes { font-size: .85rem; color: var(--mu); min-height: 1.3em; }
.pname { margin-top: 14px; font-size: 1.02rem; text-transform: uppercase; line-height: 1.2; color: #222; min-height: 2.5em; max-width: 220px; }
.punit { font-size: .95rem; color: var(--mu); margin: 6px 0 10px; }
.weights { display: flex; gap: 4px; justify-content: center; margin-bottom: 8px; }
.weights button { border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.weights button.on { background: var(--dk); color: #fff; border-color: var(--dk); }
.add { width: 124px; height: 46px; border-radius: 99px; background: var(--dk); border: 1px solid #2b6ea6; display: grid; place-items: center; margin-top: auto; transition: .2s; color: #fff; }
.add:hover { background: #000; transform: scale(1.05); }
.add svg { width: 30px; height: 30px; }
.add:disabled { background: #bbb; border-color: #bbb; cursor: not-allowed; font-size: .8rem; font-weight: 700; }
.consultar { background: var(--gn); font-size: .85rem; font-weight: 700; text-align: center; }
.consultar:hover { background: #0a5c32; }
.deal .timer { display: flex; gap: 3px; justify-content: center; margin: 4px 0 8px; font-weight: 700; }
.deal .timer b { background: var(--red); color: #fff; border-radius: 4px; padding: 1px 6px; font-size: .85rem; min-width: 30px; }
.deal .timer i { font-style: normal; color: var(--red); }
.empty { text-align: center; padding: 34px 10px; color: var(--mu); grid-column: 1/-1; }
.ver-mas { display: flex; margin: 22px auto 0; }
.ver-mas[hidden] { display: none; }

.pagos { background: #f0f0f0; border-radius: 6px; margin: 30px auto 0; padding: 20px; display: flex; gap: 14px 30px; justify-content: center; flex-wrap: wrap; align-items: center; font-weight: 700; }
.pagos span { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 6px; padding: 8px 16px; border: 1px solid var(--line); }
.pagos img { width: 24px; }
.pagos .cta { background: var(--gn); color: #fff; border: 0; clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%); padding-right: 28px; }

/* ---------- Footer ---------- */
footer { background: var(--dk); color: #e9e9e9; margin-top: 50px; padding: 36px 0 96px; }
.fcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.fcols h4 { color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 12px; border-bottom: 3px solid var(--y); display: inline-block; padding-bottom: 4px; }
.fcols p, .fcols a { display: block; font-size: .92rem; opacity: .85; margin-bottom: 6px; }
.fcols a:hover { color: var(--y); opacity: 1; }
.fbot { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.dev { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dev small { opacity: .7; font-size: .72rem; letter-spacing: .04em; }
.dev img { height: 60px; width: auto; max-width: 100%; border-radius: 10px; background: #f4f4f2; transition: .3s; }
.dev:hover img { transform: translateY(-3px); }
.dev-wa { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 700; color: #fff; }
.dev-wa svg { width: 18px; height: 18px; color: #25d366; }
.dev:hover .dev-wa { color: #25d366; }
.admin-link { font-size: .78rem; opacity: .5; }

.help { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 8px; background: var(--gn); color: #fff; padding: 10px 16px 10px 12px; border-radius: 30px 30px 4px 30px; font-weight: 900; text-transform: uppercase; font-size: .82rem; line-height: 1.05; box-shadow: var(--shadow); transition: .2s; }
.help:hover { transform: translateY(-3px); }
.help i { width: 34px; height: 34px; border-radius: 50%; background: var(--y); color: var(--gn); display: grid; place-items: center; font-style: normal; font-size: 1.1rem; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 100px); background: var(--dk); color: #fff; padding: 11px 22px; border-radius: 6px; z-index: 100; transition: .35s cubic-bezier(.2, 1.4, .4, 1); font-size: .9rem; }
.toast.on { transform: translate(-50%, 0); }

/* ---------- Carrito (drawer) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 60; opacity: 0; pointer-events: none; transition: .3s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: #fff; z-index: 70; transform: translateX(105%); transition: transform .4s cubic-bezier(.2, .9, .3, 1); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .4); }
.drawer.on { transform: none; }
.drawer-h { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; background: var(--y); color: var(--dk); }
.drawer-h h2 { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; }
.x { width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .1); transition: .2s; }
.x:hover { background: var(--dk); color: #fff; }
.drawer-b { flex: 1; overflow-y: auto; padding: 8px 22px 14px; }
.line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .th { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; }
.line .th img { width: 38px; height: 38px; object-fit: contain; }
.line h4 { font-size: .9rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; }
.line small { color: var(--mu); font-size: .78rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; margin-top: 5px; }
.qty button { width: 26px; height: 26px; font-weight: 700; }
.qty button:hover { background: var(--y); }
.qty span { min-width: 52px; text-align: center; font-weight: 600; font-size: .8rem; }
.line .sub { font-weight: 700; text-align: right; }
.line .rm { display: block; font-size: .72rem; color: var(--red); margin-top: 6px; margin-left: auto; font-weight: 600; }
.ext { margin-top: 20px; padding: 14px; border-radius: 6px; background: #fffbe0; border: 1px dashed var(--y-d); }
.ext h4 { font-size: .9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.ext > small { color: var(--mu); display: block; margin-bottom: 8px; font-size: .74rem; }
.ext a { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 6px; padding: 7px 10px; margin-top: 6px; border: 1px solid #f1e3b0; }
.ext a img { width: 30px; height: 30px; }
.ext a b { font-size: .84rem; display: block; line-height: 1.2; } .ext a small { color: var(--mu); font-size: .72rem; }
.ext a em { margin-left: auto; font-style: normal; font-weight: 700; font-size: .88rem; }
.drawer-f { padding: 16px 22px 20px; border-top: 1px solid var(--line); }
.tot { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 99px; font-weight: 700; font-size: .9rem; text-transform: uppercase; transition: .2s; }
.btn-p { background: var(--dk); color: #fff; } .btn-p:hover { background: #000; }
.btn-g { background: #fff; border: 2px solid var(--dk); color: var(--dk); } .btn-g:hover { background: var(--dk); color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-row { display: flex; gap: 8px; } .btn-row .btn { flex: 1; padding: 12px 8px; }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--mu); }
.drawer-empty img { width: 70px; margin: 0 auto 10px; opacity: .7; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: .25s; background: rgba(0, 0, 0, .45); }
.modal.on { opacity: 1; pointer-events: auto; }
.modal .box { background: #fff; border-radius: 10px; padding: 26px; width: min(480px, 100%); max-height: 92vh; overflow: auto; transform: scale(.94) translateY(16px); transition: .3s; box-shadow: var(--shadow); }
.modal.on .box { transform: none; }
.box h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 4px; text-transform: uppercase; }
.box > p { color: var(--mu); margin-bottom: 14px; }
.pay { display: grid; gap: 8px; margin: 14px 0; }
.pay label { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border: 2px solid var(--line); border-radius: 8px; cursor: pointer; transition: .15s; }
.pay label:hover { border-color: var(--dk); }
.pay label:has(input:checked) { border-color: var(--dk); background: #fffbe0; }
.pay input { accent-color: var(--dk); width: 17px; height: 17px; }
.pay b { display: block; font-size: .95rem; } .pay small { color: var(--mu); font-size: .78rem; }
.pay .ico { font-size: 1.4rem; }
.field { width: 100%; padding: 11px 14px; border-radius: 6px; border: 1.5px solid var(--line); font: inherit; margin-bottom: 8px; background: #fff; outline: 0; }
.field:focus { border-color: var(--dk); }
.share-link { display: flex; gap: 6px; margin: 12px 0; }
.share-link input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 6px; border: 1.5px solid var(--line); font: .76rem monospace; }
.qr { display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin: 12px auto; width: fit-content; }
.note { background: #fffbe0; border-radius: 6px; padding: 9px 12px; font-size: .8rem; margin-top: 10px; }

@media (max-width: 900px) {
  .topbar .contact { display: none; } .topbar .wrap { justify-content: flex-end; min-height: 44px; }
  .header .wrap { height: 84px; } .burger { display: flex; } .search { display: none; }
  .cats-bar { display: none; } .cats-bar.open { display: block; } .cats { flex-direction: column; } .cat-i { border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  .cat-i.on { border-color: var(--y); }
  .slide { grid-template-columns: 1fr; min-height: 300px; padding: 26px 20px; } .slide .art { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rail .card, .rail .deal { width: 50%; min-width: 0; }
  .card .pic { height: 130px; } .card .pic img { height: 120px; width: 120px; } .price { font-size: 1.35rem; } .pname { font-size: .88rem; }
  .fcols { grid-template-columns: 1fr; } .arr, .sl-nav { display: none; } .dev { align-items: flex-start; }
  .cart-btn { padding: 10px 14px; } .cart-btn .lbl { display: none; }
  .sec-h { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
