:root {
  color-scheme: light;
  --ink: #29251f;
  --soft: #655f57;
  --fire: #a23c20;
  --night: #292721;
  --gold: #f2be75;
  --paper: #fffdf7;
  --line: #dfd8ca;
  font: 16px/1.5 "DM Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f6f3eb;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, h4, p, dl, dd, ul { margin: 0; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.has-dialog { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #237b89; outline-offset: 3px; }
button:disabled { opacity: .54; }
a { color: var(--fire); text-underline-offset: .2em; }
.sr, .skip:not(:focus) { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 9; background: white; padding: 10px; }
.wrap { max-width: 1190px; width: calc(100% - 64px); margin: auto; }
.mast { color: var(--paper); background: var(--night); border-bottom: 1px solid #574a39; }
.mast-inner, .mast-right, .brand, .top-cart { display: flex; align-items: center; }
.mast-inner { min-height: 70px; justify-content: space-between; gap: 10px; }
.mast-right { gap: 13px; }
.mast-right a { color: #ebd2ad; font-size: .86rem; }
.brand { font: 700 1.9rem/.95 Georgia, serif; letter-spacing: -.045em; gap: .6rem; text-decoration: none; color: inherit; }
.seal { flex: 0 0 auto; width: 42px; height: 29px; background: #17150e url('/marca.jpg') -10px -625px / 360px auto no-repeat; border-radius: 4px; }
.top-cart { background: transparent; color: var(--paper); border: 1px solid #857562; padding: 5px 7px 5px 12px; border-radius: 24px; font-weight: 600; gap: 9px; }
.top-cart span, .mobile-bar b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; background: var(--gold); color: #32251a; border-radius: 22px; padding: 0 5px; font-size: .82rem; }
main.wrap { flex: 1 0 auto; margin-block: 0; padding-block: 22px 54px; }
.site-footer { background: #eeeadf; border-block-start: 1px solid var(--line); color: #655a4d; font-size: .84rem; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-block: 10px; }
.site-footer a { display: inline-flex; min-height: 42px; align-items: center; color: inherit; }
h1, h2, h3 { font-family: "DM Serif Text", Georgia, serif; font-weight: 600; letter-spacing: -.045em; line-height: 1.12; }
h2 { font-size: 2rem; }
h3 { font-size: 1.44rem; }
.hero { border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); color: #fff8e9; background: #382a22; }
.hero-copy { position: relative; z-index: 1; padding: clamp(28px, 4.2vw, 58px); align-self: center; }
.eyebrow { color: var(--fire); font-size: .76rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow { color: #efbd83; }
.hero h1 { font-size: clamp(3rem, 6.7vw, 5.6rem); margin: 9px 0 16px; line-height: .91; }
.hero h1 i { color: #e7b66f; font-weight: 400; }
.hero-copy > p:last-child { color: #f0e1cc; max-width: 38ch; }
.hero-photo { background: #3e2b1d url('/marca.jpg') center 24%/cover no-repeat; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .4fr); gap: clamp(25px, 3vw, 47px); align-items: start; margin-top: 35px; }
.menu-head, .group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.menu-head { align-items: center; }
.search { display: flex; gap: 8px; align-items: center; padding: 0 10px; color: var(--soft); border: 1px solid #c9c1b3; background: var(--paper); border-radius: 6px; max-width: 195px; }
.search-icon { display: block; width: 13px; height: 13px; border: 1.7px solid currentColor; border-radius: 50%; position: relative; margin-right: 3px; flex-shrink: 0; }
.search-icon::after { content: ""; position: absolute; left: 9px; top: 10px; width: 6px; height: 1.7px; background: currentColor; transform: rotate(47deg); transform-origin: left; }
.search input { border: 0; background: transparent; padding: 8px 2px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 0 9px; }
.chip { border: 1px solid #cfc7b8; border-radius: 30px; background: transparent; color: #4d453c; padding: 5px 13px; font-size: .88rem; }
.chip[aria-pressed=true] { color: #fff8e8; background: var(--night); border-color: var(--night); }
.group { padding-top: 20px; }
.group-head { padding-bottom: 9px; border-bottom: 1px solid #a49985; }
.group-head span, .muted { color: var(--soft); }
.group-head span, .small { font-size: .86rem; }
.dish { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 15px 0; gap: 14px; }
.dish-copy { min-width: 0; overflow-wrap: anywhere; }
.dish h4 { font-size: 1.045rem; line-height: 1.34; }
.dish-copy p { color: var(--soft); font-size: .88rem; margin-top: 2px; }
.dish-price { display: inline-block; color: #874423; font-weight: 680; margin-top: 5px; }
.add, .qty { flex-shrink: 0; }
.add, .qty button { background: var(--paper); color: var(--fire); border: 1px solid #c7ae95; font-weight: 700; border-radius: 6px; }
.add { padding: 6px 12px; white-space: nowrap; }
.inquiry { flex-shrink: 0; font-size: .88rem; padding-block: 9px; font-weight: 650; }
.qty { display: flex; align-items: center; }
.qty button { width: 33px; height: 33px; padding: 0; }
.qty span { min-width: 26px; text-align: center; font-weight: 650; }
.add:hover, .qty button:hover:not(:disabled), .light:hover { background: #f2e8da; }
.paper { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; }
.summary { position: sticky; top: 16px; padding: 22px; border-top: 4px solid var(--fire); }
.summary h2, .dialog-top h2 { font-size: 1.65rem; }
.summary #preview { margin: 15px 0; }
.lines { list-style: none; padding: 0; }
.lines li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.line-main, .totals div, .status-details div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.line-main span:first-child { min-width: 0; overflow-wrap: anywhere; }
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines .qty { margin: 6px 0 2px; }
.totals { margin-top: 12px; }
.totals div { margin: 4px 0; }
.totals div:first-child { color: var(--soft); font-size: .89rem; }
.totals div:last-child { font-weight: 750; }
.btn { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; min-height: 43px; padding: 9px 16px; font-weight: 700; border-radius: 6px; border: 1px solid transparent; text-align: center; }
.btn.dark { background: #95391e; color: white; }
.btn.dark:hover:not(:disabled) { background: #783016; }
.btn.light { color: var(--ink); border-color: #bbb1a2; background: var(--paper); }
.btn.whatsapp { background: #26593d; color: white; }
.full { width: 100%; }
.mobile-bar { display: none; }
.notice { padding: 12px 14px; border: 1px solid #ddad95; background: #fbeae2; color: #77341b; border-radius: 6px; margin: 12px 0; }
#fatal { max-width: 620px; margin: 20px auto; }
#fatal p { margin-bottom: 8px; }
#fatal a { margin-left: 13px; }
.empty { padding: 17px 0 8px; color: var(--soft); }
dialog { width: min(565px, calc(100% - 24px)); max-height: min(87vh, 900px); max-height: min(87dvh, 900px); padding: 0 clamp(16px, 3vw, 28px) 24px; border-radius: 12px; border: 1px solid #d6cbb7; color: var(--ink); background: var(--paper); overscroll-behavior: contain; }
dialog::backdrop { background: #19150fc4; }
.dialog-top { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 13px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 2; }
.close { width: 36px; height: 36px; color: var(--ink); border: 1px solid var(--line); font-size: 1.4rem; line-height: 1; border-radius: 50%; background: white; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 23px 0 16px; padding: 10px 0 0; min-width: 0; }
legend { padding: 0 10px 0 0; font-size: 1.06rem; font-weight: 750; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form label { display: block; font-size: .92rem; font-weight: 650; margin-top: 9px; }
input, textarea { width: 100%; min-width: 0; color: var(--ink); }
form input, textarea { display: block; border: 1px solid #bfb6a7; border-radius: 5px; padding: 9px 10px; margin-top: 4px; background: white; font-size: 1rem; font-weight: 400; }
textarea { resize: vertical; }
.optional { color: var(--soft); font-size: .84rem; font-weight: 400; }
.payment-info { margin: 18px 0; padding: 13px 15px; background: #edf3e9; border-inline-start: 3px solid #526d51; border-radius: 3px; }
.payment-info h3 { font-family: inherit; font-size: .98rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.payment-info p { font-size: .9rem; color: #475444; margin-top: 4px; }
.tracking { max-width: 640px; margin: 14px auto; }
.back, .another { display: inline-block; margin: 12px 0; font-weight: 650; }
.status-card { border-top: 4px solid var(--fire); padding: clamp(20px, 4vw, 38px); }
.status-card h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 8px 0; }
.status-lead { color: var(--soft); }
.status-details { margin-block: 21px 14px; padding: 10px 0; border-block: 1px dashed var(--line); }
.status-details div { margin: 5px 0; }
.status-details dd { font-weight: 700; }
.status-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
#manual-hint { margin-top: 12px; }
@media(max-width:790px) {
  .wrap { width: calc(100% - 32px); }
  .columns { display: block; margin-top: 25px; }
  .summary { display: none; }
  main.wrap { padding-block: 16px 32px; }
  body:has(#cart-mobile:not([hidden])) .site-footer { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; position: fixed; z-index: 2; bottom: max(12px,env(safe-area-inset-bottom)); left: 16px; right: 16px; width: calc(100% - 32px); max-width: 600px; margin-inline: auto; padding: 11px 16px; border: 1px solid #4d4133; color: white; background: var(--night); border-radius: 9px; box-shadow: 0 3px 12px #29251f44; }
  .mobile-bar span { display: flex; align-items: center; gap: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
  .chip { flex-shrink: 0; min-height: 40px; }
  .add, .qty button, .close, .top-cart { min-height: 42px; }
  .qty button { min-width: 38px; }
}
@media(max-width:520px) {
  .brand { font-size: 1.55rem; }
  .seal { width: 37px; height: 28px; background-position: -12px -626px; }
  .mast-inner { min-height: 58px; }
  .hero { grid-template-columns: minmax(0,1fr) 29%; }
  .hero-copy { padding: 23px 17px; }
  .hero-photo { background-size: auto 470%; }
  .hero-copy p:last-child { font-size: .88rem; }
  .menu-head h2 { font-size: 1.64rem; }
  .menu-head { flex-wrap: wrap; }
  .search { max-width: 155px; }
  .search input { font-size: 1rem; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .dish { gap: 10px; }
  .add { padding: 6px 9px; }
  dialog { max-height: 93vh; max-height: 93dvh; }
}
