/* ============================================================
   TABUENO — Menú Digital Premium v5
   ============================================================ */

/* ===== TOKENS ===== */
:root {
  --brand:        #D10000;
  --brand-dark:   #900000;
  --brand-light:  #FFD8D8;
  --brand-glow:   rgba(209,0,0,0.14);
  --gold:         #B8860B;

  --bg:           #F8F3EF;
  --surface:      #FFFFFF;
  --border:       rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.04);

  --text-1: #16080A;
  --text-2: #5E3A3F;
  --text-3: #9E7A7F;
  --text-4: #BEA8AB;

  --glass:        rgba(255,255,255,0.78);
  --glass-strong: rgba(255,255,255,0.95);
  --glass-border: rgba(255,255,255,0.85);

  --s-xs:    0 1px 3px rgba(0,0,0,0.05);
  --s-sm:    0 2px 10px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --s-md:    0 8px 32px rgba(0,0,0,0.09), 0 3px 10px rgba(0,0,0,0.05);
  --s-lg:    0 20px 60px rgba(0,0,0,0.11), 0 8px 24px rgba(0,0,0,0.06);
  --s-xl:    0 32px 80px rgba(0,0,0,0.14), 0 16px 40px rgba(0,0,0,0.07);
  --s-brand: 0 6px 24px rgba(209,0,0,0.22), 0 2px 8px rgba(209,0,0,0.14);

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  40px;
  --r-full: 9999px;

  --font:         'Inter', -apple-system, system-ui, sans-serif;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:  130ms;
  --t-mid:   250ms;
  --t-slow:  400ms;

  --max-w: 1100px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  font-size: 107%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font);
  background: var(--brand);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::-webkit-scrollbar          { width: 4px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: rgba(0,0,0,0.16); border-radius: 4px; }

/* ===== KEYFRAMES ===== */
@keyframes slideDown  { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn     { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn    { from { transform: scale(0.9) translateY(12px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes slideUp    { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer    { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes shimmerBg  { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes marquee    { 0% { transform: translateX(105%); } 100% { transform: translateX(-105%); } }

/* ===== AD BANNER ===== */
.ad-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand) 50%, var(--brand-dark));
  background-size: 200% 100%;
  animation: slideDown var(--t-slow) var(--ease-out), shimmerBg 8s ease infinite;
  color: #fff; padding: 9px 48px 9px 16px;
  font-size: 0.83rem; font-weight: 600; letter-spacing: 0.02em; text-align: center;
  box-shadow: 0 2px 18px rgba(209,0,0,0.35);
}
.ad-banner-content { max-width: 900px; margin: 0 auto; overflow: hidden; }
.ad-banner-text.animate { display: inline-block; animation: marquee 10s linear infinite; white-space: nowrap; }
.ad-banner-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 0.75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.ad-banner-close:hover { background: rgba(255,255,255,0.3); }
body.has-banner .lang-bar    { top: 38px; }
body.has-banner .hero-section { top: 38px; }

/* ===== AD MODAL ===== */
.ad-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(6,0,0,0.75); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn var(--t-mid) ease; padding: 20px;
}
.ad-modal-card {
  background: rgba(255,255,255,0.65); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--r-2xl);
  padding: clamp(28px,5vw,48px) clamp(24px,4vw,40px);
  max-width: 460px; width: 100%; text-align: center; position: relative;
  animation: scaleIn 0.4s var(--ease-spring); box-shadow: var(--s-xl);
}
.ad-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.07); border: 1px solid rgba(0,0,0,0.09);
  color: var(--text-2); font-size: 0.85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.ad-modal-close:hover { background: rgba(0,0,0,0.14); transform: rotate(90deg); }
.ad-modal-image {
  width: 100%; max-height: 260px; object-fit: contain;
  border-radius: var(--r-lg); margin-bottom: 20px;
}
.ad-modal-card h2 { font-size: clamp(1.25rem,3vw,1.6rem); color: var(--brand); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.ad-modal-card p  { color: var(--text-2); font-size: 0.93rem; line-height: 1.65; margin-bottom: 24px; }
.ad-modal-action {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border: none; padding: 13px 36px; border-radius: var(--r-full);
  font-size: 0.93rem; font-weight: 700; cursor: pointer;
  transition: transform var(--t-mid), box-shadow var(--t-mid); box-shadow: var(--s-brand);
}
.ad-modal-action:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(209,0,0,0.3); }

/* ===== HEADER ===== */
.lang-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 20px;
  background: rgba(209, 0, 0, 0.68);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  pointer-events: none;
  transition: background 0.35s ease, border-color 0.35s ease,
              backdrop-filter 0.35s ease;
}

/* Cuando se empieza a scrollear: barra desaparece, pill flota */
body.is-scrolled .lang-bar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.lang-group {
  pointer-events: auto;
  display: flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.12),
    0 1px 3px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.75);
  border-radius: var(--r-full);
  padding: 4px 5px;
}

.lang-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 13px; border-radius: var(--r-full);
  background: transparent; border: 1px solid transparent;
  cursor: pointer; font-family: var(--font);
  transition: all 0.18s ease;
}
.lang-code {
  display: block; font-size: 0.69rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.lang-name {
  display: block; font-size: 0.48rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--text-4);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.lang-btn:hover { background: rgba(0,0,0,0.05); }
.lang-btn:hover .lang-code { color: var(--text-1); }
.lang-btn.active { background: var(--brand); border-color: var(--brand); }
.lang-btn.active .lang-code { color: #fff; }
.lang-btn.active .lang-name { color: rgba(255,255,255,0.65); }
.lang-sep { display: none; }

/* — Hero section — siempre visible, fija detrás del contenido — */
.hero-section {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1;
  height: 310px; overflow: hidden;
}

.hero-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}
.hero-overlay { display: none; }

/* Texto sobre la imagen — se desvanece al hacer scroll */
.hero-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  text-align: center; padding: 68px 20px 20px;
  transition: opacity 0.12s ease;
  will-change: opacity;
}
.hero-eyebrow {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic; font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  color: #fff; line-height: 1.1; letter-spacing: -0.01em;
  text-shadow: 0 2px 32px rgba(0,0,0,0.55);
}
.hero-rule {
  width: 52px; height: 2px; margin-top: 16px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

/* ===== MAIN CONTENT — carta que desliza sobre el hero ===== */
.main-content {
  position: relative; z-index: 10;
  padding-top: 32px;
  padding-left: clamp(12px, 3vw, 32px);
  padding-right: clamp(12px, 3vw, 32px);
  padding-bottom: 40px;
  max-width: var(--max-w);
  margin: 268px auto 0;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  box-shadow:
    0 -20px 60px rgba(0,0,0,0.30),
    0 -1px 0  rgba(255,255,255,0.06);
  min-height: 60vh;
}


/* ===== ACCORDION — forma de paralelogramo ===== */
.accordion-category {
  margin-bottom: 12px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--s-sm);
  background: #fff;
  border-left: 3px solid var(--cc, var(--brand));
  animation: fadeInUp 0.4s var(--ease-out) both;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.accordion-category:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.11), 0 3px 10px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.accordion-category:nth-child(1)  { animation-delay: 0.04s; }
.accordion-category:nth-child(2)  { animation-delay: 0.08s; }
.accordion-category:nth-child(3)  { animation-delay: 0.12s; }
.accordion-category:nth-child(4)  { animation-delay: 0.16s; }
.accordion-category:nth-child(5)  { animation-delay: 0.20s; }
.accordion-category:nth-child(6)  { animation-delay: 0.24s; }
.accordion-category:nth-child(7)  { animation-delay: 0.28s; }
.accordion-category:nth-child(8)  { animation-delay: 0.32s; }
.accordion-category:nth-child(9)  { animation-delay: 0.36s; }
.accordion-category:nth-child(10) { animation-delay: 0.40s; }

.accordion-header {
  display: flex; align-items: center;
  gap: 14px;
  padding: 0 16px 0 18px;
  cursor: pointer; user-select: none;
  transition: background var(--t-fast);
  min-height: 100px;
}
.accordion-header:active { background: rgba(0,0,0,0.02); }

.cat-header-info {
  flex: 1; display: flex; flex-direction: column;
  gap: 8px; min-width: 0; justify-content: center;
  padding: 16px 0;
}
.accordion-title {
  font-family: var(--font);
  font-style: normal; font-weight: 700;
  font-size: 1.55rem; line-height: 1;
  color: var(--text-1); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.accordion-count {
  display: inline-flex; align-items: center;
  width: fit-content;
  font-size: 0.68rem; font-weight: 600; font-style: normal;
  color: var(--cc, var(--brand));
  background: transparent;
  border: 1px solid var(--cc, var(--brand));
  border-radius: var(--r-full);
  padding: 2px 9px;
  letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0.75;
}

/* Contenedor imagen — altura completa de la tarjeta */
.cat-thumb-wrap {
  position: relative;
  align-self: stretch;
  width: 160px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  transition: width 0.5s var(--ease-out), opacity 0.35s ease, transform 0.5s var(--ease-out);
}
/* Cuando la categoría está abierta: imagen se desliza y desaparece */
.accordion-header.open .cat-thumb-wrap {
  width: 0;
  opacity: 0;
  transform: translateX(20px);
}
.cat-thumb {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.accordion-category:hover .cat-thumb { transform: scale(1.06); }
.cat-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.5;
}

/* Título se centra al abrir */
.cat-header-info {
  flex: 1; display: flex; flex-direction: column;
  gap: 8px; min-width: 0; justify-content: center;
  padding: 16px 0;
  transition: padding 0.45s var(--ease-out);
}
.accordion-header.open .cat-header-info {
  align-items: center;
  padding: 18px 8px;
}
.accordion-title {
  font-family: var(--font);
  font-style: normal; font-weight: 700;
  font-size: 1.55rem; line-height: 1;
  color: var(--text-1); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: font-size 0.45s var(--ease-out), letter-spacing 0.45s ease;
}
.accordion-header.open .accordion-title {
  font-size: 1.75rem;
  letter-spacing: 0.01em;
  white-space: normal; text-align: center;
}
.accordion-count {
  display: inline-flex; align-items: center;
  width: fit-content;
  font-size: 0.68rem; font-weight: 600; font-style: normal;
  color: var(--cc, var(--brand));
  border: 1px solid var(--cc, var(--brand));
  border-radius: var(--r-full);
  padding: 2px 9px;
  letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  max-height: 30px; overflow: hidden;
}
.accordion-header.open .accordion-count {
  opacity: 0;
  max-height: 0;
  padding-top: 0; padding-bottom: 0;
  border-width: 0;
}

.accordion-arrow {
  font-size: 1.5rem; line-height: 1; flex-shrink: 0;
  color: var(--text-4);
  transition: transform var(--t-mid) var(--ease-out), color var(--t-fast), opacity 0.3s ease;
}
.accordion-arrow.open {
  transform: rotate(90deg); color: var(--cc, var(--brand));
  opacity: 0.5;
}

.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.accordion-body.open { max-height: 6000px; }
.accordion-body .dish-grid { padding: 10px 16px 20px; }

/* ===== DISH GRID ===== */
.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(12px, 2.5vw, 22px);
}

/* ===== DISH CARD ===== */
.dish-card {
  min-width: 0;
  background: #fff; border-radius: var(--r-xl);
  cursor: pointer; display: flex; flex-direction: column;
  box-shadow: var(--s-sm); overflow: visible;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-out);
}
.dish-card:hover  { transform: translateY(-5px); box-shadow: var(--s-lg); }
.dish-card:active { transform: scale(0.97); box-shadow: var(--s-sm); }

.dish-card-image-container {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative; flex-shrink: 0;
  background: linear-gradient(135deg, #F5EAE6, #EDD5D0);
}
.dish-card-image {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.65s var(--ease-out);
}
.dish-card:hover .dish-card-image { transform: scale(1.06); }
.dish-card-no-image {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #F8EDE9 0%, #EDD8D3 100%);
}
.dish-card-image-container::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 48%;
  background: linear-gradient(to top, rgba(0,0,0,0.22), transparent);
  pointer-events: none;
}

/* Glassmorphism panel */
.dish-card-glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.97) 0%, rgba(253,247,244,0.93) 100%);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: var(--r-lg); padding: 13px 14px 14px;
  margin: -24px 10px 10px; position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column;
  box-shadow:
    0 -10px 28px rgba(0,0,0,0.07),
    0 2px 8px rgba(0,0,0,0.03),
    inset 0 1px 0 rgba(255,255,255,1);
  transition: background var(--t-mid), box-shadow var(--t-mid);
}
.dish-card:hover .dish-card-glass {
  background: linear-gradient(160deg, rgba(255,255,255,1) 0%, rgba(255,250,248,1) 100%);
  box-shadow:
    0 -14px 36px rgba(0,0,0,0.09),
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,1);
}

.dish-card-name {
  font-size: 0.93rem; font-weight: 700; color: var(--text-1);
  letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 4px;
}
.dish-card-desc {
  font-size: 0.71rem; color: var(--text-3); line-height: 1.45;
  flex: 1; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.dish-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 9px; margin-top: auto;
  border-top: 1px solid rgba(209,0,0,0.09);
}

/* Precio — pill badge con gradiente de marca */
.dish-card-price {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 4px 11px 5px;
  border-radius: 99px;
  font-size: 0.88rem; font-weight: 800; letter-spacing: -0.01em;
  box-shadow: 0 2px 10px rgba(209,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.18);
}

.dish-card-allergens {
  font-size: 0.6rem; background: rgba(0,0,0,0.05); padding: 3px 8px;
  border-radius: var(--r-full); color: var(--text-3); font-weight: 500;
  max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== LOADING SKELETON ===== */
.loading { padding: 16px 0 56px; }
.loading-text { text-align: center; color: var(--text-4); font-size: 0.82rem; font-weight: 500; margin-top: 24px; letter-spacing: 0.04em; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.skeleton-card { background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--s-xs); }
.skeleton-img {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(90deg, #EEE2E0 25%, #F7EEEC 50%, #EEE2E0 75%);
  background-size: 200% 100%; animation: shimmer 1.7s infinite;
}
.skeleton-body { padding: 16px; margin-top: -22px; background: #fff; border-radius: var(--r-md); position: relative; z-index: 1; }
.skeleton-line {
  height: 12px; border-radius: 6px; margin-bottom: 9px;
  background: linear-gradient(90deg, #EEE2E0 25%, #F7EEEC 50%, #EEE2E0 75%);
  background-size: 200% 100%; animation: shimmer 1.7s infinite;
}
.skeleton-line.short  { width: 55%; }
.skeleton-line.xshort { width: 30%; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 72px 20px; color: var(--text-3); }
.empty-state p { font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em; }

/* ===== DISH MODAL ===== */
.dish-modal-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(6,0,0,0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: fadeIn var(--t-mid) ease;
}
.dish-modal {
  background: #fff; max-width: 520px; width: 100%;
  max-height: 100svh; height: 100svh; overflow-y: auto;
  position: relative; animation: slideUp 0.32s var(--ease-spring); box-shadow: var(--s-xl);
}
.dish-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.48); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.85rem; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.dish-modal-close:hover { background: rgba(0,0,0,0.7); transform: rotate(90deg); }

.dish-modal-image-container { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, #F5EAE6, #EDD5D0); }
.dish-modal-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-modal-image-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.52), transparent);
}

.dish-modal-info { padding: clamp(22px,4vw,36px); }
.dish-modal-category {
  display: inline-block; background: var(--brand-light); color: var(--brand);
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.dish-modal-name {
  font-size: clamp(1.4rem,4vw,1.85rem); font-weight: 800; color: var(--text-1);
  letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 10px;
}
.dish-modal-description { font-size: 0.94rem; color: var(--text-2); line-height: 1.72; margin-bottom: 28px; }
.dish-modal-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; border-top: 1px solid rgba(0,0,0,0.08);
}
.dish-modal-price { font-size: clamp(1.6rem,4.5vw,2.2rem); font-weight: 900; color: var(--brand); letter-spacing: -0.03em; }
.dish-modal-allergens {
  font-size: 0.78rem; color: var(--text-3); background: rgba(0,0,0,0.05);
  padding: 6px 14px; border-radius: var(--r-full); font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  position: relative; z-index: 10;
  background: var(--brand);
  padding: 28px 24px 32px;
  margin-top: 0;
  text-align: center;
}
.footer-brand {
  margin-bottom: 20px;
}
.footer-logo {
  height: 90px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

/* ── Delivery CTA ── */
.delivery-cta {
  display: flex; align-items: center; gap: 14px;
  width: 100%; max-width: 400px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-xl);
  padding: 12px 16px 12px 12px;
  margin: 0 auto 24px;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-mid);
}
.delivery-cta:hover {
  background: rgba(0,0,0,0.32);
  border-color: rgba(255,255,255,0.34);
  transform: translateY(-2px);
}
.delivery-cta:active { transform: scale(0.98); }

.delivery-cta-moto {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; flex-shrink: 0;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  font-size: 1.70rem; line-height: 1;
}
.delivery-cta-text {
  display: flex; flex-direction: column; gap: 3px;
  text-align: left; flex: 1;
}
.delivery-cta-text strong {
  font-size: 0.95rem; font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
}
.delivery-cta-text small {
  font-size: 0.71rem; color: rgba(255,255,255,0.58); font-weight: 500;
}
.delivery-cta-wa {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex-shrink: 0;
  background: #25D366;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.42);
}

.footer-social {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; margin-bottom: 18px;
}
.social-link {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,0.85); text-decoration: none;
  border: 1px solid rgba(255,255,255,0.30);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t-mid);
}
.social-link:hover {
  color: #fff; border-color: rgba(255,255,255,0.70);
  background: rgba(255,255,255,0.15); transform: translateY(-2px);
}
.social-link svg { flex-shrink: 0; opacity: 0.9; }
.social-link:hover svg { opacity: 1; }
.social-link--wa { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.40); }
.social-link--wa:hover { background: rgba(37,211,102,0.25); border-color: rgba(37,211,102,0.80); }
.footer-info {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; margin-bottom: 18px;
}
.footer-info-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: #fff;
}
.footer-info-row svg { opacity: 0.50; flex-shrink: 0; }

.footer-hours { margin: 0 auto 20px; width: fit-content; min-width: 220px; }
.footer-hours-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.57rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.36);
  margin-bottom: 10px;
}
.footer-hours-label::before,
.footer-hours-label::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,0.15);
}
.footer-hours-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: 6px 22px; font-size: 0.68rem;
}
.fh-day  { color: rgba(255,255,255,0.60); }
.fh-time { color: rgba(255,255,255,0.90); font-weight: 600;
           font-variant-numeric: tabular-nums; text-align: right; }

.footer-copy { font-size: 0.65rem; color: rgba(255,255,255,0.40); }

/* ===== SHOP STATUS — chip (lang-bar) ===== */
.status-chip {
  pointer-events: auto;
  position: absolute; right: 20px;
  display: flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  font-size: 0.67rem; font-weight: 600; font-family: var(--font);
  color: var(--text-2);
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.12),
    0 1px 3px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.75);
  opacity: 0; transition: opacity var(--t-mid);
  white-space: nowrap;
}
.status-chip.ready { opacity: 1; }
@media (max-width: 500px) {
  .status-chip { font-size: 0.6rem; padding: 4px 9px; right: 12px; gap: 4px; }
}

/* Shared dot */
.s-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block;
}
.open  .s-dot { background: #4ade80; animation: pulse-green 2.2s infinite; }
.closed .s-dot { background: #f87171; }

@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0   rgba(74,222,128,0.55); }
  60%  { box-shadow: 0 0 0 6px rgba(74,222,128,0.00); }
  100% { box-shadow: 0 0 0 0   rgba(74,222,128,0.00); }
}


/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 28px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none;
  cursor: pointer; opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  box-shadow: var(--s-brand); z-index: 900;
  transition: opacity var(--t-mid), transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover   { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(209,0,0,0.4); }

/* ===== LANG TOAST ===== */
.lang-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--text-1); color: #fff; padding: 9px 20px;
  border-radius: var(--r-full); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.03em; z-index: 9999; opacity: 0; pointer-events: none;
  white-space: nowrap; transition: opacity var(--t-mid); box-shadow: var(--s-lg);
}
.lang-toast.show { opacity: 1; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — TABLET  (≥768px)
   ============================================================ */
@media (min-width: 768px) {
  .hero-section { height: 370px; }
  .main-content { margin: 330px auto 0; }
  .lang-bar     { padding: 9px 40px; }
  .lang-btn     { padding: 5px 15px; }
  .lang-code    { font-size: 0.72rem; }
  .lang-name    { font-size: 0.52rem; }

  /* Tablet y móvil landscape: 3 columnas caben bien a 768–1023px */
  .dish-grid    { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

  .accordion-header { padding: 20px 28px; }
  .accordion-body .dish-grid { padding: 12px 24px 28px; }

  .dish-modal {
    max-height: 90svh; height: auto; border-radius: var(--r-2xl);
    animation: scaleIn 0.32s var(--ease-spring);
  }
  .dish-modal-image-container { border-radius: var(--r-2xl) var(--r-2xl) 0 0; }
  .dish-modal-overlay { display: flex; align-items: center; justify-content: center; padding: 24px; }
}

/* ============================================================
   RESPONSIVE — DESKTOP  (≥1024px)
   ============================================================ */
@media (min-width: 1024px) {
  .hero-section { height: 410px; }
  .main-content { margin: 370px auto 0; }
  .lang-bar     { padding: 9px 64px; }

  .main-content  { padding-left: 40px; padding-right: 40px; }
  .dish-grid     { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤767px)
   ============================================================ */
@media (max-width: 767px) {
  .hero-section { height: 258px; }
  .main-content { margin: 220px auto 0; }
  .lang-bar     { padding: 7px 16px; }
  .lang-btn     { padding: 4px 9px; }
  .lang-name    { display: none; } /* solo código en móvil */

  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dish-card-glass  { padding: 10px 10px 12px; margin: -20px 8px 8px; }
  .dish-card-name   { font-size: 0.84rem; }
  .dish-card-price  { font-size: 0.78rem; padding: 3px 9px 4px; }
  .dish-card-desc   { font-size: 0.69rem; -webkit-line-clamp: 1; line-clamp: 1; }

  .accordion-header  { padding: 0 12px 0 14px; min-height: 90px; }
  .accordion-title   { font-size: 1.25rem; }
  .accordion-header.open .accordion-title { font-size: 1.45rem; }
  .cat-thumb-wrap    { width: 125px; }
  .accordion-body .dish-grid { padding: 6px 10px 14px; }

  .dish-modal { max-width: 100%; border-radius: 0; }
  .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }
  .lang-toast  { bottom: 20px; }
}
