:root {
  --bg: #0d0b0a;
  --surface: #171310;
  --surface-2: #211a15;
  --surface-3: #2a211a;
  --gold: #d6ad5b;
  --gold-2: #f1cf84;
  --cream: #fff8ea;
  --muted: #b6aa9a;
  --danger: #d36b65;
  --success: #7bc68b;
  --line: rgba(255,255,255,.09);
  --shadow: 0 24px 70px rgba(0,0,0,.45);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(214,173,91,.09), transparent 30rem),
    var(--bg);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 82px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(13,11,10,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 12px; }
.topbar__brand strong { display: block; letter-spacing: .22em; font-size: .92rem; }
.topbar__brand span { color: var(--muted); font-size: .78rem; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(214,173,91,.5);
  background: linear-gradient(145deg, rgba(214,173,91,.22), rgba(214,173,91,.04));
  color: var(--gold-2);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  box-shadow: inset 0 0 22px rgba(214,173,91,.08);
}
.brand-mark--large { width: 68px; height: 68px; border-radius: 18px; font-size: 2rem; margin: 0 auto 12px; }

.icon-btn {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--cream);
}
.text-btn { width: auto; padding: 0 14px; color: var(--gold-2); }
.cart-button { position: relative; }
.cart-count {
  position: absolute;
  right: -4px;
  top: -5px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #17100c;
  font-size: .72rem;
  font-weight: 800;
}

.view { display: none; }
.active-view { display: block; }
.section-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 32px;
  min-height: 460px;
  padding: clamp(36px, 7vw, 88px) max(16px, calc((100vw - 1180px)/2));
  background:
    linear-gradient(90deg, rgba(13,11,10,.98), rgba(13,11,10,.72)),
    radial-gradient(circle at 70% 50%, rgba(214,173,91,.2), transparent 35%);
  border-bottom: 1px solid var(--line);
}
.hero h1, .admin-hero h1 { margin: 8px 0 12px; font-family: Georgia, serif; line-height: 1.02; font-weight: 500; }
.hero h1 { font-size: clamp(2.65rem, 7vw, 5.8rem); }
.hero h1 span { color: var(--gold-2); }
.hero p { max-width: 640px; color: #d1c6b8; font-size: 1.04rem; }
.hero__badges { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.hero__badges span, .status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #e6dbcd;
  padding: 8px 12px;
  font-size: .78rem;
}
.hero__art { position: relative; min-height: 310px; }
.glow {
  position: absolute; inset: 20% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,173,91,.35), transparent 68%);
  filter: blur(10px);
}
.bottle {
  position: absolute;
  bottom: 16px;
  width: 110px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px 24px 14px 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.1), transparent 24%, rgba(255,255,255,.12) 70%, transparent),
    linear-gradient(180deg, #3a1d0f 0%, #8c4d1f 70%, #3f1b0f 100%);
  box-shadow: 0 30px 50px rgba(0,0,0,.45), inset 0 0 30px rgba(255,255,255,.06);
  z-index: 2;
}
.bottle::before {
  content: ""; position: absolute; left: 34px; top: -56px; width: 42px; height: 68px;
  border-radius: 9px 9px 4px 4px; background: linear-gradient(90deg, #20130d, #5d3a20, #20130d);
  border: 1px solid rgba(255,255,255,.18);
}
.bottle::after {
  content: "HANAN"; position: absolute; left: 14px; right: 14px; top: 92px; padding: 26px 6px;
  border: 1px solid rgba(214,173,91,.6); background: rgba(248,232,193,.9); color: #2c1d12;
  text-align: center; letter-spacing: .14em; font-family: Georgia, serif; font-size: .72rem;
}
.bottle--one { right: 30%; transform: rotate(-7deg); }
.bottle--two { right: 3%; bottom: 30px; height: 220px; width: 96px; transform: rotate(7deg); filter: brightness(.8); }

.eyebrow { margin: 0; color: var(--gold); letter-spacing: .18em; font-size: .72rem; font-weight: 800; }
.muted { color: var(--muted); }
.notice-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 14px 16px;
  border: 1px solid rgba(214,173,91,.2); border-radius: 16px; background: rgba(214,173,91,.07);
}
.notice-bar > span { color: var(--gold); }
.notice-bar small { color: var(--muted); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 24px 0 16px; }
.search-box {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 15px; background: var(--surface);
}
.search-box input { flex: 1; border: 0; outline: 0; color: var(--cream); background: transparent; }
.search-box input::placeholder { color: #8f8477; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
  color: #ddd2c4; background: var(--surface); cursor: pointer;
}
.chip.active { border-color: rgba(214,173,91,.55); background: rgba(214,173,91,.13); color: var(--gold-2); }
.section-heading, .admin-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 26px 0 16px; }
.section-heading h2, .admin-toolbar h2 { margin: 5px 0 0; font-family: Georgia, serif; font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.35rem); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; padding-bottom: 34px; }
.product-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, #1b1612, #15110f);
  box-shadow: 0 16px 35px rgba(0,0,0,.16);
}
.product-visual {
  position: relative; display: grid; place-items: center; min-height: 190px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, var(--accent, rgba(214,173,91,.23)), transparent 50%), #120f0d;
}
.product-visual::after { content: ""; position: absolute; inset: auto 12% 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(214,173,91,.5), transparent); }
.mini-bottle {
  position: relative; width: 62px; height: 128px; border-radius: 16px 16px 10px 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.15), transparent 30%, rgba(255,255,255,.08)), var(--bottle, #6b3718);
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 20px 28px rgba(0,0,0,.4);
}
.mini-bottle::before { content: ""; position: absolute; left: 19px; top: -26px; width: 24px; height: 32px; border-radius: 6px 6px 2px 2px; background: #332016; border: 1px solid rgba(255,255,255,.14); }
.mini-bottle::after { content: attr(data-label); position: absolute; left: 7px; right: 7px; top: 47px; padding: 12px 3px; text-align: center; font-size: .53rem; letter-spacing: .04em; color: #291d12; background: rgba(246,228,187,.92); border: 1px solid rgba(214,173,91,.7); }
.product-badge { position: absolute; left: 12px; top: 12px; border-radius: 999px; padding: 6px 9px; background: rgba(13,11,10,.8); color: var(--gold-2); border: 1px solid var(--line); font-size: .67rem; }
.product-info { padding: 15px; }
.product-info h3 { margin: 0 0 6px; font-size: .98rem; }
.product-meta { color: var(--muted); font-size: .78rem; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.price { color: var(--gold-2); font-weight: 800; }
.add-btn { width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--gold); color: #1e150f; font-size: 1.2rem; font-weight: 800; }
.empty-state { grid-column: 1 / -1; padding: 42px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }

.btn {
  border: 0; border-radius: 14px; padding: 12px 17px; font-weight: 800; transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #21170e; box-shadow: 0 10px 22px rgba(214,173,91,.18); }
.btn-secondary { border: 1px solid var(--line); background: var(--surface-2); color: var(--cream); }
.btn-ghost { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.btn-danger { border: 1px solid rgba(211,107,101,.25); background: rgba(211,107,101,.12); color: #f6aaa6; }
.btn-block { width: 100%; }

.mobile-nav {
  position: fixed; left: 50%; bottom: 14px; z-index: 35; transform: translateX(-50%);
  display: flex; gap: 4px; width: min(520px, calc(100% - 24px)); padding: 7px;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(25,20,17,.94); backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.mobile-nav button { flex: 1; border: 0; border-radius: 14px; padding: 8px 4px; color: #a99e90; background: transparent; font-size: .68rem; }
.mobile-nav button span { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.mobile-nav button.active { color: var(--gold-2); background: rgba(214,173,91,.1); }

.side-panel {
  position: fixed; z-index: 60; right: 0; top: 0; width: min(480px, 100%); height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto; transform: translateX(105%); transition: transform .25s ease;
  background: #13100e; border-left: 1px solid var(--line); box-shadow: var(--shadow);
}
.side-panel.open { transform: translateX(0); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 4px 0 0; font-family: Georgia, serif; font-weight: 500; }
.panel-body { overflow-y: auto; padding: 18px 20px; }
.panel-footer { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(23,19,16,.98); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); }
.cart-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { display: grid; place-items: center; width: 58px; height: 70px; border-radius: 14px; background: var(--surface-2); color: var(--gold-2); font-family: Georgia, serif; }
.cart-item h4 { margin: 0 0 4px; }
.qty-control { display: flex; align-items: center; gap: 7px; }
.qty-control button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--cream); }
.total-line { display: flex; justify-content: space-between; margin-bottom: 14px; }

.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.7); backdrop-filter: blur(5px); }
.modal[hidden] { display: none; }
.modal-card { width: min(860px, 100%); max-height: 92dvh; overflow-y: auto; border: 1px solid var(--line); border-radius: 24px; background: #15110f; box-shadow: var(--shadow); }
.small-modal { width: min(430px, 100%); }
.small-modal form, .checkout-form { padding: 20px; }
.checkout-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 7px; color: #e6dbcd; font-size: .84rem; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; outline: 0;
  background: var(--surface); color: var(--cream);
}
input:focus, textarea:focus, select:focus { border-color: rgba(214,173,91,.55); box-shadow: 0 0 0 3px rgba(214,173,91,.08); }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 10px; color: var(--gold-2); font-weight: 800; font-size: .88rem; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-card { grid-template-columns: auto 1fr; align-items: start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.choice-card input { width: auto; accent-color: var(--gold); }
.choice-card small { display: block; margin-top: 4px; color: var(--muted); }
.delivery-fields { display: grid; gap: 12px; }
.wallet-box { display: grid; grid-template-columns: minmax(220px, 310px) 1fr; gap: 22px; align-items: start; padding: 18px; border: 1px solid rgba(214,173,91,.25); border-radius: 18px; background: rgba(214,173,91,.055); }
.wallet-box p { color: var(--muted); font-size: .82rem; }
.yape-qr-panel { display:grid; gap:10px; }
.qr-button { width:100%; padding:0; border:0; border-radius:18px; overflow:hidden; background:#fff; cursor:zoom-in; box-shadow:0 14px 34px rgba(0,0,0,.28); }
.qr-button img { display:block; width:100%; aspect-ratio:1; object-fit:cover; }
.qr-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.payment-pill { display:inline-flex; width:max-content; padding:6px 10px; border-radius:999px; color:#13100e; background:#28d7c5; font-size:.76rem; font-weight:900; }
.wallet-data h3 { margin:10px 0; color:var(--cream); font-size:1.15rem; }
.wallet-data h3 strong { color:var(--gold-2); font-size:1.35rem; }
.payment-steps { display:grid; gap:8px; margin:10px 0 12px; padding-left:20px; color:#ded1c2; font-size:.84rem; line-height:1.45; }
.privacy-note { padding:9px 11px; border-radius:12px; background:rgba(40,215,197,.08); color:#bdebe5 !important; }
.receipt-upload-preview { width:100px; height:100px; margin-top:8px; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#0d0b0a; }
.receipt-upload-preview img { width:100%; height:100%; object-fit:cover; }
.yape-qr-modal-content { display:grid; gap:14px; padding:20px; text-align:center; }
.yape-qr-modal-content img { display:block; width:min(100%, 430px); margin:auto; border-radius:18px; background:#fff; }
.yape-qr-modal-content p { color:var(--muted); }
.yape-qr-modal-content strong { color:var(--gold-2); font-size:1.25rem; }
.checkout-summary { padding: 15px; border-radius: 16px; background: var(--surface-2); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; color: var(--muted); }
.summary-row.total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--gold-2); font-weight: 800; }

.order-card { padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.order-card__top { display: flex; justify-content: space-between; gap: 12px; }
.order-card h3 { margin: 0 0 5px; }
.order-meta { color: var(--muted); font-size: .78rem; }
.order-progress { display: flex; gap: 4px; margin: 15px 0 8px; }
.order-progress span { flex: 1; height: 5px; border-radius: 999px; background: #332c26; }
.order-progress span.done { background: var(--gold); }
.order-items-mini { margin-top: 12px; color: #d4c9bc; font-size: .82rem; }

.admin-hero { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-top: 48px; padding-bottom: 28px; }
.admin-hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.admin-hero p:not(.eyebrow) { color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.metric-card span { color: var(--muted); font-size: .78rem; }
.metric-card strong { display: block; margin-top: 8px; font-family: Georgia, serif; font-size: 2rem; color: var(--gold-2); }
.select-control { width: auto; min-width: 210px; }
.admin-order-card { padding: 18px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.admin-order-card__head { display: flex; justify-content: space-between; gap: 18px; }
.admin-order-card h3 { margin: 0 0 5px; }
.admin-order-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-order-grid strong { display: block; margin-bottom: 6px; font-size: .8rem; color: var(--gold-2); }
.admin-order-grid p { margin: 0; color: #d3c7b9; font-size: .84rem; line-height: 1.5; }
.admin-order-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.admin-order-actions select { max-width: 290px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.status-pill[data-status="Entregado"]::before { background: var(--success); }
.status-pill[data-status="Cancelado"]::before, .status-pill[data-status="Rechazado"]::before { background: var(--danger); }

.age-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(8,7,6,.95); backdrop-filter: blur(14px); }
.age-gate.hidden { display: none; }
.age-card { width: min(460px, 100%); padding: 32px; text-align: center; border: 1px solid rgba(214,173,91,.24); border-radius: 26px; background: linear-gradient(180deg, #1d1713, #100d0b); box-shadow: var(--shadow); }
.age-card h1 { font-family: Georgia, serif; font-weight: 500; }
.age-card p { color: #c9bdae; line-height: 1.6; }
.age-card .btn { margin-top: 10px; }
.age-card small { display: block; margin-top: 16px; color: #83786b; }
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 110; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #221b16; color: var(--cream); box-shadow: var(--shadow); transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .metrics { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .topbar { min-height: 64px; }
  .text-btn { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 52px; padding-bottom: 44px; }
  .hero__art { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .product-visual { min-height: 155px; }
  .form-grid, .option-grid, .admin-order-grid { grid-template-columns: 1fr; }
  .wallet-box { grid-template-columns: 1fr; }
  .yape-qr-panel { width:min(100%, 360px); margin:auto; }
  .admin-hero { align-items: flex-start; flex-direction: column; padding-top: 34px; }
  .admin-toolbar { align-items: flex-start; flex-direction: column; }
  .select-control { width: 100%; }
  .admin-order-actions { align-items: stretch; flex-direction: column; }
  .admin-order-actions select { max-width: none; }
}
@media (max-width: 430px) {
  .section-wrap { width: min(100% - 22px, 1180px); }
  .search-row { grid-template-columns: 1fr; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: .9rem; }
  .mini-bottle { transform: scale(.9); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-card strong { font-size: 1.55rem; }
  .age-card { padding: 26px 20px; }
}

/* V0.2 */
.admin-hero-actions { display:flex; gap:10px; flex-wrap:wrap; }
.admin-tabs { display:flex; gap:8px; overflow:auto; margin:24px 0 8px; padding-bottom:6px; }
.admin-tabs button { border:1px solid var(--line); border-radius:999px; padding:10px 16px; background:var(--surface); color:var(--muted); white-space:nowrap; }
.admin-tabs button.active { color:var(--gold-2); border-color:rgba(214,173,91,.55); background:rgba(214,173,91,.12); }
.admin-section { display:none; }
.active-admin-section { display:block; }
.admin-search { max-width:520px; margin-bottom:18px; }
.inventory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding-bottom:32px; }
.inventory-card, .customer-card, .settings-card { border:1px solid var(--line); border-radius:18px; background:linear-gradient(180deg,#1a1512,#14110f); }
.inventory-card { padding:16px; display:grid; gap:12px; }
.inventory-card__head { display:flex; justify-content:space-between; gap:12px; }
.inventory-card h3, .customer-card h3 { margin:0 0 4px; }
.inventory-card__meta { color:var(--muted); font-size:.8rem; }
.stock-row { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.035); }
.stock-low { color:#f6aaa6; }
.stock-ok { color:var(--success); }
.card-actions { display:flex; gap:8px; flex-wrap:wrap; }
.card-actions .btn { padding:9px 12px; }
.customer-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; padding-bottom:32px; }
.customer-card { padding:16px; }
.customer-stats { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:12px; }
.customer-stats div { padding:10px; border-radius:12px; background:rgba(255,255,255,.035); }
.customer-stats small { display:block; color:var(--muted); }
.settings-card { padding:20px; display:grid; gap:18px; max-width:900px; }
.switch-line { display:flex !important; flex-direction:row !important; align-items:center; gap:10px; }
.switch-line input { width:auto !important; }
.admin-order-actions { flex-wrap:wrap; }
.quick-action { border-color:rgba(123,198,139,.3) !important; color:#a8e2b4 !important; background:rgba(123,198,139,.1) !important; }
.order-note-row { display:grid; grid-template-columns:1fr auto; gap:8px; margin-top:12px; }
.order-note-row input { width:100%; }
.order-details { margin-top:12px; border-top:1px solid var(--line); padding-top:10px; }
.order-details summary { color:var(--gold-2); cursor:pointer; }
.history-list { display:grid; gap:7px; margin-top:10px; }
.history-entry { display:flex; justify-content:space-between; gap:12px; font-size:.78rem; color:var(--muted); }
.receipt-preview { display:inline-grid; place-items:center; width:74px; height:74px; margin-top:8px; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#0d0b0a; }
.receipt-preview img { width:100%; height:100%; object-fit:cover; }
.wallet-data { min-width:0; }
.product-card.is-sold-out { opacity:.72; }
.product-card.is-sold-out .add-btn { background:#554c43; color:#9f958a; cursor:not-allowed; }
.product-stock { margin-top:8px; font-size:.72rem; color:var(--success); }
.product-stock.low { color:#f6aaa6; }
.data-pill { display:inline-block; border:1px solid var(--line); border-radius:999px; padding:5px 8px; font-size:.68rem; color:var(--muted); }
@media (max-width:900px){ .inventory-grid,.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:620px){ .inventory-grid,.customer-grid{grid-template-columns:1fr;} .admin-hero-actions{width:100%;}.admin-hero-actions .btn{flex:1;} .order-note-row{grid-template-columns:1fr;} }
.sync-refresh{margin-left:auto;white-space:nowrap}
#syncDot{color:#d6ad5b}.notice-bar.is-online #syncDot{color:#6fca85}.notice-bar.is-offline #syncDot{color:#ef7d70}
.cloud-note{margin:12px 0 0}.loading-state{padding:26px;text-align:center;color:var(--muted)}
button:disabled{cursor:not-allowed;opacity:.5}.connection-error{border-color:rgba(239,125,112,.45)!important}
@media(max-width:620px){.sync-refresh{padding:8px 12px}.notice-bar{align-items:center}}

/* V0.3.1: seguimiento entre dispositivos */
.track-order-form{display:grid;gap:10px;padding:14px;margin-bottom:16px;border:1px solid rgba(214,174,86,.22);border-radius:16px;background:rgba(255,255,255,.03)}
.track-order-form label{display:grid;gap:6px;font-size:.88rem;color:var(--muted)}
.track-order-form input{text-transform:none}


/* Confirmación persistente de pedido · V0.3.3 */
.order-success-card { text-align: center; }
.order-success-content { padding: 22px; }
.order-success-content > p { color: var(--muted); line-height: 1.55; }
.success-check { width: 70px; height: 70px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(224,180,91,.55); background: radial-gradient(circle at 35% 30%, #f4d486, #b9822d); color: #17100c; font-size: 38px; font-weight: 900; box-shadow: 0 12px 34px rgba(185,130,45,.25); }
.order-number-box { margin: 20px 0 12px; padding: 18px 14px; border: 1px solid rgba(224,180,91,.45); border-radius: 18px; background: rgba(224,180,91,.08); }
.order-number-box span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.order-number-box strong { display: block; color: var(--gold); font-size: clamp(1.75rem, 8vw, 2.45rem); line-height: 1.1; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all; }
.order-success-phone { margin: 0 0 18px; font-size: .92rem; }
.order-success-content .btn + .btn { margin-top: 10px; }

/* HANAN Pedidos V0.4 · operación real */
.store-status-bar {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  margin:12px 0 18px; padding:14px 16px; border:1px solid var(--line); border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));
}
.store-status-bar.is-open { border-color:rgba(111,202,133,.35); background:rgba(111,202,133,.07); }
.store-status-bar.is-closed { border-color:rgba(239,125,112,.38); background:rgba(239,125,112,.07); }
.store-status-main { display:flex; align-items:center; gap:11px; min-width:0; }
.store-status-main strong { display:block; }
.store-status-main small { display:block; margin-top:3px; color:var(--muted); }
.store-status-dot { color:#ef7d70; }
.store-status-bar.is-open .store-status-dot { color:#6fca85; }
.compact-btn { padding:8px 11px; white-space:nowrap; font-size:.78rem; }
.product-photo { position:relative; z-index:2; width:100%; height:100%; min-height:190px; object-fit:contain; padding:16px; filter:drop-shadow(0 18px 20px rgba(0,0,0,.35)); }
.product-visual.image-error .mini-bottle { display:block; }
.cart-thumb { overflow:hidden; }
.cart-thumb img { width:100%; height:100%; object-fit:contain; padding:5px; }
.choice-card.is-disabled { opacity:.42; filter:grayscale(.4); }
.choice-card.is-disabled input { pointer-events:none; }
.minimum-warning { margin:8px 0; padding:10px 12px; border-radius:12px; border:1px solid rgba(239,125,112,.28); background:rgba(239,125,112,.08); color:#f4aaa3; font-size:.82rem; }
.metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
.admin-toolbar--orders { align-items:center; }
.order-tools { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.compact-search { min-width:260px; }
.contact-actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
.alerts-active { border-color:rgba(111,202,133,.55)!important; color:#a8e2b4!important; background:rgba(111,202,133,.11)!important; }
.inventory-title-wrap { display:flex; gap:10px; align-items:center; min-width:0; }
.inventory-thumb { width:44px; height:54px; border-radius:9px; object-fit:contain; background:rgba(255,255,255,.035); }
.customer-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.settings-group { display:grid; gap:13px; padding:16px; border:1px solid rgba(255,255,255,.055); border-radius:16px; background:rgba(255,255,255,.018); }
.settings-group h3 { margin:0; color:var(--gold-2); font-family:Georgia,serif; font-weight:500; }
.switch-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.admin-store-status { display:inline-block; padding:7px 11px; border-radius:999px; border:1px solid var(--line); font-size:.72rem; font-weight:800; letter-spacing:.08em; }
.admin-store-status.is-open { color:#a8e2b4; border-color:rgba(111,202,133,.42); background:rgba(111,202,133,.09); }
.admin-store-status.is-closed { color:#f4aaa3; border-color:rgba(239,125,112,.42); background:rgba(239,125,112,.09); }
.settings-card select { width:100%; }

@media (max-width:1050px) {
  .metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .store-status-bar { align-items:flex-start; }
  .order-tools { width:100%; justify-content:stretch; }
  .compact-search { min-width:0; width:100%; }
  .order-tools .select-control { width:100%; max-width:none; }
  .switch-grid { grid-template-columns:1fr; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:430px) {
  .store-status-bar { flex-direction:column; }
  .store-status-bar .btn { width:100%; }
  .metrics { grid-template-columns:1fr 1fr; }
  .product-photo { min-height:145px; padding:10px; }
}


/* V0.4.3 · QR Yape, catálogo real, horarios y PWA */
.install-top-btn { border-color:rgba(201,161,84,.45); color:#f0cf86; }
.install-top-btn[hidden] { display:none !important; }
.install-modal-card { width:min(920px,calc(100vw - 28px)); }
.install-layout { display:grid; grid-template-columns:minmax(250px,.9fr) minmax(280px,1.1fr); gap:28px; align-items:center; padding:8px 2px 4px; }
.install-qr-card { background:#fff; color:#17100c; border-radius:22px; padding:18px; text-align:center; box-shadow:0 18px 50px rgba(0,0,0,.28); }
.install-qr-card img { width:100%; max-width:390px; height:auto; display:block; margin:0 auto 12px; image-rendering:auto; }
.install-qr-card strong { display:block; font-size:1rem; }
.install-qr-card small { display:block; margin-top:5px; color:#665b52; }
.install-copy { text-align:center; }
.install-copy .brand-mark { margin:0 auto 12px; }
.install-copy h3 { margin:.25rem 0 .6rem; font-size:1.6rem; }
.install-copy > p { color:var(--muted); line-height:1.55; }
.install-copy .btn { margin-top:10px; }
.install-note { font-size:.78rem; margin-top:14px; }
#downloadQrBtn { text-decoration:none; }
@media (max-width:700px) {
  .install-layout { grid-template-columns:1fr; gap:18px; }
  .install-qr-card { order:2; padding:14px; }
  .install-copy { order:1; }
  .install-qr-card img { max-width:270px; }
  .topbar__actions { gap:6px; }
  .install-top-btn { padding-inline:10px; }
}
@media (max-width:420px) {
  .install-top-btn { font-size:.76rem; }
  #roleToggleBtn { max-width:82px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
}

.schedule-note { margin: 0; line-height: 1.55; }


/* HANAN Pedidos V0.4.4 · refinamiento visual y operación */
.hero-products { min-height: 340px; display:block; }
.hero-products .glow { inset: 13% 2% 4%; background:radial-gradient(circle,rgba(214,173,91,.32),transparent 67%); }
.hero-product { position:absolute; bottom:0; z-index:2; width:auto; height:285px; object-fit:contain; filter:drop-shadow(0 26px 30px rgba(0,0,0,.52)); transition:transform .3s ease; }
.hero-product--left { left:1%; height:280px; transform:rotate(-5deg) translateY(14px); z-index:1; }
.hero-product--center { left:50%; height:325px; transform:translateX(-50%) translateY(2px); z-index:3; }
.hero-product--right { right:0; height:275px; transform:rotate(5deg) translateY(16px); z-index:2; }
.hero:hover .hero-product--left { transform:rotate(-7deg) translate(-5px,9px); }
.hero:hover .hero-product--center { transform:translateX(-50%) translateY(-5px); }
.hero:hover .hero-product--right { transform:rotate(7deg) translate(5px,10px); }

.whatsapp-contact-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid rgba(55,200,115,.38); background:linear-gradient(180deg,rgba(37,211,102,.16),rgba(18,94,53,.13)); color:#bff4d2; text-decoration:none; padding:9px 13px; }
.whatsapp-contact-btn:hover { border-color:rgba(55,200,115,.66); background:rgba(37,211,102,.21); }
.whatsapp-contact-btn svg { width:20px; height:20px; fill:#39d477; flex:none; }

.alert-status-btn { white-space:nowrap; }
.new-order-alert-modal { background:rgba(0,0,0,.82); }
.new-order-alert-card { position:relative; overflow:hidden; padding:28px 24px 24px; text-align:center; border-color:rgba(241,207,132,.55); background:radial-gradient(circle at 50% 0,rgba(214,173,91,.18),transparent 45%),#17110e; animation:alertCardPulse 1.35s ease-in-out infinite alternate; }
.new-order-alert-card::before { content:""; position:absolute; inset:0; pointer-events:none; border:2px solid rgba(214,173,91,.18); border-radius:inherit; }
.alert-bell { width:88px; height:88px; display:grid; place-items:center; margin:0 auto 12px; border-radius:50%; font-size:46px; background:linear-gradient(180deg,#f3d184,#c99538); color:#17100c; box-shadow:0 0 0 10px rgba(214,173,91,.08),0 18px 44px rgba(214,173,91,.24); animation:bellRing .7s ease-in-out infinite alternate; }
.new-order-alert-card h2 { margin:7px 0 16px; font-size:clamp(1.9rem,7vw,2.8rem); color:#fff4d6; letter-spacing:.035em; }
.new-order-alert-details { display:grid; gap:6px; margin:0 0 20px; padding:16px; border:1px solid rgba(214,173,91,.25); border-radius:16px; background:rgba(214,173,91,.07); }
.new-order-alert-details strong { color:var(--gold-2); font-size:1.45rem; }
.new-order-alert-details span { font-weight:800; }
.new-order-alert-details small { color:var(--muted); }
.new-order-alert-details em { margin-top:5px; color:#f0c978; font-style:normal; }
.new-order-alert-card .btn + .btn { margin-top:9px; }
@keyframes bellRing { from{transform:rotate(-8deg) scale(.98)} to{transform:rotate(8deg) scale(1.05)} }
@keyframes alertCardPulse { from{box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 0 rgba(214,173,91,0)} to{box-shadow:0 24px 70px rgba(0,0,0,.55),0 0 42px rgba(214,173,91,.20)} }
.attention-order { animation:orderAttention 1s ease-in-out 3; border-color:rgba(241,207,132,.75)!important; }
@keyframes orderAttention { 50%{box-shadow:0 0 0 4px rgba(214,173,91,.17),0 15px 35px rgba(0,0,0,.3)} }

.verify-payment-body { padding:20px; }
.verification-summary { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:16px; }
.verification-summary div { padding:11px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }
.verification-summary span { display:block; margin-bottom:4px; color:var(--muted); font-size:.72rem; }
.verification-summary strong { display:block; color:var(--cream); overflow-wrap:anywhere; }
.verification-check { display:flex!important; flex-direction:row!important; align-items:flex-start; gap:10px; padding:13px; border:1px solid rgba(214,173,91,.22); border-radius:13px; background:rgba(214,173,91,.055); line-height:1.45; }
.verification-check input { width:auto!important; margin-top:3px; flex:none; }
.verification-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:16px; }

.maintenance-zone { border-color:rgba(211,107,101,.23)!important; background:rgba(211,107,101,.045)!important; }
.maintenance-zone h3 { color:#f0a29d!important; }
.maintenance-copy { margin:0; line-height:1.55; }
.reset-orders-form { display:grid; gap:13px; padding:20px; }
.reset-orders-form label:not(.verification-check) { display:grid; gap:7px; color:var(--muted); }
.danger-message { display:grid; gap:6px; padding:14px; border:1px solid rgba(211,107,101,.27); border-radius:14px; background:rgba(211,107,101,.08); }
.danger-message strong { color:#f5b0ac; }
.danger-message span { color:var(--muted); line-height:1.45; font-size:.85rem; }

body.connection-offline #adminView::before { content:"Sin conexión con el servidor"; position:fixed; top:76px; left:50%; z-index:60; transform:translateX(-50%); padding:8px 13px; border-radius:999px; background:#6b2926; color:white; font-size:.75rem; box-shadow:var(--shadow); }

@media (max-width:760px) {
  .hero { padding-bottom:22px; }
  .hero__art.hero-products { display:block; min-height:235px; margin-top:-6px; }
  .hero-product--center { height:225px; }
  .hero-product--left { height:194px; left:11%; }
  .hero-product--right { height:190px; right:9%; }
  .verification-summary { grid-template-columns:1fr; }
  .new-order-alert-card { padding:24px 16px 18px; width:min(94vw,430px); }
  .alert-bell { width:76px; height:76px; font-size:39px; }
}
@media (max-width:430px) {
  .hero__art.hero-products { min-height:205px; }
  .hero-product--center { height:198px; }
  .hero-product--left { height:168px; left:6%; }
  .hero-product--right { height:165px; right:5%; }
  .verification-actions { grid-template-columns:1fr; }
  .whatsapp-contact-btn { width:100%; }
}

/* V0.4.4.2: estado de recuperación móvil */
.catalog-error-state{display:grid;gap:10px;justify-items:start}.catalog-error-state strong{color:var(--cream);font-size:1rem}.catalog-error-state span{color:var(--muted)}

/* V0.4.4.6 · Corrección puntual de viewport móvil.
   Conserva la maquetación visual estable anterior; solo evita zoom de campos. */
@media (max-width: 760px) {
  input:not([type="radio"]):not([type="checkbox"]),
  textarea,
  select {
    font-size: 16px;
  }
}


/* V0.4.4.7 · Dispositivos administrativos y diagnóstico Web Push */
.notification-zone { border-color:rgba(201,161,84,.24)!important; background:linear-gradient(180deg,rgba(201,161,84,.045),rgba(255,255,255,.012))!important; }
.notification-zone__head { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.notification-zone__head h3 { margin:0 0 5px; }
.notification-copy { margin:0; line-height:1.5; max-width:620px; }
.push-security-badge { flex:none; display:inline-flex; align-items:center; min-height:28px; padding:6px 10px; border-radius:999px; border:1px solid rgba(111,202,133,.38); background:rgba(111,202,133,.08); color:#a8e2b4; font-size:.7rem; font-weight:800; letter-spacing:.05em; }
.push-diagnostics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.push-diagnostic { min-width:0; padding:11px 12px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.022); }
.push-diagnostic span { display:block; color:var(--muted); font-size:.68rem; text-transform:uppercase; letter-spacing:.07em; }
.push-diagnostic strong { display:block; margin-top:5px; font-size:.86rem; overflow-wrap:anywhere; }
.push-diagnostic.is-ok strong { color:#a8e2b4; }
.push-diagnostic.is-warn strong { color:#f0c978; }
.push-diagnostic.is-bad strong { color:#f4aaa3; }
.notification-register-card { display:grid; gap:10px; padding:14px; border:1px solid rgba(255,255,255,.065); border-radius:14px; background:rgba(0,0,0,.11); }
.notification-register-card label { display:grid; gap:7px; color:var(--muted); }
.notification-register-card input { width:100%; }
.notification-actions { display:flex; gap:9px; flex-wrap:wrap; }
.authorized-devices-wrap { display:grid; gap:9px; }
.authorized-devices-title { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.push-devices-list { display:grid; gap:9px; }
.push-device-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:13px 14px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.02); }
.push-device-card.is-current { border-color:rgba(201,161,84,.38); background:rgba(201,161,84,.045); }
.push-device-main { min-width:0; display:grid; gap:4px; }
.push-device-main strong { color:var(--cream); }
.push-device-main small { color:var(--muted); overflow-wrap:anywhere; }
.push-device-meta { display:flex; gap:7px; flex-wrap:wrap; align-items:center; }
.push-device-status { display:inline-flex; align-items:center; padding:4px 7px; border-radius:999px; font-size:.67rem; font-weight:800; border:1px solid var(--line); }
.push-device-status.ok { color:#a8e2b4; border-color:rgba(111,202,133,.32); background:rgba(111,202,133,.07); }
.push-device-status.warn { color:#f0c978; border-color:rgba(240,201,120,.30); background:rgba(240,201,120,.06); }
.push-device-actions { display:flex; gap:7px; flex-wrap:wrap; justify-content:flex-end; }
.push-device-actions .btn { padding:8px 10px; }
@media (max-width:760px) {
  .notification-zone__head { flex-direction:column; }
  .push-diagnostics { grid-template-columns:1fr 1fr; }
  .notification-actions { display:grid; grid-template-columns:1fr; }
  .push-device-card { grid-template-columns:1fr; }
  .push-device-actions { justify-content:stretch; }
  .push-device-actions .btn { flex:1; }
}
@media (max-width:430px) { .push-diagnostics { grid-template-columns:1fr; } }
