@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&display=swap');

/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #080808;
  --surface: #0f0f0f;
  --card: #141414;
  --card-hover: #1a1a1a;
  --border: #242424;
  --border-subtle: #1c1c1c;
  --red: #cc1111;
  --red-glow: rgba(204, 17, 17, 0.25);
  --red-faint: rgba(204, 17, 17, 0.1);
  --white: #f2f2f2;
  --muted: #666;
  --muted-light: #999;
  --nav-h: 46px;
  --header-h: 88px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--red);
  padding: 18px 20px 14px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.logo-flame {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.logo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.85rem;
  letter-spacing: 0.12em;
  color: var(--white);
  line-height: 1;
}

.logo-title .accent {
  color: var(--red);
}

.logo-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.45em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 10px;
  display: inline-block;
}

/* ─── Section Nav ────────────────────────────────────────────────── */
.section-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 150;
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-pills {
  display: flex;
  gap: 6px;
  padding: 8px 14px;
  min-width: max-content;
}

.nav-pill {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.nav-pill.active,
.nav-pill:hover {
  color: var(--white);
  border-color: var(--red);
  background: var(--red-faint);
}

/* ─── Menu Main ──────────────────────────────────────────────────── */
.menu-main {
  padding: 0 0 140px;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Section ────────────────────────────────────────────────────── */
.menu-section {
  padding: 0 16px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 0 14px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--white);
  white-space: nowrap;
  line-height: 1;
}

.section-divider {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 100%);
  border-radius: 1px;
}

/* ─── Item Card ──────────────────────────────────────────────────── */
.item-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: background 0.15s;
}

.item-card:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.item-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.2;
}

.item-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.item-price .sym {
  color: var(--red);
  font-size: 1rem;
}

.item-desc {
  font-size: 0.75rem;
  color: var(--muted-light);
  margin-top: 6px;
  line-height: 1.55;
}

/* ─── Variants ───────────────────────────────────────────────────── */
.item-variants {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  background: var(--card-hover);
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
}

.variant-name {
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 0.03em;
}

.variant-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  color: var(--white);
}

.variant-price .sym {
  color: var(--red);
  font-size: 0.85rem;
}

/* ─── Acompañamientos Grid ───────────────────────────────────────── */
.acomp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.acomp-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
}

.acomp-card .item-name {
  font-size: 0.92rem;
}

.acomp-card .item-price {
  font-size: 1.25rem;
}

/* ─── Salsas Badges ──────────────────────────────────────────────── */
.salsas-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.salsas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
}

.salsa-badge {
  background: var(--red-faint);
  border: 1px solid rgba(204, 17, 17, 0.35);
  border-radius: 20px;
  padding: 7px 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: #e08080;
}

/* ─── Rate Bar ───────────────────────────────────────────────────── */
.rate-bar {
  position: fixed;
  bottom: 82px;
  right: 16px;
  z-index: 190;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.7rem;
  color: var(--muted-light);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.rate-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rate-bar strong {
  color: var(--white);
}

/* ─── FAB Currency Toggle ────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 200;
  background: var(--red);
  color: var(--white);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 12px 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--red-glow), 0 2px 8px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.fab:active {
  transform: scale(0.94);
}

.fab.bs-mode {
  background: var(--card);
  border-color: var(--red);
  box-shadow: 0 4px 20px var(--red-glow);
}

.fab-dot {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  flex-shrink: 0;
}

.fab.bs-mode .fab-dot {
  background: var(--red);
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  padding: 28px 20px 32px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.footer-divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin: 0 auto 20px;
  border-radius: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--muted-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.15s;
}

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

.footer-link-icon {
  color: var(--red);
  font-size: 1rem;
}

.footer-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: #2e2e2e;
  margin-top: 4px;
}

/* ─── Loading spinner (rate fetch) ──────────────────────────────── */
.price-loading {
  color: var(--muted);
  font-size: 0.9rem;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ─── Scrollbar (desktop) ────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* ─── Admin page styles ──────────────────────────────────────────── */
.admin-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 12px;
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
}

.admin-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--white);
  text-align: center;
  margin-bottom: 6px;
}

.admin-logo span { color: var(--red); }

.admin-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.admin-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.admin-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 20px;
}

.admin-input:focus {
  border-color: var(--red);
}

.admin-btn {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.admin-btn:active { transform: scale(0.98); }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.admin-msg {
  margin-top: 14px;
  font-size: 0.8rem;
  text-align: center;
  min-height: 1.2em;
}

.admin-msg.ok { color: #4caf50; }
.admin-msg.err { color: #f44336; }

.admin-panel { display: none; }
.admin-panel.visible { display: block; }
.admin-login { display: block; }
.admin-login.hidden { display: none; }

.admin-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.admin-rate-current {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.admin-rate-current strong {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  display: block;
  margin-top: 2px;
}

.admin-back {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.admin-back:hover { color: var(--red); }
