/* Landing de venta de productos oficiales (independiente del sitio principal) */
:root {
  --bg: #12100e;
  --panel: #1b1815;
  --line: #3a332b;
  --cream: #f1e5c3;
  --muted: #b8ad92;
  --orange: #e2632b;
  --orange-d: #c24e1c;
  --ok: #7fb069;
  --err: #ff8a73;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font: 500 17px/1.5 Barlow, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- encabezado ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgb(18 16 14 / .94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.top__logo img { width: 150px; }
.top__cart, .top__link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 17px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 11px 16px; border: 1.5px solid var(--cream); border-radius: 999px;
}
.top__count {
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  display: inline-grid; place-items: center; background: var(--orange); color: #fff; font-size: 15px;
}

/* menú del sitio */
.menu { margin: 0 auto; }
.menu__list { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); white-space: nowrap; }
.menu__list a {
  font: 700 19px/1 "Barlow Condensed", sans-serif; letter-spacing: .03em;
  text-decoration: none; padding: 8px 0; transition: color .15s ease;
}
.menu__list a[aria-current="page"] { color: var(--orange); }
.menu-toggle {
  display: none; flex: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; flex-direction: column; justify-content: space-between;
}
.menu-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--cream); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }
@media (max-width: 1100px) {
  .top__logo { margin-right: auto; }
  .menu-toggle { display: flex; }
  .menu {
    position: absolute; inset: 100% 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px rgb(0 0 0 / .5);
    padding: 4px clamp(16px, 4vw, 48px) 14px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu__list { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__list li + li { border-top: 1px solid var(--line); }
  .menu__list a { display: flex; padding: 14px 4px; font-size: 22px; }
}

/* ---------- intro ---------- */
.intro { text-align: center; padding: clamp(36px, 7vw, 72px) 16px clamp(24px, 4vw, 40px); }
.intro__eyebrow { font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.intro__title {
  margin-top: 12px; text-wrap: balance;
  font: 700 clamp(38px, 7.5vw, 76px)/.95 "Barlow Condensed", sans-serif; letter-spacing: .02em; text-transform: uppercase;
}
.intro__sub { max-width: 560px; margin: 18px auto 0; color: var(--muted); text-wrap: pretty; }
/* guarda de triángulos, como en el catálogo impreso */
.guarda {
  height: 18px; max-width: 520px; margin: 20px auto 0;
  background:
    linear-gradient(135deg, var(--orange) 25%, transparent 25%) 0 0 / 36px 18px,
    linear-gradient(225deg, var(--orange) 25%, transparent 25%) 0 0 / 36px 18px,
    linear-gradient(315deg, var(--cream) 25%, transparent 25%) 18px 0 / 36px 18px,
    linear-gradient(45deg, var(--cream) 25%, transparent 25%) 18px 0 / 36px 18px;
  background-repeat: repeat-x;
}

/* ---------- catálogo ---------- */
.shop {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start;
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 72px;
}
.shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.shop__state { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--muted); }

.prod {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden;
}
.prod__img { position: relative; aspect-ratio: 4 / 3; background: #000; }
.prod__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.prod__out {
  position: absolute; left: 12px; top: 12px; z-index: 1; padding: 6px 12px; border-radius: 8px;
  background: var(--cream); color: var(--bg);
  font: 700 17px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase;
}
.prod.is-out .prod__img img { opacity: .45; }
.prod.is-out .prod__price { background: var(--line); color: var(--muted); }
.prod__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.prod__name { font: 700 26px/1 "Barlow Condensed", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.prod__detail { font-size: 15px; color: var(--muted); }
.prod__price {
  align-self: flex-start; background: var(--orange); color: #fff; border-radius: 8px; padding: 5px 12px;
  font: 700 26px/1.1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums;
}
.prod__label { font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size {
  min-width: 46px; height: 44px; padding: 0 10px; border-radius: 8px;
  background: transparent; border: 1.5px solid var(--line); font-weight: 700;
  transition: background-color .15s, border-color .15s, color .15s;
}
.size[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--bg); }
.size:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.prod__hint { font-size: 14px; color: var(--orange); min-height: 21px; }
.prod__buy { display: flex; gap: 10px; margin-top: auto; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; }
.qty button { width: 44px; height: 44px; background: none; border: 0; font-size: 22px; line-height: 1; }
.qty button:disabled { opacity: .3; cursor: default; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border: 0; border-radius: 10px;
  background: var(--orange); color: #fff; text-decoration: none;
  font: 700 19px/1.1 "Barlow Condensed", sans-serif; letter-spacing: .05em; text-transform: uppercase;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.btn--add { flex: 1; }
.btn--ghost { background: transparent; border: 1.5px solid var(--cream); color: var(--cream); }
.btn--pay { width: 100%; min-height: 54px; font-size: 21px; }
@media (hover: hover) {
  .btn:not(:disabled):hover { background: var(--orange-d); }
  .btn--ghost:hover { background: var(--cream) !important; color: var(--bg); }
  .size:not(:disabled):hover { border-color: var(--cream); }
  .top__cart:hover, .top__link:hover { background: var(--cream); color: var(--bg); }
  .menu__list a:hover { color: var(--orange); }
}

/* ---------- pedido ---------- */
.order {
  position: sticky; top: 92px;
  background: var(--panel); border: 1.5px solid var(--orange); border-radius: 16px; padding: 22px;
  max-height: calc(100vh - 110px); overflow-y: auto;
}
.order__title { font: 700 32px/1 "Barlow Condensed", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.order h3 { font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.order__empty { margin-top: 12px; color: var(--muted); }
.order__lines { margin-top: 14px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.line__name { font-weight: 700; }
.line__name small { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
.line__sum { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.line__ctl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.line .qty button { width: 40px; height: 40px; }
.line__del { background: none; border: 0; padding: 10px 0 10px 10px; font-size: 14px; color: var(--muted); text-decoration: underline; }
.order__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; border-top: 1.5px solid var(--cream);
  font: 700 22px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.order__total strong { font-size: 34px; font-variant-numeric: tabular-nums; }
.order__form { margin-top: 24px; display: grid; gap: 12px; }
.order__form h3 { margin-bottom: 0; }
.order__form label { display: grid; gap: 5px; font-size: 15px; color: var(--muted); }
.order__form input {
  width: 100%; height: 48px; padding: 0 12px; font-size: 17px;
  background: #0f0d0b; border: 1.5px solid var(--line); border-radius: 10px; color: var(--cream);
}
.order__form input::placeholder { color: #7d745f; }
.order__form input:focus { border-color: var(--cream); outline: none; }
.order__form input.is-bad { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order__error { color: var(--err); font-weight: 700; font-size: 15px; }
.order__note { font-size: 13.5px; color: var(--muted); }
.order__pickup { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* vidriera: catálogo sin compra online */
.is-vitrina .shop { grid-template-columns: 1fr; max-width: 1100px; }
.is-vitrina .order, .is-vitrina .prod__buy, .is-vitrina .top__cart, .is-vitrina .bar, .is-vitrina .prod__hint { display: none !important; }

/* ---------- pie ---------- */
.foot { text-align: center; padding: 0 16px 110px; color: var(--muted); font-size: 15px; }
.foot .guarda { margin-bottom: 22px; }
.foot p + p { margin-top: 4px; }

/* barra inferior en celular */
.bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: none; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px;
  background: var(--orange); color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgb(0 0 0 / .5);
  font: 700 18px/1 "Barlow Condensed", sans-serif; letter-spacing: .05em; text-transform: uppercase;
}
.bar strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.bar em { margin-left: auto; font-style: normal; }

/* ---------- páginas de pago / comprobante ---------- */
.simple { padding: clamp(28px, 6vw, 64px) 16px 80px; }
.box {
  max-width: 460px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1.5px solid var(--orange); border-radius: 16px; padding: clamp(22px, 5vw, 36px);
  display: grid; gap: 14px; justify-items: center;
}
.box--wide { max-width: 560px; }
.box h1 { font: 700 clamp(34px, 7vw, 46px)/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.box__eyebrow { font: 700 15px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }
.box__small { font-size: 14px; color: var(--muted); }
.box__warn { background: #33270f; border: 1px solid #b7791f; border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.box .btn { width: 100%; }
.box form { width: 100%; }
.ticket { width: 100%; background: var(--cream); color: #2b2620; border-radius: 12px; overflow: hidden; text-align: left; }
.ticket__code { background: var(--orange); color: #fff; padding: 14px 18px; display: grid; gap: 4px; }
.ticket__code span { font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.ticket__code strong { font: 700 34px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.ticket__items { width: 100%; border-collapse: collapse; }
.ticket__items td { padding: 9px 18px; border-bottom: 1px solid #dccfa6; }
.ticket__items td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticket__total td { font-weight: 700; border-bottom: 0; }
.ticket__who { padding: 4px 18px 14px; font-size: 14px; color: #6b6250; }

@media (max-width: 960px) {
  .shop { grid-template-columns: 1fr; }
  .order { position: static; max-height: none; }
  .bar:not([hidden]) { display: flex; }
}
@media (max-width: 560px) {
  .shop__grid { grid-template-columns: 1fr; }
  .top__logo img { width: 124px; }
  .intro__eyebrow { font-size: 13px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  body { background: #fff; color: #000; }
  .top, .noprint { display: none !important; }
  .box { border: 0; background: none; }
  .box h1, .box p { color: #000; }
}
