@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Playfair+Display:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Caveat:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --lusso-bg: #F4EDE2;
  --lusso-paper: #EFE3D2;
  --lusso-paper-light: #F8F1E8;
  --lusso-gold: #A77B3F;
  --lusso-gold-soft: #B8955E;
  --lusso-brown: #7A624A;
  --lusso-brown-soft: #9A8064;
  --lusso-charcoal: #2D2823;
  --lusso-muted: #7D7064;
  --lusso-line: rgba(122, 98, 74, 0.28);
  --lusso-olive: #747247;
  --lusso-white-soft: #FFF9F0;
  --ink: var(--lusso-charcoal);
  --muted: var(--lusso-muted);
  --paper: var(--lusso-paper-light);
  --linen: var(--lusso-paper);
  --sage: var(--lusso-olive);
  --tomato: var(--lusso-gold);
  --gold: var(--lusso-gold);
  --line: var(--lusso-line);
  --shadow: 0 24px 70px rgba(122, 98, 74, 0.18);
  --bottom-nav: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--lusso-bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--lusso-charcoal);
  background: transparent;
  background-color: var(--lusso-bg);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: url("assets/fondos/fondolusso.png") center top / cover no-repeat;
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(248, 241, 232, 0.48), rgba(244, 237, 226, 0.74)),
    linear-gradient(0deg, rgba(122, 98, 74, 0.12), rgba(122, 98, 74, 0.03));
}

body.lightbox-open,
body.allergen-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

.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;
}

.menu-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(44px, env(safe-area-inset-bottom));
}

.language-switcher {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: 0;
  z-index: 4;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(122, 98, 74, 0.18);
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.88);
  box-shadow: 0 12px 30px rgba(122, 98, 74, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 6px 7px;
  border: 0;
  border-radius: 999px;
  color: var(--lusso-muted);
  background: transparent;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--lusso-charcoal);
  background: rgba(248, 241, 232, 0.74);
  outline: 3px solid rgba(167, 123, 63, 0.24);
  outline-offset: 2px;
}

.language-button:active {
  transform: scale(0.96);
}

.language-button.is-active {
  color: var(--lusso-white-soft);
  background: var(--lusso-gold);
  box-shadow: 0 8px 18px rgba(167, 123, 63, 0.24);
}

.language-flag {
  display: block;
  width: 28px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(38, 31, 26, 0.18);
}

.intro {
  margin-bottom: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--lusso-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 0 auto 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 0.94;
  text-transform: uppercase;
  color: var(--lusso-brown);
}

.brand-title {
  display: block;
  max-width: min(720px, 94vw);
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.intro-copy {
  max-width: none;
  margin-bottom: 0;
  color: var(--lusso-muted);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(248, 241, 232, 0.72);
}

.category-tabs {
  display: flex;
  gap: 8px;
}

.top-tabs {
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 249, 240, 0.88);
  box-shadow: 0 16px 45px rgba(122, 98, 74, 0.1);
  backdrop-filter: blur(16px);
}

.bottom-tabs {
  display: none;
}

.tab-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--lusso-muted);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tab-button:hover,
.tab-button:focus-visible {
  border-color: rgba(167, 123, 63, 0.34);
  color: var(--lusso-charcoal);
  background: rgba(248, 241, 232, 0.64);
  outline: 3px solid rgba(116, 114, 71, 0.25);
  outline-offset: 2px;
}

.tab-button.is-active {
  border-color: rgba(167, 123, 63, 0.44);
  color: var(--lusso-gold);
  background: rgba(239, 227, 210, 0.78);
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(320px, 1.08fr);
  gap: 24px;
  align-items: start;
}

.menu-list,
.dish-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 241, 232, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.menu-list {
  padding: 24px;
}

.menu-section {
  position: relative;
}

.menu-section h2 {
  margin-bottom: 0;
  color: var(--lusso-brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: end;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--lusso-gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-count {
  color: var(--lusso-gold);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-layout.is-empty-section {
  grid-template-columns: minmax(280px, 720px);
  justify-content: center;
}

.menu-layout.is-empty-section:has(.food-group) {
  grid-template-columns: minmax(300px, 720px);
  justify-content: center;
}

.dish-preview.is-hidden {
  display: none;
}

.empty-section {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 28px;
  border: 1px dashed rgba(122, 98, 74, 0.28);
  border-radius: 8px;
  background: rgba(248, 241, 232, 0.48);
  place-content: center;
  text-align: center;
}

.empty-section strong {
  color: var(--lusso-charcoal);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}

.empty-section p {
  margin: 0;
  color: var(--lusso-muted);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
}

.food-group {
  border: 1px solid var(--lusso-line);
  border-radius: 8px;
  background: rgba(239, 227, 210, 0.42);
  overflow: hidden;
}

.food-group + .food-group {
  margin-top: 10px;
}

.food-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 14px 16px;
  border: 0;
  color: var(--lusso-charcoal);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.food-group-toggle:hover,
.food-group-toggle:focus-visible {
  background: rgba(248, 241, 232, 0.58);
  outline: 3px solid rgba(116, 114, 71, 0.24);
  outline-offset: -3px;
}

.food-group.is-open .food-group-toggle {
  color: var(--lusso-charcoal);
  background: rgba(248, 241, 232, 0.78);
}

.food-group-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.food-group-lineart {
  display: block;
  flex: 0 0 auto;
  width: 75px;
  height: 75px;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 5px 10px rgba(122, 98, 74, 0.08));
}

.food-group-lineart--cavas {
  width: 90px;
  height: 90px;
  margin: -7.5px -15px -7.5px 0;
}

.food-group.is-open .food-group-lineart {
  opacity: 0.96;
  filter: drop-shadow(0 5px 10px rgba(122, 98, 74, 0.1));
}

.food-group-label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.food-group-label strong {
  color: var(--lusso-charcoal);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.15;
}

.food-group-label small {
  color: var(--lusso-muted);
  font-family: "Montserrat", sans-serif;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  opacity: 1;
  text-transform: uppercase;
}

.food-group-indicator {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--lusso-gold);
  background: rgba(167, 123, 63, 0.1);
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.food-group.is-open .food-group-indicator {
  color: var(--lusso-brown);
  background: rgba(167, 123, 63, 0.14);
}

.food-group-panel {
  padding: 10px;
}

.dish {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dish + .dish {
  margin-top: 8px;
}

.dish:hover,
.dish:focus-within {
  border-color: rgba(167, 123, 63, 0.34);
  background: rgba(248, 241, 232, 0.56);
  transform: translateY(-1px);
}

.dish.is-static:hover,
.dish.is-static:focus-within {
  border-color: transparent;
  background: transparent;
  transform: none;
}

.dish.is-active {
  border-color: rgba(167, 123, 63, 0.52);
  background: rgba(239, 227, 210, 0.72);
}

.dish-select {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  width: 100%;
  min-height: 84px;
  margin: 0;
  padding: 14px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.dish-select.is-static {
  cursor: default;
}

.dish.has-allergens .dish-select {
  padding-bottom: 8px;
}

.dish-select:focus-visible {
  outline: 3px solid rgba(116, 114, 71, 0.32);
  outline-offset: 2px;
}

.allergen-trigger {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  min-height: 24px;
  margin: 0 0 12px 14px;
  padding: 5px 9px;
  border: 1px solid rgba(116, 114, 71, 0.22);
  border-radius: 999px;
  color: var(--lusso-olive);
  background: rgba(255, 249, 240, 0.74);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.allergen-trigger img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.allergen-trigger:hover,
.allergen-trigger:focus-visible {
  color: var(--lusso-white-soft);
  background: var(--lusso-olive);
  box-shadow: 0 10px 22px rgba(116, 114, 71, 0.18);
  outline: 3px solid rgba(116, 114, 71, 0.28);
  outline-offset: 2px;
}

.allergen-trigger:active {
  transform: scale(0.96);
}

.dish strong {
  display: block;
  margin-bottom: 6px;
  color: var(--lusso-charcoal);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}

.dish small {
  display: block;
  color: var(--lusso-muted);
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.4;
}

.dish-note-inline {
  display: block;
  margin-top: 8px;
  color: var(--lusso-olive);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 500;
}

.dish b {
  align-self: start;
  color: var(--lusso-gold);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 190px;
  text-align: right;
  white-space: normal;
}

.dish-preview {
  position: sticky;
  top: 24px;
  overflow: visible;
  transform-origin: center top;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.dish-preview.is-changing {
  opacity: 0.68;
  transform: scale(0.988);
  filter: saturate(0.92);
}

.image-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 8px 8px 0 0;
  background: var(--lusso-paper-light);
  cursor: zoom-in;
  overflow: hidden;
  touch-action: none;
  transition: filter 180ms ease, opacity 180ms ease;
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
}

.image-frame:focus-visible {
  outline: 3px solid rgba(116, 114, 71, 0.36);
  outline-offset: 3px;
}

.image-frame.is-drag-source {
  opacity: 0.42;
  filter: saturate(0.9) blur(0.4px);
}

.image-frame.is-liquid-settle {
  animation: imageLiquidSettle 1000ms cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center center;
}

@keyframes imageLiquidSettle {
  0% {
    transform: scale(1, 1);
    filter: saturate(1);
  }

  18% {
    transform: scale(0.985, 1.018);
    filter: saturate(1.035);
  }

  38% {
    transform: scale(1.014, 0.988);
    filter: saturate(1.026);
  }

  58% {
    transform: scale(0.996, 1.006);
    filter: saturate(1.014);
  }

  78% {
    transform: scale(1.004, 0.998);
    filter: saturate(1.006);
  }

  100% {
    transform: scale(1, 1);
    filter: saturate(1);
  }
}

.image-drag-preview {
  position: fixed;
  z-index: 9999;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  background: var(--lusso-paper-light);
  pointer-events: none;
  box-shadow: 0 26px 68px rgba(38, 31, 26, 0.3);
  transform: scale(1);
  transform-origin: center;
  will-change: left, top, width, height, transform, opacity;
  user-select: none;
}

.preview-copy {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background:
    linear-gradient(90deg, rgba(255, 249, 240, 0.9), rgba(239, 227, 210, 0.72)),
    url("assets/fondos/fondoconcha.webp") right center / cover no-repeat;
}

.preview-copy p:first-child {
  margin-bottom: 8px;
  color: var(--lusso-gold);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview-copy h2 {
  margin-bottom: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--lusso-charcoal);
  line-height: 1;
}

.preview-copy span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--lusso-gold);
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

#dishDescription {
  margin-bottom: 0;
  color: var(--lusso-muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
}

.photo-disclaimer {
  margin: 10px 0 0;
  color: var(--lusso-muted);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.68;
}

.dish-note {
  margin: 14px 0 0;
  color: var(--lusso-olive);
  font-size: 0.9rem;
  font-weight: 500;
}

.dish-note.is-hidden {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 58px);
  background: rgba(38, 31, 26, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-panel {
  display: grid;
  place-items: center;
  width: min(92vw, 760px);
  height: min(88vh, 860px);
  overflow: hidden;
  border-radius: 18px;
  background: var(--lusso-paper-light);
  box-shadow: 0 28px 80px rgba(45, 40, 35, 0.32);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.image-lightbox.is-open .image-lightbox-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.image-lightbox-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  object-position: center;
  user-select: none;
}

.image-lightbox-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 82;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(122, 98, 74, 0.18);
  border-radius: 999px;
  color: var(--lusso-muted);
  background: rgba(255, 249, 240, 0.94);
  box-shadow: 0 12px 28px rgba(122, 98, 74, 0.22);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox-close:focus-visible {
  outline: 3px solid rgba(255, 250, 242, 0.74);
  outline-offset: 3px;
}

.allergen-modal {
  position: fixed;
  inset: 0;
  z-index: 84;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 58px);
  background: rgba(38, 31, 26, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 190ms ease;
}

.allergen-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.allergen-modal-panel {
  width: min(92vw, 560px);
  max-height: min(78vh, 720px);
  margin: auto;
  overflow: auto;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid rgba(122, 98, 74, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 249, 240, 0.94), rgba(239, 227, 210, 0.78)),
    url("assets/fondos/fondoconcha.webp") right center / cover no-repeat;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.allergen-modal.is-open .allergen-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.allergen-modal-eyebrow {
  margin: 0 0 8px;
  color: var(--lusso-gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.allergen-modal-panel h2 {
  margin: 0 0 10px;
  color: var(--lusso-brown);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 0.98;
}

.allergen-modal-message {
  margin: 0 0 18px;
  color: var(--lusso-muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
}

.allergen-modal-content {
  display: grid;
  gap: 12px;
}

.allergen-entry {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(122, 98, 74, 0.18);
  border-radius: 8px;
  background: rgba(248, 241, 232, 0.54);
}

.allergen-entry h3 {
  margin: 0;
  color: var(--lusso-charcoal);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

.allergen-group {
  display: grid;
  gap: 8px;
}

.allergen-group strong {
  color: var(--lusso-gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.allergen-group.traces strong {
  color: var(--lusso-brown-soft);
}

.allergen-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.allergen-chip-list span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--lusso-charcoal);
  background: rgba(116, 114, 71, 0.12);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
}

.allergen-group.traces .allergen-chip-list span {
  background: rgba(167, 123, 63, 0.16);
}

.allergen-modal-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 86;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(122, 98, 74, 0.18);
  border-radius: 999px;
  color: var(--lusso-muted);
  background: rgba(255, 249, 240, 0.94);
  box-shadow: 0 12px 28px rgba(122, 98, 74, 0.22);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.allergen-modal-close:focus-visible {
  outline: 3px solid rgba(255, 250, 242, 0.74);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  body {
    --bottom-nav: 118px;
    padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  }

  .menu-shell {
    width: min(100% - 22px, 640px);
    padding: calc(max(18px, env(safe-area-inset-top)) + 42px) 0 24px;
  }

  .language-switcher {
    top: max(12px, env(safe-area-inset-top));
    right: 0;
    padding: 5px;
  }

  .language-button {
    min-width: 40px;
    min-height: 32px;
    padding: 6px;
  }

  .language-flag {
    width: 26px;
    height: 18px;
  }

  .intro {
    margin-bottom: 0;
  }

  .brand-title {
    max-width: min(620px, 92vw);
  }

  .top-tabs {
    display: none;
  }

  .bottom-tabs {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 70;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 24px);
    max-width: 540px;
    padding: 10px;
    border: 1px solid rgba(122, 98, 74, 0.18);
    border-radius: 24px;
    background: rgba(255, 249, 240, 0.88);
    box-shadow: 0 18px 50px rgba(122, 98, 74, 0.22);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .bottom-tabs .tab-button {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: 40px;
    padding: 11px 15px;
    border: 0;
    border-radius: 999px;
    color: var(--lusso-muted);
    background: rgba(255, 249, 240, 0.96);
    box-shadow: 0 8px 20px rgba(122, 98, 74, 0.1);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  }

  .bottom-tabs .tab-button::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 7px;
    left: 22px;
    height: 2px;
    border-radius: 999px;
    background: rgba(167, 123, 63, 0.62);
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .bottom-tabs .tab-button:hover,
  .bottom-tabs .tab-button:focus-visible {
    color: var(--lusso-charcoal);
    background: rgba(248, 241, 232, 0.98);
    box-shadow: 0 10px 24px rgba(122, 98, 74, 0.13);
    outline: 3px solid rgba(167, 123, 63, 0.22);
    outline-offset: 2px;
  }

  .bottom-tabs .tab-button:active {
    transform: scale(0.96);
  }

  .bottom-tabs .tab-button.is-active {
    color: var(--lusso-gold);
    background: rgba(239, 227, 210, 0.96);
    box-shadow: 0 14px 30px rgba(167, 123, 63, 0.24);
    transform: translateY(-3px);
  }

  .bottom-tabs .tab-button.is-active:active {
    transform: translateY(-3px) scale(0.96);
  }

  .bottom-tabs .tab-button.is-active::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .category-label {
    display: block;
    max-width: none;
    overflow: visible;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
  }

  .menu-layout {
    grid-template-columns: 1fr;
  }

  .dish-preview {
    position: sticky;
    top: 0;
    z-index: 5;
    order: -1;
    display: grid;
    grid-template-columns: 184px 1fr;
    height: 228px;
    min-height: 228px;
    overflow: hidden;
    margin-inline: -1px;
  }

  .menu-list {
    padding: 16px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-count {
    justify-self: start;
  }

  .image-frame {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .preview-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 16px;
  }

  .preview-copy p:first-child {
    margin-bottom: 6px;
    font-size: 0.74rem;
  }

  .preview-copy h2 {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 6px;
    font-size: clamp(1.3rem, 6vw, 2rem);
    line-height: 1.05;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .preview-copy span {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  #dishDescription {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .dish-note {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .dish-note.is-hidden {
    display: none;
  }

  .photo-disclaimer {
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .image-lightbox-panel {
    width: min(calc(100vw - 32px), 640px);
    height: min(calc(100vh - var(--bottom-nav) - 56px), 760px);
  }

  .dish {
    touch-action: manipulation;
  }

  .dish-select {
    min-height: 92px;
    padding: 16px;
  }

  .dish.has-allergens .dish-select {
    padding-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dish,
  .dish-preview,
  .tab-button,
  .image-frame,
  .image-drag-preview,
  .image-lightbox,
  .image-lightbox-panel,
  .allergen-modal,
  .allergen-modal-panel {
    transition: none;
  }

  .image-frame.is-liquid-settle {
    animation: none;
  }
}

@media (max-width: 460px) {
  body {
    --bottom-nav: 126px;
  }

  .brand-title {
    max-width: min(480px, 92vw);
  }

  .bottom-tabs {
    gap: 6px;
    width: calc(100% - 18px);
    padding: 8px;
  }

  .bottom-tabs .tab-button {
    min-height: 36px;
    padding: 9px 10px;
    font-size: 0.7rem;
  }

  .intro-copy {
    font-size: 0.98rem;
  }

  .dish-preview {
    grid-template-columns: 172px 1fr;
    height: 216px;
    min-height: 216px;
  }

  .image-frame {
    min-height: 0;
  }

  .image-lightbox {
    padding: 18px 12px calc(var(--bottom-nav) + 22px);
  }

  .allergen-modal {
    align-items: center;
    justify-items: center;
    padding: 18px 12px calc(var(--bottom-nav) + 22px);
  }

  .image-lightbox-panel {
    width: calc(100vw - 24px);
    height: min(74vh, calc(100vh - var(--bottom-nav) - 56px));
    border-radius: 18px;
  }

  .allergen-modal-panel {
    width: min(100%, 560px);
    max-height: calc(100vh - var(--bottom-nav) - 86px);
    border-radius: 18px;
  }

  .preview-copy {
    padding: 12px;
  }

  #dishDescription {
    display: none;
  }

  .dish {
    min-height: 0;
  }

  .dish-select {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dish b {
    justify-self: start;
    max-width: none;
    text-align: left;
  }
}

/* ===== Lusso overrides ===== */
/* Portada Lusso: el logo sustituye al logo de Tavola y al refrán. */
.intro {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(230px, 30vh, 330px);
  gap: 0;
  padding-top: clamp(8px, 2vh, 24px);
}

.brand-title {
  max-width: min(420px, 70vw);
  margin-bottom: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 0;
  text-transform: uppercase;
  color: var(--lusso-gold);
}

.brand-logo {
  width: 100%;
}

.dish--static {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(248, 241, 232, 0.52);
}

.dish--static b {
  color: var(--lusso-gold);
  white-space: nowrap;
}

/* Popup postal de producto */
.dish-preview {
  position: sticky;
  top: 24px;
  isolation: isolate;
  width: min(100%, 960px);
  max-width: 960px;
  aspect-ratio: 620 / 465;
  overflow: hidden;
  margin-inline: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.dish-preview::before,
.dish-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dish-preview::before {
  z-index: 0;
  background: radial-gradient(circle at 52% 50%, rgba(248, 241, 232, 0.72), rgba(239, 227, 210, 0.22) 62%, rgba(239, 227, 210, 0) 78%);
  filter: blur(2px);
}

.dish-preview::after {
  z-index: 2;
  background: url("assets/lusso-popup-template.webp") center / 100% 100% no-repeat;
}

.dish-preview .image-frame {
  position: absolute;
  top: 13.5%;
  left: 7.4%;
  z-index: 3;
  width: 36%;
  height: 65.5%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 2px;
  background: transparent;
  box-shadow: 0 14px 28px rgba(80, 55, 30, 0.14);
  transform: translateX(13px) rotate(-6.16deg);
  transform-origin: 50% 50%;
}

.dish-preview .image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-preview .preview-copy {
  position: absolute;
  top: 18%;
  left: 49.5%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 34%;
  min-height: 40%;
  padding: 0;
  overflow: visible;
  text-align: center;
  background: transparent;
}

.dish-preview .preview-copy p:first-child {
  margin: 0 0 clamp(6px, 1.2vw, 12px);
  color: #9a7b46;
  font-size: clamp(0.58rem, 1.45vw, 0.95rem);
  letter-spacing: 0.22em;
  line-height: 1.18;
}

.dish-preview .preview-copy h2 {
  display: block;
  overflow: visible;
  margin: 0 0 clamp(8px, 1.5vw, 18px);
  max-width: 100%;
  color: #3a2c1d;
  font-size: clamp(1.5rem, 4.8vw, 3.45rem);
  font-weight: 400;
  line-height: 0.96;
  overflow-wrap: anywhere;
  text-align: center;
  text-wrap: balance;
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;
}

.dish-preview[data-title-size="long"] .preview-copy h2 {
  font-size: clamp(1.08rem, 3.35vw, 2.2rem);
  line-height: 0.98;
}

.dish-preview .preview-copy span {
  display: block;
  margin: 0;
  color: #9a7b46;
  font-size: clamp(1rem, 2.65vw, 1.85rem);
  line-height: 1;
}

.dish-preview #dishDescription,
.dish-preview .dish-note,
.dish-preview .photo-disclaimer {
  display: none;
}

@media (max-width: 760px) {
  .dish-preview {
    top: 0;
    display: block;
    width: min(94vw, 960px);
    max-width: 960px;
    height: auto;
    min-height: 0;
    margin-inline: auto;
  }

  .dish-preview .preview-copy {
    top: 18.5%;
    left: 49%;
    width: 36%;
    min-height: 39%;
  }

  .dish-preview .preview-copy h2 {
    font-size: clamp(1.35rem, 7.4vw, 2.5rem);
  }

  .dish-preview[data-title-size="long"] .preview-copy h2 {
    font-size: clamp(1rem, 4.8vw, 1.52rem);
  }
}

@media (max-width: 430px) {
  .dish-preview .preview-copy {
    top: 20%;
    left: 49.5%;
    width: 35%;
    min-height: 36%;
  }

  .dish-preview .preview-copy p:first-child {
    margin-bottom: 5px;
    font-size: clamp(0.46rem, 2.2vw, 0.66rem);
  }

  .dish-preview .preview-copy h2 {
    margin-bottom: 7px;
    font-size: clamp(1.18rem, 6.8vw, 1.82rem);
  }

  .dish-preview[data-title-size="long"] .preview-copy h2 {
    font-size: clamp(0.9rem, 4.1vw, 1.05rem);
  }

  .dish-preview .preview-copy span {
    font-size: clamp(0.82rem, 3.6vw, 1rem);
  }
}

@media (max-width: 820px) {
  .intro {
    min-height: 245px;
    padding-top: 6px;
  }

  .brand-title {
    max-width: min(300px, 68vw);
  }
}

@media (max-width: 460px) {
  .intro {
    min-height: 232px;
  }

  .brand-title {
    max-width: min(268px, 70vw);
  }
}

/* Nota de alérgenos pendientes de confirmar (Lusso). */
.allergen-pending {
  margin: 4px 0 0;
  padding: 14px 16px;
  border: 1px dashed rgba(167, 123, 63, 0.5);
  border-radius: 14px;
  background: rgba(239, 227, 210, 0.7);
  color: var(--lusso-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

/* =====================================================================
   PORTADA / LANDING SCREEN — Lusso
   Pantalla de bienvenida a pantalla completa, previa a la carta.
   ===================================================================== */

@keyframes landingFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

html.landing-active,
body.landing-active {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.landing-active {
  position: fixed;
  inset: 0;
  width: 100%;
  touch-action: none;
}

body.landing-active .menu-shell,
body.landing-active .bottom-tabs {
  visibility: hidden;
  pointer-events: none;
}

/* Contenedor fijo a pantalla completa */
.landing-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #d8c09d;
}

/* Imagen de fondo */
.landing-bg {
  position: absolute;
  inset: 0;
  background: url("assets/fondos/imagenfondoinicio.png") center center / cover no-repeat;
  background-image: url("assets/fondos/imagenfondoinicio.webp");
  z-index: 0;
  will-change: transform;
}

/* Overlay cálido y sutil para dar legibilidad sin matar la foto */
.landing-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 238, 190, 0.12) 0%,
      rgba(120, 76, 28, 0.08) 46%,
      rgba(42, 24, 10, 0.34) 100%
    );
  z-index: 1;
}

/* Contenido centrado */
.landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: clamp(54px, 8dvh, 92px) 24px clamp(46px, 8dvh, 72px);
  width: 100%;
  max-width: min(560px, 100%);
  box-sizing: border-box;
  text-align: center;
  isolation: isolate;
}

.landing-content::before {
  content: "";
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: -1;
  width: min(760px, 126vw);
  height: min(520px, 70dvh);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 238, 190, 0.55) 0%,
    rgba(255, 222, 150, 0.28) 34%,
    rgba(255, 222, 150, 0.08) 58%,
    rgba(255, 222, 150, 0) 75%
  );
  filter: blur(10px);
  transform: translate(-50%, -54%);
  pointer-events: none;
}

/* Logo */
.landing-logo-wrap {
  animation: landingFadeUp 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
  position: relative;
  z-index: 1;
  margin-bottom: clamp(26px, 5dvh, 44px);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  isolation: isolate;
}

.landing-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -18% -22% -24%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 249, 240, 0.72) 0%,
    rgba(248, 241, 232, 0.46) 44%,
    rgba(248, 241, 232, 0) 76%
  );
  filter: blur(12px);
  opacity: 0.95;
  pointer-events: none;
}

.landing-logo {
  display: block;
  position: relative;
  z-index: 1;
  width: clamp(220px, 62vw, 380px);
  max-height: 32dvh;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  filter: brightness(0.75) contrast(1.06);
  mix-blend-mode: normal;
  opacity: 1;
}

/* Tagline */
.landing-tagline {
  animation: landingFadeUp 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(68px, 10dvh, 110px);
  font-family: 'Caveat', cursive;
  font-size: clamp(1.85rem, 7vw, 2.65rem);
  font-weight: 400;
  font-style: normal;
  color: var(--lusso-white-soft);
  letter-spacing: 0;
  line-height: 1.3;
  text-shadow: 0 3px 18px rgba(8, 4, 0, 0.5);
}

/* Botón */
.landing-btn-wrap {
  animation: landingFadeUp 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.85s both;
  position: relative;
  z-index: 1;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: clamp(260px, 74vw, 320px);
  max-width: 78vw;
  min-height: 64px;
  padding: 18px 56px;
  background: linear-gradient(180deg, rgba(255, 244, 218, 0.96), rgba(232, 202, 148, 0.92));
  border: 1px solid rgba(190, 145, 70, 0.55);
  border-radius: 999px;
  color: var(--lusso-gold);
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-size: clamp(1.45rem, 5.4vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
  box-shadow:
    0 18px 38px rgba(82, 52, 18, 0.28),
    0 6px 14px rgba(160, 112, 45, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.landing-btn:hover {
  background: linear-gradient(180deg, rgba(255, 249, 232, 0.98), rgba(238, 211, 160, 0.96));
  box-shadow:
    0 21px 42px rgba(82, 52, 18, 0.3),
    0 7px 16px rgba(160, 112, 45, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.landing-btn:active {
  transform: scale(0.985);
  box-shadow:
    0 12px 24px rgba(82, 52, 18, 0.22),
    0 4px 10px rgba(160, 112, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transition-duration: 0.1s;
}

/* Salida: fade out al entrar a la carta */
.landing-screen.is-exiting {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Completamente oculta tras la transición */
.landing-screen.is-gone {
  display: none;
}

@media (max-width: 560px) {
  .landing-bg {
    background-position: center center;
  }

  .landing-content {
    padding: 52px 20px 48px;
  }

  .landing-logo {
    width: min(68vw, 290px);
  }

  .landing-tagline {
    max-width: calc(100vw - 72px);
    margin-bottom: clamp(72px, 10dvh, 96px);
    font-size: clamp(1.45rem, 6vw, 1.8rem);
    white-space: nowrap;
  }

  .landing-btn {
    min-width: min(280px, 72vw);
    max-width: 72vw;
    padding-inline: 42px;
  }
}

/* ---------- Etiqueta "Agotado" (sold_out_behavior = label; técnica igual que Tavola) ---------- */
.dish.is-sold-out .dish-select > span:not(.sold-out-badge),
.dish.is-sold-out .dish-select > b {
  opacity: 0.45;
}

.dish-preview.is-sold-out .menu-item-image {
  filter: grayscale(0.72);
  opacity: 0.6;
}

.sold-out-badge {
  grid-column: 1 / -1;
  justify-self: start;
  align-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 4px;
  padding: 4px 11px;
  border: 1px solid rgba(156, 74, 58, 0.28);
  border-radius: 999px;
  color: #9c4a3a;
  background: #f4e8e3;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.sold-out-badge[hidden] {
  display: none;
}

.dish-sold-out.preview-sold-out {
  display: inline-flex;
  align-items: center;
  align-self: start;
  margin: 6px 0 2px;
  padding: 5px 12px;
  border: 1px solid rgba(156, 74, 58, 0.28);
  border-radius: 999px;
  color: #9c4a3a;
  background: #f4e8e3;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dish-sold-out.preview-sold-out[hidden] {
  display: none;
}
