:root {
  --bg: #000;
  --bg-soft: #0b0b0b;
  --fg: #fff;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.85);
  --line-soft: rgba(255, 255, 255, 0.18);
  --gold: #d9c8a0;
  --ok: #8fd19e;
  --warn: #f1d27a;
  --bad: #f08a8a;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
  --script: 'Caveat', 'Segoe Script', cursive;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.line { height: 1px; background: var(--line-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.35em; font-size: 0.72rem; color: var(--muted); margin-bottom: 1rem; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-emblem { width: 46px; height: 46px; transition: transform 0.8s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand-emblem { transform: rotate(-12deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.22em; }
.brand-tag { font-family: var(--script); font-size: 1rem; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.nav a, .nav button.link {
  padding: 0.45rem 0.9rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid transparent; background: none; color: var(--fg); cursor: pointer; font-family: var(--sans);
}
.nav a:hover, .nav button.link:hover, .nav a.active { border-color: var(--line); }
.nav .badge { margin-left: 0.3rem; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); font-size: 1.1rem; padding: 0.3rem 0.7rem; cursor: pointer; }

/* ---------- Layout ---------- */
.app { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem); }
.section { margin: 3rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; }

.footer { padding: 0 clamp(1rem, 4vw, 3rem) 2rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; text-align: center; }
.footer .line { margin-bottom: 2rem; background: var(--line); }
.footer-emblem { width: 72px; height: 72px; margin: 0 auto 0.8rem; opacity: 0.9; }
.footer-name { font-family: var(--display); color: var(--fg); font-size: 1.3rem; letter-spacing: 0.3em; }
.footer-tag { font-family: var(--script); font-size: 1.3rem; margin-bottom: 1rem; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border: 1px solid var(--line);
  padding: clamp(2.5rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border: 1px solid var(--line-soft); pointer-events: none;
}
.hero::before { inset: 14px; }
.hero::after { width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%; }
.hero-content { position: relative; max-width: 640px; }
.hero p { color: #d0d0d0; font-size: 1.05rem; max-width: 520px; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); border-top: none; }
.feature { padding: 1.6rem; border-right: 1px solid var(--line-soft); }
.feature:last-child { border-right: none; }
.feature .num { font-family: var(--serif); font-size: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.6rem; min-height: 44px;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg); background: transparent; border: 1px solid var(--line); cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.solid { background: var(--fg); color: var(--bg); }
.btn.solid:hover { background: transparent; color: var(--fg); }
.btn.sm { padding: 0.45rem 0.9rem; min-height: 34px; font-size: 0.7rem; letter-spacing: 0.14em; }
.btn.ghost { border-color: var(--line-soft); }
.btn.danger:hover { background: var(--bad); border-color: var(--bad); color: #000; }
.btn.ok:hover { background: var(--ok); border-color: var(--ok); color: #000; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--fg); }
.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.card { border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--bg); }
.form-wrap { max-width: 560px; margin: 0 auto; }
.form { display: grid; gap: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  font: inherit; font-weight: 400; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 0;
  outline: none; transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--fg); }
textarea { resize: vertical; min-height: 90px; }
select option { background: #111; }
.checkbox { display: flex; align-items: center; gap: 0.6rem; text-transform: none; letter-spacing: normal; font-size: 0.9rem; color: var(--fg); }
.checkbox input { width: auto; }

/* ---------- Catalog ---------- */
.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.toolbar input, .toolbar select { max-width: 280px; }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip { padding: 0.4rem 0.9rem; border: 1px solid var(--line-soft); background: none; color: var(--fg); font: inherit; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer; }
.chip.active, .chip:hover { border-color: var(--fg); background: var(--fg); color: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; transition: background 0.25s; }
.product:hover { background: var(--bg-soft); }
.product-img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-soft); overflow: hidden; background: #050505; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product:hover .product-img img { transform: scale(1.04); }
.placeholder-bottle { width: 70px; height: 110px; border: 1px solid var(--line); position: relative; }
.placeholder-bottle::before { content: ''; position: absolute; width: 24px; height: 18px; border: 1px solid var(--line); left: 50%; top: -20px; transform: translateX(-50%); }
.product-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.product-brand { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.product-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.product-meta { font-size: 0.8rem; color: var(--muted); }
.product-desc { font-size: 0.85rem; color: #c8c8c8; }
.product-prices { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-soft); margin-top: 0.6rem; }
.product-prices > div { padding: 0.6rem; }
.product-prices > div + div { border-left: 1px solid var(--line-soft); }
.product-prices .lbl { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.product-prices .val { font-family: var(--serif); font-size: 1.35rem; }
.product-prices .val.gold { color: var(--gold); }
.product-actions { margin-top: auto; padding-top: 0.9rem; display: flex; gap: 0.5rem; align-items: center; }
.qty { display: flex; border: 1px solid var(--line-soft); }
.qty button { width: 34px; background: none; border: none; color: var(--fg); cursor: pointer; font-size: 1rem; }
.qty button:hover { background: var(--fg); color: var(--bg); }
.qty input { width: 46px; text-align: center; border: none; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); padding: 0.4rem 0.2rem; }

.empty { border: 1px dashed var(--line-soft); padding: 3rem 1.5rem; text-align: center; color: var(--muted); }

/* ---------- Panel / tabs ---------- */
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tabs { display: flex; border: 1px solid var(--line); margin-bottom: 2rem; overflow-x: auto; }
.tab { flex: 1; min-width: max-content; padding: 0.95rem 1.2rem; background: none; border: none; border-right: 1px solid var(--line-soft); color: var(--fg); font: inherit; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.tab:last-child { border-right: none; }
.tab:hover { background: var(--bg-soft); }
.tab.active { background: var(--fg); color: var(--bg); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 2rem; }
.stat { padding: 1.3rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat .lbl { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.stat .val { font-family: var(--serif); font-size: 2.2rem; line-height: 1.2; }

.badge { display: inline-block; padding: 0.2rem 0.6rem; font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap; }
.badge.pendiente, .badge.pending { color: var(--warn); }
.badge.confirmado, .badge.preparando, .badge.enviado { color: #9cc7f5; }
.badge.entregado, .badge.approved { color: var(--ok); }
.badge.cancelado, .badge.rejected { color: var(--bad); }
.badge.count { color: var(--bg); background: var(--fg); border-color: var(--fg); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-soft); }
td.num, th.num { text-align: right; white-space: nowrap; }
.thumb { width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--line-soft); }

/* ---------- Orders ---------- */
.orders { display: grid; gap: 1rem; }
.order { border: 1px solid var(--line); }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-soft); }
.order-head .title { font-family: var(--serif); font-size: 1.3rem; }
.order-body { padding: 1rem 1.2rem; display: grid; gap: 0.8rem; }
.order-items { list-style: none; padding: 0; margin: 0; font-size: 0.88rem; }
.order-items li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px dotted var(--line-soft); }
.order-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; padding: 0.9rem 1.2rem; border-top: 1px solid var(--line-soft); }
.order-foot .totals { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.order-foot .totals strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }

.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 0.4rem; }
.progress .step { position: relative; text-align: center; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 18px; }
.progress .step::before { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line-soft); }
.progress .step::after { content: ''; position: absolute; top: 0; left: 50%; width: 11px; height: 11px; transform: translateX(-50%); border: 1px solid var(--line-soft); background: var(--bg); }
.progress .step.done { color: var(--fg); }
.progress .step.done::before { background: var(--fg); }
.progress .step.done::after { background: var(--fg); border-color: var(--fg); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 1px solid var(--line-soft); font-size: 0.82rem; }
.timeline li { padding: 0.25rem 0 0.25rem 0.8rem; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -1.33rem; top: 0.65rem; width: 7px; height: 7px; background: var(--fg); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.cart-line:first-child { padding-top: 0; }
.cart-total { display: flex; justify-content: space-between; padding: 0.6rem 0; }
.cart-total.big { font-family: var(--serif); font-size: 1.6rem; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 0.4rem; }

/* ---------- Ranking ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; border: 1px solid var(--line); margin-bottom: 1.5rem; }
.podium-place { text-align: center; padding: 1.6rem 1rem; border-right: 1px solid var(--line-soft); }
.podium-place:last-child { border-right: none; }
.podium-place.first { padding: 2.4rem 1rem; background: var(--fg); color: var(--bg); }
.podium-place.first .muted { color: #555; }
.podium-place .medal { font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.podium-place .who { font-family: var(--serif); font-size: 1.4rem; margin: 0.4rem 0 0.2rem; }
.podium-place .prize { font-size: 0.66rem; letter-spacing: 0.25em; text-transform: uppercase; }
tr.me td { background: rgba(255, 255, 255, 0.06); }

/* ---------- Toast & modal ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--fg); color: var(--bg); padding: 0.85rem 1.4rem; font-size: 0.85rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 100; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--bad); }

.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-width: 680px; background: var(--bg); border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 2.25rem); }
.modal-close { position: absolute; top: 0.6rem; right: 0.8rem; background: none; border: none; color: var(--fg); font-size: 1.8rem; cursor: pointer; line-height: 1; }

.img-preview { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #000; border-bottom: 1px solid var(--line); padding: 0.6rem 1rem 1rem; }
  .nav.open { display: flex; }
  .nav a, .nav button.link { text-align: left; }
  .cart-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium-place { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .podium-place.first { order: -1; }
  .progress .step { font-size: 0; }
  .brand-name { font-size: 1.05rem; letter-spacing: 0.16em; }
  .brand-tag { font-size: 0.9rem; }
  .brand-emblem { width: 38px; height: 38px; }
  .toolbar input, .toolbar select { max-width: none; }
}

/* =================================================================
   Distinto SCZ · movimiento
   ================================================================= */

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-emblem { width: min(220px, 50vw); animation: introSpin 1.6s cubic-bezier(.2,.8,.2,1) both; }
.intro-name { font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: 0.35em; animation: fadeUp 0.9s 0.5s both; }
.intro-tag { font-family: var(--script); font-size: clamp(1.4rem, 4vw, 1.9rem); color: #cfcfcf; animation: fadeUp 0.9s 0.8s both; }

@keyframes introSpin { from { opacity: 0; transform: rotate(-90deg) scale(0.6); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulseRing { 0% { transform: scale(0.85); opacity: 0.6; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes shine { from { left: -60%; } to { left: 130%; } }
@keyframes caret { 50% { border-color: transparent; } }

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); z-index: 30; pointer-events: none; }
.topbar { transition: padding 0.3s, background 0.3s; }
.topbar.scrolled { padding-top: 0.55rem; padding-bottom: 0.55rem; }

/* ---------- Transición entre páginas ---------- */
.app.page-enter { animation: pageIn 0.55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero con logo ---------- */
.hero.brand-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.hero.brand-hero::after { display: none; }
.hero-name { font-family: var(--display); font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1; letter-spacing: 0.08em; margin: 0 0 0.3rem; }
.hero-name .word { display: inline-block; opacity: 0; transform: translateY(40px); animation: fadeUp 0.9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-tag { font-family: var(--script); font-size: clamp(1.8rem, 4vw, 2.6rem); color: #e8e8e8; min-height: 1.3em; margin-bottom: 1.2rem; }
.hero-tag .typed { border-right: 1px solid var(--fg); padding-right: 4px; animation: caret 0.9s step-end infinite; }
.hero-rule { height: 1px; background: var(--fg); width: 120px; transform-origin: left; animation: drawLine 1.2s 0.6s cubic-bezier(.2,.8,.2,1) both; margin: 1.4rem 0; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
.hero-visual .ring { position: absolute; inset: 0; border: 1px solid var(--line-soft); border-radius: 50%; }
.hero-visual .ring.dashed { inset: -4%; border: 1px dashed rgba(255, 255, 255, 0.28); animation: spin 40s linear infinite; }
.hero-visual .ring.pulse { inset: 12%; border-color: rgba(255, 255, 255, 0.45); animation: pulseRing 3.2s ease-out infinite; }
.hero-visual .ring.pulse.two { animation-delay: 1.6s; }
.hero-visual .orbit { position: absolute; inset: -4%; animation: spin 14s linear infinite; }
.hero-visual .orbit::before { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: var(--fg); border-radius: 50%; box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.6); }
.hero-visual img { position: relative; width: 78%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.12)); }

/* ---------- Marquesina ---------- */
.marquee { overflow: hidden; border: 1px solid var(--line); border-top: none; padding: 0.9rem 0; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--display); font-size: 1rem; letter-spacing: 0.35em; padding: 0 1.4rem; text-transform: uppercase; }
.marquee span.dot { padding: 0; color: var(--muted); }
.marquee span.script { font-family: var(--script); text-transform: none; letter-spacing: 0.02em; font-size: 1.5rem; }

/* ---------- Features y tarjetas ---------- */
.feature { position: relative; transition: background 0.35s; }
.feature::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.feature:hover { background: var(--bg-soft); }
.feature:hover::after { transform: scaleX(1); }

.product { position: relative; overflow: hidden; }
.product::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent); transform: skewX(-18deg); pointer-events: none; opacity: 0; }
.product:hover::after { opacity: 1; animation: shine 0.9s ease; }
.product-img img.placeholder-emblem { width: 46%; height: auto; object-fit: contain; opacity: 0.35; transition: opacity 0.4s, transform 0.6s cubic-bezier(.2,.8,.2,1); }
.product:hover .placeholder-emblem { opacity: 0.75; transform: rotate(-10deg) scale(1.05); }

.btn { position: relative; overflow: hidden; }
.btn:active { transform: scale(0.97); }
.stat .val { transition: color 0.3s; }
.tab { transition: background 0.25s, color 0.25s; }

/* ---------- Bloque de llamada a vendedores ---------- */
.cta { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.5rem); }
.cta img { width: 90px; animation: spin 30s linear infinite; }
.cta .script { font-family: var(--script); font-size: 1.6rem; color: #ddd; }

@media (max-width: 860px) {
  .hero.brand-hero { grid-template-columns: 1fr; text-align: center; }
  .hero.brand-hero .hero-actions { justify-content: center; }
  .hero.brand-hero .cd-units { justify-content: center; }
  .hero.brand-hero .hero-rule { margin-left: auto; margin-right: auto; }
  .hero.brand-hero p { margin-left: auto; margin-right: auto; }
  .hero-visual { max-width: 280px; order: -1; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta img { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-name .word { opacity: 1; transform: none; }
}

/* ---------- Selector de imagen ---------- */
.img-preview[hidden] { display: none; }
input[type=file] { padding: 0.5rem; cursor: pointer; color: var(--muted); }
input[type=file]::file-selector-button {
  margin-right: 0.9rem; padding: 0.55rem 1rem; cursor: pointer;
  font: inherit; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bg); background: var(--fg); border: 1px solid var(--fg); transition: background 0.2s, color 0.2s;
}
input[type=file]::file-selector-button:hover { background: transparent; color: var(--fg); }

/* =================================================================
   Tienda: precios, pago con QR y seguimiento
   ================================================================= */
.product-price { font-family: var(--serif); font-size: 1.6rem; margin-top: 0.5rem; }

.badge.pay-pendiente { color: var(--warn); border-style: dashed; }
.badge.pay-pagado { color: #000; background: var(--ok); border-color: var(--ok); }
.badge.source { color: var(--gold); }

.pay-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.pay-card { display: grid; gap: 1.1rem; position: relative; }
.pay-card .eyebrow { margin: 0; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line-soft); padding-bottom: 0.8rem; }
.pay-amount strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; }
.qr-img { width: 100%; max-width: 340px; margin: 0 auto; background: #fff; padding: 10px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 0 40px rgba(255, 255, 255, 0.08); animation: qrIn 0.8s cubic-bezier(.2,.8,.2,1) both; }
.qr-img.small-qr { max-width: 200px; margin: 0; animation: none; }
@keyframes qrIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
.pay-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: 0.92rem; color: #d6d6d6; }
.pay-steps strong { color: var(--fg); }
.pay-card .btn-row .btn { flex: 1 1 auto; }
.ok-note { margin: 0; padding: 0.8rem 1rem; border: 1px solid var(--ok); color: var(--ok); font-size: 0.88rem; }
.pay-card.paid { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.paid-check { width: 72px; height: 72px; margin: 0 auto 0.8rem; border: 1px solid var(--ok); color: var(--ok); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; animation: qrIn 0.6s both; }
.track-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: start; }

@media (max-width: 860px) {
  .pay-layout { grid-template-columns: 1fr; }
}

/* ---------- Ver en el celular ---------- */
.share-card { display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.share-link { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; padding: 0.8rem 1rem; border: 1px solid var(--line-soft); }
.share-link code { font-size: 0.95rem; word-break: break-all; color: var(--fg); }
.share-lan summary { cursor: pointer; padding: 0.3rem 0; }
.share-lan .share-link { margin-top: 0.6rem; }

/* ---------- Borrar pedidos ---------- */
.bulk-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.7rem 1rem; margin-bottom: 1rem; border: 1px solid var(--line-soft); }
.order-pick { width: 18px; height: 18px; margin: 0 0.7rem 0 0; vertical-align: middle; accent-color: #fff; cursor: pointer; }

/* =================================================================
   Celular: diseño tipo app
   ================================================================= */
.tabbar { display: none; }
* { -webkit-tap-highlight-color: transparent; }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.25); } 100% { transform: scale(1); } }
.bump { animation: bump 0.45s cubic-bezier(.2,.8,.2,1); }

@media (max-width: 720px) {
  html { font-size: 15px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.2rem; }

  /* ---- Cabecera compacta y barra inferior ---- */
  .topbar { padding: 0.6rem 1rem; }
  .topbar.scrolled { padding-top: 0.45rem; padding-bottom: 0.45rem; }
  .brand { gap: 0.55rem; }
  .brand-emblem { width: 34px; height: 34px; }
  .brand-name { font-size: 1rem; letter-spacing: 0.18em; }
  .brand-tag { font-size: 0.85rem; }
  .menu-toggle { display: none; }
  .nav, .nav.open { display: none; }

  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.94); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .tab-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--muted); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .tab-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
  .tab-item.active { color: var(--fg); }
  .tab-item.active svg { transform: translateY(-1px); }
  .tab-item.active::before { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 2px; background: var(--fg); }
  .tab-item:active svg { transform: scale(0.88); }
  .tab-badge { position: absolute; top: 0; left: 55%; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--fg); color: var(--bg); font-size: 0.66rem; font-weight: 600; letter-spacing: 0; display: flex; align-items: center; justify-content: center; }

  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 1.5rem; }
  .footer-emblem { width: 52px; height: 52px; }

  /* ---- Espaciado general ---- */
  .app { padding: 1.1rem 1rem 1.5rem; }
  .section { margin: 2rem 0; }
  .section-head { margin-bottom: 1rem; padding-bottom: 0.7rem; }
  .eyebrow { font-size: 0.64rem; letter-spacing: 0.28em; margin-bottom: 0.5rem; }
  .card { padding: 1.1rem; }
  .btn { padding: 0.75rem 1.1rem; min-height: 46px; font-size: 0.72rem; letter-spacing: 0.14em; }
  .btn:active, .chip:active, .product:active { transform: scale(0.97); }
  input, select, textarea { font-size: 16px; } /* evita el zoom automático en iPhone */

  /* ---- Portada ---- */
  .hero.brand-hero { padding: 1.6rem 1.1rem 1.8rem; gap: 0.6rem; }
  .hero::before { inset: 7px; }
  .hero-visual { max-width: 170px; }
  .hero-name { font-size: 2.35rem; letter-spacing: 0.06em; }
  .hero-tag { font-size: 1.65rem; margin-bottom: 0.5rem; }
  .hero-rule { margin: 0.9rem auto; }
  .hero p { font-size: 0.95rem; }
  .hero-actions { margin-top: 1.2rem; gap: 0.5rem; }
  .hero-actions .btn { flex: 1 1 0; padding-left: 0.6rem; padding-right: 0.6rem; }
  .marquee { padding: 0.6rem 0; }
  .marquee span { font-size: 0.8rem; padding: 0 0.9rem; }
  .marquee span.script { font-size: 1.2rem; }

  /* Pasos: tarjetas que se deslizan de lado */
  .features { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .features::-webkit-scrollbar { display: none; }
  .feature { flex: 0 0 72%; scroll-snap-align: start; padding: 1.1rem; border-right: 1px solid var(--line-soft); }
  .feature .num { font-size: 1.5rem; }
  .feature h3 { margin-bottom: 0.3rem; }
  .feature p { margin: 0; }

  /* ---- Catálogo en 2 columnas ---- */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-body { padding: 0.75rem; gap: 0.15rem; }
  .product-brand { font-size: 0.6rem; letter-spacing: 0.16em; }
  .product-name { font-size: 1.12rem; }
  .product-meta { font-size: 0.72rem; }
  .product-desc { display: none; }
  .product-price { font-size: 1.2rem; margin-top: 0.3rem; }
  .product-actions { padding-top: 0.6rem; }
  .product-actions .qty { display: none; }
  .product-actions .btn { width: 100%; min-height: 40px; padding: 0.5rem; font-size: 0.66rem; }
  .product-prices { grid-template-columns: 1fr; margin-top: 0.4rem; }
  .product-prices > div { padding: 0.4rem 0.5rem; }
  .product-prices > div + div { border-left: none; border-top: 1px solid var(--line-soft); }
  .product-prices .val { font-size: 1.05rem; }
  .product-prices .lbl { font-size: 0.56rem; }

  /* Destacados: carrusel horizontal */
  .grid.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-left: none; }
  .grid.carousel::-webkit-scrollbar { display: none; }
  .grid.carousel .product { flex: 0 0 46%; scroll-snap-align: start; border-left: 1px solid var(--line); }

  /* ---- Filtros, chips y pestañas que se deslizan de lado ---- */
  .toolbar { flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -1rem; padding-right: 1rem; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; padding: 0.45rem 0.8rem; font-size: 0.68rem; }
  .tabs { margin: 0 -1rem 1.2rem; border-left: none; border-right: none; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 0.8rem 0.95rem; font-size: 0.66rem; letter-spacing: 0.14em; }
  .panel-head { margin-bottom: 1rem; }

  /* ---- Estadísticas en 2 columnas ---- */
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.2rem; }
  .stat { padding: 0.85rem; }
  .stat .lbl { font-size: 0.58rem; letter-spacing: 0.14em; }
  .stat .val { font-size: 1.5rem; }

  /* ---- Tablas convertidas en tarjetas ---- */
  .table-wrap { border: none; overflow: visible; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody { display: block; }
  table.stack tr { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.8rem; padding: 0.9rem; margin-bottom: 0.7rem; border: 1px solid var(--line); }
  table.stack td { display: flex; justify-content: space-between; gap: 1rem; padding: 0; border: none; text-align: right; grid-column: 1 / -1; }
  table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; text-align: left; }
  table.stack td.cell-title { display: block; text-align: left; font-size: 1rem; grid-column: auto; }
  table.stack td.cell-thumb { grid-column: 1; grid-row: 1; }
  table.stack td.cell-thumb + td.cell-title { grid-column: 2; grid-row: 1; }
  table.stack td.cell-actions { display: block; margin-top: 0.4rem; }
  table.stack td.cell-actions .btn-row { justify-content: stretch !important; }
  table.stack td.cell-actions .btn { flex: 1 1 0; }
  table.stack tbody tr:hover { background: transparent; }
  tr.me { background: rgba(255, 255, 255, 0.06); }

  /* ---- Pedidos ---- */
  .order-head { padding: 0.85rem; }
  .order-head .title { font-size: 1.12rem; }
  .order-body { padding: 0.85rem; gap: 0.6rem; }
  .order-foot { padding: 0.75rem 0.85rem; }
  .order-foot .btn-row { width: 100%; }
  .order-foot .btn-row > * { flex: 1 1 auto; }
  .order-foot select { width: 100% !important; flex-basis: 100% !important; }
  .progress .step { padding-top: 14px; }
  .bulk-bar { padding: 0.6rem 0.8rem; }
  .bulk-bar .btn { width: 100%; }

  /* ---- Carrito y pago ---- */
  .cart-layout { gap: 1rem; }
  .cart-line { grid-template-columns: 1fr auto; gap: 0.5rem 0.8rem; padding: 0.8rem 0; }
  .cart-line > div:first-child { grid-column: 1 / -1; }
  .cart-line .qty { justify-self: start; }
  .cart-total.big { font-size: 1.35rem; }
  .pay-layout { gap: 1rem; }
  .pay-amount strong { font-size: 1.8rem; }
  .qr-img { max-width: 260px; }
  .pay-card .btn-row { flex-direction: column; }
  .track-link .btn { width: 100%; }

  /* ---- Ranking ---- */
  .podium { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .podium-place, .podium-place:last-child { border-bottom: none; border-right: 1px solid var(--line-soft); padding: 1rem 0.4rem; }
  .podium-place.first { order: 0; padding: 1.4rem 0.4rem; }
  .podium-place .medal { font-size: 1.8rem; }
  .podium-place .who { font-size: 1rem; }
  .podium-place .small { font-size: 0.7rem; }
  .podium-place .prize { font-size: 0.52rem; letter-spacing: 0.12em; }

  /* ---- Ventanas que suben desde abajo ---- */
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { max-width: none; max-height: 92vh; overflow-y: auto; border-left: none; border-right: none; border-bottom: none; padding: 1.4rem 1.1rem calc(1.4rem + env(safe-area-inset-bottom)); animation: sheetUp 0.32s cubic-bezier(.2,.8,.2,1); }
  .modal-box::before { content: ''; display: block; width: 42px; height: 4px; margin: -0.6rem auto 1rem; border-radius: 2px; background: var(--line-soft); }
  .account-grid { gap: 1rem; }
  .share-link .btn-row { width: 100%; }

  /* Bloque "Vende con Distinto SCZ" y accesos rápidos del panel */
  .cta { gap: 0.8rem; padding: 1.3rem 1.1rem; }
  .cta img { width: 56px; }
  .cta h2 { font-size: 1.4rem; }
  .cta .script { font-size: 1.25rem; }
  .cta .btn { width: 100%; }
  .stats + .btn-row { display: grid; grid-template-columns: 1fr 1fr; }
  .stats + .btn-row .btn { padding-left: 0.4rem; padding-right: 0.4rem; }
  .share-link .btn { flex: 1 1 0; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 360px) {
  .hero-name { font-size: 2rem; }
  .tab-item { font-size: 0.58rem; }
}

/* ---------- Pago en revisión ---------- */
.badge.pay-revision { color: #9cc7f5; }
.pay-card.review { padding-top: 2.2rem; padding-bottom: 2.2rem; }
.review-check { border-color: #9cc7f5; color: #9cc7f5; }
.link-btn { display: inline-block; margin-top: 0.4rem; color: var(--muted); font-size: 0.82rem; letter-spacing: normal; text-transform: none; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--fg); }

/* ---------- Avisos por correo ---------- */
.mail-card { margin-bottom: 2rem; }
.mail-help summary { cursor: pointer; color: var(--fg); padding: 0.2rem 0; }
.mail-help ol { margin: 0.6rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.3rem; }
.mail-test { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); }
.mail-test input { flex: 1 1 220px; }
.setup-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.7rem; color: #d6d6d6; }
.setup-steps a { text-decoration: underline; color: var(--fg); }
.setup-steps strong { color: var(--fg); }
.code-box { margin: 0.5rem 0; padding: 0.8rem; max-height: 220px; overflow: auto; background: #0b0b0b; border: 1px solid var(--line-soft); color: #e8e8e8; font-size: 0.78rem; line-height: 1.45; white-space: pre; }

/* ---------- Modo "Próximamente" ---------- */
body.soon-mode .nav, body.soon-mode .menu-toggle, body.soon-mode .tabbar, body.soon-mode .footer { display: none !important; }
body.soon-mode { padding-bottom: 0; }
.soon { min-height: calc(100vh - 160px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 0.6rem; padding: 2rem 0; }
.soon .soon-visual { max-width: 260px; margin-bottom: 1rem; }
.soon .hero-name { font-size: clamp(2.2rem, 6vw, 4rem); }
.soon p { max-width: 460px; margin: 0.6rem auto 1.2rem; }
.soon-login { margin-top: 1.6rem; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.soon-login:hover { color: var(--fg); }
.launch-card { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.launch-card.is-soon { border-color: var(--warn); }
.launch-card.is-open { border-color: var(--ok); }
@media (max-width: 720px) { .launch-card .btn { width: 100%; } .soon .soon-visual { max-width: 190px; } }

/* ---- Cuenta regresiva del lanzamiento ---- */
.countdown { margin: 1.4rem 0 0.4rem; }
.cd-title { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.cd-units { display: flex; align-items: flex-start; gap: 0.5rem; }
.soon .cd-units { justify-content: center; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 4.2rem; padding: 0.7rem 0.4rem 0.55rem; border: 1px solid var(--fg); }
.cd-num { font-family: 'Marcellus', serif; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-num.tick { animation: cd-tick 0.45s ease; }
.cd-label { margin-top: 0.4rem; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.cd-sep { font-family: 'Marcellus', serif; font-size: 1.6rem; padding-top: 0.75rem; color: var(--muted); }
@keyframes cd-tick { from { opacity: 0.2; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cd-num.tick { animation: none; } }
@media (max-width: 720px) {
  .cd-units { gap: 0.3rem; justify-content: center; }
  .cd-unit { min-width: 0; flex: 1 1 0; padding: 0.55rem 0.2rem 0.45rem; }
  .cd-num { font-size: 1.5rem; }
  .cd-sep { display: none; }
  .cd-title { text-align: center; }
}

/* ---- Forma de entrega y ciudad ---- */
.delivery-opts { display: grid; gap: 0.5rem; }
.delivery-opt { text-transform: none; letter-spacing: normal; font-size: 0.95rem; color: var(--fg); display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line-soft); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.delivery-opt:hover { border-color: var(--fg); }
.delivery-opt input { width: auto; margin: 0; accent-color: var(--fg); flex: 0 0 auto; }
.delivery-opt span { display: flex; flex-direction: column; gap: 0.15rem; }
.delivery-opt strong { font-weight: 500; letter-spacing: 0.04em; }
.delivery-opt small { color: var(--muted); font-size: 0.8rem; letter-spacing: normal; text-transform: none; }
.delivery-opt:has(input:checked) { border-color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.delivery-extra { display: grid; gap: 0.9rem; padding: 0.9rem; border-left: 1px solid var(--fg); animation: fadeUp 0.3s ease; }
.delivery-extra[hidden], .city-other[hidden] { display: none; }
.city-other { margin-top: 0.5rem; }
.delivery-line { font-size: 0.88rem; }

/* ---- Inventario ---- */
.product-img { position: relative; }
.stock-badge { display: inline-block; padding: 0.25rem 0.55rem; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--fg); background: var(--bg); color: var(--fg); white-space: nowrap; }
.stock-badge.out { background: var(--fg); color: var(--bg); }
.product-img .stock-badge { position: absolute; top: 0.6rem; left: 0.6rem; }
.product.sold-out .product-img img { filter: grayscale(1) brightness(0.45); }
.stock-ctl { display: inline-flex; align-items: center; gap: 0.25rem; }
.stock-ctl input { width: 4.2rem; padding: 0.35rem 0.3rem; text-align: center; }
.stock-ctl .btn { padding: 0.3rem 0.6rem; }
.stock-ctl.low input { border-color: var(--fg); }
.stock-ctl.out input { background: var(--fg); color: var(--bg); }
.stock-alert { border-color: var(--fg); margin-bottom: 1.2rem; }
.stock-alert .order-items li { align-items: center; }

/* ---- Catálogo por marca ---- */
.brand-bar { display: flex; align-items: center; gap: 0.8rem; margin: -0.4rem 0 1.4rem; }
.brand-bar-label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); flex: 0 0 auto; }
.brand-bar .chips { min-width: 0; }
.chip-count { opacity: 0.55; margin-left: 0.2rem; }
.brand-section + .brand-section { margin-top: 2.4rem; }
.brand-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
.brand-head h3 { margin: 0; font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 720px) {
  .brand-bar { flex-direction: column; align-items: stretch; gap: 0.5rem; margin-top: 0; }
  .brand-head h3 { font-size: 1.25rem; }
  .brand-section + .brand-section { margin-top: 1.8rem; }
}

/* =================================================================
   Botones redondeados estilo cristal
   ================================================================= */
:root {
  --glass: rgba(255, 255, 255, 0.07);
  --glass-hover: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.45);
}
.btn, .chip, .nav a, .nav button.link, .menu-toggle, .modal-close, .stock-ctl .btn {
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: var(--glass-shadow);
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.15s;
}
/* brillo de vidrio en la mitad superior */
.btn::before {
  content: ''; position: absolute; inset: 1px 1px 50% 1px; border-radius: 999px 999px 40% 40% / 999px 999px 60% 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  pointer-events: none; z-index: -1;
}
.btn { isolation: isolate; }
.btn:hover, .chip:hover, .nav a:hover, .nav button.link:hover, .menu-toggle:hover {
  background: var(--glass-hover); color: var(--fg); border-color: rgba(255, 255, 255, 0.65);
  box-shadow: var(--glass-shadow), 0 0 22px rgba(255, 255, 255, 0.12);
}
.nav a.active { background: var(--glass-hover); border-color: rgba(255, 255, 255, 0.65); }
.nav a, .nav button.link { border-color: transparent; background: transparent; box-shadow: none; }
.nav a.active, .nav a:hover, .nav button.link:hover { box-shadow: var(--glass-shadow); }

.btn.solid, .chip.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(225, 225, 225, 0.9));
  color: #000; border-color: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0, 0, 0, 0.12), 0 8px 26px rgba(255, 255, 255, 0.14);
}
.btn.solid::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0)); }
.btn.solid:hover { background: #fff; color: #000; box-shadow: inset 0 1px 0 #fff, 0 0 30px rgba(255, 255, 255, 0.3); }
.btn.ghost { border-color: rgba(255, 255, 255, 0.18); }
.btn.danger:hover { background: rgba(255, 90, 90, 0.85); border-color: rgba(255, 120, 120, 0.9); color: #000; }
.btn.ok:hover { background: rgba(90, 210, 140, 0.85); border-color: rgba(120, 230, 160, 0.9); color: #000; }
.btn:disabled, .btn:disabled:hover { background: var(--glass); color: var(--fg); box-shadow: none; }
.btn:active, .chip:active { transform: scale(0.96); }
.chip { padding: 0.45rem 1rem; }

/* cantidad (− 1 +) */
.qty { border-radius: 999px; overflow: hidden; border-color: var(--glass-border); background: var(--glass); box-shadow: var(--glass-shadow); }
.qty button:hover { background: var(--glass-hover); color: var(--fg); }
.qty input { background: transparent; }

/* pestañas del panel */
.tabs { border-radius: 999px; padding: 4px; gap: 4px; border-color: var(--glass-border); background: var(--glass); box-shadow: var(--glass-shadow); }
.tab { border-radius: 999px; border-right: none; }
.tab:hover { background: var(--glass-hover); }
.tab.active { background: linear-gradient(180deg, #fff, #e2e2e2); color: #000; box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15); }
.modal-close { width: 40px; height: 40px; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.toast { border-radius: 999px; }

/* ---- Botón flotante de WhatsApp ---- */
.wa-float {
  position: fixed; right: 20px; bottom: 22px; z-index: 45;
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.1rem 0.7rem 0.75rem; border-radius: 999px;
  color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(37, 211, 102, 0.25);
  transition: transform 0.2s, background 0.25s, box-shadow 0.25s;
  animation: waIn 0.6s 1.2s cubic-bezier(.2,.8,.2,1) both;
}
.wa-float svg { width: 30px; height: 30px; color: #25d366; filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.5)); }
.wa-float:hover { transform: translateY(-3px); background: rgba(37, 211, 102, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 34px rgba(37, 211, 102, 0.45); }
.wa-float::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(37, 211, 102, 0.7);
  animation: pulseRing 2.4s ease-out infinite; pointer-events: none;
}
@keyframes waIn { from { opacity: 0; transform: translateY(20px) scale(0.8); } to { opacity: 1; transform: none; } }
body.soon-mode .wa-float { bottom: 22px; }
@media (max-width: 720px) {
  .wa-float { right: 14px; bottom: calc(78px + env(safe-area-inset-bottom)); padding: 0.7rem; }
  .wa-float .wa-label { display: none; }
  body.soon-mode .wa-float { bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .wa-float, .wa-float::after { animation: none; } }
/* Los chips van dentro de una fila deslizable: sin sombra exterior para que no se corte. */
.chip, .chip:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.chip.active { box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(0, 0, 0, 0.12); }
.toolbar input[type="search"] { border-radius: 999px; padding-left: 1.2rem; }

/* ---- Los más vendidos ---- */
.best-badge {
  position: absolute; right: 0.6rem; top: 0.6rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: #000; background: linear-gradient(180deg, #fff, #dcdcdc);
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(255, 255, 255, 0.18);
}
.bestsellers .best-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bestsellers .product { position: relative; }
.bestsellers .product::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 60%);
}
.best-toggle { display: block; margin-top: 0.35rem; padding: 0; background: none; border: none; color: var(--muted); font: inherit; font-size: 0.72rem; cursor: pointer; }
.best-toggle.on { color: var(--fg); }
.best-toggle:hover { color: var(--fg); text-decoration: underline; }
@media (max-width: 720px) {
  .bestsellers .best-grid { grid-template-columns: 1fr 1fr; }
  .best-badge { right: 0.4rem; top: 0.4rem; font-size: 0.55rem; padding: 0.25rem 0.5rem; }
}

/* ---- Stock y reportes ---- */
.report-card { display: grid; gap: 1.2rem; margin-bottom: 1.5rem; }
.report-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.8rem; }
.report-form .field { flex: 1 1 150px; margin: 0; }
.report-form .chips { flex: 1 1 100%; }
.report-form input[type="date"] { color-scheme: dark; }
.stock-table .inv-input { width: 7rem; padding: 0.45rem 0.6rem; text-align: right; border-radius: 10px; transition: border-color 0.2s, box-shadow 0.3s; }
.stock-table .inv-input.saved { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(90, 210, 140, 0.25); }
.stock-table .neg { color: var(--bad); }
.stock-table tr[hidden] { display: none; }
@media (max-width: 720px) {
  .report-form .btn { width: 100%; }
  .stock-table .inv-input { width: 8.5rem; }
}

/* ---- Ventas fuera de la página ---- */
.sale-card { display: grid; gap: 1.2rem; margin-bottom: 1.5rem; }
.sale-form { display: grid; grid-template-columns: 2fr 0.7fr 1fr 1fr; gap: 0.8rem; align-items: end; }
.sale-form .field { margin: 0; }
.sale-form .sale-note { grid-column: 1 / 4; }
.sale-form input[type="date"] { color-scheme: dark; }
.sale-history summary { cursor: pointer; color: var(--muted); }
.sale-history .order-items li { align-items: center; }
@media (max-width: 720px) {
  .sale-form { grid-template-columns: 1fr 1fr; }
  .sale-form .sale-perfume, .sale-form .sale-note, .sale-form .btn { grid-column: 1 / -1; }
}

/* ---- Ventas y compras con varios perfumes ---- */
.ops-grid { display: grid; gap: 1.2rem; margin-bottom: 1.5rem; }
.op-card { display: grid; gap: 1rem; }
.op-form { display: grid; gap: 0.6rem; }
.op-head, .op-line { display: grid; grid-template-columns: minmax(0, 3fr) 5.5rem minmax(0, 1.3fr) 7rem 2.4rem; gap: 0.5rem; align-items: center; }
.op-head { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.62rem; }
.op-lines { display: grid; gap: 0.5rem; }
.op-line { animation: fadeUp 0.25s ease; }
.op-sub { text-align: right; }
.op-form [data-add-line] { justify-self: start; }
.op-foot { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto auto; gap: 0.8rem; align-items: end; margin-top: 0.4rem; }
.op-foot .field { margin: 0; }
.op-foot input[type="date"] { color-scheme: dark; }
.op-total { display: flex; flex-direction: column; align-items: flex-end; padding-bottom: 0.4rem; }
.op-total strong { font-family: var(--serif); font-size: 1.4rem; }
.op-history { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.op-history li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dotted var(--line-soft); }
.op-hist-right { display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
@media (max-width: 720px) {
  .op-head { display: none; }
  .op-line { grid-template-columns: 1fr 1fr 2.4rem; padding: 0.7rem; border: 1px solid var(--line-soft); border-radius: 14px; }
  .op-line select { grid-column: 1 / -1; }
  .op-line .op-sub { grid-column: 1 / 3; text-align: left; }
  .op-line [data-remove-line] { grid-column: 3; grid-row: 2; }
  .op-foot { grid-template-columns: 1fr; }
  .op-total { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .op-form [data-add-line] { justify-self: stretch; }
}

/* ---- Ver contraseña ---- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 3rem; }
.pw-eye {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  width: 2.3rem; height: 2.3rem; display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 999px; color: var(--muted); cursor: pointer; transition: color 0.2s, background 0.2s;
}
.pw-eye:hover, .pw-eye.on { color: var(--fg); background: rgba(255, 255, 255, 0.08); }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Devoluciones y confirmación con contraseña ---- */
.return-lines { display: grid; gap: 0.5rem; }
.return-line { display: grid; grid-template-columns: 1fr 6rem; gap: 0.8rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px dotted var(--line-soft); }
.return-line input { text-align: center; }
.return-total { text-align: right; }
.return-total strong { font-family: var(--serif); font-size: 1.2rem; }
.btn.solid.danger-solid:hover { background: rgba(255, 90, 90, 0.9); border-color: rgba(255, 120, 120, 0.9); color: #000; }
.return-line { grid-template-columns: 1fr auto; }
.return-qty { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-transform: none; letter-spacing: normal; }
.return-stepper { display: flex; border: 1px solid var(--glass-border); border-radius: 999px; overflow: hidden; }
.return-stepper button { width: 2.4rem; background: none; border: none; color: var(--fg); font-size: 1.1rem; cursor: pointer; }
.return-stepper button:hover { background: var(--glass-hover); }
.return-stepper input { width: 3.2rem; border: none; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); border-radius: 0; text-align: center; padding: 0.45rem 0.2rem; }
.return-on { color: var(--ok); }

/* ---- Buscador del catálogo (administrador) ---- */
.catalog-search { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.catalog-search input { flex: 1; max-width: 420px; border-radius: 999px; padding-left: 1.2rem; }
.catalog-search .small { white-space: nowrap; }
tr[hidden], .table-wrap[hidden] { display: none; }
@keyframes rowFlash { from { background: rgba(255, 255, 255, 0.18); } to { background: transparent; } }
.row-flash td { animation: rowFlash 1.6s ease; }
@media (max-width: 720px) {
  .catalog-search { flex-direction: column; align-items: stretch; gap: 0.4rem; }
  .catalog-search input { max-width: none; }
  .row-flash { animation: rowFlash 1.6s ease; }
}

/* =================================================================
   Black Friday
   ================================================================= */
:root { --bf: #ff2b43; --bf-soft: rgba(255, 43, 67, 0.16); }
.bf-red { color: var(--bf); }

/* Barra superior que se desliza */
.bf-bar { position: relative; z-index: 21; overflow: hidden; background: var(--bf); color: #fff; }
.bf-bar[hidden] { display: none; }
.bf-bar-track {
  display: inline-flex; gap: 1.4rem; padding: 0.45rem 0; white-space: nowrap; color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  animation: marquee 30s linear infinite;
}
.bf-bar-track .dot { opacity: 0.7; }

/* Etiqueta roja en las tarjetas */
.bf-badge {
  position: absolute; left: 0.6rem; bottom: 0.6rem; z-index: 2;
  display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden;
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(255, 43, 67, 0.45);
  animation: bfPulse 2.2s ease-in-out infinite;
}
.bf-badge b { background: #000; color: #fff; padding: 0.32rem 0.6rem; font-weight: 700; border: 1px solid var(--bf); border-right: none; border-radius: 999px 0 0 999px; }
.bf-badge i { background: var(--bf); color: #fff; padding: 0.32rem 0.6rem; font-style: normal; font-weight: 800; letter-spacing: 0.04em; font-size: 0.78rem; }
@keyframes bfPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.product.on-sale { box-shadow: inset 0 0 0 1px rgba(255, 43, 67, 0.35); }
.product-price.has-deal { display: flex; flex-direction: column; gap: 0.1rem; }
.old-price { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--bf); }
.deal-price { color: var(--bf); font-weight: 600; }
.bf-mini { color: #fff; background: var(--bf); padding: 0.05rem 0.4rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.chip.chip-deal { border-color: var(--bf); color: #fff; }
.chip.chip-deal.active, .chip.chip-deal:hover { background: var(--bf); border-color: var(--bf); color: #fff; }

/* Portada Black Friday */
.bf-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem; align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid var(--line); background: #000;
}
.bf-glow {
  position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 75% 45%, rgba(255, 43, 67, 0.28), transparent 70%),
              radial-gradient(35% 40% at 15% 90%, rgba(255, 255, 255, 0.07), transparent 70%);
  animation: bfGlow 8s ease-in-out infinite alternate;
}
@keyframes bfGlow { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.bf-pill {
  display: inline-block; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid var(--bf);
  color: #fff; background: var(--bf-soft); font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase;
}
.bf-title { margin: 1rem 0 0.4rem; display: flex; flex-direction: column; line-height: 0.88; font-family: 'Inter', var(--sans); font-weight: 800; letter-spacing: -0.02em; }
.bf-word { font-size: clamp(3.4rem, 11vw, 8.5rem); animation: fadeUp 0.8s cubic-bezier(.2,.8,.2,1) both; }
.bf-word.outline { color: transparent; -webkit-text-stroke: 2px var(--bf); animation-delay: 0.15s; text-shadow: 0 0 40px rgba(255, 43, 67, 0.35); }
.bf-sub { font-size: clamp(1rem, 2.2vw, 1.25rem); color: #ddd; margin: 0.6rem 0 0.4rem; }
.bf-sub strong { color: #fff; }
.bf-hero .countdown { margin-top: 1.4rem; }
.bf-hero .cd-unit { border-color: var(--bf); border-radius: 14px; background: rgba(255, 43, 67, 0.08); }
.bf-hero .cd-num { color: #fff; }
.btn.solid.bf-cta { background: linear-gradient(180deg, #ff4a5f, #e01530); color: #fff; border-color: #ff6274; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 30px rgba(255, 43, 67, 0.45); }
.btn.solid.bf-cta:hover { background: #ff2b43; color: #fff; box-shadow: 0 0 36px rgba(255, 43, 67, 0.7); }
.bf-visual { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; margin: 0 auto; }
.bf-visual .ring { position: absolute; inset: 0; border: 1px solid var(--line-soft); border-radius: 50%; }
.bf-visual .ring.dashed { inset: 6%; border-style: dashed; animation: spin 40s linear infinite; }
.bf-visual .ring.pulse { border-color: var(--bf); animation: pulseRing 3s ease-out infinite; }
.bf-visual .ring.pulse.two { animation-delay: 1.5s; }
.bf-visual img { position: absolute; inset: 18%; width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 0 30px rgba(255, 43, 67, 0.35)); }
.bf-visual .orbit { position: absolute; inset: 0; animation: spin 10s linear infinite; }
.bf-visual .orbit::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--bf); box-shadow: 0 0 16px var(--bf); }
.bf-stamp {
  position: absolute; right: -2%; bottom: 6%; transform: rotate(-12deg);
  display: flex; flex-direction: column; align-items: center; padding: 0.6rem 1rem; border-radius: 12px;
  background: var(--bf); color: #fff; font-weight: 800; letter-spacing: 0.12em; line-height: 1.05; font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(255, 43, 67, 0.5);
}
.bf-marquee { border-color: var(--bf); }
.bf-marquee .dot { color: var(--bf); }
.bf-eyebrow { color: var(--bf); }
.bf-deals .section-head { border-bottom-color: var(--bf); }

/* En modo Black Friday algunos detalles toman el rojo */
body.bf-mode .scroll-progress { background: var(--bf); }
body.bf-mode .badge.count, body.bf-mode .tab-badge { background: var(--bf); color: #fff; }

/* Tarjeta del panel */
.bf-card { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.bf-card.is-on { border-color: var(--bf); box-shadow: 0 0 0 1px var(--bf-soft), 0 0 40px rgba(255, 43, 67, 0.12); }
.bf-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.bf-controls input[type="datetime-local"] { color-scheme: dark; }
.disc-ctl { display: inline-flex; align-items: center; gap: 0.3rem; }
.disc-ctl input { width: 4.6rem; padding: 0.35rem 0.4rem; text-align: center; border-radius: 10px; }
.footer-access { color: var(--muted); text-decoration: underline; }

@media (max-width: 860px) {
  .bf-hero { grid-template-columns: 1fr; text-align: center; }
  .bf-hero .hero-actions, .bf-hero .cd-units { justify-content: center; }
  .bf-title { align-items: center; }
  .bf-visual { max-width: 240px; grid-row: 1; }
}
@media (max-width: 720px) {
  .bf-hero { padding: 1.6rem 1rem 2rem; }
  .bf-word.outline { -webkit-text-stroke-width: 1.5px; }
  .bf-badge { left: 0.4rem; bottom: 0.4rem; font-size: 0.52rem; }
  .bf-badge i { font-size: 0.68rem; padding: 0.28rem 0.45rem; }
  .bf-badge b { padding: 0.28rem 0.45rem; }
  .bf-stamp { font-size: 0.7rem; }
  .old-price { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .bf-bar-track, .bf-badge, .bf-glow { animation: none; } }
/* "FRIDAY" relleno en rojo (el contorno de la fuente dejaba líneas internas) */
.bf-word.outline { color: var(--bf); -webkit-text-stroke: 0; text-shadow: 0 0 28px rgba(255, 43, 67, 0.55), 0 0 2px rgba(255, 43, 67, 0.9); }
@media (max-width: 860px) {
  .bf-visual { grid-row: auto; max-width: 180px; }
  .bf-stamp { right: -10%; font-size: 0.62rem; padding: 0.4rem 0.7rem; }
}
.bf-sub strong.bf-red { color: var(--bf); }

/* ---- Black Friday en toda la tienda (sobre el negro y blanco de siempre) ---- */
.bf-strip {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  margin-bottom: 1.6rem; padding: 0.9rem 1.2rem; border: 1px solid var(--bf); border-radius: 18px;
  background: linear-gradient(110deg, rgba(255, 43, 67, 0.22), rgba(0, 0, 0, 0.9) 45%, rgba(255, 43, 67, 0.14));
  color: #fff; box-shadow: 0 10px 40px rgba(255, 43, 67, 0.18);
}
.bf-strip::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: shine 4s ease-in-out infinite;
}
.bf-strip-title { font-family: 'Inter', var(--sans); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--bf); white-space: nowrap; }
.bf-strip-title b { color: #fff; }
.bf-strip-msg { flex: 1; min-width: 200px; font-size: 0.9rem; color: #ddd; }
.bf-strip-left { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #ccc; white-space: nowrap; }
.bf-strip-left strong { color: #fff; background: var(--bf); padding: 0.25rem 0.6rem; border-radius: 999px; margin-left: 0.3rem; letter-spacing: 0.06em; }
.bf-savings { color: var(--bf); font-weight: 600; }

body.bf-mode {
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(255, 43, 67, 0.16), transparent 70%),
    radial-gradient(800px 600px at 110% 40%, rgba(255, 43, 67, 0.05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
body.bf-mode .topbar { border-bottom-color: rgba(255, 43, 67, 0.55); box-shadow: 0 1px 0 rgba(255, 43, 67, 0.25), 0 8px 30px rgba(255, 43, 67, 0.08); }
body.bf-mode .brand-emblem { box-shadow: 0 0 0 1px rgba(255, 43, 67, 0.6), 0 0 18px rgba(255, 43, 67, 0.35); border-radius: 50%; }
body.bf-mode .nav a.active { border-color: var(--bf); box-shadow: 0 0 18px rgba(255, 43, 67, 0.25); }
body.bf-mode .section-head { border-image: linear-gradient(90deg, #fff 0%, #fff 55%, var(--bf) 100%) 1; }
body.bf-mode .product { transition: background 0.25s, box-shadow 0.3s; }
body.bf-mode .product:hover { box-shadow: inset 0 0 0 1px var(--bf), 0 0 34px rgba(255, 43, 67, 0.18); }
body.bf-mode .product.on-sale .product-img { background: radial-gradient(circle at 50% 120%, rgba(255, 43, 67, 0.22), #050505 65%); }
body.bf-mode .btn.solid:hover { box-shadow: inset 0 1px 0 #fff, 0 0 30px rgba(255, 43, 67, 0.45); }
body.bf-mode .cart-total.big span:last-child { color: #fff; text-shadow: 0 0 18px rgba(255, 43, 67, 0.5); }
body.bf-mode .tab-item.active { color: #fff; }
body.bf-mode .tab-item.active::before { background: var(--bf) !important; box-shadow: 0 0 12px var(--bf); }
body.bf-mode .tabbar { border-top-color: rgba(255, 43, 67, 0.6); }
body.bf-mode .marquee { border-color: rgba(255, 43, 67, 0.6); }
body.bf-mode .feature .num { color: var(--bf); }
body.bf-mode .footer .line { background: linear-gradient(90deg, transparent, var(--bf), transparent); }
body.bf-mode .footer-tag::after { content: ' · Black Distinto'; color: var(--bf); }
body.bf-mode .intro { background: radial-gradient(circle at 50% 50%, rgba(255, 43, 67, 0.2), #000 60%); }
body.bf-mode .chip.active:not(.chip-deal) { box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(255, 43, 67, 0.5); }
body.bf-mode .pay-card { border-color: rgba(255, 43, 67, 0.6); }
@media (max-width: 720px) {
  .bf-strip { gap: 0.4rem 0.8rem; padding: 0.8rem 1rem; border-radius: 16px; }
  .bf-strip-msg { flex-basis: 100%; order: 3; font-size: 0.82rem; }
}
@media (prefers-reduced-motion: reduce) { .bf-strip::after { animation: none; } }

/* Disponibilidad en la tabla del administrador */
.avail-select { display: block; width: auto; margin: 0.4rem 0 0 auto; padding: 0.3rem 0.5rem; font-size: 0.72rem; border-radius: 999px; }
.avail-select.avail-available { border-color: var(--ok); color: var(--ok); }
.avail-select.avail-soldout { border-color: var(--bad); color: var(--bad); }

/* ---- Historial de ventas, registro de movimientos y resultado al guardar ---- */
.sales-history { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.sh-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.sh-filters { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: flex-end; }
.sh-filters input[type="month"] { color-scheme: dark; }
.sh-summary { margin-bottom: 0.4rem; color: var(--muted); }
.sh-summary strong { color: var(--fg); }
.activity-card { margin-bottom: 1.5rem; }
.activity-card summary { cursor: pointer; }
.activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.activity-list li { display: grid; grid-template-columns: 8.5rem 8rem 1fr auto; gap: 0.8rem; align-items: baseline; padding: 0.45rem 0; border-bottom: 1px dotted var(--line-soft); color: var(--fg); }
.act-when { color: var(--muted); }
.act-tag { justify-self: start; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }
.act-tag.act-venta { border-color: var(--ok); color: var(--ok); }
.act-tag.act-devolución, .act-tag.act-del { border-color: var(--bad); color: var(--bad); }
.act-amount { white-space: nowrap; }
.op-result { display: grid; gap: 0.6rem; justify-items: center; text-align: center; }
.op-result .order-items { width: 100%; text-align: left; }
.op-result.bad .paid-check { background: var(--bad); color: #000; border-color: var(--bad); }
.op-warn { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--bad); border-radius: 12px; color: var(--bad); text-align: left; font-size: 0.85rem; }
@media (max-width: 720px) {
  .activity-list li { grid-template-columns: 1fr auto; }
  .act-detail { grid-column: 1 / -1; }
}
.sh-filters .sh-search { flex: 1 1 220px; }
.sh-filters input[type="date"] { color-scheme: dark; }
.sh-sep { width: 1px; align-self: stretch; background: var(--line-soft); margin: 0 0.3rem; }
.sh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 0.4rem 0 0.6rem; }
.sh-stats div { padding: 0.8rem 1rem; border: 1px solid var(--line-soft); border-radius: 14px; display: grid; gap: 0.2rem; }
.sh-stats span { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sh-stats strong { font-family: var(--serif); font-size: 1.35rem; }
.sh-chan { margin-left: 0.4rem; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 0.68rem; letter-spacing: 0.06em; }
.sh-chan.web { border-color: var(--fg); }
.sh-chan.manual { border-color: var(--ok); color: var(--ok); }
@media (max-width: 720px) {
  .sh-stats { grid-template-columns: 1fr 1fr; }
  .sh-sep { display: none; }
}

/* ---- Lotes de compra ---- */
.lots { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.lot { padding: 0.12rem 0.55rem; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 0.7rem; color: var(--fg); white-space: nowrap; }
.lot em { font-style: normal; color: var(--ok); }

/* =================================================================
   Identidad de lujo: tipografía y pantallas de carga
   ================================================================= */
:root {
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --script: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
}
html, body { font-family: var(--sans); font-weight: 300; letter-spacing: 0.01em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

/* Marca */
.brand-name { font-family: var(--display); font-weight: 500; font-size: 1.22rem; letter-spacing: 0.3em; }
.brand-tag, .footer-tag, .intro-tag, .hero-tag, .marquee span.script, .cta .script {
  font-family: var(--script); font-style: italic; font-weight: 400; letter-spacing: 0.03em;
}
.brand-tag { font-size: 0.98rem; color: #a8a8a8; }
.footer-name { font-family: var(--display); font-weight: 500; letter-spacing: 0.34em; }
.footer-tag { font-size: 1.2rem; }

/* Textos pequeños en mayúsculas espaciadas (estilo maison) */
.eyebrow { font-family: var(--sans); font-weight: 500; letter-spacing: 0.38em; font-size: 0.66rem; color: #8f8f8f; }
.nav a, .nav button.link { font-family: var(--sans); font-weight: 400; letter-spacing: 0.24em; font-size: 0.72rem; }
.btn { font-family: var(--sans); font-weight: 500; letter-spacing: 0.26em; font-size: 0.72rem; }
.btn.sm { letter-spacing: 0.18em; font-size: 0.66rem; }
.chip { font-family: var(--sans); font-weight: 400; letter-spacing: 0.2em; font-size: 0.7rem; }
label, .field label { font-family: var(--sans); font-weight: 500; letter-spacing: 0.22em; }
th { font-family: var(--sans); letter-spacing: 0.24em; }
.tab { font-family: var(--sans); font-weight: 500; letter-spacing: 0.24em; }
input, select, textarea { font-family: var(--sans); font-weight: 400; }

/* Portada */
.hero-name { font-family: var(--display); font-weight: 400; letter-spacing: 0.08em; }
.hero-tag { font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: #dcdcdc; }
.marquee span { font-family: var(--sans); font-weight: 400; letter-spacing: 0.42em; font-size: 0.78rem; }
.marquee span.script { font-size: 1.35rem; letter-spacing: 0.02em; }
.feature h3 { font-weight: 400; }
.feature .num { font-family: var(--display); font-weight: 400; font-style: italic; }

/* Perfumes */
.product-brand { font-family: var(--sans); font-weight: 500; letter-spacing: 0.3em; font-size: 0.64rem; color: #8a8a8a; }
.product-name { font-family: var(--serif); font-weight: 400; font-size: 1.32rem; letter-spacing: 0.01em; }
.product-meta { font-family: var(--sans); letter-spacing: 0.06em; }
.product-price { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.02em; }
.deal-price { font-weight: 600; }
.stat .val, .cart-total.big, .pay-amount strong, .order-head .title, .sh-stats strong, .op-total strong { font-family: var(--serif); font-weight: 400; }
.cd-num, .cd-sep { font-family: var(--display); font-weight: 400; }
.cd-label, .cd-title { font-family: var(--sans); }
.brand-head h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.18em; }
.best-badge, .stock-badge, .badge { font-family: var(--sans); }
.bf-title, .bf-strip-title, .bf-badge, .bf-stamp { font-family: var(--sans); }
.bf-title { font-weight: 800; letter-spacing: -0.01em; }
@media (max-width: 720px) {
  .brand-name { font-size: 1.02rem; letter-spacing: 0.24em; }
  .product-name { font-size: 1.08rem; }
  .product-price { font-size: 1.12rem; }
  .eyebrow { font-size: 0.6rem; letter-spacing: 0.3em; }
}

/* ---- Frasco que rocía ---- */
.spray { position: relative; width: 120px; height: 170px; }
.spray-bottle { width: 100%; height: 100%; overflow: visible; }
.spray-bottle path, .spray-bottle rect:not(.spray-liquid) { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.spray-bottle .spray-glass { fill: rgba(255, 255, 255, 0.035); }
.spray-bottle .spray-shine { stroke: rgba(255, 255, 255, 0.45); stroke-width: 2.4; }
.spray-bottle .cap-line { stroke: rgba(255, 255, 255, 0.5); }
.spray-bottle .spray-label { stroke: rgba(255, 255, 255, 0.55); stroke-width: 0.8; }
.spray-label-big { fill: #fff; font-family: var(--display); font-size: 17px; }
.spray-label-small { fill: rgba(255, 255, 255, 0.75); font-family: var(--sans); font-size: 6px; letter-spacing: 2.4px; }
.spray-liquid { animation: liquid 2.4s ease-in-out infinite; transform-box: fill-box; }
.spray-cap { animation: sprayPress 1.8s ease-in-out infinite; transform-box: fill-box; }
.spray-mist { position: absolute; left: 73.5%; top: 15.8%; width: 0; height: 0; }
.spray-mist i {
  position: absolute; left: 0; top: 0; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2);
  border-radius: 50%; opacity: 0; filter: blur(1.5px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0) 70%);
  animation: sprayMist 1.8s cubic-bezier(.15,.7,.3,1) infinite; animation-delay: var(--dl);
}
@keyframes sprayPress { 0%, 6% { transform: none; } 14% { transform: translateY(5px); } 26%, 100% { transform: none; } }
@keyframes sprayMist {
  0%, 12% { opacity: 0; transform: translate(0, 0) scale(0.25); }
  17% { opacity: 0.95; }
  60% { opacity: 0.3; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--s)); }
}
@keyframes liquid { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
body.bf-mode .spray-mist i { background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 43, 67, 0.3) 45%, rgba(255, 43, 67, 0) 70%); }

/* ---- Intro (al abrir la página) ---- */
.intro { gap: 1rem; background: radial-gradient(circle at 50% 45%, #141414 0%, #000 60%); }
.intro .spray { margin-bottom: 0.6rem; animation: fadeUp 0.8s ease both; transform: translateX(-30px); }
.intro-name { font-family: var(--display); font-weight: 400; letter-spacing: 0.42em; padding-left: 0.42em; animation: introReveal 1.4s 0.6s cubic-bezier(.2,.8,.2,1) both; }
.intro-line { width: 120px; height: 1px; background: #fff; transform-origin: center; animation: drawLine 1s 1s cubic-bezier(.2,.8,.2,1) both; }
.intro-tag { font-size: clamp(1.25rem, 3.6vw, 1.6rem); color: #cfcfcf; animation: fadeUp 0.9s 1.3s both; }
@keyframes introReveal { from { opacity: 0; letter-spacing: 0.9em; filter: blur(8px); } to { opacity: 1; letter-spacing: 0.42em; filter: none; } }
body.bf-mode .intro { background: radial-gradient(circle at 50% 45%, rgba(255, 43, 67, 0.22), #000 62%); }

/* ---- Pantalla de carga (catálogo) ---- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
  background: rgba(0, 0, 0, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.4s ease;
}
.loader[hidden] { display: none; }
.loader.show { opacity: 1; }
.loader .spray { transform: translateX(-30px) scale(0.9); }
.loader-name { font-family: var(--display); letter-spacing: 0.42em; padding-left: 0.42em; font-size: 1.15rem; }
.loader-text { font-family: var(--script); font-style: italic; font-size: 1.15rem; color: #bdbdbd; }
@media (prefers-reduced-motion: reduce) { .spray-cap, .spray-mist i, .spray-liquid { animation: none; } }
/* Ajustes: fondo sólido en la intro, bruma más visible y botones en el celular */
body.bf-mode .intro { background: radial-gradient(circle at 50% 45%, rgba(255, 43, 67, 0.22), rgba(0, 0, 0, 0) 62%), #000; }
.intro { background: radial-gradient(circle at 50% 45%, #161616 0%, #000 60%), #000; }
.spray { width: 140px; height: 198px; }
.spray-mist i { filter: blur(2px); }
@media (max-width: 720px) {
  .btn { letter-spacing: 0.16em; }
  .hero-actions .btn { font-size: 0.68rem; }
  .spray { width: 120px; height: 170px; }
}

/* =================================================================
   Pantalla de carga (logo + barra luminosa)
   ================================================================= */
.load-orb { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; animation: orbIn 0.9s cubic-bezier(.2,.8,.2,1) both; }
.load-orb::before { content: ''; position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%); animation: orbGlow 2.2s ease-in-out infinite; }
.load-orb img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35)); }
.load-bar { position: relative; width: 170px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 1rem 0 0.6rem; }
.load-bar span { position: absolute; top: 0; bottom: 0; width: 45%; border-radius: 2px; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 12px #fff, 0 0 24px rgba(255, 255, 255, 0.6); animation: barRun 1.3s ease-in-out infinite; }
body.bf-mode .load-bar span { background: linear-gradient(90deg, transparent, #ff4a5f, transparent); box-shadow: 0 0 12px var(--bf), 0 0 26px rgba(255, 43, 67, 0.7); }
body.bf-mode .load-orb::before { background: radial-gradient(circle, rgba(255, 43, 67, 0.28), transparent 65%); }
@keyframes barRun { from { left: -45%; } to { left: 100%; } }
@keyframes orbGlow { 0%, 100% { opacity: 0.6; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes orbIn { from { opacity: 0; transform: scale(0.7); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.intro { background: radial-gradient(circle at 50% 45%, #1a1a24 0%, #000 62%), #000; gap: 0.5rem; }
.loader { gap: 0.4rem; }
.loader-text { margin-top: 0.2rem; }


/* Etiqueta de oferta sin porcentaje */
.bf-badge.single i { padding: 0.32rem 0.85rem; border-radius: 999px; letter-spacing: 0.18em; font-size: 0.66rem; }
@media (max-width: 720px) { .bf-badge.single i { padding: 0.28rem 0.6rem; font-size: 0.58rem; } }

/* =================================================================
   Sorteo
   ================================================================= */
.nav-gift { font-size: 0.9em; }
.raffle-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  margin: 2rem 0; padding: 1.3rem 1.5rem; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.12), transparent 55%), linear-gradient(110deg, #0d0d0d, #000);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.raffle-banner::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); animation: shine 5s ease-in-out infinite; pointer-events: none; }
.rb-gift { font-size: 2.4rem; filter: drop-shadow(0 6px 16px rgba(255, 255, 255, 0.25)); animation: floaty 4s ease-in-out infinite; }
.rb-text { flex: 1; min-width: 220px; display: grid; gap: 0.15rem; }
.rb-eyebrow { font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: #aaa; }
.rb-text strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.rb-sub { color: #bdbdbd; font-size: 0.9rem; }
body.bf-mode .raffle-banner { border-color: rgba(255, 43, 67, 0.6); }

.raffle { max-width: 900px; margin: 0 auto; display: grid; gap: 1.6rem; }
.raffle-head { text-align: center; }
.raffle-title { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); margin: 0.2rem 0 0.6rem; }
.raffle-lead { max-width: 620px; margin: 0 auto; color: #d6d6d6; }
.prize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.prize-card {
  position: relative; overflow: hidden; border-radius: 22px; padding: 1.6rem 1.4rem 1.8rem; text-align: center; display: grid; gap: 0.5rem; justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: radial-gradient(90% 80% at 50% 0%, rgba(255, 255, 255, 0.14), transparent 70%), #050505;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 50px rgba(0, 0, 0, 0.5);
}
.prize-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%); background-size: 250% 100%; animation: prizeShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes prizeShine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.prize-place { font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase; color: #bbb; }
.prize-emblem { width: 92px; opacity: 0.9; filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.25)); margin: 0.4rem 0; animation: floaty 6s ease-in-out infinite; }
.prize-name { font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.1; }
.prize-card.won { border-color: #fff; }
.prize-winner { font-size: 1.05rem; }
.prize-code { font-family: var(--sans); letter-spacing: 0.18em; font-size: 0.8rem; color: #bbb; }
.raffle .countdown { display: grid; justify-items: center; }
.raffle .cd-units { justify-content: center; }
.raffle-form { max-width: 560px; width: 100%; justify-self: center; }
.code-input { text-align: center; font-family: var(--sans); font-size: 1.35rem; letter-spacing: 0.24em; font-weight: 500; text-transform: uppercase; }
.code-chip { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.4); font-family: var(--sans); font-weight: 500; letter-spacing: 0.14em; font-size: 0.78rem; white-space: nowrap; }
.code-chip.big { font-size: 1.25rem; padding: 0.5rem 1.2rem; letter-spacing: 0.22em; border-color: #fff; }
.my-codes { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.6rem; }
.raffle-mine { text-align: center; }
.raffle-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.raffle-draw { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.raffle-draw > div { flex: 1; min-width: 260px; }
.raffle-draw .order-items li { align-items: center; }
body.bf-mode .prize-card { border-color: rgba(255, 43, 67, 0.55); background: radial-gradient(90% 80% at 50% 0%, rgba(255, 43, 67, 0.2), transparent 70%), #050505; }
@media (max-width: 720px) {
  .raffle-admin-grid { grid-template-columns: 1fr; }
  .raffle-banner { padding: 1.1rem; gap: 0.8rem; }
  .raffle-banner .btn { width: 100%; }
  .code-input { font-size: 1.1rem; }
}

/* =================================================================
   Visitas (estadísticas)
   ================================================================= */
.stat-link { cursor: pointer; }
.stat-link:hover { background: rgba(255, 255, 255, 0.04); }
.an-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.an-custom { display: flex; align-items: center; gap: 0.5rem; }
.an-custom input { width: auto; padding: 0.4rem 0.6rem; color-scheme: dark; border-radius: 10px; }
.an-live { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: #ddd; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(143, 209, 158, 0.7); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(143, 209, 158, 0); } 100% { box-shadow: 0 0 0 0 rgba(143, 209, 158, 0); } }
.an-funnel { margin-bottom: 1.2rem; }
.funnel { display: flex; align-items: stretch; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.f-step { flex: 1; min-width: 130px; display: grid; gap: 0.15rem; padding: 0.9rem 1rem; border: 1px solid var(--line-soft); border-radius: 16px; }
.f-step strong { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; }
.f-step span { font-size: 0.78rem; color: #bbb; }
.f-step em { font-style: normal; font-size: 0.72rem; color: var(--ok); }
.f-step.hl { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.f-arrow { align-self: center; color: var(--muted); }
.an-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.an-grid .card, .an-links { margin-bottom: 0; }
.an-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.an-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr auto; gap: 0.7rem; align-items: center; font-size: 0.88rem; }
.an-list li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.an-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #fff); }
body.bf-mode .an-bar i { background: linear-gradient(90deg, rgba(255, 43, 67, 0.6), var(--bf)); }
.an-devices { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; font-size: 0.82rem; color: #ccc; }
.an-days, .an-hours { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 1.2rem; }
.an-day, .an-hour { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; position: relative; }
.an-day i, .an-hour i { display: block; width: 100%; max-width: 34px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.35)); }
body.bf-mode .an-day i, body.bf-mode .an-hour i { background: linear-gradient(180deg, #ff4a5f, rgba(255, 43, 67, 0.35)); }
.an-day-n { font-size: 0.66rem; color: #ccc; }
.an-day-l, .an-hour span { font-size: 0.6rem; color: var(--muted); height: 0.9rem; }
.an-hours { height: 120px; }
.card + .card { margin-top: 1.2rem; }
.an-links { margin-top: 1.2rem; }
.an-link-form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.an-link-form select, .an-link-form input { width: auto; flex: 1 1 200px; }
.an-link-out { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.8rem; flex-wrap: wrap; }
.an-link-out code { flex: 1; min-width: 0; padding: 0.7rem 0.9rem; border-radius: 12px; border: 1px dashed var(--line-soft); font-size: 0.85rem; overflow-wrap: anywhere; color: #fff; }
@media (max-width: 720px) {
  .an-grid { grid-template-columns: 1fr; }
  .f-arrow { display: none; }
  .f-step { min-width: calc(50% - 0.3rem); }
  .an-day-n { display: none; }
}
.an-grid .card + .card { margin-top: 0; }
@media (max-width: 720px) {
  .an-head { align-items: stretch; }
  .an-head > * { width: 100%; }
  .an-custom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.4rem; }
  .an-custom input { width: 100%; min-width: 0; }
  .an-custom .btn { grid-column: 1 / -1; }
}

/* =================================================================
   Decants
   ================================================================= */
.decant-tag { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; vertical-align: middle; }
.decant-badge {
  position: absolute; right: 0.6rem; bottom: 0.6rem; padding: 0.28rem 0.7rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.chip.chip-decant.active { box-shadow: inset 0 1px 0 #fff; }
.decant-box { border: 1px solid var(--line-soft); border-radius: 16px; padding: 0.9rem 1rem; display: grid; gap: 0.6rem; }
.decant-rows { display: grid; gap: 0.6rem; }
.decant-rows[hidden] { display: none; }
.decant-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.6rem; align-items: end; }
.decant-row .field { margin: 0; }
.decant-note { color: #cfcfcf; margin-top: 0.3rem; }
@media (max-width: 720px) {
  .decant-badge { right: 0.4rem; bottom: 0.4rem; font-size: 0.52rem; }
}
@media (max-width: 720px) {
  .price-slot .decant-tag { margin: 0.25rem 0 0; display: table; }
}

/* ---- Combos ---- */
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.combo-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #0d0d0d, #000 60%); transition: transform 0.3s, box-shadow 0.3s; }
.combo-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold); }
.combo-card.sold-out { opacity: 0.6; }
.combo-visual { position: relative; aspect-ratio: 16 / 10; background: #050505; overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-soft); }
.combo-visual > img { width: 100%; height: 100%; object-fit: cover; }
.combo-visual > img.placeholder-emblem { width: 34%; height: auto; object-fit: contain; opacity: 0.35; }
.combo-visual .stock-badge { position: absolute; top: 0.7rem; right: 0.7rem; }
.combo-mosaic { display: grid; width: 100%; height: 100%; gap: 2px; }
.combo-mosaic.n2 { grid-template-columns: 1fr 1fr; }
.combo-mosaic.n3 { grid-template-columns: 1fr 1fr 1fr; }
.combo-mosaic.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.combo-mosaic img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.combo-badge { position: absolute; top: 0.7rem; left: 0.7rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--gold); color: #000; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.combo-badge.inline { position: static; display: inline-block; font-size: 0.58rem; padding: 0.15rem 0.55rem; }
body.bf-mode .combo-badge { background: var(--bf); color: #fff; }
body.bf-mode .combo-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--bf); }
.combo-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.combo-kind { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.combo-name { margin: 0; font-size: 1.6rem; }
.combo-desc { margin: 0; color: var(--muted); font-size: 0.9rem; }
.combo-opts { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.combo-opts li { font-size: 0.74rem; padding: 0.25rem 0.6rem; border: 1px solid var(--line-soft); border-radius: 999px; }
.combo-opts li span:first-child { color: var(--muted); }
.combo-opts li.off { opacity: 0.45; text-decoration: line-through; }
.combo-foot { margin-top: auto; padding-top: 0.6rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.combo-foot .product-price { font-size: 1.5rem; }
.combo-choice { color: #d6d6d6; margin: 0.15rem 0; }
#catCombos { margin-top: 0; }
/* Ventana para elegir */
.pick-list { display: grid; gap: 0.5rem; max-height: 52vh; overflow-y: auto; padding-right: 0.2rem; }
.pick-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 0.8rem; align-items: center; padding: 0.5rem 0.7rem; border: 1px solid var(--line-soft); border-radius: 14px; transition: border-color 0.2s, background 0.2s; }
.pick-row.picked { border-color: var(--gold); background: rgba(217, 200, 160, 0.08); }
body.bf-mode .pick-row.picked { border-color: var(--bf); background: var(--bf-soft); }
.pick-row.off { opacity: 0.45; }
.pick-img { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #111; }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick-name { font-family: var(--serif); font-size: 1.05rem; }
.pick-row .qty input { width: 2.4rem; }
.pick-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
/* Panel */
.combo-admin-list { display: grid; gap: 1rem; }
.combo-admin.is-off { opacity: 0.6; }
.combo-admin-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.combo-admin-status { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.combo-admin-price { font-family: var(--serif); font-size: 1.4rem; }
.combo-admin .combo-opts { margin: 0.8rem 0; }
.combo-rows { display: grid; gap: 0.5rem; }
.combo-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: 0.5rem; align-items: center; }
.seg { display: flex; gap: 1rem; flex-wrap: wrap; padding-top: 0.4rem; }
.seg label { display: flex; align-items: center; gap: 0.4rem; text-transform: none; letter-spacing: normal; font-size: 0.9rem; color: var(--fg); }
.seg input { width: auto; }
.ok-text { color: var(--ok); }
[hidden].field { display: none; }
@media (max-width: 640px) {
  /* En el celular los combos se deslizan de lado para no tapar el catálogo. */
  .combo-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.8rem; margin: 0 -16px; padding: 0.2rem 16px 0.8rem; scrollbar-width: none; }
  .combo-grid::-webkit-scrollbar { display: none; }
  .combo-card { flex: 0 0 86%; scroll-snap-align: start; }
  .combo-grid:has(> .combo-card:only-child) .combo-card { flex-basis: 100%; }
  .combo-visual { aspect-ratio: 16 / 8; }
  .combo-name { font-size: 1.35rem; }
  .combo-row { grid-template-columns: 1fr auto; }
  .combo-row [data-cml] { grid-column: 1; }
  .combo-row button { grid-row: 1 / span 2; grid-column: 2; }
  .pick-row { grid-template-columns: 44px 1fr; }
  .pick-img { width: 44px; height: 44px; }
  .pick-row .qty, .pick-row > .small { grid-column: 1 / -1; justify-self: end; }
}

/* Sellado o decant: menú desplegable en la tarjeta */
.variant-pick { display: grid; gap: 0.3rem; margin: 0.7rem 0 0.2rem; }
.variant-label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.variant-pick select {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 0.6rem 2.2rem 0.6rem 0.85rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  color: var(--fg); font-family: var(--sans); font-size: 0.85rem; text-transform: none; letter-spacing: normal;
}
.variant-pick select:focus { outline: none; border-color: #fff; }
.variant-pick select option { background: #111; color: #fff; }
@media (max-width: 640px) {
  .variant-pick select { font-size: 0.76rem; padding: 0.5rem 1.9rem 0.5rem 0.6rem; background-position: right 0.6rem center; }
}
