/* ============================================
   Mania Restaurante — template stil (reutilizabil), mobil-first
   Paleta: burgundy #6D212B + gold accent + dark bg
   ============================================ */

:root {
  --primary: #6D212B;
  --primary-light: #96323F;
  --gold: #C9A227;
  --bg: #170D10;
  --bg-alt: #24141A;
  --bg-card: #2E1A22;
  --text: #F2EAE1;
  --text-muted: #C2AFA8;
  --border: rgba(201, 162, 39, 0.2);
  --max-w: 520px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  margin: 0 auto;
  max-width: var(--max-w);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Floating top bar (over hero) ---------- */
.top-bar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  padding: 16px;
  pointer-events: none;
}
.top-bar .lang-switch { pointer-events: auto; }

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(18, 16, 18, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(242, 234, 225, 0.25);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: rgba(242, 234, 225, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-btn.active { background: var(--gold); color: var(--bg); }

/* ---------- Hero (full viewport, mobile-first) ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 20px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--bg-alt); }
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,13,16,0.3) 0%, rgba(23,13,16,0.15) 40%, rgba(23,13,16,0.92) 100%);
}
.hero-geo { position: absolute; inset: 0; z-index: -1; }

.hero-content { position: relative; z-index: 2; max-width: 380px; }
.hero-logo { max-width: 210px; margin: 0 auto 22px; }
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 26, 34, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.hero-rating strong { color: var(--gold); }
.hero-stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }

.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  max-width: 310px;
  margin: 0 auto 26px;
  position: relative;
  padding: 0 6px;
}
.hero-quote::before, .hero-quote::after {
  content: "";
}

.btn {
  display: block;
  width: 100%;
  padding: 16px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-call {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--text);
  border-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px -6px rgba(109, 33, 43, 0.65);
}
.btn-call:hover { background: var(--primary-light); }
.btn-call svg {
  width: 18px; height: 18px; flex: none;
  background: rgba(242,234,225,0.18);
  border-radius: 50%;
  padding: 5px;
  box-sizing: content-box;
}
.btn-ghost { background: transparent; color: var(--gold); margin-top: 10px; }

.btn-view-menu {
  margin-top: 14px;
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.btn-view-menu:active { background: rgba(201, 162, 39, 0.18); }
.btn-view-menu svg { animation: chevronBounce 2.4s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(201,162,39,0); }
}
@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ---------- Sticky bottom CTA (appears after hero) ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: var(--max-w);
  z-index: 55;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 30%);
  transition: transform 0.3s ease;
}
.sticky-cta.visible { transform: translate(-50%, 0); }
.sticky-cta .btn { margin: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

/* ---------- Sections ---------- */
section { padding: 44px 20px; }
.section-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  text-align: center;
}
.section-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 26px;
}

/* ---------- Gallery ---------- */
.showcase {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.showcase img { width: 100%; height: 100%; object-fit: cover; }
.showcase-fallback {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--bg-card), var(--primary) 140%);
}
.showcase-fallback span {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(242, 234, 225, 0.18);
}
.showcase-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  max-width: 340px;
  margin: 16px auto 0;
}

/* ---------- Menu: left categories / right items ---------- */
#menu-section { padding-top: 44px; }

.menu-tabs {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.menu-tabs-left {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 64vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
}
.tab-btn {
  text-align: left;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  padding: 11px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.tab-btn .tab-count {
  display: block;
  font-size: 9.5px;
  font-weight: 400;
  opacity: 0.65;
  margin-top: 2px;
}
.tab-btn.active {
  background: var(--primary);
  color: var(--text);
}
.tab-btn:not(.active):active { background: var(--bg-card); }

.menu-tabs-right {
  flex: 1;
  min-width: 0;
  max-height: 64vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-left: 2px;
}
.cat-banner {
  position: relative;
  height: 128px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(var(--banner-angle, 135deg), var(--primary), #3B0F15 85%);
  border: 1px solid var(--border);
}
.cat-banner img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.cat-banner-letter {
  position: absolute;
  right: 6px;
  bottom: -18px;
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 700;
  color: rgba(242, 234, 225, 0.1);
  line-height: 1;
  z-index: 0;
}
.cat-banner.no-photo .cat-banner-letter { color: rgba(201, 162, 39, 0.22); }
.cat-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent 35%, rgba(23,13,16,0.88) 100%);
}
.cat-banner-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.tab-panel { animation: tabIn 0.25s ease; }
@keyframes tabIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px dashed var(--border);
}
.menu-item:first-child { border-top: none; }
.item-main { flex: 1; min-width: 0; }
.item-name-row { display: flex; align-items: baseline; gap: 7px; }
.item-num { color: var(--gold); font-size: 10px; opacity: 0.7; }
.item-name { font-size: 15px; font-weight: 600; }
.item-desc { font-size: 12.5px; color: var(--text-muted); font-style: italic; margin-top: 2px; }
.item-note {
  display: inline-block;
  font-size: 9.5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.item-price {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.sauces-box {
  margin-top: 30px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.sauces-title { font-family: var(--serif); font-size: 16px; margin: 0 0 4px; }
.sauces-note { font-size: 11.5px; color: var(--gold); margin: 0 0 12px; }
.sauces-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.sauces-list li {
  font-size: 11.5px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Location ---------- */
.location-address {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  filter: grayscale(0.3) invert(0.92) contrast(0.9);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Reviews ---------- */
.rating-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.rating-num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--gold); }
.rating-meta { text-align: left; font-size: 12px; color: var(--text-muted); }
.stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }

/* ---------- Review carousel ---------- */
.review-carousel {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
.review-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
.review-card {
  flex: 0 0 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px 20px 20px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  position: relative;
  box-sizing: border-box;
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: 14px;
  font-family: var(--serif);
  font-size: 56px;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
}
.review-card .lang-tag {
  display: inline-block;
  font-style: normal;
  font-size: 9px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.review-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 6px;
}
.review-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.review-dot.active { background: var(--gold); transform: scale(1.3); }

/* ---------- Review photos ---------- */
.review-photos-title {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 26px 0 10px;
}
.review-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.review-photo {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  opacity: 0.3;
  font-size: 28px;
  font-weight: 300;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px 100px;
  text-align: center;
}
.footer-google {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
