/**
 * public_html/menu/menu.css
 * Styles for the redesigned /menu — split out of index.php per
 * MENUINTERFACE_INSTRUCTION.rtf (§ file structure decided with the
 * user 2026-09-01). Same gold/dark Papacaso palette as pos/style.css
 * so /pos and /menu stay visually consistent.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --gold: #D4A017; --gold-dark: #A07810; --gold-light: #F5E8C0; --gold-pale: #FDF8EC;
  --red: #C0392B; --red-dark: #922B21; --green: #1C7C4A; --green-light: #E2F4EC;
  --dark: #1A1208; --dark2: #2D2010;
  --surface: #FFFFFF; --surface2: #F7F4ED; --surface3: #EDE8D8;
  --border: rgba(90,65,10,0.15); --border2: rgba(90,65,10,0.28);
  --text: #1A1208; --text2: #5C4A20; --text3: #8A7450;
  --radius: 10px; --radius-lg: 16px; --radius-xl: 22px;
  --shadow: 0 2px 12px rgba(26,18,8,0.10); --shadow-lg: 0 8px 32px rgba(26,18,8,0.2);
  --unavail: #9E9E9E; --unavail-bg: #F5F5F5;
  --bn-h: 62px; /* bottom primary nav height, reserved by main/footer padding below */
}
html, body { min-height: 100%; font-family: 'DM Sans', sans-serif; background: var(--surface2); color: var(--text); overflow-x: hidden; }
button, input, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* Shared inline-icon look (see assets/icons.js) — every glyph that used
   to be an emoji now renders through this. */
.icon, .icon-svg { display: inline-flex; vertical-align: -3px; }
.icon-svg { flex: none; }

/* ═══════════════════ HERO ═══════════════════ */
.menu-hero {
  background: var(--dark);
  background-image: repeating-linear-gradient(45deg, rgba(212,160,23,0.05) 0px, rgba(212,160,23,0.05) 1px, transparent 1px, transparent 50px);
  padding: 26px 20px 20px; text-align: center;
}
.menu-hero .logo-img { width: 96px; height: auto; margin: 0 auto; display: block; }
.menu-hero .tagline { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 6px; }
.hero-status-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; letter-spacing: 0.2px; }
.status-chip.open { background: rgba(28,124,74,0.18); color: #8fe0b6; }
.status-chip.closed { background: rgba(192,57,43,0.2); color: #f0a89f; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px currentColor; opacity: 0.9; }
.status-chip.open .status-dot { animation: pulseDot 1.8s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* ═══════════════════ CLOSED BANNER ═══════════════════ */
.closed-banner {
  background: linear-gradient(135deg, #3a1512, #2a0f0d);
  color: #fff; text-align: center; padding: 16px 20px;
  border-bottom: 1.5px solid rgba(192,57,43,0.4);
}
.closed-banner .cb-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: #f4a89e; margin-bottom: 4px; }
.closed-banner .cb-body { font-size: 12.5px; color: rgba(255,255,255,0.75); line-height: 1.6; max-width: 480px; margin: 0 auto; }
.closed-banner .cb-body strong { color: #fff; }

/* ═══════════════════ CATEGORY NAV ═══════════════════ */
.cat-nav-wrap { position: sticky; top: 0; z-index: 15; background: var(--surface); border-bottom: 1.5px solid var(--border); }
.cat-nav {
  display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; color: var(--text2); background: var(--surface2);
  border: 1.5px solid var(--border2); padding: 9px 15px; border-radius: 99px;
  cursor: pointer; transition: all 0.18s;
}
.cat-btn .cb-icon { font-size: 15px; }
.cat-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.cat-btn.active { background: var(--dark); border-color: var(--dark); color: var(--gold); box-shadow: var(--shadow); }

/* ═══════════════════ MAIN / SECTIONS ═══════════════════ */
main { max-width: 1080px; margin: 0 auto; padding: 22px 16px calc(var(--bn-h) + 24px); }
.cat-section { animation: fadeSection 0.28s ease; }
@keyframes fadeSection { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.cat-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.cat-title { display: flex; align-items: center; gap: 10px; font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1.5px; color: var(--text); }
.cat-hint { font-size: 12.5px; color: var(--text3); margin-bottom: 16px; }

/* ═══════════════════ PRODUCT GRID / CARDS ═══════════════════ */
/* Mobile-first: 2 per row on phones (spec requirement) — the old
   auto-fill/minmax(200px) never actually fit 2 columns on any real
   phone width (320–430px content area is always < 400px), so it
   silently rendered 1 column everywhere. Step up explicitly instead. */
.prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 860px) { .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.prod-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s; position: relative; cursor: pointer;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.prod-card.unavail { opacity: 0.55; cursor: not-allowed; }
.prod-card .pc-photo-wrap { position: relative; width: 100%; aspect-ratio: 4/3; background: var(--surface3); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prod-card .pc-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.prod-card:hover .pc-photo { transform: scale(1.05); }
.prod-card .pc-photo-placeholder { font-size: 40px; opacity: 0.5; }
.prod-card .pc-price-badge {
  position: absolute; right: 8px; bottom: 8px; background: rgba(26,18,8,0.82); color: var(--gold-light);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; backdrop-filter: blur(2px);
}
.prod-card .pc-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-card .pc-name { font-size: 13.5px; font-weight: 700; line-height: 1.25; display: flex; align-items: center; gap: 5px; }
.prod-card .pc-desc { font-size: 11px; color: var(--text3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card .pc-cta-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.prod-card .pc-cta { font-size: 11.5px; font-weight: 700; color: var(--gold-dark); }
.unavail-badge { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--unavail); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 99px; letter-spacing: 0.4px; }

/* Simple flat-priced cards (acomp / bebida / especial): direct add, no modal */
.prod-card.simple .pc-add-btn {
  padding: 7px 14px; background: var(--gold); border: none; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; color: var(--dark); cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.prod-card.simple .pc-add-btn:hover { background: var(--gold-dark); color: #fff; }
.prod-card.simple .pc-add-btn:disabled { background: var(--unavail); cursor: not-allowed; color: #fff; }

/* ═══════════════════ DETAIL MODAL (papacaso armado / burger) ═══════════════════ */
.detail-overlay { position: fixed; inset: 0; background: rgba(26,18,8,0.6); z-index: 60; display: none; align-items: flex-end; justify-content: center; }
.detail-overlay.open { display: flex; }
@media (min-width: 720px) { .detail-overlay { align-items: center; } }
.detail-box {
  background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; animation: slideUp 0.28s ease; position: relative;
}
@media (min-width: 720px) { .detail-box { border-radius: var(--radius-xl); animation: popIn 0.22s ease; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes popIn { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.detail-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(26,18,8,0.55); color: #fff; border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* Plain product photo header (Papacaso Armado detail — no layer stack) */
.detail-photo-wrap {
  width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: 20px 20px 0 0; background: var(--surface3);
}
@media (min-width: 720px) { .detail-photo-wrap { border-radius: var(--radius-xl) var(--radius-xl) 0 0; } }
.detail-photo { width: 100%; height: 100%; object-fit: cover; }

/* Assembly stage: stacked ingredient layers -> final photo reveal (Burgers only) */
.assembly-stage {
  position: relative; width: 100%; aspect-ratio: 4/3; background: linear-gradient(180deg, var(--gold-pale), var(--surface3));
  overflow: hidden; border-radius: 20px 20px 0 0;
}
@media (min-width: 720px) { .assembly-stage { border-radius: var(--radius-xl) var(--radius-xl) 0 0; } }
.assembly-stage .layer-img {
  position: absolute; left: 50%; max-width: 78%; max-height: 78%; object-fit: contain;
  opacity: 0; transform: translate(-50%, -18px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.assembly-stage .layer-img.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.assembly-stage .final-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.15);
}
.assembly-stage .final-photo.show { opacity: 1; transform: scale(1); }
.assembly-stage .replay-btn {
  position: absolute; left: 10px; bottom: 10px; z-index: 3; background: rgba(26,18,8,0.6); color: #fff;
  border: none; border-radius: 99px; font-size: 10.5px; font-weight: 600; padding: 6px 11px; cursor: pointer;
  display: flex; align-items: center; gap: 5px; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.assembly-stage .replay-btn.show { opacity: 1; pointer-events: auto; }

.detail-body { padding: 18px 20px 20px; }
.detail-title { display: flex; align-items: center; gap: 8px; font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; margin-bottom: 6px; }
.detail-desc { font-size: 12.5px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.detail-size-row { display: flex; gap: 10px; margin-bottom: 16px; }
.size-opt {
  flex: 1; text-align: center; padding: 10px; border: 1.5px solid var(--border2); border-radius: var(--radius);
  cursor: pointer; transition: all 0.15s; background: var(--surface2);
}
.size-opt.sel { border-color: var(--gold); background: var(--gold-light); }
.size-opt .so-label { font-size: 11px; color: var(--text3); text-transform: capitalize; }
.size-opt .so-price { font-size: 15px; font-weight: 700; color: var(--gold-dark); margin-top: 2px; }
.size-opt.unavail { opacity: 0.5; cursor: not-allowed; }
.detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.detail-add-btn {
  flex: 1; padding: 13px; border: none; border-radius: var(--radius); background: var(--red); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.detail-add-btn:hover { background: var(--red-dark); }
.detail-add-btn:disabled { background: var(--surface3); color: var(--text3); cursor: not-allowed; }

/* ═══════════════════ BUILDER (PapaCaso a Elección) ═══════════════════ */
.builder-wrap { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 860px) {
  .builder-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
}
.builder-size-row { display: flex; gap: 10px; }
.builder-size-row .size-opt { flex: 1; }

.builder-ingredients { display: flex; flex-direction: column; gap: 16px; }
.ing-section-label { font-size: 12px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.4px; display: flex; align-items: baseline; gap: 8px; }
.ing-section-label small { font-weight: 400; color: var(--text3); text-transform: none; letter-spacing: 0; }
.ing-chip-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; -webkit-overflow-scrolling: touch; }
@media (min-width: 860px) { .ing-chip-row { flex-wrap: wrap; overflow: visible; } }
.ing-chip {
  flex: 0 0 auto; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 6px 9px; border: 2px solid var(--border2); border-radius: var(--radius); background: var(--surface);
  cursor: pointer; transition: all 0.15s; text-align: center;
}
@media (min-width: 860px) { .ing-chip { width: 92px; } }
.ing-chip:active { transform: scale(0.96); }
.ing-chip.sel { border-color: var(--gold); background: var(--gold-pale); box-shadow: 0 0 0 3px rgba(212,160,23,0.18); }
.ing-chip .ic-thumb-wrap { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.ing-chip .ic-thumb { max-width: 100%; max-height: 100%; object-fit: contain; }
.ing-chip .ic-none { font-size: 24px; }
.ing-chip .ic-name { font-size: 9.5px; font-weight: 600; line-height: 1.2; color: var(--text2); }
.ing-chip .ic-price { font-size: 9px; color: var(--gold-dark); font-weight: 700; }
.ing-chip.sel .ic-name { color: var(--text); }
.ing-chip .ic-check {
  position: absolute; margin-top: -46px; margin-left: 54px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--gold); color: var(--dark); font-size: 10px; font-weight: 900; display: none; align-items: center; justify-content: center;
}
.ing-chip.sel .ic-check { display: flex; }

/* Live assembly panel */
.builder-assembly { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 860px) { .builder-assembly { position: sticky; top: 70px; } }
.assembly-visual {
  position: relative; width: 100%; aspect-ratio: 1/1; background: linear-gradient(180deg, var(--gold-pale) 0%, var(--surface3) 100%);
  overflow: hidden;
}
.assembly-visual .av-base {
  position: absolute; left: 50%; bottom: 6%; width: 62%; transform: translateX(-50%);
  opacity: 0; transition: opacity 0.35s ease;
}
.assembly-visual .av-base.show { opacity: 1; }
.assembly-visual .av-layer {
  position: absolute; left: 50%; width: 46%; object-fit: contain;
  opacity: 0; transform: translate(-50%, -14px) scale(0.85); transition: opacity 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 3px 6px rgba(26,18,8,0.18));
}
.assembly-visual .av-layer.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.assembly-visual .av-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 12px; color: var(--text3); }
.assembly-price-panel { padding: 14px 16px 16px; }
.apRow { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); padding: 3px 0; }
.apRow.total { font-size: 15px; font-weight: 700; color: var(--text); border-top: 1.5px dashed var(--border2); margin-top: 8px; padding-top: 10px; }
.apRow.total span:last-child { color: var(--gold-dark); }
.apRow .ap-extra { color: var(--gold-dark); }
.builder-add-btn {
  width: 100%; margin-top: 12px; padding: 13px; border: none; border-radius: var(--radius);
  background: var(--red); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.builder-add-btn:hover { background: var(--red-dark); }
.builder-add-btn.bump { animation: bumpBtn 0.3s ease; }
@keyframes bumpBtn { 0% { transform: scale(1); } 40% { transform: scale(0.95); } 100% { transform: scale(1); } }

/* ═══════════════════ BOTTOM PRIMARY NAV ═══════════════════
   Inicio / Menú / Seguimiento / Carrito — the site's primary
   navigation, distinct from the product-category nav above. The
   Carrito tab replaces the old floating cart-fab pill entirely
   (one clear cart affordance instead of two stacked on-screen). */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; height: var(--bn-h);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--dark); border-top: 1.5px solid rgba(212,160,23,0.25);
  box-shadow: 0 -4px 20px rgba(26,18,8,0.25);
}
.bn-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.55);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.2px; transition: color 0.15s;
}
.bn-item .bn-icon { position: relative; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.bn-item .bn-icon img { width: 100%; height: 100%; object-fit: contain; opacity: 0.6; transition: opacity 0.15s; }
.bn-item.active .bn-icon img { opacity: 1; }
.bn-item.active { color: var(--gold); }
.bn-item.bump { animation: bumpBtn 0.3s ease; }
.bn-badge {
  position: absolute; top: -6px; right: -11px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--gold); color: var(--dark); font-size: 10px; font-weight: 800; border-radius: 99px;
  align-items: center; justify-content: center;
}

/* ═══════════════════ CART / CHECKOUT DRAWER ═══════════════════ */
.drawer-overlay { position: fixed; inset: 0; background: rgba(26,18,8,0.55); z-index: 50; display: none; }
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 100%; max-width: 420px;
  background: var(--surface); z-index: 51; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.25s ease;
}
.drawer-overlay.open .drawer { transform: translateX(0); }
.drawer-header { padding: 18px 20px; border-bottom: 1.5px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: var(--dark); }
.drawer-header .dh-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; color: var(--gold); }
.drawer-close { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 20px; cursor: pointer; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }

.prep-note { display: flex; align-items: center; gap: 8px; background: var(--gold-pale); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; font-size: 11.5px; color: var(--text2); margin-bottom: 14px; }
.prep-note b { color: var(--text); }

.cart-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-line .cl-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: var(--surface3); }
.cart-line-info { flex: 1; min-width: 0; }
.cl-name { font-size: 13px; font-weight: 700; }
.cl-detail { font-size: 11px; color: var(--text3); margin-top: 2px; }
.cl-price { font-size: 12px; color: var(--gold-dark); font-weight: 700; margin-top: 4px; }
.cl-qty { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.cl-qty button { width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--border2); background: var(--surface2); cursor: pointer; font-size: 14px; line-height: 1; }
.cl-qty span { font-size: 13px; font-weight: 700; min-width: 16px; text-align: center; }
.cl-remove { background: none; border: none; color: var(--text3); font-size: 15px; cursor: pointer; margin-left: 4px; }
.cl-remove:hover { color: var(--red); }

.cart-empty { text-align: center; padding: 40px 10px; color: var(--text3); font-size: 13px; }

.checkout-form { margin-top: 18px; padding-top: 18px; border-top: 1.5px dashed var(--border2); }
.checkout-form h3 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.cf-field { margin-bottom: 12px; }
.cf-field label { display: block; font-size: 11px; font-weight: 600; color: var(--text2); margin-bottom: 5px; }
.cf-field input, .cf-field textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--border2); border-radius: var(--radius);
  font-size: 13px; color: var(--text); background: var(--surface2); outline: none; transition: border-color 0.15s;
}
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--gold); background: var(--gold-pale); }
.cf-field textarea { resize: vertical; min-height: 56px; }
.cf-field .cf-hint { font-size: 10px; color: var(--text3); margin-top: 4px; }

/* Delivery / Retirar en tienda toggle (Notes.rtf) */
.otype-toggle { display: flex; gap: 8px; }
.otype-toggle-btn {
  flex: 1; padding: 10px 8px; border: 1.5px solid var(--border2); border-radius: var(--radius);
  background: var(--surface2); color: var(--text2); font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: center; transition: all 0.15s;
}
.otype-toggle-btn.active { border-color: var(--gold); background: var(--gold-pale); color: var(--gold-dark); }

.drawer-line-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.drawer-subtotal { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.drawer-subtotal span:last-child { color: var(--gold-dark); }
.submit-order-btn {
  width: 100%; padding: 14px; background: var(--red); border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; transition: all 0.15s;
}
.submit-order-btn:hover:not(:disabled) { background: var(--red-dark); }
.submit-order-btn:disabled { background: var(--surface3); color: var(--text3); cursor: not-allowed; }
.drawer-msg { font-size: 11px; color: var(--text3); text-align: center; margin-top: 8px; }
.drawer-closed-msg { font-size: 11.5px; color: var(--red-dark); text-align: center; margin-top: 8px; font-weight: 600; background: var(--red-dark, #922B21); background: rgba(192,57,43,0.1); padding: 8px 10px; border-radius: var(--radius); }

.success-panel { text-align: center; padding: 40px 16px; }
.success-panel .sp-icon { font-size: 48px; margin-bottom: 12px; }
.success-panel .sp-title { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; color: var(--gold-dark); margin-bottom: 8px; }
.success-panel .sp-num { font-size: 14px; color: var(--text2); margin-bottom: 4px; }
.success-panel .sp-note { font-size: 12px; color: var(--text3); margin-top: 10px; line-height: 1.5; }
.success-panel .add-btn { margin-top: 20px; padding: 10px 18px; background: var(--gold); border: none; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--dark); cursor: pointer; }
.sp-code-box { margin-top: 16px; background: var(--gold-pale); border: 1.5px dashed var(--gold-dark); border-radius: var(--radius-lg); padding: 14px; }
.sp-code-label { font-size: 11px; color: var(--text3); margin-bottom: 6px; line-height: 1.4; }
.sp-code-val { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 6px; color: var(--gold-dark); }

.loading, .empty { text-align: center; padding: 60px 20px; color: var(--text3); font-size: 14px; }
footer { text-align: center; padding: 24px 20px calc(var(--bn-h) + 24px); font-size: 11px; color: var(--text3); background: var(--surface2); transition: background-color 0.2s; }
.footer-contact { display: flex; justify-content: center; gap: 18px; margin-top: 10px; }
.footer-contact a { color: var(--text2); font-size: 12px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.footer-contact a:hover { color: var(--gold-dark); }
/* Inicio's black/red/orange redesign needs a matching dark footer —
   scoped to when Inicio is the active view so Menú/Carrito keep the
   original light footer untouched. */
body.inicio-active footer { background: var(--dark); color: rgba(255,255,255,0.5); }
body.inicio-active .footer-contact a { color: rgba(255,255,255,0.75); }
body.inicio-active .footer-contact a:hover { color: var(--inicio-orange); }
.footer-legal { margin-top: 10px; }
.footer-legal a { color: var(--text3); font-size: 10.5px; text-decoration: underline; }
body.inicio-active .footer-legal a { color: rgba(255,255,255,0.5); }

/* privacidad.php */
.legal-card { text-align: left; }
.legal-updated { font-size: 11px; color: var(--text3); margin-bottom: 16px; }
.legal-card h2 { font-family: 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 0.5px; color: var(--text); margin: 18px 0 6px; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.legal-main .seg-back-btn { display: block; text-align: center; margin-top: 16px; }
.drawer-privacy-note { font-size: 10.5px; color: var(--text3); text-align: center; margin-top: 10px; line-height: 1.5; }
.drawer-privacy-note a { color: var(--gold-dark); }

/* bn-item is a <button> on index.php's SPA nav but a plain link (or a
   disabled "you are here" button) on seguimiento.php — same look
   either way, since <a> can't take :disabled. */
a.bn-item { text-decoration: none; }
.bn-item:disabled { cursor: default; }

/* ── toast ── */
#menu-toast { position: fixed; bottom: calc(var(--bn-h) + 16px); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--dark); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 13px; z-index: 70; opacity: 0; transition: all .25s; box-shadow: var(--shadow-lg); }

/* ═══════════════════ INICIO / HOME VIEW ═══════════════════
   Redesigned 2026-09 per the user's brand brief: black base, red/
   orange accents, a real HD product photo as the hero backdrop, the
   real logo (never a substitute) as the centerpiece. --inicio-orange
   is a new accent scoped to this view only — the rest of the site
   (POS, product browsing, checkout) keeps the existing gold palette
   untouched, per "just modify the inicio tab".
   ══════════════════════════════════════════════════════════════ */
#view-inicio { padding-bottom: calc(var(--bn-h) + 24px); background: var(--dark); }
:root { --inicio-orange: #FF6B35; --inicio-orange-dark: #C7431A; }

.inicio-hero {
  position: relative; padding: 60px 24px 44px; text-align: center; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10,8,5,0.55) 0%, rgba(10,8,5,0.88) 65%, var(--dark) 100%),
    url('img/papacaso_armados/papacaso1.JPG') center 35% / cover no-repeat;
}
.inicio-hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; position: relative; }
.inicio-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,107,53,0.4); border-radius: 99px; padding: 5px 12px; backdrop-filter: blur(2px);
}
.inicio-logo-wrap { position: relative; display: inline-block; margin-bottom: 18px; }
.inicio-logo-wrap::before {
  content: ''; position: absolute; inset: -18px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,107,53,0.45), rgba(192,57,43,0.25) 55%, transparent 75%);
}
.inicio-logo { width: 150px; height: auto; display: block; filter: drop-shadow(0 0 22px rgba(255,107,53,0.5)); }
.inicio-title { font-family: 'Bebas Neue', sans-serif; font-size: 32px; letter-spacing: 1px; color: #fff; line-height: 1.2; margin-bottom: 10px; position: relative; }
.inicio-title-accent {
  background: linear-gradient(90deg, var(--inicio-orange), var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.inicio-tagline { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5; margin-bottom: 28px; position: relative; }
.inicio-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(90deg, var(--inicio-orange), var(--red)); color: #fff; border: none; border-radius: 99px;
  padding: 13px 32px; font-size: 14px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer; box-shadow: 0 6px 20px rgba(255,107,53,0.35); transition: transform 0.15s;
  text-decoration: none; position: relative; /* .inicio-cta is also used on <a> tags (Cómo llegar / Escribir reseña) */
}
.inicio-cta:active { transform: scale(0.97); }
.inicio-about { max-width: 480px; margin: 0 auto; padding: 34px 24px; text-align: center; background: var(--dark); }
.inicio-about-title { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; color: #fff; margin-bottom: 10px; }
.inicio-about-body { font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.6; margin-bottom: 18px; }
.inicio-about-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.inicio-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--inicio-orange); background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.35); border-radius: 99px; padding: 6px 12px;
}
.inicio-cta-outline { background: transparent; color: var(--inicio-orange); border: 1.5px solid var(--inicio-orange); box-shadow: none; }

/* ── Ubicación (interactive map, per Notes.rtf) ── */
.inicio-location { max-width: 520px; margin: 0 auto; padding: 8px 24px 34px; text-align: center; scroll-margin-top: 16px; background: var(--dark); }
.inicio-location-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; color: #fff; margin-bottom: 4px; }
.inicio-location-sub { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-bottom: 16px; }
.location-map-wrap {
  border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid rgba(255,107,53,0.3);
  box-shadow: var(--shadow); margin-bottom: 16px; background: var(--surface3);
}
.location-map { width: 100%; aspect-ratio: 16 / 11; border: 0; display: block; }

/* ── Review prompt ── */
.review-prompt {
  max-width: 480px; margin: 0 auto 12px; padding: 26px 24px; text-align: center; background: var(--dark);
  border-top: 1.5px solid rgba(255,107,53,0.3); border-bottom: 1.5px solid rgba(255,107,53,0.3);
}
.review-prompt-icon { font-size: 28px; margin-bottom: 8px; }
.review-prompt-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 0.5px; color: #fff; margin-bottom: 8px; }
.review-prompt-body { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.55; margin-bottom: 18px; }

/* ═══════════════════ UPSELL (pre-submit suggestions) ═══════════════════ */
.upsell-overlay { position: fixed; inset: 0; background: rgba(26,18,8,0.6); z-index: 60; display: none; align-items: flex-end; justify-content: center; }
.upsell-overlay.open { display: flex; }
@media (min-width: 720px) { .upsell-overlay { align-items: center; } }
.upsell-box { background: var(--surface); width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; animation: slideUp 0.28s ease; position: relative; }
@media (min-width: 720px) { .upsell-box { border-radius: var(--radius-xl); animation: popIn 0.22s ease; } }
.upsell-body { padding: 22px 20px 24px; }
.upsell-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; margin-bottom: 4px; }
.upsell-sub { font-size: 12.5px; color: var(--text3); margin-bottom: 14px; }
.upsell-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.upsell-card { background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 12px 10px; text-align: center; }
.upsell-card .uc-icon { font-size: 26px; margin-bottom: 4px; }
.upsell-card .uc-name { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.upsell-card .uc-price { font-size: 12px; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px; }
.upsell-card .uc-add-btn { width: 100%; padding: 7px 0; background: var(--gold); border: none; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--dark); cursor: pointer; }
.upsell-card .uc-add-btn:hover { background: var(--gold-dark); color: #fff; }
.upsell-done { font-size: 13.5px; font-weight: 600; color: var(--green); text-align: center; padding: 16px 0; }

/* ═══════════════════ SEGUIMIENTO (order tracking page) ═══════════════════ */
.track-btn { display: block; width: 100%; text-align: center; background: var(--dark); color: var(--gold); border: 2px solid var(--gold); border-radius: 99px; padding: 13px 0; font-size: 13.5px; font-weight: 700; text-decoration: none; margin: 16px 0 10px; box-sizing: border-box; }
.track-btn:hover { background: var(--gold); color: var(--dark); }
.seg-main { max-width: 480px; margin: 0 auto; padding: 24px 20px calc(var(--bn-h) + 24px); }
.seg-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px 20px; }
.seg-loading { text-align: center; color: var(--text3); font-size: 13px; padding: 20px 0; }
.seg-num { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; color: var(--text); margin-bottom: 4px; text-align: center; }
.seg-status-title { font-size: 12.5px; color: var(--text3); text-align: center; margin-bottom: 20px; }
.seg-steps { display: flex; flex-direction: column; gap: 14px; }
.seg-step { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text3); }
.seg-step .seg-step-mark { width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 99px; font-size: 12px; font-weight: 800; background: var(--surface3); color: var(--text3); }
.seg-step.done { color: var(--text); }
.seg-step.done .seg-step-mark { background: var(--green-light); color: var(--green); }
.seg-step.current { color: var(--gold-dark); }
.seg-step.current .seg-step-mark { background: var(--gold); color: var(--dark); }
.seg-updating { text-align: center; font-size: 11px; color: var(--text3); margin-top: 18px; min-height: 14px; }
.seg-cancelled { text-align: center; padding: 20px 0 4px; }
.seg-cancelled-icon { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 99px; background: var(--red-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.seg-cancelled-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; color: var(--red-dark); margin-bottom: 6px; }
.seg-cancelled-body { font-size: 12.5px; color: var(--text3); }
.seg-empty { text-align: center; padding: 60px 20px; }
.seg-empty-icon { font-size: 40px; margin-bottom: 12px; }
.seg-empty-title { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; margin-bottom: 8px; }
.seg-empty-body { font-size: 13px; color: var(--text3); line-height: 1.6; margin-bottom: 20px; }
.seg-back-btn { display: inline-block; background: var(--gold); color: var(--dark); border-radius: 99px; padding: 11px 26px; font-size: 13px; font-weight: 700; text-decoration: none; }
.seg-code-search { max-width: 320px; margin: 24px auto 0; text-align: left; }
.seg-code-search label { display: block; font-size: 12px; font-weight: 700; color: var(--text3); margin-bottom: 8px; text-align: center; }
.seg-code-search-row { display: flex; gap: 8px; }
.seg-code-search-row input { flex: 1; min-width: 0; border: 1.5px solid var(--border2); border-radius: var(--radius); padding: 11px 12px; font-size: 15px; letter-spacing: 2px; text-align: center; text-transform: uppercase; font-family: 'DM Sans', sans-serif; }
.seg-code-search-row button { flex-shrink: 0; background: var(--dark); color: #fff; border: none; border-radius: var(--radius); padding: 0 18px; font-size: 13px; font-weight: 700; cursor: pointer; }
.seg-code-search-err { min-height: 18px; font-size: 12px; color: var(--red-dark); margin-top: 6px; text-align: center; }
