@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--paper:#f7eedb;--cream:#fff9eb;--ink:#35241b;--muted:#665343;--red:#bf241c;--gold:#ffca2b;--line:#dfccb0;font:16px/1.5 "DM Sans",system-ui,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}
strong,b{font-weight:600}
body{margin:0}
a{color:inherit}
:focus-visible{outline:3px solid var(--red);outline-offset:4px}
.wrap{width:min(1150px,calc(100% - 44px));margin-inline:auto}
.header{position:sticky;top:0;z-index:5;background:var(--paper);border-bottom:1px solid var(--line)}
.nav,.footer-inner,.section-head,.staff-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.nav{min-height:76px}
nav{display:flex;align-items:center;gap:22px;font-weight:600}
nav a,.brand{text-decoration:none}
.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-weight:700;font-size:1.25rem}
.brand img{object-fit:contain}
.button,button{display:inline-flex;justify-content:center;align-items:center;min-height:45px;padding:9px 16px;border:1px solid transparent;border-radius:6px;background:var(--gold);color:var(--ink);font:inherit;font-weight:700;text-decoration:none;cursor:pointer}
button:disabled{opacity:.6;cursor:wait}
.red{background:var(--red);color:#fff}
.outline{background:transparent;border-color:currentColor}
.hero{background:radial-gradient(ellipse at 90% 28%,#ffe09a,transparent 60%);border-bottom:1px solid var(--line)}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:36px;min-height:580px;padding-block:56px}
.hero-photo{height:100%;min-height:390px;position:relative;overflow:hidden;border-radius:18px 82px 18px 18px;background:var(--gold);box-shadow:10px 10px var(--gold)}
.hero-photo img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:60% center}
.eyebrow{text-transform:uppercase;font-weight:700;letter-spacing:.13em;color:var(--red);font-size:.86rem}
h1,h2,h3{font-family:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;line-height:.98;margin:0 0 .35em;font-weight:800}
h1{font-size:clamp(3.2rem,8vw,7rem);letter-spacing:-.015em;text-transform:uppercase}
h2{font-size:clamp(2.4rem,5vw,4.25rem)}
h3{font-size:1.8rem}
.hero h1 strong{color:var(--red)}
.hero p{max-width:30rem;font-size:1.15rem}
.actions{display:flex;flex-wrap:wrap;gap:10px}
.section{padding-block:58px}
.local{background:var(--gold);scroll-margin-top:90px}
.local-map{margin-top:24px;scroll-margin-top:140px;border-radius:12px;overflow:hidden;background:var(--cream);border:1px solid var(--line)}
.map-canvas{height:clamp(280px,50vw,420px);isolation:isolate;background:var(--paper)}
.map-canvas iframe{display:block;width:100%;height:100%;border:0}
.map-caption{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 16px}
.map-caption img{width:44px;height:44px;object-fit:contain}
.map-caption p{margin:0}
.map-caption a{margin-left:auto}
.map-logo{box-sizing:border-box;object-fit:contain;border:2px solid white;border-radius:50%;background:white;box-shadow:0 2px 8px #0005}
.local-grid,.shop{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.shop{grid-template-columns:minmax(0,1fr) minmax(245px,320px);align-items:start}
.card,.cart,.track,.staff-card{background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:20px}
.card-grid,.staff-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:12px}
.card{display:flex;flex-direction:column}
.card p,.muted{color:var(--muted)}
.card-controls,.cart-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.card-controls{margin-top:auto;padding-top:10px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 23px}
.chips button{background:var(--cream);border-color:var(--line)}
.chips button[aria-pressed=true]{background:var(--gold)}
.cart{position:sticky;top:94px;padding:14px}
.cart h3{margin:0 0 8px}
#cart-items p,#advance-note{margin:6px 0 9px}
#cart-items .cart-line{margin-bottom:4px}
#order-form{gap:7px}
#order-form label{display:grid;gap:3px;min-width:0;font-size:.9rem;line-height:1.3}
#order-form .order-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#order-form [data-delivery-address]:not([hidden]){display:grid;gap:7px}
#order-form :is(input:not([type=hidden]),select){height:34px;min-height:34px;padding:4px 8px;line-height:1.2}
#order-form textarea{min-height:40px;padding:4px 8px;line-height:1.15}
@media(pointer:coarse){
  #order-form :is(input:not([type=hidden]),select){height:38px;min-height:38px}
  #order-form :is(input,select,textarea){font-size:16px}
}
#order-form .slot-picker{margin:0}
#order-form .feedback{margin:0}
#order-form .feedback:empty{display:none}
.cart-line{margin-bottom:10px}
.cart-line button{min-height:32px;padding:2px 9px}
form{display:grid;gap:10px}
input,select{width:100%;min-height:45px;font:inherit;border:1px solid var(--line);background:#fffdf7;padding:8px 10px;border-radius:6px;color:var(--ink)}
label{font-weight:600}
.status,.feedback{color:var(--red);font-weight:600}
.track{max-width:680px}
.tracking-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}
.notices{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:6px}
.notices:empty{display:none}
.notices li{background:var(--gold);border-radius:6px;padding:8px 12px;font-weight:700}
.staff-display .header,.staff-display .footer{display:none}
.staff-display .admin-toolbar{top:0}
.staff-display :is(.staff-head,.admin-toolbar) .actions{gap:6px}
.staff-display :is(.staff-head,.admin-toolbar) .actions :is(button,.button){min-height:36px;padding:5px 9px;font-size:.85rem;white-space:nowrap}
.staff-display :is(.staff-head,.admin-toolbar) .actions :is(button,.button):not(:disabled):is(:hover,:focus-visible){background:var(--red);color:#fff;border-color:var(--red)}
@media(pointer:coarse){.staff-display :is(.staff-head,.admin-toolbar) .actions :is(button,.button){min-height:44px}}
.staff-display .notices{position:fixed;z-index:40;top:12px;right:12px;width:max-content;max-width:calc(100vw - 24px);margin:0;pointer-events:none}
.staff-display .notices li{box-shadow:0 4px 14px #35241b38;border:1px solid var(--line)}
.category-photo{display:block;width:100%;height:clamp(120px,22vw,240px);object-fit:cover;border-radius:12px;margin-bottom:14px}
.service,.counters{margin-bottom:16px}
.counters strong,.staff-note{background:#ffe4a0;padding:8px 12px;border-radius:6px}
.availability{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:8px;padding:10px 0}
.availability-group{min-width:0;margin:10px 0;padding:0 12px;border:1px solid var(--line);border-radius:6px}
.availability-group legend{padding:0 5px;font-weight:700}
.check{display:flex;align-items:center;gap:8px}
.check input{width:20px;min-height:20px;accent-color:var(--red)}
summary{cursor:pointer;font-weight:700;margin-bottom:8px}
.staff-card details{margin-top:12px}
textarea{width:100%;min-height:64px;resize:vertical;font:inherit;border:1px solid var(--line);border-radius:6px;padding:8px;background:#fffdf7}
.kitchen li{font-size:1.2rem}
.kitchen button{min-height:54px}
:root:fullscreen body:has(.kitchen) .header,
:root:fullscreen body:has(.kitchen) .footer{display:none}
.admin-toolbar{position:sticky;top:76px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:var(--cream);border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:24px;box-shadow:0 5px 12px #35241b12}
.admin-toolbar nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}
.admin-toolbar nav a{padding:7px 10px;border-radius:6px}
.admin-toolbar nav a[aria-current="page"]{background:var(--gold)}
.admin-title{font-size:clamp(2.35rem,6vw,4rem);text-transform:none}
.admin-nav-group small{display:block;font-weight:700;color:var(--muted)}
.admin-nav-group div{display:flex;flex-wrap:wrap}
.admin-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}
.staff-display:has(.admin-toolbar) form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]),select){height:45px;min-width:0;max-width:100%;display:block}
.staff-display:has(.admin-toolbar) form input[type=file]{padding-block:5px}
.admin-fields>label{min-width:0}
#menu-product-fields{display:grid;gap:12px}
#public-form .admin-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
#public-form label{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center;column-gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}
#public-form label input,#public-form label textarea{grid-column:2;grid-row:1;min-width:0}
#public-form label.check input{justify-self:start;margin:0}
#public-form input[type=color]{width:72px;max-width:100%}
#public-form input[type=file]{max-width:100%}
#public-form .actions{margin-top:8px}
.table-scroll{overflow:auto}
.customer-list{display:grid;gap:6px}
.customer-profile{padding:0 12px}
.customer-profile>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:54px;margin:0;padding:7px 0;line-height:1.25;list-style:none}
.customer-profile>summary::-webkit-details-marker{display:none}
.customer-profile>summary::before{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.customer-profile[open]>summary::before{transform:rotate(45deg)}
.customer-profile[open]{padding-bottom:10px}
.customer-profile[open]>summary{margin-bottom:8px}
.customer-profile>summary>small{white-space:nowrap}
.customer-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);gap:10px}
.customer-summary small,.customer-summary strong{display:block;overflow-wrap:anywhere}
.customer-summary strong{font-size:.9rem}
.customer-summary small,.customer-profile summary>small{color:var(--muted)}
@media(max-width:720px){.customer-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr))}}
table{border-collapse:collapse;width:100%;background:var(--cream)}
td,th{padding:10px;text-align:left;border-bottom:1px solid var(--line)}
.invoice{width:min(760px,calc(100% - 24px));max-height:90vh;border:1px solid var(--line);border-radius:12px;padding:clamp(14px,3vw,30px);color:var(--ink);background:#fff}
.invoice-sheet{position:relative;isolation:isolate}
.invoice-watermark{position:absolute;z-index:0;inset:0;margin:auto;width:min(68%,390px);height:auto;max-height:90%;object-fit:contain;opacity:.085;pointer-events:none}
.invoice-content{position:relative;z-index:1}
.invoice-header{border-bottom:2px solid var(--line);margin-bottom:12px;text-align:left}
.invoice-header h2{font-size:clamp(1.8rem,5vw,3rem)}
.invoice-parties{margin-bottom:12px;overflow-wrap:anywhere}
.invoice table{background:transparent;font-size:clamp(.8rem,2.5vw,1rem)}
.invoice th:not(:first-child),.invoice td:not(:first-child){text-align:right}
.invoice-total{text-align:right;margin:16px 0;font-size:1.25rem}
.invoice-taxes{margin-top:10px}
.invoice-taxes h3{font-size:1.3rem;margin:0 0 4px}
.invoice-rates{min-width:0;display:grid;gap:6px;margin:0;padding:6px;border:1px solid var(--line)}
.invoice>.actions{padding-top:14px;border-top:1px solid var(--line)}
.reception-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(235px,1fr);gap:12px;align-items:start}
.reception-layout>section>.staff-grid{grid-template-columns:minmax(0,1fr);gap:6px}
.reception-layout>section .staff-card{padding:7px 9px;font-size:.9rem}
.reception-layout>section .staff-card h3{font-size:1rem;margin:0 0 2px}
.reception-layout>section .staff-card p,
.reception-layout>section .staff-card ul{margin:3px 0;line-height:1.25}
.reception-layout>section .staff-card .staff-note{padding:4px 6px}
.reception-layout>section .staff-card form{gap:3px;margin-top:4px}
.reception-layout>section .staff-card details{margin-top:4px}
.reception-layout>section .staff-card summary{margin-bottom:2px}
.reception-layout .pos-panel{padding:12px}
.reception-layout #pos-form{gap:6px}
.reception-layout #pos-form h3{margin:0}
.staff-display:has(.reception-layout) :is(input:not([type="checkbox"]):not([type="hidden"]),select){min-height:36px;padding:4px 7px;font-size:.9rem}
.reception-layout textarea{min-height:44px;padding:5px 7px}
.reception-layout>section .staff-card button{min-height:38px;padding:5px 8px;font-size:.85rem}
@media(any-pointer:coarse){
  .staff-display:has(.reception-layout) :is(input:not([type="checkbox"]):not([type="hidden"]),select),
  .reception-layout>section .staff-card button{min-height:44px}
}
.pos-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(210px,1fr);gap:14px;align-items:start}
.pos-panel .pos-categories{margin:0 0 12px}
.pos-categories button{padding-inline:10px}
.pos-products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr));gap:8px}
.pos-product{min-height:75px;align-items:start;flex-direction:column;justify-content:space-between;padding:10px;text-align:left;line-height:1.2;border-color:var(--line)}
.pos-product span{font-size:.9rem}
.pos-product:disabled{background:var(--paper);cursor:default}
.pos-line,.pos-quantity{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pos-line{padding:7px 0;border-bottom:1px solid var(--line)}
.pos-quantity button{min-width:42px;min-height:44px;padding:5px}
.pos-total{display:block;margin:10px 0;font-size:1.25rem}
.pos-panel form>button{min-height:52px}
.cash-fields output{color:var(--red)}
.slot-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:6px}
.slot-options button{min-height:44px;flex-direction:column;padding:3px;line-height:1.1}
.slot-options button[aria-pressed="true"]{background:var(--gold);color:var(--ink)}
.slot-options button:not(:disabled):is(:hover,:focus-visible){background:var(--red);color:#fff;border-color:var(--red)}
.slot-options button:disabled{background:none}
.slot-options button small{display:block;font-size:.75rem}
.slot-options .slot-default{grid-column:1/-1}
.report-field{display:block;max-width:270px;margin-bottom:12px}
.sales-filters{max-width:600px;gap:clamp(18px,3vw,32px);margin-bottom:12px}
.daily-sale{cursor:pointer}
.daily-sale:is(:hover,:focus-within){background:#f7ead0}
.daily-sale .sale-invoice{cursor:auto}
.sale-invoice form{min-width:min(200px,70vw)}
.invoice-lookup{margin:0;font-size:.85rem}
.invoice-lookup:empty{display:none}
.report-section{margin-bottom:10px}
.report-section h2{font-size:clamp(1.45rem,3vw,2rem)}
.report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}
.report-stat{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:12px 0}
.report-stat meter{grid-column:1/-1;width:100%;height:13px;accent-color:var(--red)}
.monthly-report{margin-top:12px}
.monthly-report:has([type="month"])>label{display:block;max-width:270px;margin-bottom:12px}
.monthly-report h2,.monthly-print h2{font-size:clamp(1.45rem,3vw,2rem)}
.monthly-actions{margin-top:12px}
.monthly-report td:last-child,.monthly-print td:last-child{white-space:nowrap;text-align:right}
.touch-keyboard-open{padding-bottom:var(--touch-keyboard-height,0px)}
.touch-keyboard{position:fixed;z-index:50;inset:auto 8px 0;width:min(calc(100% - 16px),740px);max-height:55vh;overflow:auto;margin-inline:auto;padding:4px 6px max(4px,env(safe-area-inset-bottom));background:var(--cream);border:1px solid var(--line);border-radius:10px 10px 0 0;box-shadow:0 -8px 24px #35241b26}
.touch-keyboard-numeric{width:min(calc(100% - 16px),290px)}
.touch-keys{display:flex;justify-content:center;gap:3px;margin:2px 0}
.touch-keys button{min-width:0;width:clamp(23px,8.5vw,67px);min-height:44px;padding:3px;font-size:1rem;touch-action:manipulation}
.touch-keys button[data-key="Espacio"],.touch-keys button[data-key="Borrar"],.touch-keys button[data-key="Listo"],.touch-keys button[data-key="Mayús"]{width:auto;min-width:64px;padding-inline:8px}
.touch-keys button[data-key="Símbolos"],.touch-keys button[data-key="Letras"]{width:auto;min-width:55px;padding-inline:5px}
.touch-keys:last-child button{min-width:0;flex:0 1 auto}
.touch-keyboard-numeric .touch-keys button{width:auto;flex:1;min-width:0;padding-inline:3px}
.pos-panel button,.reception-layout button,.reception-layout input,.reception-layout select{touch-action:manipulation}
.thermal-ticket{width:min(calc(100% - 16px),86mm);padding:3mm;font-size:10pt}
.thermal-ticket article{width:74mm;max-width:100%;margin-inline:auto;display:flow-root;overflow-wrap:anywhere}
.thermal-ticket article .cart-line span:last-child{flex-shrink:0}
.thermal-ticket article p{margin:5px 0}
.thermal-ticket article .ticket-thanks{margin-top:12px;text-align:center;font-weight:600}
.thermal-ticket .ticket-merchant{text-align:center}
.thermal-ticket .ticket-merchant img{object-fit:contain}
.ticket-taxes table{font-size:9pt}
.ticket-taxes th,.ticket-taxes td{padding:2px 3px}
.ticket-tax-editor{margin-top:10px}
.queue-display .header,.queue-display .footer{display:none}
.rider-display .header,.rider-display .footer{display:none}
.rider-display .wrap{width:min(100% - 30px,570px)}
.rider-display .section{padding:28px 0}
.rider-display h1{font-size:clamp(2rem,8vw,3.5rem)}
.rider-display .section-head{flex-wrap:wrap}
.rider-action,.rider-history{margin-top:18px}
.rider-profile{display:inline-flex;align-items:center;gap:10px;vertical-align:middle}
.rider-profile img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.rider-photo-dialog{width:min(90vw,720px);max-height:90vh;padding:18px;border:1px solid var(--line);border-radius:12px;text-align:center}
.rider-photo-dialog::backdrop{background:rgb(0 0 0 / 65%)}
.rider-photo-dialog h2{margin:0 0 12px;overflow-wrap:anywhere}
.rider-photo-dialog img{display:block;width:auto;max-width:100%;max-height:65vh;margin:0 auto 12px;object-fit:contain}
.rider-profile small{display:block;color:var(--muted);font-weight:500;overflow-wrap:anywhere}
.rider-history{list-style:none;padding:0;display:grid;gap:8px}
.rider-history li{border:1px solid var(--line);background:var(--cream);padding:10px 14px;border-radius:8px;display:grid;gap:3px}
.rider-history span{color:var(--muted)}
.rider-display button,.rider-display .button{min-height:48px}
.queue-display .wrap{width:min(1540px,calc(100% - 36px))}
.queue-display h1{margin:0 0 18px;font-size:clamp(2rem,5vw,4rem)}
.queue-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.queue-group{padding:clamp(14px,2.5vw,30px);background:var(--cream);border:1px solid var(--line);border-radius:14px}
.queue-ready{background:var(--gold)}
.queue-group h2{font-size:clamp(1.45rem,3vw,2.75rem)}
.queue-group ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,125px),1fr));gap:12px;list-style:none;padding:0}
.queue-group li{padding:10px;color:var(--ink);background:#fff;border-radius:8px;text-align:center;font-size:clamp(1.5rem,4vw,3.5rem);font-weight:800}
.queue-group .queue-empty{grid-column:1/-1;background:transparent;text-align:left;color:var(--muted);font-size:1rem}
@media(max-width:520px){.queue-columns{grid-template-columns:1fr}.queue-display .section-head{flex-wrap:wrap}}
@media(max-width:850px){.reception-layout{grid-template-columns:1fr}}
@media(max-width:580px){.pos-layout{grid-template-columns:1fr}}
@page thermal-80{size:80mm 200mm;margin:3mm}
@media print{
  body:has(dialog.invoice[open]){background:#fff}
  body:has(dialog.invoice[open])>*:not(dialog){display:none}
  dialog.invoice[open]{position:static;width:100%;max-height:none;max-width:none;margin:0;padding:0;border:0;overflow:visible}
  dialog.invoice::backdrop,.invoice>.actions,.ticket-tax-editor{display:none}
  .invoice-sheet{min-height:0}
  .invoice-watermark{width:115mm}
  .invoice tr,.invoice-parties,.invoice-total{break-inside:avoid}
  .invoice:not(.thermal-ticket) th,.invoice:not(.thermal-ticket) td{padding:4px 6px}
  .invoice:not(.thermal-ticket) .invoice-header h2{font-size:22pt}
  .invoice:not(.thermal-ticket) .invoice-parties p{margin:0}
  .invoice-total{margin:8px 0 0}
  .monthly-print .table-scroll{overflow:visible}
  .monthly-print table{font-size:9pt}
  .monthly-print thead{display:table-header-group}
  dialog.thermal-ticket[open]{page:thermal-80;width:74mm;font-size:10pt}
  .thermal-ticket article .cart-line{break-inside:avoid}
}
@media(max-width:720px){.admin-toolbar{top:116px}}
.timeline{padding-left:24px}
.timeline li{padding:6px 0 6px 6px;color:var(--muted)}
.timeline li[aria-current=step]{color:var(--red);font-weight:700}
.code{letter-spacing:.14em;font-size:1.5rem}
.footer{border-top:1px solid var(--line);padding-block:26px}
.staff-card ul{padding-left:21px}
@media(max-width:720px){
  .wrap{width:calc(100% - 28px)}
  .nav{flex-wrap:wrap;padding-block:8px;gap:6px}
  nav{width:100%;justify-content:space-between;gap:8px;font-size:.9rem}
  .hero-grid,.local-grid,.shop{grid-template-columns:1fr}
  .hero-grid{min-height:0;padding-block:35px}
  .hero-photo{min-height:0;aspect-ratio:1.35}
  .cart{position:static;scroll-margin-top:130px}
  .footer-inner{flex-wrap:wrap}
}
