:root { color-scheme: light; font: 16px/1.5 var(--font-text); color:#212623; background:#f2eee6; --wine:#622b36; --line:#ddcdb9; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; }
header { display:flex; gap:16px; justify-content:space-between; align-items:center; background:var(--wine); color:#fff7eb; border-bottom:3px solid #bc9a62; padding:16px max(20px,calc((100% - 1060px)/2)); }
header a { color:inherit; }
.brand { font:1.35rem var(--font-display); letter-spacing:.16em; text-decoration:none; }
.brand small { display:block; font: .59rem var(--font-text); letter-spacing:.22em; }
main { max-width:1100px; padding:32px 20px 56px; margin:auto; }
h1,h2,h3 { font-family:var(--font-display); font-weight:400; line-height:1.15; margin:0 0 .5em; }
h1 { font-size:clamp(2.4rem,6vw,4.4rem); color:var(--wine); margin-bottom:.15em; }
h2 { font-size:1.65rem; }
p { margin:.65em 0; }
.eyebrow { font-size:.72rem; font-weight:700; letter-spacing:.15em; color:#795339; }
.layout { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; margin-top:26px; }
section { background:#fffbf5; border:1px solid var(--line); border-radius:12px; padding:clamp(16px,3vw,26px); }
label { display:grid; gap:5px; font-weight:600; margin:0 0 14px; }
input,select,button { font:inherit; }
input,select { width:100%; min-width:0; border:1px solid #aa927b; border-radius:5px; background:white; padding:9px; }
button,.download { display:inline-block; border:1px solid var(--wine); border-radius:5px; padding:8px 12px; background:var(--wine); color:#fff; cursor:pointer; font-weight:600; }
button:disabled { opacity:.65; cursor:wait; }
button.secondary { background:transparent; color:var(--wine); }
form button { margin:0 4px 6px 0; }
:focus-visible { outline:3px solid #9b653c; outline-offset:3px; }
#qr { display:block; width:min(208px,100%); margin:12px 0; background:white; }
video { display:block; width:100%; max-height:260px; margin:12px 0; background:#211714; }
.hint, dl { font-size:.88rem; }
.section-header { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:start; gap:8px; }
article { margin-top:15px; padding-top:15px; border-top:1px solid var(--line); }
.badge { display:inline-block; background:#eadfce; color:#4f3524; padding:2px 8px; border-radius:999px; font-size:.8rem; font-weight:700; }
dl { display:grid; grid-template-columns: minmax(0,1fr) auto; gap:4px 8px; }
dd { margin:0; font-variant-numeric:tabular-nums; }
@media(max-width:720px) { .layout { grid-template-columns:1fr; } }

.staff-panel {
  min-height:100vh;
  background:radial-gradient(ellipse at top right,#f0e3d1,transparent 32rem), #f8f3eb;
}
.staff-panel header { min-height:68px; border-bottom:1px solid #b99357; }
.staff-nav {
  padding:7px 12px;
  border:1px solid #ba957b;
  border-radius:7px;
  font-size:.83rem;
  text-decoration:none;
}
.staff-nav:hover { background:#6b3541; }
.staff-intro {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 20px;
  padding-bottom:22px;
  border-bottom:1px solid var(--line);
}
.staff-intro .eyebrow, .staff-intro p:last-child { margin:0; }
.staff-intro p:last-child { color:#6d554b; }
.staff-intro h1 { font-size:clamp(2.65rem,6.2vw,4.25rem); margin:.05em 0 .1em; }
.staff-mode {
  border:1px solid #d5c3a9;
  border-radius:99px;
  padding:4px 11px;
  color:#6b4c35;
  background:#fff8ed;
  font-size:.79rem;
  font-weight:650;
}
.owner-locked { max-width:440px; margin-top:22px; }
.staff-session { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; font-size:.87rem; }
.staff-session button { font-size:.85rem; }
#panel-status:empty { display:none; }
.wallet-link { margin:0 0 8px; background:#21171b; border-color:#21171b; }
.staff-layout {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  grid-template-areas:"queue reader";
  gap:20px;
  align-items:start;
  margin-top:22px;
}
.staff-layout section { min-width:0; border-radius:16px; }
.staff-queue { grid-area:queue; }
.staff-queue .section-header { align-items:center; margin-bottom:16px; }
.queue-heading { display:flex; gap:9px; align-items:center; }
.queue-heading h2 { margin:0; }
.queue-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  min-height:24px;
  padding:1px 6px;
  border-radius:20px;
  color:#633743;
  background:#f3e6df;
  font:650 .76rem/1.1 var(--font-text);
  font-variant-numeric:tabular-nums;
}
.queue-sync { color:#526345; font-size:.75rem; font-weight:600; }
.queue-sync::before {
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  margin-right:6px;
  vertical-align:2px;
  background:#5f754b;
  border-radius:50%;
}
.staff-panel .order-ticket {
  padding:14px;
  margin:8px 0 0;
  border:1px solid #e7d9c9;
  border-radius:10px;
  background:#fffdfa;
}
.ticket-top { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:start; gap:8px; }
.ticket-top h3 { margin:0; font-size:1.35rem; color:#3e2526; }
.ticket-ref { margin:0 0 3px; color:#765e50; font-size:.78rem; font-weight:650; }
.ticket-ref, .scan-detail { font-variant-numeric:tabular-nums; }
.staff-panel .badge { flex:none; max-width:100%; padding:3px 9px; }
.staff-panel .badge[data-state="prep"] { color:#6a4318; background:#f8e8ca; }
.staff-panel .badge[data-state="ready"] { color:#385734; background:#e6eddb; }
.staff-panel .badge[data-state="delivered"] { color:#24523d; background:#e0f0e5; }
.staff-panel .badge[data-state="blocked"] { color:#872e30; background:#f9e4e0; }
.ticket-timing { margin:.6rem 0 0; color:#6d554b; font-size:.83rem; white-space:pre-line; }
.ticket-note { margin:.65rem 0 0; color:#7c3d2f; }
.ticket-adjustment { margin-top:9px; }
.ticket-adjustment form { margin-top:8px; }
.staff-panel .order-action { margin:10px 6px 0 0; font-size:.86rem; }
.empty-queue {
  margin:0;
  padding:18px;
  color:#6d554b;
  border:1px dashed #d7c5b0;
  border-radius:10px;
  background:#fcf7ef;
}
#queue-status { margin:.75rem 0 0; font-size:.87rem; }
#queue-status:empty { margin:0; }
.staff-panel summary { cursor:pointer; color:#643b43; font-size:.87rem; font-weight:650; }
.staff-panel summary:hover { color:#382027; }
#order-history { margin-top:16px; padding-top:12px; border-top:1px solid #e7d9c9; }
#closed-count { margin-left:4px; }
.staff-reader { grid-area:reader; padding:0; }
.reader-top {
  padding:clamp(17px,3vw,24px);
  color:#fff7eb;
  background:linear-gradient(135deg,#652a3a,#431725);
  border-radius:15px 15px 0 0;
}
.reader-heading { display:flex; align-items:center; gap:13px; }
.reader-heading svg { flex:none; color:#e8c995; }
.reader-heading .eyebrow { color:#e8c995; margin:0 0 3px; font-size:.65rem; }
.reader-heading h2 { margin:0; font-size:clamp(1.65rem,3vw,2rem); }
#scanner-input { margin-top:17px; }
#scanner-input label { margin:0; font-size:.84rem; }
#scanner-input input {
  min-height:44px;
  border:1px solid #d2b592;
  border-radius:8px;
  padding:9px 11px;
  background:#fffaf2;
  color:#382027;
  font-size:1rem;
}
#scanner-input input::placeholder { color:#755d53; }
#scanner-input input:focus { outline:2px solid #efcb91; outline-offset:2px; }
.reader-tools { padding:14px clamp(17px,3vw,24px); }
.reader-actions { display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; }
.reader-actions button { font-size:.86rem; }
.reader-actions video { margin:0; border-radius:8px; }
#image-options[open] { flex-basis:100%; order:1; }
#image-options label { margin:8px 0 0; font-size:.83rem; }
#image-options input { font-weight:400; }
#candidate { margin:0 0 12px; }
#scan-status:not(:empty) {
  margin-bottom:12px;
  padding:10px 12px;
  color:#543a2e;
  background:#f5ebe0;
  border-left:3px solid #a17b58;
  border-radius:5px;
  font-size:.88rem;
}
#scan-status[data-tone="success"]:not(:empty) { color:#23513b; background:#e8f2e8; border-color:#467e5f; }
#scan-status[data-tone="error"]:not(:empty) { color:#812d30; background:#f9e8e3; border-color:#ac5050; }
.scan-detail { display:block; margin-top:2px; }
@media(max-width:720px) {
  .staff-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"reader" "queue"; gap:14px; }
  .staff-panel main { padding:22px 14px 36px; }
  .staff-panel header { padding-inline:14px; }
  .staff-intro { padding-bottom:16px; }
}

.layout.has-paid-receipt { grid-template-columns: 1fr; max-width: 1000px; }
.has-paid-receipt > section:first-child { order: 1; padding: 0; border: 0; background: transparent; }
.has-paid-receipt #selection { display: none; }
#receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  grid-column: 1 / -1;
  border-top: 4px solid var(--wine);
}
#receipt-title { font-size: clamp(2rem, 5vw, 3.6rem); color: var(--wine); margin-bottom: .25em; }
.receipt-items { padding: 14px 0; border-block: 1px solid var(--line); font-size: 1rem; }
.receipt-pickup { min-width:0; text-align: center; }
.receipt-pickup .download { text-decoration: none; }
#receipt-refunds { color: var(--wine); font-weight: 600; font-size: .88rem; }
#receipt-ready { padding:12px; border-radius:8px; color:#24523d; background:#e0f0e5; font-weight:600; }
@media(max-width:600px) {
  #receipt { grid-template-columns: 1fr; }
  .receipt-pickup { border-inline-start: 0; border-top: 1px dashed var(--line); padding: 16px 0 0; }
}

.pass-preview-label { margin:0 0 10px; color:#6e5b51; font-size:.77rem; letter-spacing:.04em; }
.pickup-pass { overflow:hidden; width:100%; max-width:358px; margin:0 auto; padding:0; text-align:left; background:#1b342d; color:#f2eee6; border:0; border-radius:17px; }
.pass-cap { position:relative; display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:89px; padding:20px 20px 13px; background:#622b36; }
.pass-cap::after { content:""; position:absolute; z-index:1; inset:auto 0 -20px; height:22px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='22' viewBox='0 0 60 22'%3E%3Cpath d='M0 0H60V2C54 23 6 23 0 2Z' fill='%23622b36'/%3E%3Cpath d='M0 2C6 23 54 23 60 2' fill='none' stroke='%23d4ba94' stroke-width='1.2'/%3E%3C/svg%3E"); background-size:20% 22px; background-repeat:repeat-x; }
.pass-brand { display:flex; align-items:center; gap:10px; min-width:0; font:26px/1.1 var(--font-display); letter-spacing:.14em; }
.pass-brand small { display:block; margin-top:5px; font:600 9px/1.2 var(--font-text); letter-spacing:.36em; color:#d4ba94; }
.pass-goat { flex:none; width:27px; height:34px; background:#f2eee6; -webkit-mask:url("assets/aurum-goat.png") center/contain no-repeat; mask:url("assets/aurum-goat.png") center/contain no-repeat; }
.pass-order { flex:none; text-align:right; color:#f2eee6; }
.pass-order span,.pass-item>span { display:block; margin-bottom:4px; color:#d4ba94; font-size:10px; line-height:1.2; letter-spacing:.12em; font-weight:650; }
.pass-order strong { font-size:17px; font-variant-numeric:tabular-nums; }
.pass-front { min-height:465px; padding:30px 21px 18px; }
.pass-seal { display:block; width:154px; height:154px; margin:0 auto 14px; }
.pass-state-block p { margin:0 0 3px; color:#d4ba94; font-size:10px; letter-spacing:.09em; font-weight:600; }
.pass-state-block h3 { margin:0; color:#f2eee6; font:650 31px/1.1 var(--font-text); }
.pickup-pass[data-state="Listo"] .pass-state-block h3 { color:#d4ba94; }
.pass-item { margin:14px 0 0; }
.pass-item strong { display:block; font-size:15px; line-height:1.35; font-weight:550; }
.pass-code { width:156px; box-sizing:border-box; margin:20px auto 0; padding:8px 8px 6px; background:#fff; color:#212623; text-align:center; border-radius:10px; }
.receipt-pickup .pass-code #qr { width:140px; max-width:100%; margin:0; }
.pass-code strong { display:block; font-size:11px; letter-spacing:.03em; line-height:1.4; margin-top:2px; }
.pass-instruction { margin:10px 0 0; text-align:center; color:#f2eee6; font-size:11px; line-height:1.4; }
.pass-detail-view { padding:36px 21px 20px; min-height:465px; }
.pass-detail-view h3 { margin:0 0 20px; color:#f2eee6; font:600 21px/1.2 var(--font-text); }
.pass-detail-view dl { display:block; margin:0; }
.pass-detail-view dt { margin:14px 0 3px; color:#d4ba94; font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
.pass-detail-view dd { color:#f2eee6; font-size:14px; overflow-wrap:anywhere; }
.pass-details-button { display:flex; align-items:center; justify-content:space-between; width:100%; border:0; border-top:1px solid #d4ba9445; padding:12px 20px; border-radius:0; color:#f2eee6; background:#152b25; font-size:.8rem; }
.pass-details-button:hover { background:#233d33; }
.pass-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:14px; }
.pass-actions .download { margin:0; font-size:.82rem; }

.journey-demo main { max-width:1160px; padding-top:28px; }
.journey-demo header { padding-block:15px; }
.journey-mode { font-size:.78rem; border:1px solid #d4ba9477; border-radius:99px; padding:4px 10px; }
.journey-intro h1 { font-size:clamp(2.4rem,5vw,3.65rem); max-width:780px; }
.journey-intro>p:last-child { color:#67564c; max-width:700px; }
.journey-progress { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:24px 0; padding:0; list-style:none; }
.journey-progress li { display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:2px solid #d6c7b3; color:#76665d; font-size:.86rem; }
.journey-progress li span { display:grid; flex:none; place-items:center; width:26px; height:26px; border-radius:50%; background:#e9e0d4; font-size:.76rem; }
.journey-progress li[aria-current] { color:#622b36; border-color:#622b36; font-weight:650; }
.journey-progress li[aria-current] span { color:#fff9ed; background:#622b36; }
.journey-progress li[data-done] { color:#335441; border-color:#7b947a; }
.journey-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:22px; align-items:start; }
.journey-layout>section { scroll-margin-top:20px; padding:22px; border-radius:14px; background:#fffbf5; }
.journey-owner { min-height:0; }
.journey-customer .layout { display:block; margin:18px 0 0; }
.journey-customer #receipt { display:block; padding:0; border:0; background:transparent; }
.journey-customer .layout.has-paid-receipt { display:flex; flex-direction:column; align-items:stretch; gap:18px; }
.journey-customer .layout.has-paid-receipt>section:first-child { align-self:center; }
.journey-customer .receipt-order { padding-bottom:14px; }
.journey-customer #receipt-title { font-size:1.6rem; display:inline; margin-right:9px; }
.journey-customer .receipt-order>.eyebrow { display:none; }
.journey-customer .receipt-items { margin:12px 0; padding:8px 0; }
.journey-customer .receipt-pickup { border:0; padding:0; }
.journey-owner .staff-layout { display:flex; flex-direction:column; margin-top:20px; gap:16px; }
.journey-owner .staff-layout>section { width:100%; box-sizing:border-box; }
.journey-owner .staff-queue { padding:0; border:0; background:transparent; }
.journey-owner .queue-heading h2 { font-size:1.3rem; }
.journey-owner .queue-sync { font-size:.67rem; }
.journey-owner .staff-reader { overflow:hidden; padding:0; }
.journey-owner .reader-top { background:#622b36; padding:20px; }
.journey-owner .reader-top h2 { font-size:1.5rem; }
.reader-demo-copy { font-size:.83rem; color:#f0dfc9; margin:8px 0 14px; }
#demo-scan { display:block; width:100%; color:#4b2630; border-color:#d4ba94; background:#f2eee6; }
.journey-demo #scanner-input { display:none; }
.journey-reader-options>summary { cursor:pointer; font-size:.82rem; font-weight:600; color:#643b43; }
.journey-reader-options[open]>summary { margin-bottom:12px; }
.journey-notice { color:#214a36; background:#e8f0e4; }
.journey-footnote { margin-top:24px; color:#6d5a50; font-size:.79rem; max-width:760px; }
.journey-roles { display:none; }
@media(max-width:820px) {
  .journey-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
  .journey-demo main { padding:22px 14px 36px; }
  .journey-layout>section { padding:18px; }
  .journey-roles { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 18px; }
  .journey-roles a { padding:8px 12px; color:#622b36; background:#fffbf5; border:1px solid #d7c7b2; border-radius:7px; font-size:.83rem; text-decoration:none; }
  .journey-progress { gap:6px; }
  .journey-progress li { flex-direction:column; align-items:start; gap:6px; font-size:.75rem; }
}
@media(prefers-reduced-motion:no-preference) { .pickup-pass { transition:box-shadow .2s ease; } .pickup-pass[data-state="Listo"] { box-shadow:0 0 0 3px #d4ba9470; } }
/* ritual-1: contacto del cliente en el ticket */
.ticket-contact { margin:.45rem 0 0; color:#4f3f38; font-size:.83rem; font-weight:600; }
.order-ticket .order-action + .order-action { margin-left:.5rem; }
/* ritual-3: cliente en el punto de recogida */
.order-ticket.order-arrived { border-color:#2f5a45; box-shadow:inset 4px 0 0 #2f5a45; }
.ticket-arrived { display:block; width:fit-content; margin:.55rem 0 0; padding:.3rem .6rem; border-radius:999px; background:#e3eee6; color:#1f4a35; font-size:.83rem; font-weight:700; }
/* ritual-4: hora de recogida visible, programados y opiniones */
.ticket-pickup { display:block; width:fit-content; margin:.15rem 0 .45rem; padding:.28rem .6rem; border-radius:6px; background:#f1e6d6; color:#4a2a1f; font-size:.95rem; font-weight:800; letter-spacing:.01em; }
.ticket-pickup.scheduled { background:#622b36; color:#fff6e8; }
.scheduled-orders { margin-top:1rem; border-top:1px solid #e3d8c8; padding-top:.8rem; }
.scheduled-orders summary { cursor:pointer; font-weight:700; color:#622b36; min-height:36px; }
.scheduled-note { margin:.3rem 0 .8rem; color:#6d554b; font-size:.83rem; }
#scheduled-list { display:grid; gap:.8rem; }
.feedback-table { width:100%; max-width:560px; border-collapse:collapse; margin:.4rem 0 1rem; font-size:.9rem; }
.feedback-table th,.feedback-table td { padding:.5rem .4rem; border-bottom:1px solid #e9dfd0; text-align:left; }
.feedback-table th { font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; color:#6d554b; }
.feedback-table .num { text-align:right; font-variant-numeric:tabular-nums; font-weight:700; }
.feedback-entry-value { font-weight:800; color:#622b36; }
/* v11-1: entrada al mostrador y dispositivos */
.access-form { display:grid; gap:.45rem; max-width:420px; margin-top:1rem; }
.access-form label { font-weight:700; font-size:.85rem; color:#4f3f38; margin-top:.4rem; }
.access-form input { min-height:46px; padding:.65rem .8rem; border:1px solid #cdbca6; border-radius:8px; background:#fffdf8; font:inherit; font-size:16px; }
.access-form input:focus-visible { outline:3px solid #b58c56; outline-offset:1px; }
.access-form .order-action { margin-top:.8rem; justify-self:start; }
#setup-qr { width:210px; height:210px; border-radius:8px; background:#fff; }
.access-secret code { font-size:.95rem; letter-spacing:.06em; word-break:break-all; }
.access-status { min-height:1.3em; font-weight:700; color:#622b36; }
.device-entry .order-action { margin-top:.4rem; }
.devices-audit-title { margin:1.2rem 0 .4rem; font-size:.95rem; }
.devices-audit { margin:0; padding-left:1.1rem; font-size:.82rem; color:#5b4a42; display:grid; gap:.2rem; }

/* Reembolso por bebida y estado de reembolso en el ticket */
.ticket-refund { margin-top:.7rem; border-top:1px dashed #d8cbb8; padding-top:.5rem; }
.ticket-refund summary { cursor:pointer; font-weight:700; color:#622b36; min-height:36px; }
.ticket-refund-hint { margin:.2rem 0 .5rem; font-size:.8rem; color:#5b4a42; }
.ticket-refund .order-action { display:block; margin:.35rem 0 0; }
.ticket-refunded { margin:.5rem 0 0; font-size:.83rem; font-weight:700; color:#8f2323; }
