/* ============ Tokens ============ */
:root {
  --wall: #FAFAF7;        /* azulejo blanco del local */
  --wall-2: #F0F1EC;
  --tile-line: rgba(38, 51, 45, .06);
  --ink: #1D2421;
  --muted: #59625D;
  --line: #DADDD5;
  --slate: #26332D;       /* pizarra */
  --slate-2: #2E3D36;
  --chalk: #ECEEE6;       /* tiza */
  --chalk-dim: rgba(236, 238, 230, .72);
  --saffron: #E3A21A;     /* azafrán: arroces, fideuá */
  --saffron-ink: #3A2A05;
  --copper: #A85A32;      /* lámparas de cobre */
  --olive: #56623A;
  --paper: #FFFDF6;       /* comanda */
  --paper-line: #E6E0CF;
  --wa: #1F8A4C;
  --focus: #1F6FB2;

  --f-display: "Young Serif", Georgia, serif;
  --f-body: "Figtree", system-ui, sans-serif;
  --f-chalk: "Gochi Hand", "Segoe Print", cursive;

  --r-s: 6px;
  --r-m: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #151A18;
    --wall-2: #1B211E;
    --tile-line: rgba(236, 238, 230, .04);
    --ink: #E9EBE4;
    --muted: #A7AEA8;
    --line: #313A35;
    --slate: #22302A;
    --slate-2: #2A3832;
    --paper: #F4F0E2;
    --paper-line: #DCD4BD;
    --focus: #7DB8F0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #151A18; --wall-2: #1B211E; --tile-line: rgba(236,238,230,.04);
  --ink: #E9EBE4; --muted: #A7AEA8; --line: #313A35;
  --slate: #22302A; --slate-2: #2A3832; --paper: #F4F0E2; --paper-line: #DCD4BD;
  --focus: #7DB8F0; color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--wall); padding: 10px 14px; border-radius: var(--r-s); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-small { min-height: 40px; padding: .45em 1em; font-size: .93rem; }
.btn-block { width: 100%; }
.btn-saffron { background: var(--saffron); color: var(--saffron-ink); }
.btn-saffron:not(:disabled):hover { background: #F0B232; }
.btn-dark { background: var(--slate); color: var(--chalk); }
.btn-dark:hover { background: var(--slate-2); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--wall-2); }
.btn-whatsapp { background: var(--wa); color: #fff; width: 100%; }
.btn-whatsapp:hover { background: #18733F; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--wall) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 1.35rem; }
.brand-mark { width: 34px; height: 34px; color: var(--copper); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; color: var(--muted); }
.main-nav a:hover { color: var(--ink); background: var(--wall-2); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 0 0 clamp(48px, 7vw, 88px);
  background-color: var(--wall);
  background-image:
    linear-gradient(var(--tile-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tile-line) 1px, transparent 1px);
  background-size: 44px 22px;
  overflow: hidden;
}
.lamps {
  position: relative; height: clamp(96px, 11vw, 124px);
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-around; padding: 0 12%;
  pointer-events: none;
}
.lamp { position: relative; width: 120px; display: flex; flex-direction: column; align-items: center; }
.lamp .cord { width: 2px; flex: 1; background: #3B3B3B; }
.lamp .shade {
  width: 108px; height: 48px;
  background: linear-gradient(100deg, #7C3E1F 0%, #C27443 35%, #E3A06E 48%, #B4632F 62%, #6F3519 100%);
  border-radius: 54px 54px 6px 6px / 46px 46px 6px 6px;
  position: relative; z-index: 2;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25);
}
.lamp .shade::before { content: ""; position: absolute; left: 50%; top: -8px; width: 16px; height: 12px; transform: translateX(-50%); background: #6F3519; border-radius: 4px 4px 0 0; }
.lamp .glow {
  position: absolute; bottom: -150px; left: 50%; width: 360px; height: 220px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 196, 120, .45), rgba(255, 196, 120, 0) 65%);
  z-index: 1;
}
.lamp:nth-child(2) .cord { flex: .7; }

.board {
  position: relative; z-index: 3;
  background: var(--slate);
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.06), transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(255,255,255,.045), transparent 45%),
    radial-gradient(ellipse at 60% 15%, rgba(255,255,255,.035), transparent 35%);
  border: clamp(10px, 1.6vw, 16px) solid #6B4A2E;
  border-image: linear-gradient(135deg, #7A5535, #5A3B22 40%, #835C3A 70%, #5A3B22) 1;
  box-shadow: 0 30px 60px -30px rgba(20, 28, 24, .55), 0 2px 0 rgba(0,0,0,.2);
  color: var(--chalk);
}
.board-inner { position: relative; padding: clamp(24px, 4.5vw, 56px) clamp(20px, 5vw, 64px) clamp(28px, 4.5vw, 52px); }
.board-ledge { position: absolute; left: 8%; right: 8%; bottom: -22px; height: 10px; background: #5A3B22; border-radius: 0 0 4px 4px; display: flex; gap: 14px; padding-left: 40px; }
.chalk-stick { display: block; width: 44px; height: 8px; margin-top: -6px; background: #F4F4EE; border-radius: 3px; }
.chalk-stick.s2 { width: 30px; background: #F2C9A0; transform: rotate(-4deg); }

.chalk-line { width: 100%; max-width: 560px; height: auto; margin: 0 auto; overflow: visible; }
.chalk-line text {
  font-family: var(--f-chalk); font-size: 92px;
  fill: var(--chalk); stroke: var(--chalk); stroke-width: 1.2;
  filter: url(#chalk);
  stroke-dasharray: 1800; stroke-dashoffset: 1800; fill-opacity: 0;
  animation: write 1.8s cubic-bezier(.45,.05,.4,1) .3s forwards, fill-in .8s ease-out 1.5s forwards;
}
.chalk-line text.l2 { fill: var(--saffron); stroke: var(--saffron); animation-delay: 1.1s, 2.2s; }
@keyframes write { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: .95; stroke-width: .4; } }

.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  max-width: 22ch; margin: clamp(14px, 2vw, 22px) auto 0;
  text-align: center; color: #fff;
}
.hero-lead {
  max-width: 58ch; margin: 16px auto 0; text-align: center;
  color: var(--chalk-dim); font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.chalk-facts {
  list-style: none; margin: clamp(26px, 4vw, 40px) auto 0; padding: 22px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px;
  max-width: 900px; border-top: 2px dashed rgba(236,238,230,.25);
  font-family: var(--f-chalk); font-size: 1.25rem; line-height: 1.3; color: var(--chalk-dim);
}
.chalk-facts strong { display: block; font-weight: 400; font-size: 2rem; color: var(--saffron); }

.doodle { position: absolute; fill: none; stroke: var(--chalk); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; filter: url(#chalk); }
.doodle-pot { width: 92px; right: clamp(14px, 3vw, 40px); top: clamp(14px, 3vw, 30px); transform: rotate(6deg); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }

/* ============ Secciones ============ */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* ============ Galería de platos ============ */
.gallery { padding-bottom: clamp(40px, 6vw, 72px); }
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.gallery-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 52ch; }
.gallery-nav { display: flex; gap: 8px; flex: none; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover:not(:disabled) { background: var(--ink); color: var(--wall); }
.round-btn:disabled { opacity: .3; cursor: default; }

.strip {
  list-style: none; margin: 0; padding: 4px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 290px); gap: clamp(14px, 2vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.strip > li { scroll-snap-align: start; }
.strip > li:nth-child(even) { padding-top: 34px; }
.plate {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit;
}
.plate-img { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--wall-2); }
.plate-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.plate:hover .plate-img img { transform: scale(1.04); }
.plate-course {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(38, 51, 45, .82); color: var(--chalk); font-size: .82rem; font-weight: 600; backdrop-filter: blur(4px);
}
.plate-add {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--saffron); color: var(--saffron-ink);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); transition: transform .15s;
}
.plate-add svg { width: 22px; height: 22px; }
.plate:hover .plate-add { transform: scale(1.08); }
.plate[aria-pressed="true"] .plate-add { background: var(--olive); color: #fff; }
.plate-name { display: block; margin-top: 12px; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.2; }

/* Fotos sueltas */
.photo { margin: 28px 0 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 9 / 7; object-fit: cover; border-radius: 14px; }
.photo figcaption { margin-top: 10px; font-family: var(--f-chalk); font-size: 1.3rem; color: var(--copper); }
.catering-photos { position: relative; margin: 30px 0 8px; padding-right: 18%; padding-bottom: 12%; }
.catering-photos img { border-radius: 14px; object-fit: cover; }
.cp-main { width: 100%; aspect-ratio: 10 / 7; }
.cp-side {
  position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 1;
  border: 6px solid var(--slate); border-radius: 18px !important;
}
.credits { margin-top: 6px; opacity: .8; }

/* ============ Menú del día ============ */
.menu-section { background: var(--wall); }
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-bottom: 1px solid var(--line); }
.step {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  padding: 12px 6px 14px; cursor: pointer; color: var(--muted);
}
.step-n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--f-display); font-size: 1.05rem;
  border: 2px solid var(--line);
}
.step-txt { display: flex; flex-direction: column; min-width: 0; }
.step-name { font-weight: 600; color: var(--ink); }
.step-pick { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step[aria-selected="true"] { border-bottom-color: var(--saffron); }
.step[aria-selected="true"] .step-n { border-color: var(--saffron); background: var(--saffron); color: var(--saffron-ink); }
.step.is-done .step-n { background: var(--slate); border-color: var(--slate); color: var(--chalk); }
.step.is-done .step-pick { color: var(--ink); }

.picker-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin: 22px 0 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 500; cursor: pointer; min-height: 36px;
}
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--wall); }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 200px; min-height: 40px; padding: 6px 12px 6px 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--wall); }

.dishes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 28px; min-height: 280px;
}
.dish {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  background: none; border: 0; border-bottom: 1px dotted var(--line);
  text-align: left; padding: 12px 4px; cursor: pointer; font-size: 1.02rem;
}
.dish::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); transform: translateY(2px);
}
.dish:hover { background: var(--wall-2); }
.dish[aria-pressed="true"] { font-weight: 600; }
.dish[aria-pressed="true"]::before { border-color: var(--saffron); background: radial-gradient(circle, var(--saffron) 45%, transparent 50%); }
.dish-tag { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 400; white-space: nowrap; }
.dishes-empty { color: var(--muted); padding: 24px 0; }

.picker-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; }
.fine { margin-top: 14px; font-size: .9rem; color: var(--muted); }

/* Comanda */
.comanda { position: sticky; top: 92px; }
.pad {
  position: relative; background: var(--paper); color: #2A2A24;
  padding: 26px 24px 24px;
  border-radius: 2px 2px 4px 4px;
  box-shadow: 0 1px 0 #D9D2BC, 0 18px 40px -22px rgba(30, 30, 20, .45);
  background-image: repeating-linear-gradient(var(--paper) 0 31px, var(--paper-line) 31px 32px);
  background-position: 0 14px;
  transform: rotate(.6deg);
}
.pad-top {
  position: absolute; left: 0; right: 0; top: -10px; height: 14px;
  background: radial-gradient(circle at 7px 0, transparent 6px, #B23A2E 6.5px) repeat-x;
  background-size: 18px 14px;
}
.pad-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid #2A2A24; padding-bottom: 8px; }
.pad-head h3 { font-size: 1.6rem; }
.pad-date { font-family: var(--f-chalk); font-size: 1.15rem; color: #4A4A40; text-transform: none; }
.pad-lines { list-style: none; margin: 10px 0 0; padding: 0; font-family: var(--f-chalk); font-size: 1.2rem; line-height: 32px; }
.pad-line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: start; padding: 0; animation: jot .35s ease-out; }
@keyframes jot { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.pad-line small { display: block; font-size: 1rem; color: #5A5A50; line-height: 32px; }
.pad-line .price { white-space: nowrap; }
.pad-remove {
  width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; border: 0; background: transparent; color: #8A3A2E;
  font-size: 1.3rem; line-height: 1; cursor: pointer; font-family: var(--f-body);
}
.pad-remove:hover { background: rgba(178, 58, 46, .12); }
.pad-empty { font-family: var(--f-chalk); font-size: 1.15rem; line-height: 32px; color: #6A6A5E; margin-top: 10px; }
.pad-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 8px; border-top: 2px solid #2A2A24; font-weight: 600; }
.pad-total strong { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; }
.pad-note { font-size: .86rem; color: #5A5A50; margin-top: 4px; }

.pad-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; background: var(--paper); margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
.pad-form .btn-ghost { color: #2A2A24; }
.pad-form .btn-ghost:hover { background: #F1ECDC; }

/* Campos */
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend, .field > label { font-size: .9rem; font-weight: 600; padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field input[type="time"], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 9px 12px; border-radius: var(--r-s);
  border: 1px solid #CFC8B2; background: #fff; color: #222;
}
.field textarea { resize: vertical; min-height: 84px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg legend { grid-column: 1 / -1; margin-bottom: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: grid; place-items: center; min-height: 42px; border: 1px solid #CFC8B2; border-radius: var(--r-s); font-weight: 500; cursor: pointer; background: #fff; }
.seg input:checked + span { background: var(--slate); color: var(--chalk); border-color: var(--slate); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-error { color: #A3271B; font-weight: 600; font-size: .92rem; }

/* ============ Por encargo ============ */
.encargos { background: var(--wall-2); }
.encargos-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.encargos .section-head { position: sticky; top: 100px; margin-bottom: 0; }
.specials { list-style: none; margin: 0; padding: 0; }
.special {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.special:first-child { border-top: 1px solid var(--line); }
.special-name { font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; }
.special-add {
  min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.special-add:hover { background: var(--ink); color: var(--wall); }
.special-add[data-added="true"] { background: var(--olive); border-color: var(--olive); color: #fff; }

/* ============ Catering ============ */
.catering { background: var(--slate); color: var(--chalk); }
.catering-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.catering h2 { color: #fff; }
.catering .lead { margin-top: 18px; font-size: 1.15rem; color: var(--chalk-dim); max-width: 46ch; }
.events { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-family: var(--f-chalk); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--chalk); }
.events li { filter: url(#chalk); }
.events li:nth-child(3n+2) { color: var(--saffron); }
.diet-note { display: flex; gap: 16px; margin-top: 36px; padding: 20px; border: 1px dashed rgba(236,238,230,.35); border-radius: var(--r-m); color: var(--chalk-dim); }
.diet-note svg { width: 40px; height: 40px; flex: none; color: var(--saffron); }
.diet-note strong { color: var(--chalk); }

.quote { background: var(--paper); color: #222; border-radius: var(--r-m); padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.quote h3 { font-size: 1.7rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chips, .checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chips label, .checks label { position: relative; }
.chips input, .checks input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span, .checks span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 1px solid #CFC8B2; border-radius: 999px; background: #fff; font-weight: 500; font-size: .95rem; cursor: pointer; }
.checks span::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border: 1.5px solid #8C8775; border-radius: 3px; }
.chips input:checked + span { background: var(--slate); color: var(--chalk); border-color: var(--slate); }
.checks input:checked + span { background: #F6E7C4; border-color: var(--saffron); }
.checks input:checked + span::before { background: var(--saffron); border-color: var(--saffron); box-shadow: inset 0 0 0 2px #F6E7C4; }
.chips input:focus-visible + span, .checks input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.guests label { font-size: .9rem; font-weight: 600; }
.guests-row { display: flex; align-items: center; gap: 16px; }
.guests-row input { flex: 1; accent-color: var(--slate); height: 32px; }
.guests-row output { font-family: var(--f-display); font-size: 1.8rem; min-width: 3ch; text-align: right; }
.quote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote .btn-ghost { color: #222; }
.quote .btn-ghost:hover { background: #F1ECDC; }

/* ============ Opiniones ============ */
.opinions { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.opinions-row { display: grid; grid-template-columns: auto auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.score { display: grid; gap: 2px; text-decoration: none; }
.score-num { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.stars { color: var(--saffron); letter-spacing: 2px; }
.score-txt { color: var(--muted); font-size: .95rem; max-width: 22ch; }
.score:hover .score-txt { text-decoration: underline; }
.opinions-quote { font-family: var(--f-chalk); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--copper); max-width: 34ch; justify-self: end; }

/* ============ Tiendas ============ */
.shops-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.shop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.shop {
  display: grid; gap: 4px; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 20px; border-radius: var(--r-m); border: 1.5px solid var(--line); background: transparent;
}
.shop:hover { border-color: var(--muted); }
.shop[aria-pressed="true"] { border-color: var(--slate); background: var(--wall-2); box-shadow: inset 4px 0 0 var(--saffron); }
.shop-kind { font-size: .88rem; color: var(--muted); font-weight: 500; }
.shop-name { font-family: var(--f-display); font-size: 1.3rem; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.shop-actions a { font-weight: 600; font-size: .95rem; text-underline-offset: 3px; }
.map-frame { border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--wall-2); }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ============ Footer ============ */
.site-footer { background: var(--slate); color: var(--chalk-dim); padding: 56px 0 28px; }
.site-footer a { color: var(--chalk); text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--f-display); font-size: 1.8rem; color: #fff; margin-bottom: 8px; }
.footer-h { color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer-grid p { line-height: 1.8; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(236,238,230,.15); font-size: .9rem; }

/* ============ Barra móvil y toast ============ */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; align-items: center; gap: 12px; padding: 12px 18px;
  background: var(--slate); color: var(--chalk); border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.mobile-bar strong { font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; }
.mobile-bar-cta { margin-left: auto; background: var(--saffron); color: var(--saffron-ink); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--wall); padding: 12px 20px; border-radius: 999px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .menu-layout { grid-template-columns: 1fr; }
  .comanda { position: static; max-width: 520px; }
  .catering-grid, .encargos-grid, .shops-grid { grid-template-columns: 1fr; }
  .encargos .section-head { position: static; margin-bottom: 8px; }
  .opinions-row { grid-template-columns: auto auto; }
  .opinions-quote { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .main-nav { display: none; }
  .header-row { justify-content: space-between; min-height: 60px; }
  .brand { white-space: nowrap; font-size: 1.2rem; }
  .call-btn { width: 44px; min-height: 44px; padding: 0; }
  .call-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lamps { padding: 0 4%; }
  .lamp:nth-child(3) { display: none; }
  .lamp .shade { width: 84px; height: 38px; }
  .chalk-facts { grid-template-columns: 1fr; text-align: left; gap: 12px; }
  .chalk-facts strong { display: inline; font-size: 1.6rem; margin-right: 6px; }
  .doodle-pot { display: none; }
  .hero-actions .btn { width: 100%; }
  .steps { gap: 0; }
  .step { flex-direction: column; align-items: flex-start; gap: 6px; padding-inline: 4px; }
  .step-pick { max-width: 100%; }
  .search, .search input { width: 100%; }
  .dishes { grid-template-columns: 1fr; }
  .picker-foot .btn { flex: 1; }
  .gallery-nav { display: none; }
  .strip { grid-auto-columns: 68vw; }
  .strip > li:nth-child(even) { padding-top: 0; }
  .comanda { max-width: none; }
  .pad { transform: none; }
  .field-row, .quote-actions, .footer-grid { grid-template-columns: 1fr; }
  .opinions-row { grid-template-columns: 1fr 1fr; }
  .mobile-bar:not([hidden]) { display: flex; }
  body.has-bar { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chalk-line text { animation: none; stroke-dashoffset: 0; fill-opacity: .95; stroke-width: .4; }
  .pad-line { animation: none; }
  .plate-img img, .plate-add { transition: none; }
  .toast { transition: none; }
}
