:root {
  --cream: #f9f4ed;
  --parchment: #ede5d8;
  --brown: #2c1a0e;
  --brown2: #4a2e1a;
  --rust: #424632;
  --gold: #bf8530;
  --gold-light: #d4a55a;
  --gray: #7a6a58;
  --white: #ffffff;
  --border: rgba(44, 26, 14, 0.12);
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a:focus,
button:focus {
  outline: none;
}

button,
a,
.lang-btn,
nav button,
.qr-btn {
  position: relative;
  overflow: hidden;
}

button:active::after,
a:active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(191, 133, 48, 0.15);
  padding: 2px;
}

a:active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(191, 133, 48, 0.15);
  border-radius: inherit;
  border-radius: 1.2em;
  padding: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  font-family: 'DM Sans', sans-serif;
  color: var(--brown);
  min-height: 100vh;
}

/* ─── LOADING SCREEN ──────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;

  overflow: hidden;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

#loading-screen::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(191, 133, 48, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.loading-logo {
  position: relative;
  z-index: 1;
  text-align: center;
}

@keyframes logoFadeInRotate {
  from {
    opacity: 0;
    transform: rotate(180deg) scaleX(1) translateY(16px);
  }

  to {
    opacity: 1;
    transform: rotate(180deg) scaleX(1) translateY(0);
  }
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-dots {
  display: flex;
  gap: 20px;
  margin-top: 44px;
  position: relative;
  z-index: 1;
  align-items: flex-end;
}

.loading-icon {
  color: var(--gold);
  opacity: 0;
  animation: iconPulse 2.1s ease-in-out infinite;
}

.loading-icon svg {
  width: 38px;
  height: 38px;
  display: block;
}

.loading-icon:nth-child(2) {
  animation-delay: 0.35s;
}

.loading-icon:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes iconPulse {

  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0px);
  }

  40% {
    opacity: 1;
    transform: translateY(-5px);
  }

  60% {
    opacity: 0.8;
    transform: translateY(-3px);
  }
}

/* ─── HEADER ─────────────────────────────── */
header {
  background: var(--brown);
  padding: 28px 24px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(191, 133, 48, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.logo-wrap {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.logo-sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 7px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.logo-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 5px 0 8px;
}

.logo-divider span {
  display: block;
  height: 1px;
  width: 40px;
  background: var(--gold);
  opacity: 0.5;
}

.header-info {
  padding-bottom: 20px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.info-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-link:hover {
  color: var(--gold-light);
}

.divider {
  color: rgba(255, 255, 255, 0.3);
}

/* ─── LANGUAGE SWITCHER ──────────────────── */
.lang-switcher {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--brown);
}

.lang-btn:not(.active):hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ─── NAV ─────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown);
  display: flex;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 4px;
}

nav::-webkit-scrollbar {
  display: none;
}

nav button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 16px 16px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

nav button.active,
nav button:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* ─── MAIN ────────────────────────────────── */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

/* ─── SECTIONS ────────────────────────────── */
.section {
  display: none;
}

.section.visible {
  display: block;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--rust);
  padding-bottom: 10px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0.5;
}

/* ─── ITEM ────────────────────────────────── */
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: transform 0.15s ease;
}

.item:last-child {
  border-bottom: none;
}

.item-name {
  grid-column: 1;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brown);
  line-height: 1.3;
}

.item-desc {
  grid-column: 1;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.55;
  margin-top: 3px;
}

.item-allergens {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.item-price {
  grid-column: 2;
  grid-row: 1 / 4;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rust);
  white-space: nowrap;
  align-self: start;
  padding-top: 2px;
}

/* ─── ALLERGEN TAG + TOOLTIP ──────────────── */
.allergen-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment);
  border: 1px solid rgba(44, 26, 14, 0.1);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.allergen-tag:hover,
.allergen-tag.tip-open {
  background: #e2d5c3;
  border-color: rgba(44, 26, 14, 0.28);
}

.allergen-tag .a-icon {
  font-size: 1rem;
  line-height: 1;
  display: block;
  margin-top: 1px;
  pointer-events: none;
  user-select: none;
}

.allergen-tag .tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--brown);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 200;
}

.allergen-tag .tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--brown);
}

.allergen-tag.tip-open .tip {
  display: block;
  animation: tipIn 0.14s ease;
}

@keyframes tipIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.allergen-tag .tip.tip-left {
  left: 0;
  transform: none;
}

.allergen-tag .tip.tip-left::after {
  left: 10px;
  transform: none;
}

.allergen-tag.tip-open .tip.tip-left {
  animation: tipInEdge 0.14s ease;
}

.allergen-tag .tip.tip-right {
  left: auto;
  right: 0;
  transform: none;
}

.allergen-tag .tip.tip-right::after {
  left: auto;
  right: 10px;
  transform: none;
}

.allergen-tag.tip-open .tip.tip-right {
  animation: tipInEdge 0.14s ease;
}

@keyframes tipInEdge {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── ALLERGEN LEGEND ─────────────────────── */
.legend {
  margin-top: 40px;
  background: var(--parchment);
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid var(--border);
}

.legend-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--rust);
  text-align: center;
  margin-bottom: 18px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-item .a-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.legend-item span {
  font-size: 0.62rem;
  color: var(--gray);
  line-height: 1.3;
}

/* ─── INSTAGRAM BUTTON ──────────────────────── */
.insta-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--gold-light);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.insta-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.insta-btn svg {
  width: 100%;
  height: 100%;
}

/* ─── FOOTER ──────────────────────────────── */
.footer {
  text-align: center;
  padding: 22px 16px;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  border-top: 1px solid var(--border);
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-link {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--gold-light);
}

.footer-brand {
  color: var(--gray);
  opacity: 0.8;
}

/* ─── HOURS BADGE ─────────────────────────── */
.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 5px 12px 5px 8px;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
}

.hours-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.hours-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hours-dot.open {
  background: #6dbb7a;
  box-shadow: 0 0 0 3px rgba(109, 187, 122, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hours-dot.closed {
  background: #c0715a;
  box-shadow: 0 0 0 3px rgba(192, 113, 90, 0.22);
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(109, 187, 122, 0.25);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(109, 187, 122, 0.1);
  }
}

/* ─── HOURS PANEL ─────────────────────────── */
.hours-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.hours-panel-overlay.open {
  display: flex;
  animation: overlayIn 0.2s ease;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hours-panel {
  background: var(--cream);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 28px 24px 36px;
  animation: panelUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes panelUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hours-panel-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.hours-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  color: var(--rust);
  margin-bottom: 18px;
  text-align: center;
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--parchment);
}

.hours-row.today {
  background: var(--rust);
}

.hours-row .day {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brown);
}

.hours-row .time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rust);
}

.hours-row.today .day {
  color: rgba(255, 255, 255, 0.8);
}

.hours-row.today .time {
  color: var(--white);
}

.hours-row.closed-row {
  background: #be9670;
}

.hours-row.closed-row .day {
  color: rgba(255, 255, 255, 0.85);
}

.hours-row.closed-row .time {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── QR BUTTON ───────────────────────────── */
.qr-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  margin: 0 auto;
}

.qr-btn:hover {
  border-color: var(--gold);
  color: var(--brown);
}

.qr-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ─── QR MODAL ────────────────────────────── */
.qr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 400;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.qr-overlay.open {
  display: flex;
  animation: overlayIn 0.2s ease;
}

.qr-modal {
  background: var(--cream);
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  animation: panelUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.qr-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 6px;
}

.qr-modal-sub {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

#qr-canvas {
  border-radius: 10px;
  border: 4px solid var(--parchment);
}

.qr-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--gray);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.qr-close:hover {
  color: var(--brown);
}

/* ─── BADGE NOVEDAD ───────────────────────── */
.badge-new {
  display: inline-block;
  background: var(--gold);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px 3px;
  border-radius: 3px;
  vertical-align: middle;
  position: relative;
  top: -2px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(191, 133, 48, 0.3);
}

/* ─── SCROLL LOCK ─────────────────────────── */
body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

/* ─── SCROLLBAR ─────────────────── */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-light) var(--cream);
}

html::-webkit-scrollbar {
  width: 4px;
}

html::-webkit-scrollbar-track {
  background: var(--cream);
}

html::-webkit-scrollbar-thumb {
  background: var(--gold-light);
  border-radius: 99px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

html:has(body.no-scroll),
html:has(#loading-screen:not(.hidden)) {
  scrollbar-width: none;
}

html:has(body.no-scroll)::-webkit-scrollbar,
html:has(#loading-screen:not(.hidden))::-webkit-scrollbar {
  display: none;
}