/* Layout: carta impresa en papel grueso — cabecera tipográfica, raíl de categorías fijo,
   filas con puntos guía hasta el precio y fotos que abren una ficha deslizante. */
:root {
  --paper: #F4ECE2;      /* fondo papel, derivado del beige de marca */
  --paper-2: #EADCCB;    /* beige de marca para superficies */
  --paper-3: #FBF7F2;    /* hoja elevada (fichas) */
  --ink: #211A14;        /* espresso del logotipo */
  --ink-2: #6A5A4D;      /* texto secundario */
  --ink-3: #9A8A7C;      /* pistas, separadores tipográficos */
  --line: rgba(33, 26, 20, .14);
  --olive: #4E5A38;      /* pino de la Serra Gelada: estados activos */
  --olive-soft: rgba(78, 90, 56, .12);
  --crema: #A8692F;      /* crema del espresso: avisos y novedades */
  --danger: #A23B2A;
  --shadow: 0 1px 1px rgba(33,26,20,.04), 0 10px 30px -12px rgba(33,26,20,.28);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.32, 1.25, .5, 1);
  --gutter-l: max(18px, env(safe-area-inset-left, 0px));
  --gutter-r: max(18px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
/* grano de papel muy sutil */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(33,26,20,.035) 1px, transparent 1px);
  background-size: 3px 3px;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- Cabecera ---------- */
.masthead { position: relative; z-index: 1; padding-block: 28px 18px; }
.masthead .wrap { display: grid; gap: 18px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); position: relative; }
.lang button { position: relative; z-index: 1; padding: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--paper-3); }
.lang .knob { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease-spring), width .45s var(--ease-spring); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); transition: transform .2s var(--ease-out), background .2s; }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 19px; height: 19px; }
.top-actions { display: flex; gap: 8px; }

.brand { display: grid; gap: 10px; }
.brand-logo { max-height: 64px; width: auto; }
.wordmark { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(44px, 13vw, 78px); line-height: .92; letter-spacing: -.02em; text-wrap: balance; }
.wordmark .dot { color: var(--crema); }
.wordmark .sub { display: block; font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; margin-top: 12px; color: var(--ink-2); }
.wordmark .ch { display: inline-block; animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms + 80ms); }
.tagline { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--ink-2); animation: fade 1s var(--ease-out) .6s both; }
.cover { margin-top: 4px; border-radius: 22px; overflow: hidden; aspect-ratio: 16/9; background: var(--paper-2); animation: fade 1.2s var(--ease-out) .3s both; max-width: 100%; }
.cover img { width: 100%; height: 100%; object-fit: cover; }

.status-row { display: flex; flex-wrap: wrap; gap: 8px; animation: fade 1s var(--ease-out) .75s both; }
.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--paper-2); font-size: 13px; font-weight: 500; color: var(--ink); transition: transform .2s var(--ease-out), background .2s; }
.chip:active { transform: scale(.96); }
.chip svg { width: 15px; height: 15px; flex: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 0 rgba(78,90,56,.5); animation: pulse 2.4s infinite; flex: none; }
.pulse.closed { background: var(--ink-3); animation: none; }

/* ---------- Raíl de categorías ---------- */
.rail { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.rail.stuck { border-bottom-color: var(--line); }
.rail .wrap { padding-left: 0; padding-right: 0; }
.rail-scroll { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter-r) 10px var(--gutter-l); scroll-padding-inline: 40px; }
.rail-scroll::-webkit-scrollbar { display: none; }
.rail a { position: relative; z-index: 1; flex: none; padding: 9px 15px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: color .35s; }
.rail a.active { color: var(--paper-3); }
.rail .ink { position: absolute; z-index: 0; top: 10px; height: 39px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease-spring), width .5s var(--ease-spring); }

/* ---------- Categorías y secciones ---------- */
main { position: relative; z-index: 1; padding-bottom: 40px; }
.category { padding-top: 34px; }
.cat-head { display: grid; gap: 10px; margin-bottom: 10px; }
.cat-index { font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--crema); font-variant-numeric: tabular-nums; }
.cat-title { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 9vw, 50px); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.cat-intro { margin: 0; max-width: 52ch; font-family: var(--f-display); font-style: italic; font-size: 17px; color: var(--ink-2); }
.cat-photo { margin: 8px 0 4px; border-radius: 20px; overflow: hidden; aspect-ratio: 5/3; background: var(--paper-2); max-width: 100%; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }

.section { padding-top: 22px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.sec-title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.sec-hours { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sec-hours svg { width: 13px; height: 13px; }

/* ---------- Productos ---------- */
.items { list-style: none; margin: 0; padding: 0; }
.item { border-bottom: 1px solid var(--line); }
.item > button { width: 100%; text-align: left; display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; transition: background .25s; border-radius: 4px; }
.item > button:active { background: var(--olive-soft); }
.item-main { flex: 1; min-width: 0; display: grid; gap: 5px; }
.item-line { display: flex; align-items: baseline; gap: 8px; }
.item-name { font-family: var(--f-display); font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -.005em; }
.leader { flex: 1; min-width: 16px; border-bottom: 1.5px dotted var(--ink-3); transform: translateY(-4px); opacity: .7; }
.price { flex: none; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.multi { color: var(--ink-3); font-weight: 400; padding: 0 5px; }
.item-desc { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 2px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.tag.crema { color: var(--crema); }
.tag.muted { color: var(--ink-3); }
.al-dots { display: inline-flex; gap: 3px; }
.al-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.more-hint { font-size: 12px; color: var(--ink-3); }
.thumb { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; background: var(--paper-2); flex: none; box-shadow: var(--shadow); }
.thumb img, .sheet-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease-out), transform 1.2s var(--ease-out); }
.thumb img.ok, .sheet-photo img.ok { opacity: 1; transform: none; }
.item.has-photo .item-line .leader, .item.has-photo .item-line .price { display: none; }
.item.has-photo .photo-price { display: block; }
.photo-price { display: none; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.item.sold .item-name, .item.sold .price { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.item.hidden-item { opacity: .45; }

/* aparición escalonada (solo en elementos fuera de pantalla al cargar) */
.pre { opacity: 0; transform: translateY(14px); }
.in { animation: rise .75s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 55ms); }
.filtered-out { display: none; }

/* ---------- Pie ---------- */
.notes { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink); display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.notes p { margin: 0; }
.signoff { margin-top: 26px; font-family: var(--f-display); font-style: italic; font-size: 22px; }
.empty-filter { padding: 40px 0; text-align: center; color: var(--ink-2); }

/* ---------- Barra inferior flotante ---------- */
.dock { position: fixed; z-index: 25; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink); color: var(--paper-3); box-shadow: 0 14px 40px -12px rgba(33,26,20,.55); animation: dockIn .8s var(--ease-spring) 1s both; }
.dock button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: background .2s; white-space: nowrap; }
.dock button:active, .dock button.on { background: rgba(251,247,242,.14); }
.dock svg { width: 17px; height: 17px; }
.dock .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--crema); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }

/* ---------- Fichas deslizantes ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(33,26,20,.38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease-out); }
.scrim.open { opacity: 1; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px; max-height: calc(100% - 40px - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; background: var(--paper-3); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px -20px rgba(33,26,20,.4); transform: translateY(105%); transition: transform .55s var(--ease-spring); will-change: transform; }
.sheet.open { transform: translateY(0); }
.sheet.dragging { transition: none; }
.grab { flex: none; display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.grab::before { content: ""; width: 42px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 max(22px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px)); }
.sheet-close { position: absolute; top: 14px; right: max(14px, env(safe-area-inset-right, 0px)); z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(251,247,242,.9); box-shadow: var(--shadow); }
.sheet-close svg { width: 16px; height: 16px; }
.sheet-photo { margin: 0 -22px 18px; aspect-ratio: 4/3; background: var(--paper-2); overflow: hidden; max-width: calc(100% + 44px); }
.sheet h2 { margin: 6px 0 6px; font-family: var(--f-display); font-weight: 500; font-size: 32px; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; padding-right: 40px; }
.sheet .kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--crema); }
.sheet p.lead { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); max-width: 60ch; }
.price-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.price-pill { display: grid; gap: 1px; padding: 10px 16px; border-radius: 14px; background: var(--paper-2); min-width: 84px; }
.price-pill span { font-size: 11.5px; color: var(--ink-2); }
.price-pill b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.block { margin-top: 22px; }
.block h3 { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.choice-list { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-list span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.extra-list { list-style: none; margin: 0; padding: 0; }
.extra-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.extra-list li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-list { display: flex; flex-wrap: wrap; gap: 6px; }
.al-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px; background: var(--paper-2); font-size: 14px; }
.al-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.al-note { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

/* filtros */
.al-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 14px; background: var(--paper-2); text-align: left; font-size: 14px; transition: background .25s, color .25s, transform .15s; }
.toggle i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; transition: transform .3s var(--ease-spring); }
.toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper-3); }
.toggle[aria-pressed="true"] i { transform: scale(1.3); box-shadow: 0 0 0 2px var(--paper-3); }
.toggle:active { transform: scale(.97); }
.row-btns { display: flex; gap: 8px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; background: var(--paper-2); transition: transform .15s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--paper-3); }
.btn.olive { background: var(--olive); color: #fff; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px currentColor; }
.btn.small { padding: 8px 13px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.grow { flex: 1; }

/* buscador */
.search-box { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 16px; border-radius: 16px; background: var(--paper-2); }
.search-box svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font: 500 17px var(--f-body); color: var(--ink); outline: none; }
.results { list-style: none; margin: 14px 0 0; padding: 0; }
.results li button { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.results small { display: block; color: var(--ink-3); font-size: 12px; }
.results b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* info */
.info-list { display: grid; gap: 2px; margin-top: 16px; }
.info-list > a, .info-list > div, .info-list > button { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; text-align: left; width: 100%; }
.info-list svg { width: 20px; height: 20px; flex: none; color: var(--olive); }
.info-list small { display: block; font-size: 12px; color: var(--ink-3); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-variant-numeric: tabular-nums; font-size: 15px; margin-top: 10px; }
.hours .today { font-weight: 700; }
.wifi-card { margin-top: 16px; padding: 18px; border-radius: 18px; background: var(--ink); color: var(--paper-3); display: grid; gap: 4px; }
.wifi-card small { color: rgba(251,247,242,.6); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.wifi-card strong { font-family: var(--f-display); font-size: 22px; font-weight: 500; word-break: break-word; }
.wifi-card .btn { justify-self: start; margin-top: 10px; background: rgba(251,247,242,.14); color: var(--paper-3); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 999px; background: var(--olive); color: #fff; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .3s, transform .45s var(--ease-spring); max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

/* ---------- Modo edición ---------- */
.edit-banner { position: relative; z-index: 2; background: var(--olive); color: #fff; font-size: 13px; }
.edit-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 9px; }
.pen { display: none; flex: none; width: 28px; height: 28px; border-radius: 50%; place-items: center; background: var(--olive-soft); color: var(--olive); align-self: center; }
.pen svg { width: 14px; height: 14px; }
body.editing .pen { display: grid; }
.ed-add { display: none; width: 100%; margin: 10px 0 0; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--line); color: var(--olive); font-weight: 600; font-size: 14px; }
body.editing .ed-add { display: block; }
.ed-tools { display: none; gap: 6px; flex-wrap: wrap; }
body.editing .ed-tools { display: flex; }
.admin-dock { position: fixed; z-index: 26; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: var(--ink); color: var(--paper-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-dock .state { flex: 1; min-width: 110px; font-size: 12px; line-height: 1.3; color: rgba(251,247,242,.7); }
.admin-dock .state b { display: block; font-size: 14px; color: var(--paper-3); }
body.editing .toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.admin-dock .btn { background: rgba(251,247,242,.12); color: var(--paper-3); }
.admin-dock .btn.primary { background: var(--paper-3); color: var(--ink); }
body.editing .dock { display: none; }
body.editing main { padding-bottom: 120px; }

.form { display: grid; gap: 16px; margin-top: 8px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 460px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.inp { width: 100%; min-width: 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 400 15px var(--f-body); color: var(--ink); }
.inp:focus { outline: 2px solid var(--olive); outline-offset: 0; border-color: transparent; }
textarea.inp { min-height: 74px; resize: vertical; line-height: 1.4; }
.inp-wrap { position: relative; }
.inp-wrap .flag { position: absolute; top: 8px; right: 10px; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); pointer-events: none; }
.rows { display: grid; gap: 8px; }
.rowx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 84px 36px; gap: 6px; align-items: center; }
.rowx.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
.rowx .x { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--danger); background: rgba(162,59,42,.08); }
.rowx .x svg { width: 14px; height: 14px; }
@media (max-width: 460px) {
  .rowx { grid-template-columns: minmax(0, 1fr) 84px 36px; }
  .rowx .inp:nth-child(2) { grid-column: 1 / 2; grid-row: 2; }
  .rowx.two { grid-template-columns: minmax(0, 1fr) 36px; }
  .rowx.two .inp:nth-child(2) { grid-column: 1; grid-row: 2; }
}
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.check { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--paper-2); font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--olive); width: 17px; height: 17px; margin: 0; }
.photo-edit { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; align-items: center; }
.photo-edit .pv { width: 110px; height: 110px; border-radius: 16px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; }
.photo-edit .pv img { width: 100%; height: 100%; object-fit: cover; }
.photo-edit .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.confirm { padding: 14px; border-radius: 14px; background: rgba(162,59,42,.08); display: grid; gap: 10px; font-size: 14px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.hours-edit { display: grid; grid-template-columns: 90px minmax(0,1fr) minmax(0,1fr); gap: 6px; align-items: center; font-size: 14px; }

/* ---------- Animaciones ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dockIn { from { opacity: 0; transform: translate(-50%, 30px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(78,90,56,.45); } 70% { box-shadow: 0 0 0 9px rgba(78,90,56,0); } 100% { box-shadow: 0 0 0 0 rgba(78,90,56,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swap { from { opacity: .2; filter: blur(3px); } to { opacity: 1; filter: none; } }
.swap { animation: swap .45s var(--ease-out); }

@media (min-width: 720px) {
  .masthead { padding-block: 48px 24px; }
  .item-name { font-size: 22px; }
  .thumb { width: 110px; height: 110px; }
  .sheet { bottom: 24px; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .pre { opacity: 1; transform: none; }
}

/* =====================================================================
   Estructura de la carta original: idioma → cartas → productos
   ===================================================================== */
:root { --f-logo: "Montserrat", "Avenir Next", Futura, "Helvetica Neue", Arial, sans-serif; }

/* logotipo tipográfico (se sustituye por el PNG si se sube en Ajustes) */
.lockup { --s: 34px; display: inline-grid; justify-items: center; gap: calc(var(--s) * .12); color: var(--ink); font-family: var(--f-logo); line-height: 1; }
.lockup .lk-top, .lockup .lk-bot { font-size: calc(var(--s) * .2); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; padding-left: .3em; }
.lockup .lk-mid { display: flex; align-items: center; gap: calc(var(--s) * .22); }
.lockup .lk-name { font-size: var(--s); font-weight: 800; letter-spacing: .02em; }
.lockup .lk-name i { font-style: normal; display: inline-block; transform: translateY(-.06em); padding: 0 .04em; }
.lockup .lk-side { font-size: calc(var(--s) * .2); font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-align: center; text-transform: uppercase; }
.lockup .brand-logo { max-height: none; height: calc(var(--s) * 2.1); width: auto; }
.lockup.xl { --s: clamp(42px, 13vw, 60px); }
.lockup.lg { --s: clamp(34px, 10vw, 46px); }
.lockup.md { --s: 26px; }
.lockup.sm { --s: 19px; gap: 3px; }
.lockup.sm .lk-top, .lockup.sm .lk-side { display: none; }
.lockup.sm .lk-bot { font-size: 6.5px; letter-spacing: .34em; }
.lockup.sm .brand-logo { height: 34px; }

/* pantalla de idioma */
body.on-splash { background: var(--paper-2); }
body.on-splash::before { background: var(--paper-2); }
.splash { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 40px 28px; background: var(--paper-2); }
.splash-in { align-self: center; justify-self: center; width: min(100%, 360px); display: grid; justify-items: center; gap: 52px; }
.splash-logo { animation: rise 1.1s var(--ease-out) .1s both; }
.splash-logo .lockup { animation: breathe 6s ease-in-out 1.4s infinite; }
.lang-list { width: 100%; display: grid; }
.lang-list button { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; animation: rise .8s var(--ease-out) both; animation-delay: calc(.55s + var(--d) * 110ms); transition: padding .35s var(--ease-out); }
.lang-list button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); opacity: .35; transform-origin: left; animation: draw 1s var(--ease-out) both; animation-delay: calc(.75s + var(--d) * 110ms); }
.lang-list button:hover, .lang-list button:focus-visible { padding-left: 12px; }
.lang-list button:active { opacity: .7; }
.flag { width: 24px; height: 24px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(33,26,20,.12); transition: transform .4s var(--ease-spring); }
.lang-list button:hover .flag { transform: scale(1.15) rotate(-8deg); }
.splash-foot { margin: 0; text-align: center; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); animation: fade 1s var(--ease-out) 1.1s both; }
.splash.leaving .splash-in { animation: leave .4s var(--ease-out) both; }
.splash.leaving .splash-foot { opacity: 0; transition: opacity .2s; }

/* barra superior */
.appbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.appbar-in { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px var(--gutter-r) 8px var(--gutter-l); }
.appbar-logo { justify-self: center; padding: 4px 8px; }
.appbar-r { justify-self: end; display: flex; gap: 2px; }
.icon-btn.ghost { background: transparent; position: relative; }
.icon-btn.ghost:hover { background: var(--paper-2); }
.icon-btn.ghost.on { background: var(--ink); color: var(--paper-3); }
.icon-btn .badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--crema); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.cat-tabs { max-width: 760px; margin: 0 auto; }
.cat-tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter-r) 10px var(--gutter-l); scroll-behavior: smooth; }
.cat-tabs-in::-webkit-scrollbar { display: none; }
.cat-tabs button { flex: none; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .3s, color .3s; }
.cat-tabs button.active { background: var(--ink); color: var(--paper-3); }

/* transiciones entre páginas */
.view.enter { animation: viewIn .55s var(--ease-out) both; }
.view.enter-back { animation: viewBack .55s var(--ease-out) both; }

/* inicio: lista de cartas */
.home .hero { display: grid; justify-items: center; text-align: center; gap: 16px; padding-block: 34px 8px; }
.home .hero .tagline { animation: none; }
.home .status-row { justify-content: center; animation: none; }
.home .cover { margin-top: 22px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 36px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before, .eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-row { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 2px; text-align: left; transition: padding .35s var(--ease-out), background .25s; border-radius: 4px; }
.cat-row:hover { padding-left: 10px; }
.cat-row:active { background: var(--olive-soft); }
.cat-thumb { width: 58px; height: 58px; flex: none; border-radius: 50%; overflow: hidden; background: var(--paper-2); }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.cat-thumb img.ok { opacity: 1; }
.cat-row-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cat-row-name { font-family: var(--f-display); font-size: clamp(23px, 6.4vw, 30px); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.cat-row-meta { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--crema); }
.chev { width: 22px; height: 22px; flex: none; color: var(--ink-3); transition: transform .35s var(--ease-out), color .3s; }
.chev svg { width: 100%; height: 100%; }
.cat-row:hover .chev { transform: translateX(4px); color: var(--ink); }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 2px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; }
.link-list button span { flex: 1; }
.link-list svg { width: 20px; height: 20px; flex: none; color: var(--olive); }
.link-list svg:last-child { width: 18px; color: var(--ink-3); }
.lang-inline { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lang-inline button { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px 9px 10px; border-radius: 999px; background: var(--paper-2); font-size: 14px; font-weight: 500; transition: background .3s, color .3s; }
.lang-inline button[aria-pressed="true"] { background: var(--ink); color: var(--paper-3); }
.lang-inline .flag { width: 20px; height: 20px; }

/* página de carta */
.catview .category, .pageview { padding-top: 22px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; margin-left: -6px; padding: 6px 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); border-radius: 999px; }
.crumb svg { width: 16px; height: 16px; }
.crumb:hover { background: var(--paper-2); }
.pageview .cat-title { margin-top: 8px; }
.pageview .cat-intro { margin-top: 10px; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 40px; }
.pg { display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: var(--paper-2); text-align: left; min-width: 0; transition: transform .2s var(--ease-out), background .25s; }
.pg:active { transform: scale(.98); }
.pg.next { text-align: right; justify-items: end; grid-column: 2; }
.pg small { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.pg small svg { width: 13px; height: 13px; }
.pg span { font-family: var(--f-display); font-size: 19px; line-height: 1.15; }
.review-card { margin-top: 22px; padding: 26px 22px; border-radius: 22px; background: var(--ink); color: var(--paper-3); display: grid; gap: 14px; justify-items: start; }
.review-card p { margin: 0; font-family: var(--f-display); font-size: 21px; line-height: 1.3; }
.review-card .stars { color: #E2B35C; letter-spacing: .2em; font-size: 18px; }
.review-card .btn.primary { background: var(--paper-3); color: var(--ink); }
.review-card .btn svg, .pageview .block .btn svg { width: 17px; height: 17px; }
.pageview .wifi-card { margin-top: 22px; }

/* menú lateral (como el de la original) */
.sheet.drawer { left: 0; right: auto; top: 0; bottom: 0; margin: 0; width: min(86vw, 360px); max-width: none; max-height: none; border-radius: 0 26px 26px 0; transform: translateX(-105%); padding-top: env(safe-area-inset-top, 0px); }
.sheet.drawer.open { transform: none; }
.sheet.drawer .grab { display: none; }
.sheet.drawer .sheet-body { padding-top: 26px; }
.drawer-logo { display: grid; justify-items: start; padding: 8px 0 18px; }
.drawer-h { margin: 22px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--crema); }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-family: var(--f-display); font-size: 19px; transition: padding .3s var(--ease-out), color .3s; }
.drawer-list button:hover { padding-left: 6px; }
.drawer-list button.active { color: var(--olive); }
.drawer-list .flag { width: 20px; height: 20px; }

@keyframes viewIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes viewBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes leave { to { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
.cat-tabs { overflow: hidden; }
html, body { overflow-x: clip; }
.appbar.home-bar .appbar-logo { opacity: 0; pointer-events: none; transition: opacity .3s; }
.appbar.home-bar.scrolled .appbar-logo { opacity: 1; pointer-events: auto; }

/* =====================================================================
   v3 · pensado para móvil: logo real, tarjetas, horarios y gestión
   ===================================================================== */
.lockup { display: block; color: var(--ink); line-height: 0; }
.lockup svg { display: block; width: 100%; height: auto; overflow: visible; }
.lockup.xl { width: min(82vw, 380px); }
.lockup.lg { width: min(72vw, 300px); }
.lockup.md { width: 210px; }
.lockup.sm { width: 104px; }
.lockup .brand-logo { width: 100%; height: auto; }

/* —— pantalla de idioma —— */
.splash { grid-template-rows: 1fr auto; padding-block: max(28px, env(safe-area-inset-top, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.splash-glow { position: absolute; inset: -20% -30% auto; height: 70%; background: radial-gradient(closest-side, rgba(251,247,242,.75), transparent 70%); pointer-events: none; animation: fade 1.6s var(--ease-out) both; }
.splash-logo { position: relative; align-self: center; justify-self: center; animation: logoIn 1.3s var(--ease-out) .15s both; }
.splash-logo .lockup { animation: breathe 7s ease-in-out 2s infinite; }
.splash-bottom { position: relative; width: min(100%, 420px); justify-self: center; display: grid; gap: 14px; }
.splash-ask { margin: 0 0 4px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); animation: fade .9s var(--ease-out) .7s both; }
.splash-ask i { width: 4px; height: 4px; border-radius: 50%; background: var(--crema); }
.lang-list { gap: 10px; }
.lang-list button { padding: 0 18px 0 14px; height: 64px; border-radius: 20px; background: var(--paper-3); box-shadow: 0 1px 0 rgba(33,26,20,.05), 0 12px 28px -18px rgba(33,26,20,.45); justify-content: flex-start; gap: 14px; font-size: 14px; letter-spacing: .2em; transition: transform .25s var(--ease-out), box-shadow .3s; }
.lang-list button::after { display: none; }
.lang-list button span { flex: 1; text-align: left; }
.lang-list button svg:last-child { width: 18px; height: 18px; color: var(--ink-3); transition: transform .3s var(--ease-out); }
.lang-list button:hover, .lang-list button:focus-visible { padding-left: 14px; }
.lang-list button:active { transform: scale(.97); opacity: 1; }
.lang-list button:hover svg:last-child { transform: translateX(3px); color: var(--ink); }
.lang-list .flag { width: 30px; height: 30px; }
.splash-foot { margin-top: 10px; }
.splash.leaving .splash-logo { animation: leave .42s var(--ease-out) both; }
.splash.leaving .splash-bottom { animation: sink .42s var(--ease-out) both; }

/* —— barra superior —— */
.appbar-in { padding-block: 6px; }
.appbar .icon-btn { width: 44px; height: 44px; }
.appbar-logo { padding: 8px 6px; }
.appbar.home-bar .appbar-logo { transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease-out); }
.appbar.home-bar.scrolled .appbar-logo { transform: none; }
.appbar.home-bar { border-bottom-color: transparent; background: color-mix(in srgb, var(--paper) 82%, transparent); }
.appbar.home-bar.scrolled { border-bottom-color: var(--line); }

/* —— inicio —— */
.home .hero { gap: 14px; padding-block: 18px 6px; }
.hero-logo { animation: logoIn 1s var(--ease-out) both; }
.home .tagline { font-size: 18px; text-align: center; max-width: 26ch; text-wrap: balance; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; background: rgba(78,90,56,.1); color: var(--olive); font-size: 13.5px; font-weight: 600; }
.status-pill.closed { background: var(--paper-2); color: var(--ink-2); }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.quick > * { display: grid; justify-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 18px; background: var(--paper-2); font-size: 12.5px; font-weight: 600; text-decoration: none; text-align: center; transition: transform .2s var(--ease-out); }
.quick > *:active { transform: scale(.96); }
.q-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-3); color: var(--olive); }
.q-ico svg { width: 19px; height: 19px; }
.home .eyebrow { margin-top: 30px; }
.cat-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cat-cards li.in { animation: rise .7s var(--ease-out) both; animation-delay: calc(.12s + var(--d) * 70ms); }
.cat-card { position: relative; width: 100%; min-height: 92px; display: flex; align-items: center; gap: 14px; padding: 18px 16px 18px 20px; border-radius: 22px; background: var(--paper-3); text-align: left; overflow: hidden; box-shadow: 0 1px 0 rgba(33,26,20,.04), 0 14px 30px -22px rgba(33,26,20,.5); transition: transform .25s var(--ease-out), box-shadow .3s; }
.cat-card:active { transform: scale(.98); }
.cc-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.cc-name { font-family: var(--f-display); font-size: clamp(23px, 6.6vw, 29px); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.cc-meta { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--crema); }
.cc-arrow { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); transition: transform .35s var(--ease-out); }
.cc-arrow svg { width: 17px; height: 17px; }
.cat-card:hover .cc-arrow { transform: translateX(3px); }
.cc-pic { width: 88px; height: 88px; flex: none; margin: -6px -2px -6px 0; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.cc-pic img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.cc-pic img.ok { opacity: 1; }
.home .lang-inline { justify-content: center; margin-top: 30px; }
.foot-logo { margin-top: 18px; opacity: .55; }
.notes { margin-top: 36px; }
.signoff { display: none; }

/* —— página de carta —— */
.catview .category { padding-top: 18px; }
.catview .cat-title { font-size: clamp(36px, 10vw, 52px); }
.cat-tabs button { padding: 8px 14px; font-size: 13.5px; }
.sec-head { position: relative; }
.sec-hours.off { color: var(--crema); font-weight: 600; }
.item.later .item-name, .item.later .price, .item.later .item-desc { opacity: .55; }
.item.later .thumb { filter: grayscale(.6); opacity: .7; }
.tag.later { color: var(--crema); gap: 4px; }
.tag.later svg { width: 12px; height: 12px; }
.avail-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); font-size: 14px; color: var(--ink-2); }
.avail-note svg { width: 16px; height: 16px; flex: none; }
.avail-note.off { background: rgba(168,105,47,.12); color: var(--crema); font-weight: 600; }
.status-line { display: flex; align-items: center; gap: 9px; margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.pageview { padding-top: 22px; }
@media (max-width: 480px) {
  .item > button { padding: 15px 0; gap: 14px; }
  .item-name { font-size: 19.5px; }
  .item-desc { font-size: 14px; }
  .thumb { width: 84px; height: 84px; border-radius: 14px; }
  .sheet h2 { font-size: 29px; }
  .pager .pg span { font-size: 17px; }
}

/* —— gestión —— */
body.on-admin { background: var(--paper); }
.adm-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--ink); color: var(--paper-3); }
.adm-bar-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px var(--gutter-r) 4px var(--gutter-l); }
.adm-bar .icon-btn { color: var(--paper-3); }
.adm-bar .icon-btn:hover { background: rgba(251,247,242,.12); }
.adm-title { display: grid; text-align: center; line-height: 1.2; }
.adm-title small { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(251,247,242,.6); }
.adm-title b { font-family: var(--f-display); font-weight: 500; font-size: 19px; }
.adm-tabs { max-width: 760px; margin: 0 auto; overflow: hidden; }
.adm-tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px var(--gutter-r) 10px var(--gutter-l); }
.adm-tabs-in::-webkit-scrollbar { display: none; }
.adm-tabs button { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: rgba(251,247,242,.7); }
.adm-tabs button.active { background: var(--paper-3); color: var(--ink); }
.admview { padding-top: 18px; padding-bottom: 130px; }
.adm-search { background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--line); }
.a-cat-h { margin: 26px 0 8px; font-family: var(--f-display); font-weight: 500; font-size: 24px; }
.a-sec { margin-top: 10px; }
.a-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.a-sec-h em { font-style: normal; color: var(--crema); letter-spacing: .04em; }
.a-sec-h .btn svg { margin-right: -2px; }
.a-list { list-style: none; margin: 0; padding: 0; }
.a-row { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.a-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 0; text-align: left; }
.a-thumb { width: 46px; height: 46px; flex: none; border-radius: 12px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; font-family: var(--f-display); font-size: 20px; color: var(--ink-3); }
.a-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.a-thumb img.ok { opacity: 1; }
.a-txt { min-width: 0; display: grid; gap: 2px; }
.a-txt b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-txt small { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.warn { color: var(--danger); font-style: normal; }
.a-row.is-hidden .a-main { opacity: .45; }
.a-row.is-sold .a-txt b { text-decoration: line-through; color: var(--ink-2); }
.sw { flex: none; display: grid; justify-items: center; gap: 3px; width: 56px; font-size: 10px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.sw input, .tgl { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; margin: 0; border-radius: 12px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.sw input::after, .tgl::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(33,26,20,.3); transition: transform .3s var(--ease-spring); }
.sw input:checked, .tgl:checked { background: var(--olive); box-shadow: none; }
.sw input:checked::after, .tgl:checked::after { transform: translateX(16px); }
.sw input[data-adm="sold"]:checked { background: var(--crema); }
.a-card { margin-bottom: 12px; padding: 16px; border-radius: 18px; background: var(--paper-3); box-shadow: 0 12px 28px -24px rgba(33,26,20,.6); }
.a-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a-card-h > div:first-child { display: grid; gap: 3px; min-width: 0; }
.a-card-h b { font-family: var(--f-display); font-weight: 500; font-size: 20px; }
.a-card-h small { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.a-btns { display: flex; gap: 6px; align-items: center; flex: none; }
.mini { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--paper-2); }
.mini svg { width: 16px; height: 16px; }
.mini[disabled] { opacity: .3; }
.a-secs { list-style: none; margin: 12px 0 0; padding: 0; }
.a-secs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.a-secs small { display: block; font-size: 12px; color: var(--ink-3); }
.al-pick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.al-pick::-webkit-scrollbar { display: none; }
.al-pick button { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 8px 10px; border-radius: 999px; background: var(--paper-2); font-size: 13.5px; font-weight: 500; }
.al-pick button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.al-pick button em { font-style: normal; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.al-pick button.active { background: var(--ink); color: var(--paper-3); }
.al-pick button.active em { color: rgba(251,247,242,.6); }
.only-empty { margin-top: 6px; background: transparent; padding-left: 0; font-size: 13.5px; }
.al-head { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--paper-3); font-size: 15px; }
.al-head i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.al-rows { list-style: none; margin: 0; padding: 0; }
.al-rows label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.al-rows small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.ph-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ph-head .check { background: transparent; padding: 0; }
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
@media (min-width: 560px) { .ph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ph-tile { position: relative; display: grid; gap: 6px; min-width: 0; }
.ph-box { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--paper-3); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; cursor: pointer; max-width: 100%; }
.ph-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-box img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.ph-box img.ok { opacity: 1; }
.ph-empty { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--olive); }
.ph-empty svg { width: 20px; height: 20px; }
.ph-name { font-size: 12px; line-height: 1.25; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(33,26,20,.7); color: #fff; }
.ph-x svg { width: 12px; height: 12px; }
.ph-tile.busy .ph-box::after { content: ""; position: absolute; inset: 0; background: rgba(251,247,242,.7) ; }
.ph-tile.busy .ph-box::before { content: ""; position: absolute; z-index: 2; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--olive); border-right-color: transparent; animation: spin .7s linear infinite; }
body.on-admin .admin-dock { box-shadow: 0 -10px 30px -12px rgba(33,26,20,.4); }

@keyframes logoIn { from { opacity: 0; transform: translateY(14px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sink { to { opacity: 0; transform: translateY(18px); } }
.appbar-l { display: flex; gap: 2px; justify-self: start; }
.appbar-in { grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr); }
@media (max-width: 420px) {
  .admin-dock .state { font-size: 0; }
  .admin-dock .state b { font-size: 13px; }
  .admin-dock { gap: 6px; }
}

/* —— promociones: ventana con foto, sin ocupar toda la pantalla —— */
.promo-layer { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); pointer-events: none; }
@media (min-height: 700px) { .promo-layer { place-items: center; padding-bottom: 0; } }
.promo-scrim { position: absolute; inset: 0; background: rgba(33,26,20,.32); opacity: 0; transition: opacity .4s var(--ease-out); pointer-events: auto; }
.promo-box { position: relative; width: min(100%, 340px); border-radius: 26px; background: var(--paper-3); box-shadow: 0 30px 70px -20px rgba(33,26,20,.55); overflow: hidden; pointer-events: auto; transform: translateY(40px) scale(.92); opacity: 0; transition: transform .6s var(--ease-spring), opacity .35s var(--ease-out); }
.promo-layer.open .promo-scrim { opacity: 1; }
.promo-layer.open .promo-box { transform: none; opacity: 1; }
.promo-layer.closing .promo-box { transform: translateY(24px) scale(.96); opacity: 0; transition-duration: .3s; }
.promo-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(251,247,242,.92); box-shadow: 0 2px 10px rgba(33,26,20,.2); }
.promo-close svg { width: 14px; height: 14px; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promo-track::-webkit-scrollbar { display: none; }
.promo-card { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.promo-hit { display: block; width: 100%; text-align: left; }
.promo-img { position: relative; aspect-ratio: 4/3; background: var(--paper-2); overflow: hidden; max-width: 100%; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s, transform 6s var(--ease-out); }
.promo-img img.ok { opacity: 1; transform: scale(1); }
.promo-noimg { position: absolute; inset: 0; display: grid; place-items: center; }
.promo-badge { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 999px; background: var(--crema); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.promo-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.promo-body h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 25px; line-height: 1.08; text-wrap: balance; }
.promo-body p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.promo-cta b { font-size: 17px; font-variant-numeric: tabular-nums; }
.promo-cta span { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper-3); font-size: 13.5px; font-weight: 600; }
.promo-cta svg { width: 15px; height: 15px; }
.promo-dots { position: absolute; left: 0; right: 0; top: calc(min(100%, 340px) * .75 - 22px); display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.promo-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(251,247,242,.6); transition: width .3s var(--ease-out), background .3s; }
.promo-dots i.on { width: 18px; background: #fff; }
.promo-row { display: flex; align-items: center; gap: 12px; padding: 12px; }
.pr-thumb { width: 56px; height: 56px; flex: none; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pr-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.pr-txt b { font-family: var(--f-display); font-weight: 500; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-txt small { font-size: 12px; color: var(--ink-2); }
.pr-state { font-weight: 700; color: var(--ink-3); }
.pr-state.on { color: var(--olive); }
.cat-card { min-height: 84px; }
.cc-name { font-size: clamp(24px, 6.8vw, 30px); }
.appbar-in { grid-template-columns: minmax(92px, 1fr) auto minmax(92px, 1fr); }
.back-btn { margin-left: -6px; }
.catview .category { padding-top: 22px; }

/* —— deslizar entre cartas —— */
.catview { touch-action: pan-y; will-change: transform; }
.swipe-peek { position: fixed; z-index: 15; top: 50%; display: flex; align-items: center; gap: 6px; max-width: 46vw; padding: 10px 14px; border-radius: 999px; background: var(--ink); color: var(--paper-3); font-family: var(--f-display); font-size: 16px; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 10px 30px -10px rgba(33,26,20,.5); }
.swipe-peek span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swipe-peek svg { width: 16px; height: 16px; flex: none; }
.swipe-peek.left { left: max(12px, env(safe-area-inset-left, 0px)); }
.swipe-peek.right { right: max(12px, env(safe-area-inset-right, 0px)); }
.swipe-peek:empty { display: none; }
.swipe-hint { position: fixed; z-index: 50; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); display: flex; align-items: center; gap: 12px; padding: 11px 18px 11px 14px; border-radius: 999px; background: var(--ink); color: var(--paper-3); font-size: 13.5px; font-weight: 500; opacity: 0; transition: opacity .4s, transform .5s var(--ease-spring); pointer-events: none; white-space: nowrap; }
.swipe-hint.show { opacity: 1; transform: translate(-50%, 0); }
.sh-hand { position: relative; width: 34px; height: 18px; }
.sh-hand::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; border-radius: 1px; background: rgba(251,247,242,.35); }
.sh-hand::after { content: ""; position: absolute; top: 3px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--crema); animation: hint 1.4s var(--ease-out) infinite; }
@keyframes hint { 0% { transform: translateX(22px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
.gate .splash-bottom { justify-items: center; text-align: center; gap: 12px; }
.gate-msg { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); max-width: 32ch; line-height: 1.45; }
.gate .btn { min-width: 200px; }
.wifi-steps { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: rgba(251,247,242,.82); }
.wifi-qr-wrap { margin-top: 16px; display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid rgba(251,247,242,.14); }
.wifi-qr { width: 104px; height: 104px; flex: none; padding: 6px; border-radius: 12px; background: var(--paper-3); }
.wifi-qr svg { display: block; width: 100%; height: 100%; }
.wifi-qr svg path, .wifi-qr svg rect[fill="black"] { fill: var(--ink); }
.wifi-qr-wrap p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(251,247,242,.75); }

/* =====================================================================
   v4 · categorías abajo, filtro de alérgenos visible, sin buscador
   ===================================================================== */
.appbar-in { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.al-pill { justify-self: end; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--olive-soft); color: var(--olive); font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; transition: background .25s, color .25s, transform .15s; }
.al-pill svg { width: 17px; height: 17px; flex: none; }
.al-pill:active { transform: scale(.95); }
.al-pill.on { background: var(--olive); color: #fff; }
.al-pill b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: var(--olive); font-size: 11px; display: inline-grid; place-items: center; }
@media (max-width: 370px) { .al-pill span { display: none; } }

.filter-cta { width: 100%; display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 18px; background: var(--olive-soft); color: var(--olive); text-align: left; transition: transform .15s, background .25s; }
.filter-cta:active { transform: scale(.98); }
.filter-cta > svg { width: 18px; height: 18px; flex: none; opacity: .7; }
.fc-ico { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: #fff; }
.fc-ico svg { width: 18px; height: 18px; }
.fc-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fc-txt b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.fc-txt small { font-size: 12.5px; color: var(--olive); }
.home-filter { margin-top: 20px; }
.home-filter .filter-cta, .home-filter .filter-on { margin-top: 0; }
.filter-on { margin-top: 14px; padding: 12px 14px 14px; border-radius: 18px; background: var(--olive); color: #fff; display: grid; gap: 10px; }
.fo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.fo-head button { padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font-size: 12px; letter-spacing: 0; text-transform: none; }
.fo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fo-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 13px; font-weight: 600; }
.fo-chips button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.fo-chips button svg { width: 12px; height: 12px; opacity: .55; }
.fo-chips .fo-clear { background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* barra inferior de cartas */
.cat-dock { position: fixed; z-index: 22; left: 0; right: 0; bottom: 0; padding: 0 max(10px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); pointer-events: none; animation: dockUp .6s var(--ease-spring) both; }
.cd-in { pointer-events: auto; max-width: 740px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px; border-radius: 22px; background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px -14px rgba(33,26,20,.6); scroll-behavior: smooth; }
.cd-in::-webkit-scrollbar { display: none; }
.cd-in button { flex: none; scroll-snap-align: center; padding: 11px 15px; border-radius: 16px; color: rgba(251,247,242,.72); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s; }
.cd-in button.active { background: var(--paper-3); color: var(--ink); }
body.has-dock main { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
body.editing .cat-dock { bottom: 64px; }
body.editing.has-dock main { padding-bottom: 190px; }
.swipe-peek { top: 46%; }
@keyframes dockUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ilustraciones de ejemplo */
.sheet-photo { position: relative; }
.ex-tag { position: absolute; right: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(33,26,20,.55); color: #fff; font-size: 10.5px; letter-spacing: .06em; }
.ph-ex { display: inline-block; margin-right: 5px; padding: 1px 6px; border-radius: 6px; background: var(--paper-2); color: var(--crema); font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
body.has-dock .swipe-hint { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.al-pill.on { padding: 0 10px; }

/* volver a la lista de cartas */
.back-home { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px -4px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: 13.5px; font-weight: 600; transition: transform .15s, background .2s; }
.back-home svg { width: 17px; height: 17px; }
.back-home:active { transform: scale(.96); }
.cd-row { pointer-events: auto; max-width: 740px; margin: 0 auto; display: flex; align-items: stretch; gap: 6px; }
.cd-row .cd-in { flex: 1; min-width: 0; margin: 0; }
.cd-home { flex: none; display: grid; justify-items: center; align-content: center; gap: 2px; width: 62px; border-radius: 22px; background: var(--paper-3); color: var(--ink); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 16px 40px -14px rgba(33,26,20,.6); transition: transform .15s; }
.cd-home svg { width: 20px; height: 20px; }
.cd-home:active { transform: scale(.94); }
.foot-status { justify-self: start; margin-top: 14px; font-size: 13px; }
