/* =======================================================
   Menú Digital Cafetería - Theme Ejecutivo Compacto
   Bootstrap 5 overrides + Paleta Amber/Stone
======================================================= */

:root {
  --bs-font-sans-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-body-bg: #fffbeb;
  --bs-body-color: #1c1917;
  --c-primary: #78350f;
  --c-primary-hover: #92400e;
  --c-secondary: #d97706;
  --c-secondary-hover: #b45309;
  --c-accent: #fbbf24;
  --c-stone-50:  #fafaf9;
  --c-stone-100: #f5f5f4;
  --c-stone-200: #e7e5e4;
  --c-stone-300: #d6d3d1;
  --c-stone-400: #a8a29e;
  --c-stone-500: #78716c;
  --c-stone-600: #57534e;
  --c-stone-700: #44403c;
  --c-stone-800: #292524;
  --c-stone-900: #1c1917;
  --c-amber-50: #fffbeb;
  --c-amber-100: #fef3c7;
  --c-amber-200: #fde68a;
  --c-amber-600: #d97706;
  --c-amber-700: #b45309;
  --c-amber-800: #92400e;
  --c-amber-900: #78350f;
  --c-emerald: #059669;
  --c-emerald-hover: #047857;
  --c-danger: #dc2626;
  --bs-border-color: #e7e5e4;
  --bs-primary-rgb: 120,53,15;
  --menu-shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.04);
  --menu-shadow-md: 0 4px 8px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --menu-shadow-lg: 0 12px 32px rgba(15,23,42,.10), 0 4px 10px rgba(15,23,42,.06);
  --menu-radius-sm: 6px;
  --menu-radius-md: 10px;
  --menu-radius-lg: 16px;
  --menu-radius-xl: 20px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--bs-font-sans-serif);
  font-size: 0.92rem;
  line-height: 1.45;
  background:
    radial-gradient(1200px 400px at 10% -10%, #fde68a55 0%, transparent 60%),
    radial-gradient(900px 300px at 110% 0%, #fed7aa66 0%, transparent 60%),
    linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
  color: var(--c-stone-800);
}

a { color: var(--c-primary); }
a:hover { color: var(--c-primary-hover); }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', 'Inter', Georgia, serif; letter-spacing: -.01em; }

/* ---------- Utility ---------- */
.container-xxl { max-width: 1280px; }
.py-6 { padding-top: 3rem; padding-bottom: 3rem; }
.scroll-mt-200 { scroll-margin-top: 200px; }
.space-y-8 > * + * { margin-top: 2rem; }
.small, small { font-size: 0.78rem; }
.fs-1 { font-size: 3rem !important; }

/* ---------- Mesa Banner ---------- */
.menu-mesa-banner {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
  font-size: 0.78rem;
}

/* ---------- Topbar ---------- */
.menu-topbar {
  background: linear-gradient(180deg, #1c1917 0%, #292524 100%);
  color: #d6d3d1;
  padding: 8px 0;
  font-size: 0.75rem;
}
.menu-topbar a { color: #d6d3d1; }
.menu-topbar a:hover { color: #fff; }
.menu-time { font-variant-numeric: tabular-nums; color: #fbbf24; font-weight: 600; }
.menu-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 4px #22c55e22;
  display: inline-block;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px #22c55e22; }
  50%      { box-shadow: 0 0 0 8px #22c55e10; }
}
.menu-section-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}
.bg-amber-600 { background-color: var(--c-amber-600) !important; }
.bg-orange-700 { background-color: var(--c-amber-700) !important; }

/* ---------- Header ---------- */
.menu-header {
  background: linear-gradient(180deg, #ffffffcc 0%, #ffffffa8 100%);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid #fcd34d44;
  box-shadow: 0 1px 0 #ffffff88 inset, 0 8px 20px -16px rgba(120,53,15,.35);
}
.menu-logo {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 14px;
  background: #fde68a;
  border: 2px solid #fff;
  box-shadow: var(--menu-shadow-sm);
}
.menu-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--c-amber-900);
  letter-spacing: -.02em;
  margin: 0;
}
.menu-slogan {
  color: var(--c-stone-500);
  font-size: 0.75rem;
  line-height: 1.1;
}
.menu-search { min-width: 280px; max-width: 460px; flex: 1 1 320px; }
.menu-search-group {
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-stone-200);
  box-shadow: var(--menu-shadow-sm);
}
.menu-search-group .input-group-text {
  background: #fff; border: 0; color: var(--c-stone-400);
}
.menu-search-group .form-control {
  border: 0;
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  box-shadow: none;
  color: var(--c-stone-700);
}
.menu-search-group .form-control::placeholder { color: var(--c-stone-400); }
.menu-search-group .form-control:focus { outline: none; box-shadow: none; }
.menu-search-group:focus-within {
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 4px #fbbf2433, var(--menu-shadow-sm);
}
.btn-menu-ghost {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  background: #ffffffaa;
  border: 1px solid var(--c-stone-200);
  color: var(--c-stone-600);
  box-shadow: var(--menu-shadow-sm);
  transition: all .15s ease;
}
.btn-menu-ghost:hover {
  background: #fff;
  border-color: var(--c-secondary);
  color: var(--c-amber-800);
  transform: translateY(-1px);
}
.btn-menu-primary {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
  color: #fff;
  border: 1px solid #78350f;
  box-shadow: 0 6px 16px -8px rgba(120,53,15,.6), var(--menu-shadow-sm);
  transition: all .15s ease;
}
.btn-menu-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, #a16207 0%, #92400e 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(120,53,15,.75);
}
.btn-menu-outline {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  background: #fff;
  color: var(--c-primary);
  border: 1px solid var(--c-secondary);
  transition: all .15s ease;
}
.btn-menu-outline:hover {
  background: var(--c-amber-50);
  color: var(--c-primary-hover);
  box-shadow: var(--menu-shadow-sm);
}

/* ---------- Filter Bar ---------- */
.menu-filter-wrap {
  background: linear-gradient(180deg, #fffbebe8 0%, #fff7ede6 100%);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid #fde68a66;
  top: 0;
}
.menu-tabs {
  gap: 4px;
  border-bottom: 0;
  scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tab-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--c-stone-200);
  color: var(--c-stone-600);
  box-shadow: var(--menu-shadow-sm);
  transition: all .15s ease;
}
.menu-tab-link:hover {
  color: var(--c-amber-800);
  border-color: var(--c-secondary);
  transform: translateY(-1px);
}
.menu-tab-link.active {
  background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
  border-color: #78350f;
  color: #fff !important;
  box-shadow: 0 6px 16px -6px rgba(120,53,15,.55);
}
.menu-tab-icon { font-size: 0.95rem; line-height: 1; }
.menu-tab-label { line-height: 1; }
.menu-tab-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}
.menu-tab-link:not(.active) .menu-tab-badge {
  background: var(--c-amber-100);
  color: var(--c-amber-900);
}
.menu-small-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-stone-500);
}
.menu-cats-row { }
.menu-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #fff;
  color: var(--c-stone-600);
  border: 1px solid var(--c-stone-200);
  text-decoration: none;
  transition: all .12s ease;
}
.menu-chip:hover {
  color: var(--c-amber-800);
  border-color: var(--c-secondary);
  background: var(--c-amber-50);
}
.menu-chip.chip-active {
  background: var(--c-stone-800);
  color: #fff;
  border-color: var(--c-stone-800);
  font-weight: 600;
  box-shadow: var(--menu-shadow-sm);
}

/* ---------- Diet pills ---------- */
.menu-diet-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #ffffffcc;
  color: var(--c-stone-600);
  border: 1px solid var(--c-stone-200);
  text-decoration: none;
  transition: all .12s ease;
  white-space: nowrap;
}
.menu-diet-pill:hover {
  color: var(--c-amber-800);
  background: var(--c-amber-50);
  border-color: var(--c-secondary);
}
.menu-diet-pill.diet-active {
  background: var(--c-stone-800);
  color: #fff;
  border-color: var(--c-stone-800);
  box-shadow: var(--menu-shadow-sm);
}

/* ---------- Section ---------- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--c-amber-950, #451a03);
  margin: 0;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 0.8rem;
  color: var(--c-stone-500);
}
.section-bar {
  width: 5px; height: 22px;
  background: linear-gradient(180deg, var(--c-secondary), var(--c-primary));
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 1px 0 #fff inset;
}
.section-divider { border-color: #fcd34d55; }
.text-bg-amber {
  background: var(--c-amber-100);
  color: var(--c-amber-900);
  border: 1px solid var(--c-amber-300);
}
.text-bg-stone {
  background: var(--c-stone-100);
  color: var(--c-stone-700);
  border: 1px solid var(--c-stone-200);
}
.text-bg-warning { background-color: #fde68a !important; color: #78350f !important; border: 1px solid #fcd34d !important; }

/* ---------- Product cards ---------- */
.menu-product-card {
  border: 1px solid #fde68a55;
  border-radius: var(--menu-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--menu-shadow-sm);
  transition: all .18s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.menu-product-card:hover,
.menu-product-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--menu-shadow-lg);
  border-color: var(--c-secondary);
  outline: none;
}
.menu-product-card:focus-visible { box-shadow: 0 0 0 4px #fbbf2455, var(--menu-shadow-lg); }
.product-img-wrap { aspect-ratio: 4 / 3; background: #fde68a55; }
.product-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.menu-product-card:hover .product-img { transform: scale(1.04); }
.product-sold-out .product-img { filter: grayscale(.7) brightness(.9); }
.product-featured {
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px #fbbf2488, var(--menu-shadow-md);
}
.product-sold-out {
  background: #fafaf9;
  opacity: 0.85;
}
.badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .03em;
  box-shadow: 0 4px 10px -3px rgba(180,83,9,.55);
}
.badge-sold {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(127,29,29,.95);
  color: #fff;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.sold-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28,25,23,.45);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  backdrop-filter: blur(2px);
}
.card-body { padding: 14px 16px 16px; }
.product-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--c-stone-800);
}
.product-price {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--c-primary);
  background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.product-desc {
  color: var(--c-stone-500);
  font-size: 0.78rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.product-seemore { font-size: 0.72rem; font-weight: 600; color: var(--c-primary) !important; }
.al-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--c-amber-50);
  border: 1px solid var(--c-amber-200);
  font-size: 0.7rem;
  line-height: 1;
}
.al-more {
  background: var(--c-stone-100);
  color: var(--c-stone-600);
  font-size: 0.62rem;
  font-weight: 700;
  border-color: var(--c-stone-200);
  width: auto;
  padding: 0 7px;
}

/* ---------- Menú del Día ---------- */
.menu-dia-card {
  border-radius: var(--menu-radius-xl);
  border: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
  box-shadow: var(--menu-shadow-md);
  border: 1px solid #fde68a;
}
.menu-dia-header {
  background:
    linear-gradient(135deg, #78350f 0%, #92400e 60%, #a16207 100%);
  color: #fff;
  border: 0;
  padding: 16px 20px;
}
.menu-dia-option {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fde68a;
  margin-bottom: 4px;
}
.menu-dia-titulo {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: #fff;
  font-size: 1.25rem;
}
.menu-dia-fecha { color: #fde68a; }
.menu-dia-precio {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fde68a;
  background: rgba(255,255,255,.12);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
}
.menu-dia-tiempos { padding: 0; margin: 0; }
.menu-dia-tiempo-item + .menu-dia-tiempo-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #fde68a;
}
.menu-dia-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 10px -4px rgba(180,83,9,.6);
  flex: 0 0 26px;
}
.menu-dia-tiempo-nombre {
  font-weight: 700;
  color: var(--c-amber-900);
  font-size: 0.82rem;
}
.menu-dia-tiempo-desc {
  color: var(--c-stone-700);
  font-size: 0.9rem;
  line-height: 1.4;
}
.menu-dia-agua {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 6px 10px;
  border-radius: 10px;
  color: #075985;
}
.menu-dia-notas {
  border-left: 3px solid #fcd34d;
  background: #fffbeb;
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
}

/* ---------- Combos ---------- */
.combo-card {
  border-radius: var(--menu-radius-lg);
  border: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--menu-shadow-sm);
  border: 1px solid #fde68a88;
  transition: all .18s ease;
}
.combo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--menu-shadow-lg);
  border-color: var(--c-secondary);
}

/* ---------- Empty state ---------- */
.empty-state { box-shadow: var(--menu-shadow-sm); }

/* ---------- WhatsApp Float ---------- */
.wa-float-btn {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 12px 28px -10px rgba(5,150,105,.6), 0 0 0 3px #fff inset;
  border: 1px solid #047857;
  transition: all .15s ease;
}
.wa-float-btn:hover {
  color: #fff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px -12px rgba(5,150,105,.7), 0 0 0 3px #fff inset;
}
.wa-icon { font-size: 1.1rem; line-height: 1; }
@media (max-width: 520px) {
  .wa-label { display: none; }
  .wa-float-btn { padding: 14px; }
  .wa-icon { font-size: 1.4rem; }
}

/* ---------- Footer ---------- */
.menu-footer {
  background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
  color: #d6d3d1;
  margin-top: 3rem;
  border-top: 3px solid var(--c-secondary);
  box-shadow: inset 0 2px 0 #292524;
}
.menu-footer a,
.menu-footer-link,
button.menu-footer-link {
  background: none;
  border: 0;
  padding: 0;
  color: #d6d3d1;
  text-decoration: none;
  font-size: 0.8rem;
  text-align: left;
  display: inline-block;
}
.menu-footer a:hover,
.menu-footer-link:hover,
button.menu-footer-link:hover {
  color: #fff;
}
.menu-footer-admin {
  color: #fbbf24 !important;
  font-weight: 700;
}
.menu-footer-title {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}
.menu-footer-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 2px;
  background: linear-gradient(90deg, var(--c-secondary), var(--c-primary));
  border-radius: 999px;
}
.menu-footer-list { list-style: none; padding: 0; margin: 0; }
.menu-footer-list li { margin-bottom: 6px; }
.menu-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  color: var(--c-secondary);
  flex: 0 0 20px;
}
.menu-logo-footer {
  width: 42px; height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #fde68a;
  border: 2px solid #292524;
}
.menu-footer-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
.menu-footer-texto { color: #a8a29e; line-height: 1.5; }
.menu-badge-coffee {
  display: inline-block;
  padding: 4px 10px;
  background: #78350f66;
  border: 1px solid #78350f;
  color: #fde68a;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}
.menu-footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 1.25rem;
  color: #a8a29e;
}

/* ---------- Modals ---------- */
.product-modal {
  border: 0;
  border-radius: var(--menu-radius-xl);
  overflow: hidden;
  box-shadow: var(--menu-shadow-lg);
  background: #fff;
}
.product-modal-img { aspect-ratio: 16/9; object-fit: cover; }
.product-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 6px;
  opacity: 1;
  z-index: 2;
}
.product-modal-close:hover { background: #fff; }
.product-modal-titulo {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: var(--c-stone-900);
  font-size: 1.4rem;
}
.product-modal-precio {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-primary);
  background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.product-modal-desc {
  color: var(--c-stone-600);
  line-height: 1.55;
  font-size: 0.9rem;
}
.menu-ingredientes {
  background: var(--c-amber-50);
  border: 1px dashed #fde68a;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--c-amber-900);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* WiFi modal */
.wifi-modal {
  border: 0;
  border-radius: var(--menu-radius-xl);
}
.wifi-card {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px;
}
.wifi-label {
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.wifi-nombre {
  font-size: 1.15rem;
  font-weight: 800;
  color: #075985;
}
.wifi-clave {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  color: #1e3a8a;
  background: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

/* QR modal */
.qr-modal { border: 0; border-radius: var(--menu-radius-xl); }
.qr-wrap {
  width: 200px; height: 200px;
  padding: 10px;
  background: #fff;
  border: 2px solid var(--c-amber-100);
  border-radius: 14px;
  box-shadow: var(--menu-shadow-sm);
}
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; }
.qr-url {
  font-family: ui-monospace, monospace;
  word-break: break-all;
  line-height: 1.2;
}

/* ---------- Admin ---------- */
.admin-wrap { min-height: 100vh; display: flex; background: var(--c-stone-50); }
.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
  color: #d6d3d1;
  border-right: 1px solid #292524;
  display: flex;
  flex-direction: column;
  flex: 0 0 240px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-sidebar-brand {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #292524;
}
.admin-sidebar-brand img {
  width: 36px; height: 36px; border-radius: 10px; background: #fde68a; object-fit: cover;
}
.admin-sidebar-brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.admin-side-nav { list-style: none; padding: 10px 8px; margin: 0; }
.admin-side-nav li { margin-bottom: 2px; }
.admin-side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #a8a29e;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all .12s ease;
}
.admin-side-nav a:hover { background: #292524; color: #fff; }
.admin-side-nav a.active {
  background: linear-gradient(90deg, #78350f55, #92400e11);
  color: #fde68a;
  box-shadow: inset 2px 0 0 #fbbf24;
}
.admin-sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #292524;
  padding: 12px 14px;
}
.admin-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--c-stone-200);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--menu-shadow-sm);
}
.admin-content { padding: 24px; flex: 1 1 auto; }
.admin-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--c-stone-200);
  box-shadow: var(--menu-shadow-sm);
  padding: 20px;
}
.admin-stat {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--c-stone-200);
  box-shadow: var(--menu-shadow-sm);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.admin-stat-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.admin-stat-icon.stat-amber { background: var(--c-amber-100); color: var(--c-amber-900); }
.admin-stat-icon.stat-stone { background: var(--c-stone-100); color: var(--c-stone-700); }
.admin-stat-icon.stat-green { background: #dcfce7; color: #166534; }
.admin-stat-icon.stat-red   { background: #fee2e2; color: #991b1b; }
.admin-stat-num { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--c-stone-800); }
.admin-stat-label { font-size: 0.72rem; color: var(--c-stone-500); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

.admin-table {
  width: 100%;
  font-size: 0.82rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--c-stone-200);
}
.admin-table thead {
  background: var(--c-stone-50);
  color: var(--c-stone-600);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: .05em;
}
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-stone-100); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--c-amber-50); }
.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}
.admin-badge.ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.admin-badge.no { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.admin-badge.warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.admin-btn {
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid transparent;
  transition: all .12s ease;
  text-decoration: none;
}
.admin-btn + .admin-btn { margin-left: 4px; }
.admin-btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.admin-btn-primary:hover { color: #fff; background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.admin-btn-outline { background: #fff; color: var(--c-stone-700); border-color: var(--c-stone-200); }
.admin-btn-outline:hover { background: var(--c-stone-50); color: var(--c-stone-800); }
.admin-btn-danger { background: #fff; color: #991b1b; border-color: #fecaca; }
.admin-btn-danger:hover { background: #fee2e2; color: #7f1d1d; }
.admin-btn-success { background: #16a34a; color: #fff; border-color: #16a34a; }
.admin-btn-success:hover { background: #15803d; color: #fff; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--c-stone-700); margin-bottom: 4px; }
.form-control, .form-select {
  border-radius: 8px;
  font-size: 0.85rem;
  border-color: var(--c-stone-200);
}
.form-control:focus, .form-select:focus {
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 3px #fbbf2433;
}
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(600px 300px at 10% 0%, #fde68a55 0%, transparent 60%),
    radial-gradient(500px 300px at 100% 100%, #fed7aa66 0%, transparent 60%),
    linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%);
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #fde68a;
  box-shadow: var(--menu-shadow-lg);
  max-width: 420px;
  width: 100%;
}
.login-logo {
  width: 64px; height: 64px; border-radius: 18px; background: #fde68a;
  border: 3px solid #fff; box-shadow: var(--menu-shadow-sm);
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
}
.login-title {
  font-family: 'Playfair Display', serif;
  text-align: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--c-amber-900);
  margin-bottom: 2px;
}
.login-sub { text-align: center; font-size: 0.8rem; color: var(--c-stone-500); margin-bottom: 20px; }

/* Toasts */
.toast-area {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.mdm-toast {
  background: #fff;
  border: 1px solid var(--c-stone-200);
  border-left: 4px solid var(--c-secondary);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: var(--menu-shadow-md);
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 10px;
  animation: slideIn .25s ease;
}
.mdm-toast.toast-ok { border-left-color: #16a34a; }
.mdm-toast.toast-err { border-left-color: #dc2626; }
.mdm-toast.toast-info { border-left-color: #2563eb; }
@keyframes slideIn {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ---------- Modo TV ---------- */
.tv-wrap {
  min-height: 100vh;
  background: linear-gradient(180deg, #0c0a09 0%, #1c1917 100%);
  color: #f5f5f4;
  font-family: 'Inter', sans-serif;
  padding: 0;
  overflow: hidden;
}
.tv-topbar {
  padding: 18px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: linear-gradient(180deg, #78350f88 0%, transparent 100%);
  border-bottom: 1px solid #ffffff10;
}
.tv-logo {
  width: 52px; height: 52px; border-radius: 14px; background: #fde68a; object-fit: cover;
}
.tv-brand-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 800; color: #fde68a; }
.tv-clock {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tv-clock small { display: block; font-size: 0.7rem; color: #a8a29e; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: .04em; }
.tv-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 14px 20px 0;
}
.tv-tab {
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid #ffffff20;
  background: #ffffff10;
  color: #d6d3d1;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .15s ease;
}
.tv-tab.active {
  background: linear-gradient(180deg, #92400e 0%, #78350f 100%);
  color: #fff;
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px #fbbf2433;
}
.tv-section {
  padding: 20px 30px 40px;
  max-width: 1600px;
  margin: 0 auto;
  display: none;
}
.tv-section.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tv-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.tv-card {
  background: linear-gradient(180deg, #ffffff08 0%, #ffffff03 100%);
  border: 1px solid #ffffff15;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tv-card-img-wrap {
  aspect-ratio: 16/9;
  background: #fde68a33;
  overflow: hidden;
}
.tv-card-img { width: 100%; height: 100%; object-fit: cover; }
.tv-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.tv-card-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1.2; }
.tv-card-desc { color: #a8a29e; font-size: 0.8rem; line-height: 1.4; margin-top: 4px; flex: 1; }
.tv-card-price {
  margin-top: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fbbf24;
  align-self: flex-end;
}
.tv-progress {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: #ffffff10;
}
.tv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  width: 0;
  transition: width .1s linear;
}
.tv-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
  padding: 8px 10px;
  background: #0c0a09cc;
  border: 1px solid #ffffff15;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.tv-controls button {
  background: #ffffff10;
  border: 1px solid #ffffff20;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.tv-controls button.active {
  background: linear-gradient(180deg, #92400e, #78350f);
  border-color: #fbbf24;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .admin-sidebar { position: fixed; left: 0; top: 0; z-index: 1060; transform: translateX(-100%); transition: transform .2s; }
  .admin-sidebar.open { transform: translateX(0); }
  .menu-search { order: 3; min-width: 100%; flex-basis: 100%; max-width: 100%; }
  .menu-header .container-xxl { gap: 10px; }
}
@media (max-width: 576px) {
  .menu-logo { width: 44px; height: 44px; border-radius: 12px; }
  .menu-brand { font-size: 1.1rem; }
  .section-title { font-size: 1.2rem; }
  .wa-float-btn { right: 12px; bottom: 12px; }
  .tv-topbar { padding: 14px 18px; }
  .tv-section { padding: 16px 18px 50px; }
  .tv-logo { width: 40px; height: 40px; }
  .tv-brand-name { font-size: 1.05rem; }
  .tv-clock { font-size: 1.15rem; }
}
