/* =========================================================
   Kali Sushi Bar · Santander
   Paleta: tinta + papel de arroz + coral del logotipo
   ========================================================= */

@font-face {
  font-family: "Shippori Mincho";
  src: url("fonts/shippori-mincho-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho";
  src: url("fonts/shippori-mincho-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141210;
  --ink-2: #1e1b18;
  --ink-3: #2a2622;
  --paper: #f7f2ea;
  --paper-2: #efe7db;
  --card: #fffdf9;
  --text: #1a1714;
  --muted: #6b6158;
  --line: rgba(26, 23, 20, 0.12);
  --on-dark: #f4eee6;
  --on-dark-muted: #b5aa9c;
  --line-dark: rgba(244, 238, 230, 0.14);
  --accent: #ec575d;          /* coral del logo: detalles y texto sobre fondo oscuro */
  --accent-strong: #b3313a;   /* botones con texto blanco */
  --accent-soft: rgba(236, 87, 93, 0.12);
  --wa: #25d366;

  --serif: "Shippori Mincho", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 18, 16, 0.06), 0 8px 24px rgba(20, 18, 16, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent-strong); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Iconos */
.i {
  width: 1.15em; height: 1.15em; flex: none;
  display: inline-block; vertical-align: -0.2em;
  fill: none; stroke: currentColor;
}
.i-star { color: #f2b544; }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.eyebrow-accent { color: var(--accent-strong); }

.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }

.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head-split {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.section-lead { margin: 14px 0 0; color: var(--muted); max-width: 520px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn-lg { min-height: 54px; padding: 0 28px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent-strong); color: #fff; }
.btn-accent:hover { background: #9c2a32; }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost-light { border: 1px solid var(--line-dark); color: var(--on-dark); }
.btn-ghost-light:hover { border-color: var(--on-dark-muted); background: rgba(255,255,255,.04); }
.btn .i-wa, .btn-ghost-light .i { color: var(--wa); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.icon-btn {
  position: relative;
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s var(--ease);
}
.icon-btn .i { width: 22px; height: 22px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--accent-strong);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-btn { color: var(--muted); font-size: 0.875rem; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.link-btn:hover { color: var(--text); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  background: rgba(20, 18, 16, 0);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(20, 18, 16, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; }
.brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.18em; text-transform: uppercase; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (max-width: 420px) {
  .brand-sub { letter-spacing: 0.06em; white-space: nowrap; font-size: 0.7rem; }
  .brand-name { font-size: 1.2rem; }
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.9rem; color: var(--on-dark-muted);
  padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.main-nav a:hover, .main-nav a.is-current { color: var(--on-dark); border-bottom-color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: var(--ink);
  font-size: 0.7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--on-dark-muted); margin-right: 6px;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6f6a63; }
.status-pill.is-open::before { background: #4cc38a; box-shadow: 0 0 0 4px rgba(76, 195, 138, .15); }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .status-pill { display: none; }
}
@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px 20px 24px;
    background: rgba(20, 18, 16, 0.97);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
  .main-nav a:hover, .main-nav a.is-current { border-bottom-color: var(--line-dark); color: var(--accent); }
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(var(--header-h) + 40px) 0 72px;
  overflow: hidden;
}
.hero::before {
  /* luz cálida muy sutil */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(236, 87, 93, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 72px) 0 112px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.08rem; color: var(--on-dark-muted); max-width: 30em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-facts {
  list-style: none; margin: 0; padding: 22px 0 0;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-size: 0.875rem; color: var(--on-dark-muted);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }

.hero-visual { margin: 0; }
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  background: linear-gradient(to top, rgba(20, 18, 16, .35), transparent 35%);
  pointer-events: none;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 6s linear;
}
.hero-img.is-active { opacity: 1; transform: scale(1); }
.hero-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; font-size: 0.85rem; color: var(--on-dark-muted);
}
.hero-dots { display: flex; gap: 4px; }
.hero-controls { display: flex; align-items: center; gap: 6px; }
.hero-pause {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: var(--on-dark-muted); border: 1px solid var(--line-dark);
}
.hero-pause:hover { color: var(--on-dark); border-color: var(--on-dark-muted); }
.hero-pause .i { width: 12px; height: 12px; }
.hero-dots button {
  width: 28px; height: 28px; display: grid; place-items: center;
}
.hero-dots button::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--line-dark); transition: background-color .3s var(--ease), width .3s var(--ease);
}
.hero-dots button[aria-current="true"]::before { background: var(--accent); width: 26px; }

@media (max-width: 899px) {
  .hero-visual { order: -1; }
  .hero-frame { aspect-ratio: 16 / 11; }
  .hero-actions .btn { flex: 1 1 200px; }
}

/* Portada solo con texto (sin fotos) */
.hero-solo { text-align: center; padding: calc(var(--header-h) + 56px) 0 64px; }
.hero-solo::before {
  inset: auto; left: 50%; top: 45%; width: min(980px, 140vw); height: min(980px, 140vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(236, 87, 93, 0.13), transparent 72%);
}
.hero-solo::after {
  /* círculos finos, como el borde de un plato */
  content: ""; position: absolute; left: 50%; top: 45%; width: min(1180px, 170vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 63px, rgba(244, 238, 230, 0.05) 64px 65px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  mask-image: radial-gradient(circle, #000 25%, transparent 68%);
  pointer-events: none;
}
.hero-solo .hero-grid { z-index: 1; grid-template-columns: 1fr; max-width: 940px; margin-inline: auto; }
.hero-solo .hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-solo .eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-solo .eyebrow::before, .hero-solo .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--accent); }
.hero-solo .hero-title { font-size: clamp(3rem, 11vw, 7.25rem); line-height: 0.98; margin-bottom: 28px; }
.hero-solo .hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); max-width: 34em; margin: 0 auto 40px; }
.hero-solo .hero-actions { justify-content: center; margin-bottom: 52px; }
.hero-solo .hero-facts {
  justify-content: center; gap: 0; padding: 0; border-top: 0;
  font-size: 0.9rem;
}
.hero-solo .hero-facts li { padding: 4px 24px; }
.hero-solo .hero-facts li + li { border-left: 1px solid var(--line-dark); }
@media (min-width: 900px) {
  .hero-solo { min-height: min(92vh, 900px); display: flex; align-items: center; padding: calc(var(--header-h) + 72px) 0 96px; }
  .hero-solo .container { width: 100%; }
}
@media (max-width: 899px) {
  .hero-solo .eyebrow { letter-spacing: 0.16em; text-wrap: balance; }
  .hero-solo .eyebrow::before, .hero-solo .eyebrow::after { display: none; }
  .hero-solo .hero-actions { width: 100%; }
  .hero-solo .hero-facts { flex-direction: column; gap: 10px; }
  .hero-solo .hero-facts li { padding: 0; justify-content: center; }
  .hero-solo .hero-facts li + li { border-left: 0; }
}

/* ---------- Especialidades ---------- */
.signatures { padding-bottom: 40px; }
.sig-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .sig-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.sig-card { display: block; }
.sig-card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius);
  transition: transform .6s var(--ease), filter .6s var(--ease);
}
.sig-card:hover img { transform: translateY(-4px); filter: saturate(1.08); }
.sig-body { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; }
.sig-kicker { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-strong); font-weight: 600; }
.sig-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
.sig-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.sig-card:hover .sig-link { color: var(--text); }

/* ---------- Carta ---------- */
.mode-switch {
  display: inline-flex; padding: 4px; gap: 4px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px;
}
.mode-switch button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.mode-switch button[aria-checked="true"] { background: var(--ink); color: var(--on-dark); }
.mode-switch-block { display: flex; width: 100%; }
.mode-switch-block button { flex: 1; justify-content: center; padding: 0 10px; font-size: 0.85rem; }

.menu-controls {
  position: sticky; top: var(--header-h); z-index: 20;
  margin: 0 -20px; padding: 10px 20px;
  background: rgba(247, 242, 234, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .menu-controls { margin: 0 -32px; padding: 12px 32px; } }

.cat-bar {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
  mask-image: linear-gradient(to right, #000 92%, transparent);
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; min-height: 40px; padding: 0 14px;
  border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.cat-tab:hover { color: var(--text); background: var(--paper-2); }
.cat-tab[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }

.menu-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 18px; }
@media (max-width: 599px) {
  .menu-tools .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .menu-tools .filter-chips::-webkit-scrollbar { display: none; }
  .menu-tools .chip { flex: none; }
}
.search-field {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted);
}
.search-field:focus-within { border-color: var(--text); color: var(--text); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 0.95rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.chip:hover { color: var(--text); border-color: rgba(26, 23, 20, .3); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-strong); color: var(--accent-strong); }

.menu-group { padding-top: 36px; }
.menu-group + .menu-group { padding-top: 48px; }
.menu-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--text);
}
.menu-group-title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 1.9rem); }
.menu-group-desc { margin: 6px 0 0; max-width: 62ch; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.menu-group-count { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; }

.menu-rows { display: grid; }
@media (min-width: 1140px) { .menu-rows { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

.dish {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.dish.has-photo { grid-template-columns: 84px 1fr auto; }
.dish-photo {
  width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--paper-2);
}
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.dish-photo:hover img { transform: scale(1.06); }
.dish-main { min-width: 0; }
.dish-name {
  font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; text-align: left;
  padding: 6px 0; margin: -6px 0;
}
button.dish-name:hover { color: var(--accent-strong); }
.dish-portion { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.dish-desc {
  margin: 6px 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: var(--paper-2); color: var(--muted);
}
.tag .i { width: 13px; height: 13px; }
.tag-veggie { color: #2f6b3a; background: #e3eedb; }
.tag-spicy { color: #a3322f; background: #f6e0dc; }
.tag-gluten { color: #7a5a1e; background: #f1e6cc; }

.dish-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
@media (max-width: 599px) {
  .dish, .dish.has-photo { grid-template-columns: 1fr; column-gap: 14px; row-gap: 10px; }
  .dish.has-photo { grid-template-columns: 72px 1fr; }
  .dish-photo { width: 72px; height: 72px; }
  .dish-side { grid-column: -2 / -1; flex-direction: row; align-items: center; }
  .dish-side .price-pair { text-align: left; }
  .dish-side .price-row { justify-content: flex-start; }
  .dish-side:empty { display: none; }
  .menu-group-head { flex-direction: column; gap: 2px; }
}
.dish-price { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; white-space: nowrap; }

/* Dos tarifas: local/recoger y a domicilio */
.price-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.price-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.rate-dot { width: 8px; height: 8px; border-radius: 50%; }
.rate-dot-local { background: var(--text); }
.rate-dot-delivery { background: var(--accent-strong); }

.price-pair { display: grid; gap: 2px; text-align: right; }
.price-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.price-label { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.price-label .i { width: 13px; height: 13px; }
.price-num { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.price-delivery .price-num, .price-delivery .price-label { color: var(--accent-strong); }
.price-pair-big .price-num { font-size: 1.35rem; }
.price-pair-big { text-align: left; }
.price-pair-big .price-row { justify-content: flex-start; }
.price-pair-dark .price-label { color: var(--on-dark-muted); }
.price-pair-dark .price-delivery .price-num, .price-pair-dark .price-delivery .price-label { color: var(--accent); }

.size-label { font-weight: 600; }
.size-prices { display: inline-flex; gap: 8px; font-family: var(--serif); font-weight: 700; }
.size-prices .price-delivery { color: var(--accent-strong); }
.size-prices .price-delivery::before { content: "·"; color: var(--muted); margin-right: 8px; font-family: var(--sans); }

.add-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--text); color: var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.add-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.add-btn .i { width: 18px; height: 18px; }
.add-btn .qty-badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--accent-strong); color: #fff;
  font-size: 0.7rem; font-weight: 700; line-height: 20px; text-align: center;
}

.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.size-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 6px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  font-size: 0.85rem;
  transition: border-color .2s var(--ease);
}
.size-btn:hover { border-color: var(--text); }
.size-btn strong { font-family: var(--serif); }
.size-btn .size-plus {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: var(--ink); color: var(--on-dark);
}
.size-btn .size-plus .i { width: 14px; height: 14px; }
.size-btn .qty-badge { font-size: 0.72rem; font-weight: 700; color: var(--accent-strong); }

.menu-empty { padding: 56px 0; text-align: center; color: var(--muted); }
.menu-empty h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--text); margin-bottom: 8px; }

.allergen-note {
  margin: 40px 0 0; padding: 18px 20px;
  font-size: 0.85rem; color: var(--muted);
  border-left: 2px solid var(--accent-strong); background: var(--paper-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.allergen-note strong { color: var(--text); }

/* ---------- Bandejas ---------- */
.boxes { background: var(--ink); color: var(--on-dark); }
.boxes .section-lead { color: var(--on-dark-muted); }
.boxes .eyebrow-accent { color: var(--accent); }
.boxes-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .boxes-grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; }
  .boxes-visual { position: sticky; top: calc(var(--header-h) + 32px); }
}
.boxes-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) { .boxes-visual img { aspect-ratio: 16 / 10; } }

.box-list { list-style: none; margin: 32px 0 0; padding: 0; }
.box-item {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 20px;
  padding: 22px 0; border-top: 1px solid var(--line-dark);
}
.box-item:last-child { border-bottom: 1px solid var(--line-dark); }
.box-name { font-family: var(--serif); font-size: 1.3rem; }
.box-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 4px; font-size: 0.8rem; color: var(--on-dark-muted); }
.box-meta span { display: inline-flex; align-items: center; gap: 6px; }
.box-contents { grid-column: 1 / -1; margin: 4px 0 0; font-size: 0.875rem; color: var(--on-dark-muted); }
.box-side { display: flex; align-items: center; gap: 14px; }
.box-price { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.boxes .add-btn { border-color: var(--on-dark); color: var(--on-dark); }
.boxes .add-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.about-copy > p { color: var(--muted); max-width: 34em; }
.about-copy .section-title { margin-bottom: 22px; }
.about-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.values { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.values li { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.values strong { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--text); }
.values span { color: var(--muted); font-size: 0.95rem; }
.value-num { font-family: var(--serif); color: var(--accent-strong) !important; font-size: 0.95rem; padding-top: 2px; }

/* ---------- Visítanos ---------- */
.visit { background: var(--paper-2); }
.visit-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .visit-grid { grid-template-columns: 1fr 1fr; } .visit-grid > .visit-card:first-child { grid-column: 1 / -1; } }
@media (min-width: 1140px) { .visit-grid { grid-template-columns: 1.2fr 1fr 1fr; } .visit-grid > .visit-card:first-child { grid-column: auto; } }
.visit-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.visit-card h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.25rem; margin-bottom: 18px;
}
.visit-card h3 .i { color: var(--accent-strong); }
.visit-card address { color: var(--muted); margin-bottom: 18px; line-height: 1.7; }
.visit-card address strong { color: var(--text); }

.open-status { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9a928a; }
.open-status.is-open { color: #2b7a52; }
.open-status.is-open::before { background: #34a46c; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours th, .hours td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--text); }

.contact-list { display: grid; gap: 4px; }
.contact-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 10px; margin: 0 -10px;
  border-radius: var(--radius-sm); transition: background-color .2s var(--ease);
}
.contact-row:hover { background: var(--paper); }
.contact-row .i { width: 22px; height: 22px; color: var(--muted); }
.contact-row .i-wa { color: #1da851; }
.contact-row small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-row span { font-weight: 600; line-height: 1.35; }
.contact-row-apps:hover { background: none; }
.contact-row-apps a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.contact-row-apps a:hover { color: var(--accent-strong); text-decoration-color: currentColor; }

.map-box {
  margin-top: 20px; height: 360px; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2) url("images/hero-4-640.webp") center / cover;
  position: relative;
}
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center; color: var(--on-dark);
  background: rgba(20, 18, 16, 0.78);
}
.map-placeholder .i { width: 28px; height: 28px; color: var(--accent); }
.map-placeholder p { margin: 0; font-size: 0.9rem; color: var(--on-dark-muted); max-width: 26em; }
.map-placeholder .btn-dark { background: var(--on-dark); color: var(--ink); }
.map-placeholder .btn-dark:hover { background: #fff; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 24px; }
.footer-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr auto; } }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px; }
.footer-name { font-family: var(--serif); color: var(--on-dark); font-size: 1.3rem; margin: 0; letter-spacing: 0.06em; }
.footer-tag { font-size: 0.9rem; margin: 4px 0 0; }
.footer-nav { display: grid; gap: 10px; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--on-dark); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--on-dark);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-social .i { width: 18px; height: 18px; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 0.8rem; }
.footer-base p { margin: 0; }

/* ---------- Barra de pedido ---------- */
.order-bar {
  position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 8px 22px 8px 8px; border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  box-shadow: 0 16px 40px -10px rgba(20, 18, 16, .55);
  animation: bar-in .35s var(--ease);
}
.order-bar[hidden] { display: none; }
.order-bar:hover { background: var(--ink-3); }
.order-bar-count {
  min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px;
  display: grid; place-items: center; background: var(--accent-strong); color: #fff; font-weight: 700;
}
.order-bar-label { font-weight: 600; margin-right: auto; }
.order-bar-total { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.order-bar.is-bump .order-bar-count { animation: bump .4s var(--ease); }
@keyframes bar-in { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes bump { 50% { transform: scale(1.18); } }

/* ---------- Pedido (panel lateral) ---------- */
dialog { padding: 0; border: 0; color: var(--text); }
dialog::backdrop { background: rgba(20, 18, 16, 0.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(460px, 100%); max-width: 100%;
  background: var(--paper);
}
.drawer[open] { animation: drawer-in .35s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; margin: 0; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 18px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-family: var(--serif); font-size: 1.5rem; }
.drawer-head .icon-btn:hover { background: var(--paper-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer-foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: var(--card); }

.cart-status {
  margin: 16px 0 4px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #f6ead2; color: #6e4f12; font-size: 0.85rem;
}
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line-name { font-family: var(--serif); font-size: 1.02rem; line-height: 1.3; }
.cart-line-size { font-size: 0.78rem; color: var(--muted); }
.cart-line-price { font-family: var(--serif); font-weight: 700; text-align: right; }
.cart-line-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 40px; height: 36px; display: grid; place-items: center; color: var(--text); }
.stepper button:hover { color: var(--accent-strong); }
.stepper .i { width: 16px; height: 16px; }
.stepper output { min-width: 24px; text-align: center; font-weight: 700; font-size: 0.92rem; }
.remove-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; padding: 8px 0; }
.remove-btn:hover { color: var(--accent-strong); }
.remove-btn .i { width: 15px; height: 15px; }

.cart-empty { padding: 48px 8px; text-align: center; color: var(--muted); }
.cart-empty h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--text); margin-bottom: 6px; }
.cart-empty .btn { margin-top: 18px; }

.order-fields { display: grid; gap: 16px; margin-top: 24px; }
.order-fields[hidden] { display: none; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span:first-child, .field legend, .field-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text); padding: 0; margin-bottom: 6px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--text); box-shadow: 0 0 0 3px rgba(26, 23, 20, .08); }
.field-error { display: none; font-size: 0.8rem; color: var(--accent-strong); }
.field.is-invalid input { border-color: var(--accent-strong); }
.field.is-invalid .field-error { display: block; }
.when-row { display: flex; gap: 8px; }
.when-row select { flex: 1; }
.when-row input { width: 130px; flex: none; }
.when-row input[hidden] { display: none; }

.totals > div { display: flex; justify-content: space-between; align-items: baseline; }
.totals span { font-weight: 600; }
.totals strong { font-family: var(--serif); font-size: 1.5rem; }
.vat-line { margin: 2px 0 14px; font-size: 0.8rem; color: var(--muted); }
.drawer-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 0.85rem; }
.drawer-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); padding: 8px 0; }
.drawer-links a:hover { color: var(--text); }

/* ---------- Ficha de plato ---------- */
.dish-dialog {
  width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  border-radius: var(--radius); background: var(--paper); overflow: auto;
}
.dish-dialog[open] { animation: pop-in .3s var(--ease); }
@keyframes pop-in { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.dish-close { position: absolute; z-index: 2; top: 10px; right: 10px; background: rgba(247, 242, 234, .92); }
.dish-close:hover { background: var(--card); }
.dish-inner { display: grid; }
.dish-inner.has-photo { grid-template-columns: 1fr; }
@media (min-width: 680px) { .dish-inner.has-photo { grid-template-columns: 1fr 1fr; } }
.dish-hero-img { width: 100%; height: 100%; min-height: 260px; max-height: 420px; object-fit: cover; background: var(--paper-2); }
.dish-info { padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.dish-info .eyebrow { margin: 0; }
.dish-info h2 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; padding-right: 36px; }
.dish-info p { color: var(--muted); margin: 0; }
.dish-info .dish-allergens { font-size: .875rem; }
.dish-info .dish-allergens strong { color: var(--ink); font-weight: 600; }
.dish-info .sizes { margin-top: 6px; }
.dish-info .dish-price-big { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.dish-info .btn { margin-top: 8px; }

/* ---------- Aviso ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 88px; transform: translate(-50%, 12px);
  padding: 12px 18px; border-radius: 999px;
  background: var(--card); color: var(--text); box-shadow: var(--shadow);
  font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100% - 32px);
}
.toast .i { color: #2b7a52; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-img { transform: none !important; transition: opacity .6s ease !important; }
}

/* Platos que solo se sirven en el local */
.price-only-local .price-label, .size-prices .price-only-local {
  font-size: 0.68rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.size-prices .price-only-local::before { content: "·"; margin-right: 8px; }
.price-pair-dark .price-only-local .price-label { color: var(--on-dark-muted); }
.cart-line-warning {
  grid-column: 1 / -1; margin: 6px 0 0; padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-strong); font-size: 0.8rem;
}

/* Horario: cada turno en una línea si no cabe */
.hours td span { display: inline-block; white-space: nowrap; }

/* Espacio al final de la página para la barra de pedido */
body.has-order-bar .site-footer { padding-bottom: 104px; }

/* Bloquea el scroll de fondo con un panel abierto (iPhone incluido) */
html:has(dialog[open]) { overflow: hidden; }

/* El título recibe el foco al abrir un panel: sin anillo visible */
#cartTitle:focus, #dishTitle:focus { outline: none; }

/* Bandejas en móvil: nombre arriba, precios y botón debajo */
@media (max-width: 599px) {
  .box-item { grid-template-columns: 1fr; }
  .box-side { justify-content: space-between; }
  .box-side .price-pair { text-align: left; }
  .box-side .price-row { justify-content: flex-start; }
}

/* Tableta: un poco más de aire en la portada */
@media (min-width: 600px) and (max-width: 899px) {
  .hero-frame { aspect-ratio: 16 / 9; }
  .hero-actions .btn { flex: 0 1 auto; }
}
