/* =========================================================
   BigBros Web Orders — Mobile-First CSS v3
   Tema: Header oscuro · Primario naranja · Splash/Success oscuros
   Flujo unificado mobile + desktop
   ========================================================= */

:root {
  --primary:       #D46815;
  --primary-dark:  #BF5E12;
  --primary-light: #FFF0E0;
  --dark:          #1A1A1A;
  --dark-2:        #252525;
  --bg:            #F5F0EB;
  --surface:       #FFFFFF;
  --text:          #1A1A1A;
  --text-muted:    #6B7280;
  --border:        #E8E3DC;
  --success:       #16A34A;
  --success-light: #DCFCE7;
  --wa-green:      #25D366;
  --wa-dark:       #128C7E;
  --danger:        #DC2626;
  --warning:       #F59E0B;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-xs:     6px;
  --shadow:        0 2px 14px rgba(0,0,0,.07);
  --shadow-lg:     0 4px 28px rgba(0,0,0,.13);
  --shadow-orange: 0 4px 24px rgba(212,104,21,.30);
  --header-h:      62px;
  --transition:    .18s ease;
  --font-display:  'Anton', 'Barlow Condensed', sans-serif;
  --font-btn:      'Urbanist', 'Poppins', sans-serif;
  --shadow-glow:   0 0 18px rgba(212,104,21,.60), 0 0 40px rgba(212,104,21,.28), 0 4px 14px rgba(0,0,0,.30);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--header-h);
}

/* =========================================================
   HEADER
   ========================================================= */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--dark);
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: 62px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition);
}
.header-logo:hover img { opacity: .82; }

/* Cart button en header oculto — reemplazado por barra inferior */
#cartBtn { display: none !important; }

.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}
.header-brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
  line-height: 1.15;
}
.header-info-row {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255,255,255,.65);
  -webkit-tap-highlight-color: transparent;
}
.header-info-row:hover { color: rgba(255,255,255,.9); }
.header-info-icon { font-size: 10px; line-height: 1; flex-shrink: 0; }
.header-info-text {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.cart-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 9px 16px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background var(--transition), transform .1s;
  font-family: inherit;
  box-shadow: var(--shadow-orange);
  -webkit-tap-highlight-color: transparent;
}
.cart-btn:hover  { background: var(--primary-dark); }
.cart-btn:active { transform: scale(.97); }

.cart-count {
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
}

.progress-bar  { height: 3px; background: rgba(255,255,255,.12); width: 100%; }
.progress-fill { height: 100%; background: var(--primary); transition: width .35s ease; }

/* ─── Breadcrumb de pasos ─────────────────────────────── */
.step-breadcrumb {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 0 16px;
  height: 30px;
  flex-shrink: 0;
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(255,255,255,.05);
  gap: 2px;
}
.step-breadcrumb::-webkit-scrollbar { display: none; }

.bc-item {
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  color: rgba(255,255,255,.38);
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bc-item.bc-home  { color: rgba(255,255,255,.55); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bc-item.bc-home:hover { color: var(--primary); }
.bc-item.bc-done  { color: rgba(255,255,255,.55); }
.bc-item.bc-current {
  color: var(--primary);
  font-weight: 700;
}
.bc-sep {
  font-size: .58rem;
  color: rgba(255,255,255,.20);
  flex-shrink: 0;
  padding: 0 1px;
}

/* ─── Promo ticker ───────────────────────────────────── */
.promo-ticker {
  display: flex;
  align-items: center;
  height: 46px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(90deg,
    rgba(212,104,21,.22) 0%,
    rgba(212,104,21,.10) 40%,
    rgba(212,104,21,.10) 60%,
    rgba(212,104,21,.22) 100%);
  border-top: 1px solid rgba(212,104,21,.35);
  box-shadow: 0 2px 16px rgba(212,104,21,.12), inset 0 1px 0 rgba(255,255,255,.04);
  animation: tickerGlow 3.5s ease-in-out infinite;
}
@keyframes tickerGlow {
  0%, 100% { box-shadow: 0 2px 16px rgba(212,104,21,.12), inset 0 1px 0 rgba(255,255,255,.04); }
  50%       { box-shadow: 0 2px 24px rgba(212,104,21,.28), inset 0 1px 0 rgba(255,255,255,.06); }
}
/* Shimmer sweep */
.promo-ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: tickerSweep 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tickerSweep {
  0%   { left: -80px; }
  100% { left: 110%; }
}

.promo-ticker-label {
  flex-shrink: 0;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-right: 1px solid rgba(212,104,21,.35);
  white-space: nowrap;
  height: 100%;
  background: rgba(212,104,21,.12);
}
.promo-ticker-label-fire {
  font-size: .95rem;
  display: inline-block;
  animation: flamePulse 1.3s ease-in-out infinite;
}
.promo-ticker-label-text {
  font-family: 'Barlow Condensed', 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(212,104,21,.50);
}

.promo-ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.promo-ticker-track {
  display: inline-flex;
  align-items: center;
  animation: tickerScroll 25s linear infinite;
  padding: 0 8px;
}
.promo-ticker:hover .promo-ticker-track,
.promo-ticker.ticker-paused .promo-ticker-track { animation-play-state: paused; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  margin: 0 6px;
  background: linear-gradient(135deg, rgba(212,104,21,.22) 0%, rgba(212,104,21,.10) 100%);
  border: 1px solid rgba(212,104,21,.40);
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-shadow: 0 2px 8px rgba(212,104,21,.18), inset 0 1px 0 rgba(255,255,255,.06);
  animation: chipFloat 3s ease-in-out infinite;
}
/* stagger float per nth-child */
.promo-chip:nth-child(2n)   { animation-delay: .5s; }
.promo-chip:nth-child(3n)   { animation-delay: 1s; }
.promo-chip:nth-child(4n)   { animation-delay: 1.5s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-2px); }
}
.promo-chip:hover, .promo-chip:active {
  background: linear-gradient(135deg, rgba(212,104,21,.40) 0%, rgba(212,104,21,.25) 100%);
  border-color: rgba(212,104,21,.70);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 16px rgba(212,104,21,.35);
}
.promo-chip-icon {
  font-size: .88rem;
  animation: flamePulse 2s ease-in-out infinite;
}
.promo-chip-name {
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
}
.promo-chip-price {
  font-family: 'Barlow Condensed', 'Urbanist', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(212,104,21,.18);
  padding: 1px 7px;
  border-radius: 10px;
  letter-spacing: .4px;
  text-shadow: 0 0 10px rgba(212,104,21,.40);
}

/* ─── Promo modal ────────────────────────────────────── */
.promo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.promo-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
/* Imagen del modal de promo */
.promo-modal-img-wrap {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  background: #1a1a1a;
}
.promo-modal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.promo-modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.promo-modal-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--primary);
  font-weight: 400;
  letter-spacing: -.5px;
  line-height: 1;
}
.promo-modal-min-qty {
  font-size: .78rem;
  color: var(--text-muted);
}
.promo-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.promo-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.promo-product-item:hover { border-color: rgba(212,104,21,.40); }
.promo-product-item.selected {
  border-color: var(--primary);
  background: rgba(212,104,21,.06);
}
.promo-product-radio {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}
.promo-product-item.selected .promo-product-radio {
  border-color: var(--primary);
  background: var(--primary);
}
.promo-product-item.selected .promo-product-radio::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
}
.promo-product-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}
.promo-single-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .90rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 8px;
}

/* ─── Promo modal: indicador de pasos ──────────────────── */
.promo-step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.promo-step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  transition: all var(--transition);
  flex-shrink: 0;
}
.promo-step-dot.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(212,104,21,.15);
}
.promo-step-dot.done {
  border-color: var(--success);
  background: var(--success-light);
  color: var(--success);
}
.promo-step-line {
  flex: 1;
  height: 2px;
  min-width: 24px;
  max-width: 52px;
  background: var(--border);
  transition: background var(--transition);
}
.promo-step-line.done { background: var(--success); }

/* =========================================================
   SCREENS
   ========================================================= */
.screen {
  display: none;
  min-height: calc(100vh - var(--header-h));
  padding-bottom: 100px;
  animation: fadeIn .22s ease;
}
.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen-header {
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: var(--header-h);
  z-index: 10;
}

.screen-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
  flex: 1;
}

.back-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
}
.back-btn:hover { background: var(--bg); color: var(--text); border-color: #bbb; }

/* =========================================================
   SPLASH
   ========================================================= */
#screenSplash {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,104,21,.22) 0%, transparent 70%),
    var(--dark);
  padding-bottom: 0;   /* anula .screen { padding-bottom: 100px } */
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 36px 28px 48px;
  text-align: center;
}

.splash-logo img {
  width: min(260px, 72vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 22px;
  filter: drop-shadow(0 4px 22px rgba(212,104,21,.35));
}

.splash-tagline {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3rem, 11vw, 4rem);
  color: #E2E2E2;
  letter-spacing: 1px;
  margin-bottom: 8px;
  line-height: 1.0;
}

.splash-sub {
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.42);
  margin-bottom: 0;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.splash-desc {
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .88rem;
  font-weight: 400;
  color: rgba(255,255,255,.70);
  line-height: 1.7;
  text-align: center;
  max-width: 280px;
  margin-top: 18px;
}

/* ── CTA stack ──────────────────────────────────────────── */
.splash-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 290px;
  margin-top: 44px;
}

/* ── Base — estado DESELECCIONADO ───────────────────────── */
.splash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .5px;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, border-color .18s ease,
              color .18s ease, box-shadow .18s ease, transform .10s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,.28);
}

/* Estado SELECCIONADO / hover — naranja con glow */
.splash-btn:hover,
.splash-btn:focus-visible {
  background: #D46815;
  border-color: #D46815;
  color: #fff;
  box-shadow:
    0 0 20px rgba(212,104,21,.65),
    0 0 45px rgba(212,104,21,.25),
    0 4px 16px rgba(0,0,0,.35);
}
.splash-btn:active { transform: scale(.96); }

/* Location — sin overrides extra, usa base */

/* CTA principal — SIEMPRE en estado seleccionado (naranja) */
.splash-btn-order {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-size: 1.10rem;
  box-shadow:
    0 0 22px rgba(212,104,21,.65),
    0 0 46px rgba(212,104,21,.25),
    0 4px 16px rgba(0,0,0,.40);
}
.splash-btn-order:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow:
    0 0 30px rgba(212,104,21,.80),
    0 0 60px rgba(212,104,21,.35),
    0 4px 16px rgba(0,0,0,.40);
}

/* Address line below buttons */
.splash-address {
  margin-top: 22px;
  color: rgba(255,255,255,.42);
  font-size: .80rem;
  text-align: center;
  letter-spacing: .3px;
  line-height: 1.6;
  max-width: 260px;
}

/* ── Splash 2-column layout ─────────────────────────────── */
.splash-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 32px;
}
.splash-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.splash-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ── Status dot (open / closed) ─────────────────────────── */
.closed-status-row,
.open-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.status-closed {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,.70);
  animation: pulse-dot 2s ease-in-out infinite;
}
.status-dot.status-open {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,.70);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1);   }
  50%       { opacity: .6; transform: scale(.82); }
}
.status-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ── Closed Card ────────────────────────────────────────── */
.closed-card {
  background: rgba(255,255,255,.055);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.closed-icon-wrap {
  font-size: 2.8rem;
  margin-bottom: 10px;
  line-height: 1;
}
.closed-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.85rem;
  color: #E8E8E8;
  letter-spacing: .5px;
  margin-bottom: 8px;
  line-height: 1.1;
}
.closed-msg {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* ── Schedule table ─────────────────────────────────────── */
.schedule-wrap {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
  text-align: left;
}
.schedule-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
  text-align: center;
}
.schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-day {
  flex: 1;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.62);
}
.schedule-day.today {
  color: var(--primary);
  font-weight: 700;
}
.schedule-time {
  font-size: .80rem;
  color: rgba(255,255,255,.42);
  font-variant-numeric: tabular-nums;
}
.schedule-time.open-time {
  color: rgba(255,255,255,.68);
}
.schedule-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.schedule-dot.open  { background: #22c55e; box-shadow: 0 0 5px rgba(34,197,94,.55); }
.schedule-dot.closed { background: rgba(255,255,255,.18); }

/* ── Countdown ──────────────────────────────────────────── */
.countdown-wrap {
  margin-bottom: 22px;
}
.countdown-label {
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
}
.countdown-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.countdown-unit {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.cd-val {
  font-family: 'Anton', sans-serif;
  font-size: 2.6rem;
  color: #E2E2E2;
  min-width: 2ch;
  text-align: center;
  line-height: 1;
  letter-spacing: 1px;
}
.cd-lbl {
  font-size: .65rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .5px;
  align-self: flex-end;
  margin-bottom: 4px;
}
.cd-sep {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  color: rgba(255,255,255,.22);
  line-height: 1;
  margin-bottom: 2px;
  padding: 0 1px;
}

/* ── WA button (closed state) ───────────────────────────── */
.wa-closed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--wa-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 22px;
  font-family: var(--font-btn);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition), box-shadow var(--transition), transform .10s;
  box-shadow: 0 0 18px rgba(37,211,102,.35), 0 4px 14px rgba(0,0,0,.28);
  -webkit-tap-highlight-color: transparent;
}
.wa-closed-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.wa-closed-btn:hover { background: var(--wa-dark); box-shadow: 0 0 24px rgba(37,211,102,.55), 0 4px 14px rgba(0,0,0,.30); }
.wa-closed-btn:active { transform: scale(.97); }

/* ── Open CTA stack — status row ───────────────────────── */
.splash-cta-stack .open-status-row { margin-bottom: 20px; }

/* Remove top margin when inside the new layout column (gap handles spacing) */
.splash-right .splash-cta-stack { margin-top: 0; }

/* =========================================================
   BOTONES
   ========================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform .1s, box-shadow var(--transition);
  font-family: var(--font-btn);
  font-weight: 600;
  letter-spacing: .5px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover  { background: var(--primary-dark); box-shadow: 0 0 26px rgba(212,104,21,.80), 0 0 55px rgba(212,104,21,.40); }
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary.btn-xl {
  padding: 17px 36px;
  font-size: 1.15rem;
  border-radius: 50px;
  width: 100%;
  max-width: 300px;
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.80);
  border: 1.5px solid rgba(255,255,255,.20);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  font-family: var(--font-btn);
  letter-spacing: .5px;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover { background: rgba(255,255,255,.18); color: #fff; }

.sticky-bottom .btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}
.sticky-bottom .btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-block   { width: 100%; justify-content: center; }
.btn-confirm { font-size: 1.02rem; padding: 16px; }
.full-w      { width: 100%; justify-content: center; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa-green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), box-shadow var(--transition);
  font-family: var(--font-btn);
  letter-spacing: .5px;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 18px rgba(37,211,102,.50), 0 0 36px rgba(37,211,102,.25), 0 4px 14px rgba(0,0,0,.25);
}
.btn-whatsapp:hover  { background: var(--wa-dark); }
.btn-whatsapp.btn-xl { width: 100%; max-width: 300px; }


/* ── Redes sociales (splash) ─────────────────────────────── */
.splash-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.splash-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212,104,21,.10);
  border: 1.5px solid rgba(212,104,21,.28);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: all .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.splash-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 22px rgba(212,104,21,.65), 0 4px 12px rgba(0,0,0,.30);
}
.splash-social a:active { transform: scale(.94); }
.splash-social a svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }

/* ── Copyright (splash) ─────────────────────────────────── */
.splash-copyright {
  margin-top: 16px;
  color: rgba(255,255,255,.55);
  font-size: .70rem;
  text-align: center;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── Footer: dirección + redes + copyright ──────────────── */
.splash-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  margin-top: 32px;
}

.wa-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wa-dark);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(37,211,102,.09);
  border: 1.5px solid rgba(37,211,102,.35);
  border-radius: 50px;
  padding: 10px 20px;
  margin-top: 16px;
  font-family: inherit;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  bottom: 24px; right: 20px;
  background: var(--wa-green);
  color: #fff;
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 200;
  transition: background var(--transition), transform .15s;
}
.wa-float:hover { background: var(--wa-dark); transform: scale(1.08); }

/* =========================================================
   PROMOS EN CATEGORÍAS
   ========================================================= */
#categoryPromos {
  padding: 16px 16px 0;
}
.cat-promo-section {
  margin-bottom: 20px;
}
.cat-promo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cat-promo-icon { font-size: 1.05rem; }
.cat-promo-title {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
}
.cat-promo-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-promo-row::-webkit-scrollbar { display: none; }
.cat-promo-card {
  flex-shrink: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-width: 155px;
  max-width: 210px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform .12s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.cat-promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
.cat-promo-card:hover, .cat-promo-card:active {
  border-color: rgba(212,104,21,.45);
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}
.cat-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(212,104,21,.10);
  color: var(--primary);
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .60rem;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  margin-bottom: 7px;
}
.cat-promo-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.cat-promo-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--primary);
  line-height: 1;
}

/* =========================================================
   CATEGORÍAS
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px 16px;
}

.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 0 18px;
  text-align: center;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color var(--transition), transform .15s, box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.category-card:hover  { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-orange); }
.category-card:active { transform: scale(.97); }
.category-card-bev { border-color: rgba(37,211,102,.3); }
.category-card-bev:hover { border-color: var(--wa-green); box-shadow: 0 4px 24px rgba(37,211,102,.25); }

.category-icon { font-size: 3.2rem; margin-bottom: 10px; display: block; }
.category-name { font-size: .92rem; font-weight: 700; color: var(--text); display: block; margin-top: 10px; padding: 0 10px; }

/* Category image (when image_file is set) */
.category-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.category-icon-fb {
  font-size: 3.2rem;
  line-height: 1;
}

/* =========================================================
   PRODUCTOS — tarjetas grandes con foto real
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform .15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
}
.product-card:hover  { border-color: var(--primary); box-shadow: var(--shadow-orange); transform: translateY(-2px); }
.product-card:active { transform: scale(.98); }

/* Imagen cuadrada */
.product-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.product-card:hover .product-card-photo { transform: scale(1.04); }
.product-card-emoji-fb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: var(--primary-light);
}

/* Cuerpo de la tarjeta */
.product-card-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-name {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.product-card-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-single-size,
.product-size-range {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.product-price-range {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 4px;
}

/* ── Tarjeta de producto con promo activa ──────────────── */
.product-card--promo {
  animation: promoCardGlow 2.6s ease-in-out infinite;
}
@keyframes promoCardGlow {
  0%, 100% { border-color: rgba(212,104,21,.22); box-shadow: var(--shadow); }
  50%       { border-color: rgba(212,104,21,.60); box-shadow: 0 4px 22px rgba(212,104,21,.30); }
}
.product-card--promo:hover {
  animation: none;
  border-color: rgba(212,104,21,.75);
  box-shadow: var(--shadow-orange), 0 0 22px rgba(212,104,21,.35);
}

/* ── Carrusel de promociones ───────────────────────────── */
.promo-carousel {
  padding: 4px 0 2px;
}

/* =========================================================
   FAB — botón flotante de continuar
   ========================================================= */
.fab-wrap {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  pointer-events: none;
}
.fab-wrap[style*="flex"] { pointer-events: all; }

.fab-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: .97rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 28px rgba(212,104,21,.50);
  font-family: inherit;
  transition: background var(--transition), transform .15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.fab-btn:hover  { background: var(--primary-dark); }
.fab-btn:active { transform: scale(.96); }

.fab-count {
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 900;
}

/* =========================================================
   BEBIDAS
   ========================================================= */
.beverage-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
}
.beverage-icon     { font-size: 4rem; margin-bottom: 14px; }
.beverage-question { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 32px; }
.beverage-choices  { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 300px; }

.btn-choice {
  padding: 14px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.btn-yes { border-color: var(--success); color: var(--success); }
.btn-yes:hover { background: var(--success-light); }
.btn-no:hover  { background: var(--bg); border-color: #aaa; }

.beverage-list { padding: 0 16px; }

/* =========================================================
   ORDER TYPE — Mesa / Delivery / Pickup
   ========================================================= */
.order-type-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 16px;
}

.order-type-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color var(--transition), transform .15s, box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.order-type-card:hover  { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.order-type-card:active { transform: scale(.98); }

.order-type-icon  { font-size: 2.4rem; flex-shrink: 0; }
.order-type-label { font-size: 1rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.order-type-sub   { font-size: .78rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }

/* =========================================================
   DELIVERY — Mapa (en el top) + Dirección
   ========================================================= */
#deliveryMapWrap {
  width: 100%;
  /* NO overflow:hidden — bloquea drag touch en Leaflet */
  box-shadow: var(--shadow);
  margin-bottom: 0;
}
#deliveryMap {
  width: 100%;
  height: 300px;
  background: var(--bg);
  display: block;
}
.map-hint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: .78rem;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.map-hint-icon { font-size: 1rem; flex-shrink: 0; }

.coords-info {
  font-size: .78rem;
  font-weight: 600;
  color: var(--success);
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--success-light);
  border-radius: var(--radius-xs);
}

/* Fila de búsqueda de dirección */
.address-search-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.address-search-row input {
  flex: 1;
  min-width: 0;
}
.btn-search-addr {
  flex-shrink: 0;
  width: 46px;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
}
.btn-search-addr:active { opacity: .75; }

/* =========================================================
   CARRITO
   ========================================================= */
.empty-state  { text-align: center; padding: 60px 24px; }
.empty-icon   { font-size: 3.5rem; margin-bottom: 14px; display: block; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; font-size: .9rem; }

.cart-item {
  background: var(--surface);
  margin: 10px 16px 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
}
.cart-item-top    { display: flex; align-items: flex-start; gap: 10px; }
.cart-item-name   { flex: 1; font-size: .9rem; font-weight: 700; color: var(--text); }
.cart-item-price  { font-size: .9rem; font-weight: 700; color: var(--primary); white-space: nowrap; }

/* Extras tags en carrito */
.cart-extras-row  { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; }
.cart-extra-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid rgba(212,104,21,.25);
  border-radius: 50px;
  padding: 2px 9px;
  font-size: .72rem;
  font-weight: 600;
}

/* Promo cart items */
.cart-item.is-promo { border-left-color: #22c55e; }

.promo-item-badge {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
  letter-spacing: .03em;
}
.promo-free-tag {
  display: inline-block;
  background: #bbf7d0;
  color: #166534;
  font-size: .62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.cart-item-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}
.price-original {
  font-size: .75rem;
  color: var(--text-muted, #9ca3af);
  text-decoration: line-through;
  white-space: nowrap;
}
.promo-free-price { color: #22c55e !important; }
.promo-detail-lines {
  margin: 6px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.promo-detail-line {
  font-size: .82rem;
  color: var(--text-muted, #6b7280);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.promo-saving-row {
  font-size: .78rem;
  color: #16a34a;
  font-weight: 600;
  margin: 3px 0 0;
}
.promo-qty-display {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  min-width: 24px;
}

.cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.qty-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition);
  flex-shrink: 0;
  font-family: inherit;
}
.qty-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.qty-display { font-size: 1rem; font-weight: 700; min-width: 28px; text-align: center; }

.delete-btn {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  opacity: .55;
}
.delete-btn:hover { opacity: 1; color: var(--danger); background: #FEE2E2; }

.cart-delivery-note {
  margin: 12px 16px 0;
  font-size: .82rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--primary);
}

.cart-summary {
  margin: 16px 16px 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 18px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
}
.cart-total-amount { font-size: 1.4rem; color: var(--primary); }

/* =========================================================
   FORMULARIO CLIENTE
   ========================================================= */
.form-card {
  margin: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 22px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.required { color: var(--primary); }
.optional  { color: var(--text-muted); font-weight: 400; font-size: .75rem; text-transform: none; letter-spacing: 0; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); background: #fff; }
.form-group input.error    { border-color: var(--danger); }
.form-group textarea       { resize: vertical; min-height: 80px; }
.field-error { font-size: .78rem; color: var(--danger); margin-top: 4px; min-height: 16px; }

/* Notas de cocina por ítem (carrito) */
.item-notes-wrap {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.item-notes {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: .82rem;
  font-family: inherit;
  resize: none;
  background: #fafafa;
  color: #333;
  line-height: 1.4;
  transition: border-color .2s;
}
.item-notes:focus { outline: none; border-color: var(--primary); background: #fff; }
.item-notes::placeholder { color: #aaa; }
.item-notes-hint { margin-top: 6px; font-size: .75rem; }
.item-notes-hint summary {
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  user-select: none;
}
.item-notes-hint summary::-webkit-details-marker { display: none; }
.item-notes-hint-body {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 5px;
  color: #78350f;
  line-height: 1.45;
}
.confirm-item-notes { font-size: .78rem; color: #888; margin-top: 3px; font-style: italic; }
.pizza-eligible-label { margin-top: 8px; font-size: .72rem; color: var(--text-muted); font-weight: 600; }
.pizza-eligible-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pizza-eligible-tag {
  background: rgba(212,104,21,.15);
  color: var(--primary-dark);
  border: 1px solid rgba(212,104,21,.30);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
}
.pizza-eligible-tag em { font-style: normal; opacity: .8; }
.pizza-eligible-empty { margin-top: 6px; font-size: .72rem; color: var(--text-muted); font-style: italic; }

/* =========================================================
   RESUMEN DE PEDIDO
   ========================================================= */
.confirm-card {
  margin: 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 20px;
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  gap: 10px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row .label {
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.confirm-row .value { font-weight: 700; text-align: right; flex: 1; }

.confirm-items { padding: 10px 0; }
.confirm-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 7px 0;
  font-size: .88rem;
  gap: 10px;
}
.confirm-item-left  { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.confirm-item-name  { color: var(--text); font-weight: 600; }
.confirm-item-price { font-weight: 700; color: var(--primary); white-space: nowrap; }

/* Extras en confirmación */
.confirm-extra-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50px;
  padding: 1px 8px;
  font-size: .7rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 4px;
}

.confirm-divider { border: none; border-top: 2px dashed var(--border); margin: 10px 0; }
.confirm-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 800;
  padding-top: 12px;
}
.confirm-total-row .total-amount { color: var(--primary); font-size: 1.3rem; }
.confirm-delivery-note {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--primary);
}

/* =========================================================
   ÉXITO
   ========================================================= */
#screenSuccess {
  background: radial-gradient(ellipse at 50% 0%, rgba(212,104,21,.10) 0%, var(--dark) 60%);
}
.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 28px 44px;
  text-align: center;
  min-height: 100vh;
}
.success-icon { font-size: 4.5rem; margin-bottom: 18px; }
.success-content h2 { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.success-sub { color: rgba(255,255,255,.55); font-size: .9rem; margin-bottom: 14px; }
.order-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(212,104,21,.55);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  margin-bottom: 28px;
}
.order-code { font-size: 1.6rem; font-weight: 900; color: var(--primary); letter-spacing: 3px; }
.copy-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: rgba(255,255,255,.45);
  transition: transform .15s, color var(--transition);
  padding: 4px;
}
.copy-btn:hover { transform: scale(1.2); color: #fff; }
.success-instruction {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 28px;
  line-height: 1.65;
  max-width: 300px;
}

/* ── Botones del success — alineados ──────────────────────── */
.success-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.success-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 50px;
  border: none;
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, box-shadow .18s ease, transform .10s ease;
}
.success-btn:active { transform: scale(.97); }

/* WhatsApp — verde */
.success-btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 0 20px rgba(37,211,102,.50), 0 4px 14px rgba(0,0,0,.30);
}
.success-btn-wa:hover { background: #1ebe5d; }

/* Hacer otro pedido — oscuro */
.success-btn-secondary {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.14);
}
.success-btn-secondary:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── Redes sociales en success ─────────────────────────── */
.success-social {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.success-social-label {
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.30);
}
.success-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}
.success-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(212,104,21,.10);
  border: 1.5px solid rgba(212,104,21,.28);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: all .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.success-social-icons a svg { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.success-social-icons a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 22px rgba(212,104,21,.65), 0 4px 12px rgba(0,0,0,.30);
}
.success-social-icons a:active { transform: scale(.94); }

/* =========================================================
   LOADING
   ========================================================= */
#screenLoading {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212,104,21,.22) 0%, transparent 70%),
    var(--dark);
}
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 28px;
  padding: 40px 20px;
}
.loading-logo img {
  width: min(220px, 65vw);
  height: auto;
  object-fit: contain;
  animation: loadingGlow 2.4s ease-in-out infinite;
}
@keyframes loadingGlow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(212,104,21,0)); }
  50%       { filter: drop-shadow(0 0 28px rgba(212,104,21,.55)); }
}
.loading-dots {
  display: flex;
  gap: 9px;
  align-items: center;
}
.loading-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  animation: dotPulse 1.3s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .18s; }
.loading-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(.65); opacity: .3; }
  40%           { transform: scale(1);   opacity: 1; }
}
#loadingMessage {
  color: rgba(255,255,255,.45);
  font-family: 'Urbanist', sans-serif;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0;
}
.loading-bar-wrap {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
}
.loading-bar {
  position: absolute;
  top: 0;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary) 40%, #FFD580 60%, transparent);
  border-radius: 2px;
  animation: shimmerBar 1.6s ease-in-out infinite;
}
@keyframes shimmerBar {
  0%   { left: -65%; }
  100% { left: 115%; }
}
/* Spinner inline (dentro de botones / cards) */
.spinner-sm {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(212,104,21,.20);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .75s cubic-bezier(.5,.1,.5,.9) infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 300;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.30);
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =========================================================
   STICKY BOTTOM
   ========================================================= */
.sticky-bottom {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 50;
}

/* =========================================================
   MODAL — Configurar producto (bottom sheet mobile)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 400;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  transform: translateY(40px);
  transition: transform .25s ease;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }

/* Imagen grande del producto */
.modal-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.modal-product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-emoji-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--primary-light);
}
.modal-close-btn {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,.4);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: inherit;
  line-height: 1;
  transition: background var(--transition);
}
.modal-close-btn:hover { background: rgba(0,0,0,.65); }

/* Cuerpo del modal */
.modal-body {
  padding: 20px 20px 28px;
}
.modal-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.modal-desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  background: var(--bg);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
}

/* Sección tamaño / extras */
.modal-section {
  margin-bottom: 18px;
}
.modal-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.modal-section-optional { text-transform: none; font-weight: 400; letter-spacing: 0; font-size: .7rem; }
.modal-notes-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: .85rem;
  font-family: inherit;
  resize: none;
  background: #fafafa;
  color: #333;
  line-height: 1.45;
  transition: border-color .2s;
}
.modal-notes-input:focus { outline: none; border-color: var(--primary); background: #fff; }
.modal-notes-input::placeholder { color: #bbb; }

/* Pills de tamaño */
.modal-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  min-width: 90px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.size-pill:hover { border-color: var(--primary); background: var(--primary-light); }
.size-pill.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.size-pill-label { font-size: .78rem; font-weight: 700; }
.size-pill-price { font-size: .9rem; font-weight: 800; }
.size-pill.selected .size-pill-label,
.size-pill.selected .size-pill-price { color: #fff; }

/* Extras tags en modal de producto */
.modal-extras-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 0;
}
.modal-extra-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-light);
  border: 1.5px solid rgba(212,104,21,.35);
  color: var(--primary-dark);
  border-radius: 50px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 600;
}
.modal-extra-tag em { font-style: normal; color: var(--primary); font-size: .72rem; }
.extra-tag-remove {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0 2px;
  font-size: .9rem;
  line-height: 1;
  font-family: inherit;
}
.extra-tag-remove:hover { color: var(--danger); }

/* Botón agregar extra */
.btn-add-extras {
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: border-color var(--transition), color var(--transition);
}
.btn-add-extras:hover { border-color: var(--primary); color: var(--primary); }

/* Fila qty + total */
.modal-footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 12px;
}

/* Qty stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-stepper-btn {
  background: var(--bg);
  border: none;
  width: 38px; height: 38px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background var(--transition);
  color: var(--text);
}
.qty-stepper-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-stepper-val {
  font-size: 1rem;
  font-weight: 800;
  min-width: 36px;
  text-align: center;
  background: var(--surface);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-running-total {
  flex: 1;
  text-align: right;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary);
}

.modal-add-btn { margin-top: 0; }

/* Modal sin imagen extra (sheet pequeño) */
.modal-sheet-sm { border-radius: var(--radius) var(--radius) 0 0; }
.modal-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
  border-bottom: 1px solid var(--border);
}
.modal-sheet-header .modal-name { margin: 0; font-size: 1rem; }
.modal-sheet-header .modal-close-btn {
  position: static;
  background: var(--bg);
  color: var(--text-muted);
}
.modal-sheet-footer {
  padding: 14px 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* =========================================================
   MODAL: Extras sub-modal
   ========================================================= */
.extras-modal { z-index: 500; }

.extras-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 20px;
  max-height: 55vh;
  overflow-y: auto;
}

.extra-toggle-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition), background var(--transition), transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.extra-toggle-card:hover  { border-color: var(--primary); }
.extra-toggle-card:active { transform: scale(.97); }
.extra-toggle-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.extra-toggle-check {
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: transparent;
  transition: background var(--transition), color var(--transition);
}
.extra-toggle-card.selected .extra-toggle-check {
  background: var(--primary);
  color: #fff;
}
.extra-toggle-name  { font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.extra-toggle-price { font-size: .78rem; font-weight: 700; color: var(--primary); }

/* =========================================================
   PROMO BANNER — tarjetas grandes con imagen
   ========================================================= */
.promo-banner-wrap {
  padding: 0 0 20px;
}

/* ── Header del bloque de promos ─────────────── */
.promo-banner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 14px;
  margin-bottom: 4px;
  position: relative;
  border-bottom: 2px solid var(--border);
}
/* línea naranja animada en el borde inferior */
.promo-banner-header::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  height: 2px;
  width: 60px;
  background: var(--primary);
  border-radius: 2px;
  animation: headerLineGrow 2.5s ease-in-out infinite;
}
@keyframes headerLineGrow {
  0%, 100% { width: 50px;  opacity: .70; }
  50%       { width: 110px; opacity: 1;   }
}

.promo-banner-fire {
  font-size: 1.55rem;
  line-height: 1;
  animation: flamePulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(255,180,40,.65));
  flex-shrink: 0;
}
@keyframes flamePulse {
  0%, 100% { transform: scale(1)    rotate(-4deg); }
  50%       { transform: scale(1.20) rotate(4deg);  }
}

.promo-banner-title-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.promo-banner-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.2px;
}
.promo-banner-subtitle {
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .72rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: .2px;
}
@keyframes promoSlideIn {
  0%   { opacity: 0; transform: translateX(-55px) scale(.92); }
  60%  { opacity: 1; transform: translateX(6px)   scale(1.01); }
  100% { opacity: 1; transform: translateX(0)     scale(1);    }
}

.promo-banner-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 16px 10px;
  -webkit-overflow-scrolling: touch;
}
.promo-banner-row::-webkit-scrollbar { display: none; }

/* ── Card del carrusel ─────────────────────────────────── */
.promo-banner-card {
  flex-shrink: 0;
  width: 188px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .22s cubic-bezier(.22,.68,0,1.2), box-shadow .22s, border-color .22s;
  -webkit-tap-highlight-color: transparent;
  animation: bannerCardGlow 3s ease-in-out infinite;
}
.promo-banner-card:nth-child(2n) { animation-delay: .8s;  }
.promo-banner-card:nth-child(3n) { animation-delay: 1.6s; }
.promo-banner-card:nth-child(4n) { animation-delay: 2.4s; }
@keyframes bannerCardGlow {
  0%, 100% { border-color: var(--border);           box-shadow: var(--shadow); }
  50%       { border-color: rgba(212,104,21,.45);    box-shadow: var(--shadow-orange); }
}
.promo-banner-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-orange), 0 8px 24px rgba(212,104,21,.20);
  animation: none;
}
.promo-banner-card:active { transform: scale(.96); animation: none; }

.promo-banner-img-wrap {
  width: 100%;
  height: 148px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  flex-shrink: 0;
}
.promo-banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .38s ease;
}
.promo-banner-card:hover .promo-banner-photo { transform: scale(1.07); }
.promo-banner-emoji-fb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #222 0%, #333 100%);
}
.promo-banner-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  pointer-events: none;
}

/* Badge PROMO */
.promo-banner-badge {
  position: absolute;
  top: 9px; left: 9px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-btn);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(212,104,21,.50);
  animation: badgePop 2.4s ease-in-out infinite;
}
@keyframes badgePop {
  0%, 100% { transform: scale(1);    box-shadow: 0 2px 10px rgba(212,104,21,.45); }
  50%       { transform: scale(1.10); box-shadow: 0 4px 16px rgba(212,104,21,.75); }
}

/* Precio overlay */
.promo-banner-price-overlay {
  position: absolute;
  bottom: 10px; right: 10px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.70);
  line-height: 1;
}

/* Cuerpo de la card */
.promo-banner-body {
  padding: 11px 13px 14px;
  background: var(--surface);
}
.promo-banner-name {
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* =========================================================
   CATEGORY TABS BAR
   ========================================================= */
.cat-tabs-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 16px 14px;
  -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--bg);
  font-family: var(--font-btn);
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .3px;
}
.cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 3px 14px rgba(212,104,21,.38);
}
.cat-tab-icon {
  font-size: 1.05rem;
  line-height: 1;
}
.cat-tab-name {
  font-size: .84rem;
  font-weight: 700;
}
/* Bebidas tab: acento verde */
.cat-tab-bev          { border-color: rgba(37,211,102,.30); }
.cat-tab-bev:hover    { border-color: var(--wa-green); color: var(--wa-green); background: rgba(37,211,102,.08); }
.cat-tab-bev.active   { background: var(--wa-green); border-color: var(--wa-green); color: #fff; box-shadow: 0 3px 14px rgba(37,211,102,.35); }

/* Subcategory filter bar */
.subcat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px 12px;
  -webkit-overflow-scrolling: touch;
}
.subcat-bar::-webkit-scrollbar { display: none; }
.subcat-pill {
  flex-shrink: 0;
  padding: 5px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-btn);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.subcat-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.subcat-pill.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

/* Inline product grid inside category screen */
.cat-inline-grid {
  padding-top: 14px;
}

/* =========================================================
   BOTTOM CART BAR
   ========================================================= */
.cart-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  z-index: 180;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.40);
  border-top: 1px solid rgba(255,255,255,.08);
  /* Espacio para notch / safe area en móviles */
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.cart-bar-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(212,104,21,.55));
}
.cart-bar-info {
  flex: 1;
  min-width: 0;
}
.cart-bar-summary {
  font-size: .72rem;
  color: rgba(255,255,255,.50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 2px;
}
.cart-bar-total {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}
.cart-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 18px;
  font-family: var(--font-btn);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(212,104,21,.45);
  transition: background var(--transition), transform .1s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .3px;
}
.cart-bar-btn:hover  { background: var(--primary-dark); }
.cart-bar-btn:active { transform: scale(.96); }
.cart-bar-count-badge {
  background: rgba(255,255,255,.22);
  border-radius: 50px;
  padding: 1px 7px;
  font-size: .75rem;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

/* Ajuste de WA flotante y toast cuando la barra está visible */
body.show-cart-bar .wa-float { bottom: 82px; }
body.show-cart-bar .toast    { bottom: 104px; }
body.show-cart-bar .fab-wrap { bottom: 86px; }

/* =========================================================
   TABLET (600-1023px)
   ========================================================= */
@media (min-width: 600px) and (max-width: 1023px) {
  body        { max-width: 600px; margin: 0 auto; }
  .app-header { left: 50%; right: auto; width: 600px; transform: translateX(-50%); }
  .wa-float   { right: calc(50% - 300px + 20px); }
  .cart-bar   { left: 50%; right: auto; width: 600px; transform: translateX(-50%); }
  body.show-cart-bar .wa-float { right: calc(50% - 300px + 20px); bottom: 82px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-inline-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-banner-card { width: 200px; }
  .order-type-grid { flex-direction: row; flex-wrap: wrap; }
  .order-type-card { flex: 1; min-width: 180px; flex-direction: column; text-align: center; }
  .order-type-icon { margin-bottom: 8px; }

  /* Splash en tablet: logo más grande, closed card más cómoda */
  .splash-content  { padding: 40px 32px 36px; }
  .splash-logo img { width: min(280px, 60vw); }
  .splash-desc     { max-width: 420px; font-size: .9rem; }
  .closed-card     { max-width: 380px; }
  .splash-cta-stack { max-width: 340px; }
}

/* =========================================================
   DESKTOP (≥ 1024px) — mismo flujo, diseño más amplio
   ========================================================= */
@media (min-width: 1024px) {

  body {
    max-width: none;
    box-shadow: none;
    background: #111;
  }

  /* Header full-width */
  .app-header {
    left: 0; right: 0;
    width: 100%;
    transform: none;
  }

  .header-inner {
    padding: 0 40px;
    height: 76px;
  }
  .header-logo img { height: 58px; }
  .header-brand-name { font-size: 19px; }
  .header-info-text  { max-width: 260px; font-size: 12px; }

  .wa-float { right: calc(50% - 550px + 24px); }

  /* Todas las pantallas: centradas con max-width */
  .screen {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg);
    min-height: calc(100vh - var(--header-h));
    box-shadow: 0 0 60px rgba(0,0,0,.25);
  }

  /* ─── Desktop Splash — full-viewport, sin scrollbar ─────
   * position:fixed + inset:0 garantiza cobertura completa del
   * viewport sin importar max-width/margin del .screen padre.
   * z-index menor que el header (100) pero el header está oculto
   * en la pantalla splash, así que no hay conflicto.
   * ─────────────────────────────────────────────────────── */
  #screenSplash {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    z-index: 10;
    background: radial-gradient(ellipse 70% 55% at 50% -5%, rgba(212,104,21,.22) 0%, #111 62%);
    box-shadow: none;
    overflow: hidden;
  }

  /*
   * Grid de 2 filas:
   *   1fr  → splash-layout, centrado verticalmente en el espacio disponible
   *   auto → splash-footer, siempre pegado al fondo
   * Sin padding propio: cada hijo define el suyo.
   */
  .splash-content {
    position: relative;     /* contexto para el footer absolute */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0 60px;      /* space-bottom para no solapar con footer ~60px */
    width: 100%;
    height: 100%;
    text-align: left;
    overflow: hidden;
  }

  /* ── Área principal: centrada en 1fr ─────────────────── */
  .splash-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 5vw, 88px);
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    padding: 40px clamp(48px, 5.5vw, 96px);
  }
  .splash-left {
    flex: 1;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }
  .splash-right {
    flex: 0 0 clamp(300px, 30vw, 370px);
    min-width: 0;
    align-items: stretch;
  }

  /* Closed card: scroll propio si la pantalla es baja */
  .closed-card {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,104,21,.25) transparent;
  }
  .splash-cta-stack                  { max-width: 100%; }
  .splash-cta-stack .open-status-row { justify-content: flex-start; }
  .splash-right .splash-cta-stack    { margin-top: 0; }

  /* Tipografía y logo */
  .splash-logo img { width: clamp(210px, 22vw, 330px); margin-bottom: 26px; }
  .splash-desc     { max-width: 430px; font-size: .96rem; text-align: left; line-height: 1.75; }
  .btn-primary.btn-xl { max-width: 360px; }
  .cd-val { font-size: 2.8rem; }

  /* ── Footer: barra negra anclada al fondo del viewport ── */
  .splash-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px clamp(48px, 5.5vw, 96px);
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.70);
  }
  .splash-footer .splash-address   { margin-top: 0; max-width: none; font-size: .78rem; }
  .splash-footer .splash-social    { margin-top: 0; gap: 8px; }
  .splash-footer .splash-copyright { margin-top: 0; font-size: .68rem; }

  /* En el footer de desktop: íconos sociales más pequeños */
  .splash-footer .splash-social a {
    width: 34px;
    height: 34px;
  }
  .splash-footer .splash-social a svg { width: 16px; height: 16px; }

  /* Category */
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 32px 40px; }
  .category-card { padding: 0 0 22px; }
  .category-icon { font-size: 4rem; }
  .category-icon-fb { font-size: 4rem; }

  /* Category tabs + inline grid (desktop) */
  .cat-tabs         { padding: 14px 40px 16px; gap: 10px; }
  .promo-banner-wrap { padding: 0 0 20px; }
  .promo-banner-row  { padding: 4px 28px 10px; }
  .promo-banner-card { width: 220px; }
  .promo-banner-img-wrap { height: 162px; }
  .cat-inline-grid  { padding: 20px 40px 28px; grid-template-columns: repeat(4, 1fr); gap: 20px; }

  /* Cart bar desktop */
  .cart-bar { padding: 14px 40px; }
  body.show-cart-bar .wa-float { right: calc(50% - 550px + 24px); bottom: 88px; }

  /* Products */
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 40px; }

  /* Order type: horizontal */
  .order-type-grid {
    flex-direction: row;
    padding: 32px 28px;
    gap: 18px;
  }
  .order-type-card {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 36px 20px 28px;
    align-items: center;
  }
  .order-type-icon  { font-size: 3rem; margin-bottom: 10px; }
  .order-type-label { font-size: 1.02rem; }

  /* Delivery map taller — full width (sin margins laterales) */
  #deliveryMap { height: 380px; }
  #deliveryMapWrap { margin: 0; }
  .form-card { margin: 16px 28px; }

  /* Cart */
  .cart-item    { margin: 10px 28px 0; }
  .cart-summary { margin: 16px 28px 0; }
  .cart-delivery-note { margin: 12px 28px 0; }

  /* Customer */
  #screenCustomer .form-card { max-width: 600px; margin: 20px auto; }

  /* Confirm */
  .confirm-card { max-width: 680px; margin: 16px auto; }
  #screenConfirm .sticky-bottom { max-width: 680px; margin: 0 auto; }

  /* Screen header full */
  .screen-header {
    top: 64px;
    padding: 14px 28px;
  }

  /* Sticky bottom */
  .sticky-bottom { padding: 14px 28px; }

  /* FAB */
  .fab-wrap { bottom: 32px; }

  /* Modal: centrado, no bottom-sheet */
  .modal-overlay { align-items: center; }
  .modal-sheet {
    border-radius: var(--radius);
    max-width: 520px;
    margin: auto;
    transform: scale(.92);
    transition: transform .25s ease;
  }
  .modal-overlay.open .modal-sheet { transform: scale(1); }
  .modal-img-wrap { aspect-ratio: 16 / 9; max-height: 280px; }
  .modal-sheet-sm { max-width: 440px; }

  /* Extras modal grid 3 cols en desktop */
  .extras-modal-grid { grid-template-columns: repeat(3, 1fr); max-height: 60vh; }

  /* Success */
  #screenSuccess { box-shadow: none; }
  #screenSuccess .success-content { max-width: 520px; margin: 0 auto; padding-top: 64px; }
  #screenSuccess .success-actions { max-width: 340px; }
}

/* ── Promo LOCAL notice ──────────────────────────────────── */
.promo-local-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 4px 4px;
}
.promo-local-icon {
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.6));
}
.promo-local-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(212,104,21,.12);
  border: 1px solid rgba(212,104,21,.4);
  color: var(--primary);
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
}
.promo-local-msg {
  font-family: 'Urbanist', 'Poppins', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  line-height: 1.45;
  max-width: 264px;
  margin: 0;
}
.promo-local-sub {
  font-family: 'Urbanist', 'Poppins', sans-serif;
  font-size: .87rem;
  font-weight: 500;
  color: #999 !important;
  margin: -2px 0 4px;
}
.promo-local-maps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  width: 100%;
  margin-top: 4px;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes localIconPop {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.28) rotate(8deg); opacity: 1; }
  80%  { transform: scale(.92) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes localFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
#promoLocalNotice.anim-in .promo-local-icon    { animation: localIconPop  .55s cubic-bezier(.34,1.56,.64,1) .04s both; }
#promoLocalNotice.anim-in .promo-local-badge   { animation: localFadeUp   .32s ease .2s  both; }
#promoLocalNotice.anim-in .promo-local-msg     { animation: localFadeUp   .32s ease .3s  both; }
#promoLocalNotice.anim-in .promo-local-sub     { animation: localFadeUp   .32s ease .38s both; }
#promoLocalNotice.anim-in .promo-local-maps-btn{ animation: localFadeUp   .32s ease .46s both; }
