:root{font-family:Arial,Helvetica,sans-serif;color:#eef3eb;background:#080b08;color-scheme:dark;--green:#98fa52;--line:#293626;--muted:#a4b29b}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;align-items:center;padding:24px 32px;border-bottom:1px solid var(--line);gap:18px}a{color:var(--green);text-decoration:none}.brand{color:#eef3eb;font-size:17px;font-weight:800;letter-spacing:.12em}.brand span{margin-left:14px;color:var(--green)}header div{display:flex;gap:18px;align-items:center;font-size:12px}.badge{border:1px solid #425337;border-radius:30px;padding:9px 13px;font:11px monospace;color:#b9cdae;white-space:nowrap}main{display:grid;grid-template-columns:235px minmax(0,1fr);max-width:1440px;margin:auto;min-height:80vh}aside{border-right:1px solid var(--line);padding:30px 22px}aside button{width:100%;text-align:left;background:transparent;border:1px solid transparent;color:#acbaa3;margin:5px 0}aside button.selected{background:#182511;border-color:#3b572a;color:var(--green)}article{padding:34px;min-width:0}.label{font:11px monospace;letter-spacing:.18em;color:var(--green);margin:0 0 18px}.heading{display:flex;justify-content:space-between;align-items:center;gap:18px}h1{font-size:clamp(28px,4vw,50px);margin:0 0 22px;letter-spacing:-.05em}h2{font-size:22px;letter-spacing:-.025em;margin:20px 0}.notice{padding:18px;border:1px solid #526e3f;border-radius:12px;background:#172512;line-height:1.55;margin:12px 0 22px}.notice.error{background:#2c1811;border-color:#a06440;color:#ffd5bb}.muted,small{color:var(--muted);font-size:12px;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.card{border:1px solid var(--line);background:#10170e;border-radius:15px;padding:24px;margin:16px 0}.event h3{font-size:28px;margin:10px 0 22px}.event p{color:#becbb4;line-height:1.5;font-size:14px}.event .label{font-size:10px;color:var(--green)}button{font:600 14px Arial;border:1px solid var(--green);background:var(--green);color:#112006;border-radius:9px;padding:14px 18px;cursor:pointer;min-height:48px}button:disabled{opacity:.45;cursor:default}label{display:block;font-size:12px;margin:18px 0 8px;color:#cbd7c3}input,select{display:block;width:100%;background:#080e06;border:1px solid #425337;border-radius:8px;padding:14px;color:#f2f6ed;margin-top:9px;font:14px Arial;min-height:48px}input:focus,select:focus{outline:2px solid var(--green);outline-offset:2px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}form button{margin-top:20px}.legacy{display:block;margin-top:40px;margin-bottom:15px}.scope{margin-top:34px;font-size:13px;line-height:1.7}.scope b{color:var(--green)}footer{padding:24px 32px;border-top:1px solid var(--line);color:#7f9174;font:11px monospace}.row{padding:16px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.65;overflow-wrap:anywhere}[hidden]{display:none!important}@media(max-width:760px){header{padding:20px;align-items:flex-start}.brand{font-size:13px;white-space:nowrap}.brand span{margin-left:5px}header div{flex-direction:column;align-items:flex-end;gap:10px}main{grid-template-columns:1fr}aside{border-right:0;border-bottom:1px solid var(--line);padding:20px;display:flex;flex-wrap:wrap;gap:8px}aside .label,aside small{width:100%;margin-bottom:6px}aside button{width:auto;font-size:12px;padding:12px}.legacy{margin:12px 0}article{padding:24px 20px}.heading{align-items:flex-start;flex-direction:column;margin-bottom:20px}h1{font-size:37px;margin-bottom:0}.fields{grid-template-columns:1fr}.card{padding:20px}}

.brand{display:flex;align-items:center;gap:14px}.brand img{display:block;width:180px;height:96px;object-fit:contain}.brand span{margin-left:0}@media(max-width:760px){.brand{gap:8px}.brand img{width:135px;height:76px}}

.pos-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px}.product{padding:25px;min-height:110px;background:#182b0e;color:#c9ffad;white-space:normal}.check{display:flex;align-items:center;gap:12px}.check input{width:24px;min-height:24px;margin:0}#pos button{margin:5px}#posPrintControls button:disabled{opacity:.35}#printReceipt{width:80mm;max-width:100%;padding:4mm;background:white;color:black;margin:25px auto;font:13px Arial;text-align:center;overflow-wrap:anywhere}#printReceipt h2{font-size:18px;margin:8px 0}#printReceipt h3{font-size:15px}#printReceipt p{line-height:1.4;margin:8px 0}#printReceipt canvas{width:52mm;height:52mm;max-width:100%;image-rendering:pixelated}#printReceipt.paper58{width:58mm;padding:3mm}#printReceipt.paper58 canvas{width:45mm;height:45mm}.receipt-line{text-align:left;border-top:1px dashed black;padding-top:7px}.receipt-small{font-size:10px}@media(max-width:800px){.pos-layout{grid-template-columns:1fr}}@media print{@page{margin:0;size:auto}html,body{background:white!important;color:black!important;margin:0!important;padding:0!important}body>*{display:none!important}body>#printReceipt{display:block!important;width:80mm;max-width:none;padding:4mm;margin:0;box-shadow:none}body>#printReceipt.paper58{width:58mm;padding:3mm}#printReceipt *{color:black!important}#printReceipt{break-inside:avoid}a:after{content:none!important}}

/* LA FIESTA CORE — Diseño futurista de impresión */
#posPrintControls button {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .2s ease,
              background .2s ease, border-color .2s ease;
}

#posPrint {
  background: linear-gradient(135deg, #914cff, #6334e8);
  border: 1px solid #ac7aff;
  color: #fff;
  box-shadow: 0 4px 18px #763df533;
}

#posPrint:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px #914cff80;
}

#posPrintOk {
  background: #173c32;
  border-color: #36b98a;
  color: #b5ffe1;
}

#posPrintFailed {
  background: #3b242b;
  border-color: #a95168;
  color: #ffd0dc;
}

#posReprint button {
  background: #252738;
  border-color: #65618e;
  color: #f1edff;
}

#posPrintControls button:active:not(:disabled) {
  transform: scale(.97);
}

#posPrintControls button:focus-visible {
  outline: 3px solid #c6a7ff;
  outline-offset: 3px;
}

#posPrintControls button:disabled {
  opacity: .4;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  #posPrintControls button {
    transition: none;
  }
}

/* LA FIESTA CORE — Rediseño global morado */
:root {
  --green: #a978ff;
  --line: #302448;
  --muted: #aaa0bf;
  background: #090611;
  color: #f3efff;
}

body {
  background: radial-gradient(ellipse at 85% 0%, #24113e 0%, #090611 55%);
  color: #f3efff;
}

.card {
  background: #151022;
  border-color: #35264e;
  box-shadow: 0 8px 32px #00000030;
}

aside {
  background: #100b1c;
}

aside button.selected {
  background: #2c1948;
  border-color: #7947c7;
  color: #d8baff;
}

button:not(#posPrintOk):not(#posPrintFailed) {
  background: linear-gradient(135deg, #a05cff, #6c35db);
  border-color: #a978ff;
  color: white;
}

input, select {
  background: #100b1b;
  border-color: #493465;
  color: #f3efff;
}


/* Carta de barra: botones táctiles, categorías y pedido lateral. */
#pos .pos-layout{grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}#pos .pos-menu-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}#pos .pos-menu-heading h3{font-size:25px;letter-spacing:-.04em;margin:5px 0}#pos .pos-menu-heading .label{margin:0;font-size:9px}#pos .pos-mode{font:9px monospace;letter-spacing:.14em;padding:8px 10px;color:#d5bcff;border:1px solid #7450a4;border-radius:5px}#pos .pos-search-label{font-size:11px;margin:14px 0 18px}#pos .pos-search-label input{min-height:49px;margin-top:8px;border-radius:8px}#pos .pos-categories{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}#pos .pos-categories .pos-category{background:#171120;border:1px solid #433152;color:#c6b9d7;border-radius:6px;font-size:11px;min-height:38px;padding:9px 13px;margin:0}#pos .pos-categories .pos-category[aria-pressed=true]{background:#a775f3;color:#130b20;border-color:#cba8ff;font-weight:800}#pos #posProducts{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px}#pos #posProducts .product{--tile:#a9ed70;display:flex;flex-direction:column;align-items:stretch;text-align:left;white-space:normal;min-height:190px;margin:0;padding:18px;border-radius:11px;color:#edf5e7;background:linear-gradient(145deg,#243021,#101810 70%);border:1px solid #3e5936;box-shadow:inset 0 1px #c9ff9210,0 4px 14px #0003;transition:transform .15s,border-color .15s,box-shadow .15s}#pos #posProducts .product[data-category="Cervezas"]{--tile:#f4c36c;background:linear-gradient(145deg,#352919,#19140e 70%);border-color:#65502e}#pos #posProducts .product[data-category="Sin alcohol"]{--tile:#83dce5;background:linear-gradient(145deg,#173139,#0e191c 70%);border-color:#31545c}#pos #posProducts .product[data-category="Promos"]{--tile:#c8a3ff;background:linear-gradient(145deg,#35224d,#191020 70%);border-color:#7853a4}#pos #posProducts .product:hover{transform:translateY(-2px);border-color:var(--tile);box-shadow:0 6px 22px #0005}#pos #posProducts .product:active{transform:translateY(1px)}#pos #posProducts .product-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:15px}.product-icon{width:35px;height:35px;fill:none;stroke:var(--tile);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.product-badge{color:var(--tile);border:1px solid currentColor;border-radius:4px;font:8px monospace;letter-spacing:.04em;padding:5px;text-align:right}.product-name{font-size:14px;font-weight:700;line-height:1.3;letter-spacing:-.015em}.product-detail{font-size:10px;color:#acb5aa;line-height:1.4;margin:7px 0 16px}.product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;gap:7px}.product-price{font-size:23px;font-weight:800;letter-spacing:-.04em;color:var(--tile)}.product-add{height:23px;width:23px;border:1px solid currentColor;display:grid;place-items:center;border-radius:5px;color:var(--tile);font-size:19px;font-weight:400}#pos #posSale{position:sticky;top:20px;margin-top:0;padding:23px;background:#171121;border:1px solid #57416f}#pos .pos-cart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #3b2b4b;padding-bottom:15px}#pos .pos-cart-heading h3{font-size:19px;letter-spacing:-.035em;margin:0}#pos #posClear{padding:7px 10px;min-height:34px;background:transparent;color:#bfb2cd;border:1px solid #4e3a60;font-size:10px;margin:0}#pos .pos-cart-line{display:grid;grid-template-columns:1fr auto;gap:12px;border-bottom:1px solid #33263f;padding:17px 0}.pos-cart-info{grid-column:1/-1}.pos-cart-name{font-size:13px;line-height:1.4;margin:0 0 6px}.pos-cart-unit{font-size:10px;color:#aa9db7}.pos-quantity{display:flex;align-items:center;gap:11px}.pos-quantity-value{font:13px monospace;min-width:15px;text-align:center}#pos .pos-quantity button{height:32px;min-height:32px;width:32px;padding:0;margin:0;background:#281a36;border:1px solid #614278;border-radius:6px;color:#e6d1ff;font-size:20px}#pos .pos-line-total{font-size:16px;letter-spacing:-.03em;align-self:center}.pos-cart-empty{font-size:12px;color:#a99cb5;line-height:1.8;padding:18px 0}#pos #posTotal{font-size:22px;font-weight:800;letter-spacing:-.04em;line-height:1.5;border-top:1px solid #4a365e;padding-top:20px;margin-top:24px}#pos #posSale>button{width:100%;min-height:55px;margin:18px 0 10px;font-size:14px;border-radius:7px}@media(max-width:1100px){#pos .pos-layout{grid-template-columns:minmax(0,1fr) 295px}#pos #posProducts{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}#pos #posProducts .product{padding:15px;min-height:180px}.product-price{font-size:21px}}@media(max-width:960px){#pos .pos-layout{grid-template-columns:1fr}#pos #posSale{position:static}#pos #posProducts{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}@media(prefers-reduced-motion:reduce){#pos #posProducts .product{transition:none}}

/* Botón Google y enlaces de operación contenidos en el panel. */
#googleButton{max-width:320px;min-height:44px;margin-top:18px;overflow:hidden}#googleButton svg{width:20px;height:20px}aside>a:not(.brand){display:block;margin-block:13px;font-size:13px;line-height:1.5}#googleButton iframe{max-width:100%}
