/* ==========================================================================
   🍗 WINGS M.S. — GASTRO-BAR & SMOKEHOUSE EXPERIENCE (EDICIÓN GRIS NOCHE MISTERIOSA & BLANCO)
   Estética: Gris Noche Misteriosa · Blanco Puro · Plata Perla & Cristal Ahumado Nocturno
   100% Adaptable: Celular · Tablet · PC Desktop (Con Carrito Lateral en Vivo)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  /* Paleta Principal: Gris Noche Misteriosa & Blanco */
  --bg-deep: #0A0C10;
  --bg-main: #10131A;
  --bg-elevated: #161A23;
  --bg-card: #1C212D;
  --bg-card-hover: #252B3A;
  --bg-glass: rgba(22, 26, 35, 0.88);
  --bg-obsidian: #0D1017;

  /* Colores Principales: Blanco Puro, Blanco Perla y Gris Noche */
  --brand-fire: #FFFFFF;
  --brand-fire-dark: #CBD5E1;
  --brand-gold: #F8FAFC;
  --brand-gold-soft: #E2E8F0;
  --flame-amber: #FFFFFF;
  --brand-emerald: #10B981;
  --brand-whatsapp: #25D366;
  --brand-danger: #EF4444;

  /* Textos en Escala Noche & Blanco */
  --text-white: #FFFFFF;
  --text-cream: #E2E8F0;
  --text-muted: #94A3B8;
  --text-soft: #64748B;
  --text-dim: #94A3B8;
  --text-secondary: #CBD5E1;

  /* Bordes y Sombras Nocturnas */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-fire: rgba(255, 255, 255, 0.45);
  --border-gold: rgba(255, 255, 255, 0.35);

  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-num: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-fire: 0 10px 28px rgba(255, 255, 255, 0.16);
  --shadow-gold: 0 8px 25px rgba(255, 255, 255, 0.14);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(148, 163, 184, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.bloqueado {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.oculto {
  display: none !important;
}

/* Scrollbar elegante Gris Noche */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #283040;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FFFFFF;
}

/* ==========================================================================
   0. PANTALLA DE CARGA (SPLASH PRELOADER)
   ========================================================================== */
#pantalla-carga {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #1C2230 0%, #0A0C10 75%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#pantalla-carga.oculto {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}
.carga-box {
  text-align: center;
  padding: 24px;
  max-width: 360px;
}
.carga-crest {
  width: 170px;
  height: 110px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0%, rgba(22, 26, 35, 0.6) 75%);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  padding: 10px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carga-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}
.carga-titulo {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}
.carga-sub {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-cream);
  margin: 4px 0 18px;
}
.carga-barra-wrap {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  margin: 0 auto 10px;
  overflow: hidden;
}
.carga-barra-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #94A3B8, #FFFFFF);
  border-radius: 99px;
  transition: width 0.2s ease;
}
.carga-frase {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   1. NAVBAR GLOBAL SUPERIOR (GRIS NOCHE MISTERIOSA & BLANCO)
   ========================================================================== */
.app-navbar {
  position: sticky;
  top: 0;
  z-index: 70;
  background: linear-gradient(180deg, rgba(16, 19, 26, 0.96) 0%, rgba(11, 13, 18, 0.92) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.app-navbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.brand-logo-group:hover {
  transform: translateY(-1px);
}

.brand-logo-badge {
  width: 74px;
  height: 48px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16) 0%, #141822 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 0 14px rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.45));
}

.brand-logo-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-texts h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1;
  background: linear-gradient(90deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-verified-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
}

.brand-meta-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.brand-meta-sub strong {
  color: #FFFFFF;
  font-weight: 700;
}

.brand-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-soft);
}

/* Buscador Central Estilizado con Icono SVG */
.navbar-search-wrap {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.navbar-search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #FFFFFF;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.navbar-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 40px 12px 44px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.22s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
.navbar-search-input::placeholder {
  color: #8492A6;
}
.navbar-search-input:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}
.navbar-search-input:focus {
  outline: none;
  background: rgba(22, 26, 35, 0.98);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.5);
}
.navbar-search-clear {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  display: none;
  place-items: center;
  transition: all 0.2s ease;
}
.navbar-search-clear:hover {
  background: #FFFFFF;
  color: #0A0C10;
}
.navbar-search-clear.visible {
  display: grid;
}

/* Acciones derechas pensadas para el Cliente */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-customer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.4, 1);
  white-space: nowrap;
}

.nav-customer-btn.wa-support {
  background: rgba(37, 211, 102, 0.11);
  border: 1px solid rgba(37, 211, 102, 0.32);
  color: #6EE7B7;
}
.nav-customer-btn.wa-support:hover {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25D366;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.22);
}

.nav-customer-btn.cart-trigger {
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #0A0C10;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.16);
}
.nav-customer-btn.cart-trigger:hover {
  background: #E2E8F0;
  border-color: #FFFFFF;
  color: #0A0C10;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.26);
}
.nav-cart-pill-count {
  background: #0A0C10;
  color: #FFFFFF;
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
}

/* Footer discreto para enlaces internos de administración */
.app-footer {
  max-width: 1360px;
  margin: 20px auto 0;
  padding: 24px 20px 110px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 12px;
}
.footer-staff-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-staff-links a {
  color: var(--text-muted);
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.2s ease;
}
.footer-staff-links a:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

@media (max-width: 768px) {
  .app-navbar-inner {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 10px;
  }
  .brand-logo-badge {
    width: 62px;
    height: 42px;
  }
  .brand-logo-texts h1 {
    font-size: 19px;
  }
  .brand-meta-sub .hide-mobile {
    display: none;
  }
  .navbar-search-wrap {
    order: 3;
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }
  .navbar-search-input {
    padding: 10px 36px 10px 40px;
    font-size: 13px;
  }
  .nav-customer-btn span.btn-label-desktop {
    display: none;
  }
  .nav-customer-btn {
    padding: 9px 12px;
  }
}

/* ==========================================================================
   2. HERO BANNER GOURMET (PORTADA GRIS NOCHE MISTERIOSA & BLANCO)
   ========================================================================== */
.hero-showcase {
  max-width: 1360px;
  margin: 18px auto 10px;
  padding: 0 20px;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: 
    linear-gradient(100deg, rgba(11, 13, 18, 0.96) 0%, rgba(18, 22, 31, 0.88) 54%, rgba(18, 22, 31, 0.45) 100%),
    url('https://images.unsplash.com/photo-1567620832903-9fc6debc209f?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-content-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
}
.status-pill.abierto {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6EE7B7;
}
.status-pill.abierto .dot {
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}
.status-pill.preorden {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
}
.status-pill.preorden .dot {
  background: #FFFFFF;
  box-shadow: 0 0 10px #FFFFFF;
}
.status-pill.cerrado {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #FCA5A5;
}
.status-pill.cerrado .dot {
  background: #EF4444;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 12px;
}
.hero-headline span {
  background: linear-gradient(90deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: clamp(13.5px, 1.8vw, 16px);
  color: var(--text-cream);
  max-width: 540px;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 20px;
}

/* Meta-tarjetas de Horario y Domicilio dentro del Hero */
.hero-info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-info-chip {
  background: rgba(16, 19, 26, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-info-chip-icon {
  font-size: 20px;
}
.hero-info-chip-text strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #CBD5E1;
}
.hero-info-chip-text span {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

/* Destacados flotantes a la derecha del Hero */
.hero-content-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  z-index: 2;
}

.hero-promo-tile {
  background: rgba(18, 22, 31, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: left;
}
.hero-promo-tile:hover {
  transform: translateY(-3px);
  border-color: #FFFFFF;
  background: rgba(30, 36, 50, 0.95);
  box-shadow: var(--shadow-gold);
}
.hero-promo-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(148, 163, 184, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.08);
}
.hero-promo-txt strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.hero-promo-txt span {
  font-size: 11.5px;
  font-weight: 700;
  color: #CBD5E1;
}

@media (max-width: 960px) {
  .hero-showcase {
    padding: 0 14px;
    margin-top: 12px;
  }
  .hero-banner-card {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: 
      linear-gradient(180deg, rgba(11, 13, 18, 0.90) 0%, rgba(16, 20, 28, 0.96) 100%),
      url('https://images.unsplash.com/photo-1567620832903-9fc6debc209f?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
  }
  .hero-content-right {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-content-right {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .hero-promo-tile {
    padding: 10px;
    gap: 8px;
  }
  .hero-promo-icon {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }
  .hero-promo-txt strong {
    font-size: 12.5px;
  }
  .hero-promo-txt span {
    font-size: 10.5px;
  }
}

/* ==========================================================================
   3. BARRA STICKY DE CATEGORÍAS & MODALIDAD DE ENTREGA
   ========================================================================== */
.sticky-controls-bar {
  position: sticky;
  top: 71px;
  z-index: 60;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
}
@media (max-width: 768px) {
  .sticky-controls-bar {
    top: 114px;
  }
}

.sticky-controls-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Categorías con Píldoras Modernas */
.categorias-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  padding: 2px 0;
}
.categorias-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-cream);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.4, 1);
  white-space: nowrap;
}
.cat-pill:hover {
  background: var(--bg-card-hover);
  border-color: #FFFFFF;
  color: #fff;
  transform: translateY(-1px);
}
.cat-pill.active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0A0C10;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.22);
}

/* Switcher Domicilio / Recoger */
.delivery-toggle-container {
  display: inline-flex;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  flex-shrink: 0;
}
.delivery-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.delivery-btn.active {
  background: #FFFFFF;
  color: #0A0C10;
  box-shadow: 0 3px 12px rgba(255, 255, 255, 0.22);
}

@media (max-width: 860px) {
  .sticky-controls-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    padding: 0 14px;
  }
  .delivery-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .delivery-btn {
    justify-content: center;
  }
}

/* ==========================================================================
   4. WORKSPACE PRINCIPAL: CATÁLOGO + CARRITO LATERAL EN PC
   ========================================================================== */
.app-workspace {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 20px 140px;
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 1080px) {
  .app-workspace {
    grid-template-columns: 1fr;
    padding: 18px 14px 130px;
  }
}

.main-catalog {
  min-width: 0;
}

.seccion-bloque {
  margin-bottom: 44px;
  scroll-margin-top: 160px;
}

.seccion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-medium);
}
.seccion-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.seccion-icono-badge {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(148, 163, 184, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 25px;
  flex-shrink: 0;
}
.seccion-titulo {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}
.seccion-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.seccion-count-pill {
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ==========================================================================
   5. TARJETAS DE PRODUCTO (GRIS NOCHE MISTERIOSA & BLANCO)
   ========================================================================== */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 680px) {
  .productos-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.card-producto {
  position: relative;
  background: linear-gradient(145deg, #1E2432 0%, #141822 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: stretch;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.4, 1);
  cursor: pointer;
  overflow: hidden;
}

.card-producto:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(145deg, #262E3F 0%, #191E2A 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(255, 255, 255, 0.09);
}

.card-producto.en-carrito {
  border-color: var(--brand-emerald);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(16, 185, 129, 0.4);
}

/* Icono Estilizado del Plato */
.card-icon-box {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.16) 0%, rgba(148, 163, 184, 0.08) 60%, rgba(16, 20, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-producto:hover .card-icon-box {
  transform: scale(1.06) rotate(-3deg);
  border-color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.16), inset 0 0 14px rgba(255, 255, 255, 0.18);
}

.card-title-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.card-badge-top {
  flex-shrink: 0;
  background: linear-gradient(135deg, #FFFFFF, #CBD5E1);
  color: #0A0C10;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 8px rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
}

/* Contenido de la Tarjeta */
.card-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-titulo {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 5px;
}

.card-descripcion {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.badge-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-cream);
}
.badge-tag.fuego {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

.badge-en-carrito {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6EE7B7;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 5px;
  width: fit-content;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.precio-tag {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}
.precio-tag small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.btn-agregar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  color: #0A0C10;
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-agregar:hover {
  transform: scale(1.04);
  background: #E2E8F0;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}
.btn-agregar.agregado {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

@media (max-width: 420px) {
  .card-producto {
    padding: 13px;
    gap: 12px;
  }
  .card-icon-box {
    width: 56px;
    height: 56px;
    font-size: 27px;
    border-radius: 15px;
  }
  .card-titulo {
    font-size: 15.5px;
  }
  .precio-tag {
    font-size: 18px;
  }
  .btn-agregar {
    padding: 8px 13px;
    font-size: 11.5px;
  }
}

/* ==========================================================================
   6. PANEL LATERAL DE PEDIDO EN VIVO (EXCLUSIVO PC / DESKTOP >= 1080px)
   ========================================================================== */
.desktop-cart-sidebar {
  position: sticky;
  top: 148px;
  background: linear-gradient(165deg, #1E2432 0%, #12161F 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 170px);
}

@media (max-width: 1080px) {
  .desktop-cart-sidebar {
    display: none;
  }
}

.sidebar-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-medium);
  margin-bottom: 14px;
}
.sidebar-cart-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.sidebar-cart-badge {
  background: #FFFFFF;
  color: #0A0C10;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.sidebar-cart-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}

.sidebar-empty-state {
  text-align: center;
  padding: 36px 12px;
  color: var(--text-muted);
}
.sidebar-empty-icon {
  font-size: 42px;
  margin-bottom: 10px;
  opacity: 0.8;
}

.sidebar-cart-footer {
  border-top: 1px dashed var(--border-medium);
  padding-top: 14px;
}

/* ==========================================================================
   7. BARRA FLOTANTE INFERIOR DEL CARRITO (CELULAR Y TABLET)
   ========================================================================== */
.cart-float-bar {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  left: 50%;
  transform: translate(-50%, 160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: calc(100% - 28px);
  max-width: 520px;
  z-index: 80;
  background: rgba(20, 24, 34, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-full);
  padding: 10px 12px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 255, 255, 0.14);
  transition: transform 0.35s cubic-bezier(0.2, 1.25, 0.4, 1), opacity 0.25s ease, visibility 0.25s ease;
  cursor: pointer;
}
.cart-float-bar.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.cart-float-bar.brinco {
  animation: bounceBar 0.38s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes bounceBar {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -6px) scale(1.03); }
}

.cart-float-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-count-badge {
  background: #FFFFFF;
  color: #0A0C10;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 800;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.22);
}
.cart-float-info {
  display: flex;
  flex-direction: column;
}
.cart-float-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cart-float-total {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.05;
}
.cart-float-btn {
  background: #FFFFFF;
  color: #0A0C10;
  font-size: 13px;
  font-weight: 900;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   8. MODALES Y PERSONALIZADOR DE PLATOS (BOTTOM-SHEET MÓVIL / DIALOG PC)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 12, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  max-height: 92svh;
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  transform: translateY(108%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
}
.bottom-sheet.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .bottom-sheet {
    top: 50%;
    bottom: auto;
    transform: translateY(-42%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    max-height: 86vh;
    border: 1.5px solid rgba(255, 255, 255, 0.32);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.88);
  }
  .bottom-sheet.open {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .sheet-handle {
    display: none;
  }
}

.sheet-handle {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  margin: 10px auto 4px;
}

.sheet-header {
  position: relative;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-medium);
  background: var(--bg-card);
  border-radius: 28px 28px 0 0;
}
.sheet-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  padding-right: 42px;
}
.sheet-header p {
  font-size: 13px;
  color: var(--text-cream);
  margin-top: 3px;
  font-weight: 600;
}
.btn-cerrar-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 17px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.btn-cerrar-modal:hover {
  background: #FFFFFF;
  color: #0A0C10;
  transform: rotate(90deg);
}

.sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  -webkit-overflow-scrolling: touch;
}

.sheet-footer {
  padding: 14px 22px calc(14px + var(--safe-bottom));
  background: var(--bg-card);
  border-top: 1px solid var(--border-medium);
  border-radius: 0 0 28px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stepper */
.cantidad-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-deep);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 4px;
}
.btn-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.btn-step:hover, .btn-step:active {
  background: #FFFFFF;
  color: #0A0C10;
}
.stepper-num {
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  color: #fff;
}

.btn-cta-sheet {
  flex: 1;
  background: linear-gradient(135deg, #FFFFFF, #E2E8F0);
  color: #0A0C10;
  font-size: 14.5px;
  font-weight: 800;
  padding: 15px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
}
.btn-cta-sheet:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-cta-sheet.verde {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  color: #042111;
}
.btn-cta-sheet.bold-pay {
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: #FFFFFF;
}

/* Salsas y Opciones */
.grupo-paso {
  margin-bottom: 22px;
}
.paso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.paso-titulo {
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
}
.paso-instruccion {
  font-size: 11.5px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.opciones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 380px) {
  .opciones-grid {
    grid-template-columns: 1fr;
  }
}

.opcion-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-align: left;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.opcion-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.5);
}
.opcion-card.selected {
  background: rgba(255, 255, 255, 0.14);
  border-color: #FFFFFF;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.16);
}
.opcion-card.selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0A0C10;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.opcion-nombre {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  padding-right: 18px;
}
.opcion-extra {
  font-size: 11.5px;
  color: var(--text-cream);
  font-weight: 700;
  margin-top: 4px;
}

/* Adicionales */
.adicionales-list-cards {
  display: grid;
  gap: 9px;
}
.adicional-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}
.adicional-card-row:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.5);
}
.adicional-card-row.selected {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}
.adicional-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.adicional-nombre {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.adicional-precio {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-cream);
  margin-top: 2px;
}
.adicional-stepper {
  display: flex;
  align-items: center;
  gap: 7px;
}
.btn-top-agregar {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 13px;
  border-radius: var(--radius-full);
}
.btn-top-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.btn-top-step.plus {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0A0C10;
}
.top-cant-num {
  font-family: var(--font-num);
  font-size: 16px;
  min-width: 20px;
  text-align: center;
  color: #FFFFFF;
  font-weight: 700;
}

/* ==========================================================================
   9. ITEMS DE CARRITO & FORMULARIO DE CHECKOUT
   ========================================================================== */
.item-carrito-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  margin-bottom: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.item-info h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}
.item-detalles {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  list-style: none;
}
.item-acciones-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.btn-editar-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.btn-quitar-item {
  font-size: 11px;
  font-weight: 700;
  color: #F87171;
  text-decoration: underline;
  padding: 3px 5px;
}
.item-control {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.item-precio-sub {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.resumen-totales-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
}
.fila-resumen {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
}
.fila-resumen.total-final {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-medium);
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.btn-seguir-comprando {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-cream);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 18px;
  width: 100%;
}

/* Formulario Checkout */
.form-campo {
  margin-bottom: 14px;
}
.form-campo label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-cream);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.form-campo.error .form-input {
  border-color: var(--brand-danger);
}

.pagos-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.btn-pago-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 11px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.btn-pago-tab .pago-icono {
  font-size: 20px;
}
.btn-pago-tab .pago-titulo {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.btn-pago-tab .pago-sub {
  font-size: 10px;
  color: var(--text-muted);
}
.btn-pago-tab.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: #FFFFFF;
}
.btn-pago-tab.active .pago-titulo {
  color: #FFFFFF;
}
.btn-pago-tab.deshabilitado-preorden {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(1);
}

.aviso-preorden-pago-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-cream);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.box-cuenta-transferencia {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cuenta-detalles strong {
  display: block;
  font-size: 12px;
  color: var(--text-cream);
  text-transform: uppercase;
}
.cuenta-numero {
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.btn-copiar-cuenta {
  background: #FFFFFF;
  color: #0A0C10;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 15px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   10. PANTALLA POST-PEDIDO, UPSELL, BANNERS Y TOAST
   ========================================================================== */
.pantalla-cocina-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(12px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.cocina-card {
  background: var(--bg-elevated);
  border: 2px solid var(--brand-whatsapp);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.icono-check-animado {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand-whatsapp);
  color: #03210F;
  font-size: 36px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}
.ticket-codigo-box {
  background: var(--bg-deep);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  display: inline-block;
  margin: 12px 0 16px;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
}

.toast-aviso {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -260%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--bg-card-hover);
  border: 1.5px solid #FFFFFF;
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.2, 1.2, 0.4, 1), opacity 0.25s ease, visibility 0.25s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast-aviso.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.upsell-pasos-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.upsell-paso-bloque {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.upsell-sabores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.btn-sabor-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-cream);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: var(--radius-full);
}
.btn-sabor-chip.active {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #0A0C10;
}

.banner-tienda-cerrada {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(22, 26, 35, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-md);
  max-width: 1320px;
  margin: 14px auto 4px;
  padding: 14px 18px;
}
.banner-tienda-cerrada.banner-preorden {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(22, 26, 35, 0.95) 100%);
  border-color: rgba(255, 255, 255, 0.35);
}
.banner-cerrada-in {
  display: flex;
  align-items: center;
  gap: 14px;
}
.banner-cerrada-icon {
  font-size: 26px;
}
.banner-cerrada-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FCA5A5;
  margin-bottom: 2px;
}
.banner-tienda-cerrada.banner-preorden .banner-cerrada-title {
  color: #FFFFFF;
}
.banner-cerrada-desc {
  font-size: 12.5px;
  color: var(--text-cream);
  line-height: 1.4;
}

.sheet-aviso-cerrado {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #FCA5A5;
}
.sheet-aviso-cerrado.aviso-preorden {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--text-cream);
}
.btn-agregar.btn-cerrado,
.btn-cta-sheet.btn-disabled-cerrado {
  background: #222834 !important;
  color: #64748B !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ==========================================================================
   11. NAVEGACIÓN INTUITIVA & CONTROLES ANTI-PÉRDIDA PARA EL CLIENTE
   ========================================================================== */

/* Barra Guía de 3 Pasos para el Cliente */
.guia-pasos-cliente {
  max-width: 1360px;
  margin: 10px auto 6px;
  padding: 0 20px;
}
.guia-pasos-inner {
  background: rgba(22, 26, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.guia-paso-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-cream);
  font-weight: 600;
}
.guia-paso-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0A0C10;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.guia-paso-arrow {
  color: var(--text-soft);
  font-size: 12px;
}
@media (max-width: 768px) {
  .guia-pasos-cliente {
    padding: 0 14px;
  }
  .guia-pasos-inner {
    padding: 9px 12px;
    gap: 8px;
  }
  .guia-paso-arrow {
    display: none;
  }
  .guia-paso-item {
    font-size: 11.5px;
  }
}

/* Contador en Píldoras de Categoría */
.cat-pill-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  transition: all 0.2s ease;
}
.cat-pill.active .cat-pill-count {
  background: rgba(10, 12, 16, 0.22);
  color: #0A0C10;
}

/* Barra de Filtro Activo (para nunca perderse) */
.filtro-activo-banner {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.filtro-activo-txt {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-ver-todo-menu {
  background: #FFFFFF;
  color: #0A0C10;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: transform 0.18s ease;
}
.btn-ver-todo-menu:hover {
  transform: scale(1.04);
}

/* Controles Directos (+ / - / Editar) en la Tarjeta de Producto */
.card-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-inline-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-full);
  padding: 3px 5px;
}
.btn-card-minus,
.btn-card-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  transition: all 0.18s ease;
}
.btn-card-minus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.btn-card-minus:hover {
  background: var(--brand-danger);
}
.btn-card-plus {
  background: var(--brand-emerald);
  color: #032215;
}
.btn-card-plus:hover {
  transform: scale(1.08);
}
.card-inline-qty {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 800;
  color: #6EE7B7;
  min-width: 18px;
  text-align: center;
}
.btn-card-edit {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: var(--radius-full);
}
.btn-card-edit:hover {
  background: #FFFFFF;
  color: #0A0C10;
}

/* Barra Rápida de Salsas en el Armador */
.salsas-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.btn-salsa-quick {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-cream);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all 0.18s ease;
}
.btn-salsa-quick:hover,
.btn-salsa-quick.active {
  background: #FFFFFF;
  color: #0A0C10;
  border-color: #FFFFFF;
}

/* Indicador de Progreso Paso a Paso en Modales y Botón Volver */
.modal-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding-right: 40px;
}
.btn-volver-modal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-medium);
  color: var(--text-cream);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  transition: all 0.18s ease;
}
.btn-volver-modal:hover {
  background: #FFFFFF;
  color: #0A0C10;
  border-color: #FFFFFF;
}
.modal-steps-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}
.modal-step-pill {
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.modal-step-pill.active {
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  color: #0A0C10;
}
.modal-step-pill.done {
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
}

/* Botón Flotante para Subir a Categorías rápidamente */
.btn-float-top {
  position: fixed;
  bottom: calc(82px + var(--safe-bottom));
  left: 18px;
  z-index: 75;
  background: rgba(22, 26, 35, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.25s ease;
}
.btn-float-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.btn-float-top:hover {
  background: #FFFFFF;
  color: #0A0C10;
}

/* ==========================================================================
   12. SELECTOR DESTACADO DE MODALIDAD DE ENTREGA (DOMICILIO VS RECOGER)
   ========================================================================== */
.entrega-destacada-wrap {
  max-width: 1360px;
  margin: 12px auto 14px;
  padding: 0 20px;
}
.entrega-destacada-box {
  background: linear-gradient(145deg, rgba(28, 33, 45, 0.96) 0%, rgba(16, 19, 26, 0.98) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
}
.entrega-destacada-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.entrega-destacada-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.entrega-step-tag {
  background: #FFFFFF;
  color: #0A0C10;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.entrega-destacada-hint {
  font-size: 12px;
  color: var(--text-cream);
  font-weight: 600;
}

.entrega-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.entrega-big-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.4, 1);
}
.entrega-big-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}
.entrega-big-card.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(148, 163, 184, 0.08) 100%);
  border-color: #FFFFFF;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.12), 0 0 0 1px #FFFFFF;
}
.entrega-big-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.entrega-big-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  display: grid;
  place-items: center;
  font-size: 27px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.entrega-big-card.active .entrega-big-icon {
  background: #FFFFFF;
  color: #0A0C10;
  border-color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.25);
}
.entrega-big-texts strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.entrega-big-texts span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}
.entrega-big-card.active .entrega-big-texts span {
  color: var(--text-cream);
}

.entrega-big-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.entrega-price-tag {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  background: rgba(10, 12, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.entrega-check-pill {
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.entrega-big-card.active .entrega-check-pill {
  background: #FFFFFF;
  color: #0A0C10;
  box-shadow: 0 3px 10px rgba(255, 255, 255, 0.25);
}

/* Switcher de Entrega dentro del Carrito y Checkout */
.entrega-modal-switcher {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.entrega-modal-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-cream);
  margin-bottom: 7px;
}
.entrega-modal-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-entrega- inline-opt {
  padding: 9px 10px;
}

@media (max-width: 768px) {
  .entrega-destacada-wrap {
    padding: 0 14px;
  }
  .entrega-destacada-box {
    padding: 14px;
  }
  .entrega-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .entrega-big-card {
    padding: 13px 14px;
  }
  .entrega-big-icon {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }
  .entrega-big-texts strong {
    font-size: 14.5px;
  }
}
