/* ==========================================================================
   Asador Los Barruecos - WebApp Stylesheet
   Minimalist Premium Light Theme (No dark theme)
   ========================================================================== */

:root {
  --brand-yellow: #FFD200;
  --brand-yellow-light: #FFF9D2;
  --brand-red: #D32F2F;
  --brand-red-hover: #B71C1C;
  --brand-red-light: #FFEBEE;
  --brand-black: #1E232A;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-focus: #CBD5E1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-float: 0 8px 26px rgba(211, 47, 47, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================================================
   Desktop Guard Screen (Only QR code, no mobile simulator)
   ========================================================================== */
#desktop-guard {
  display: none;
}

@media (min-width: 768px) {
  #mobile-app {
    display: none !important;
  }

  #desktop-guard {
    display: flex !important;
    min-height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFFBEA 0%, #FFFFFF 50%, #FFF5F5 100%);
    padding: 32px 20px;
  }

  .desktop-card {
    background: #FFFFFF;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-subtle);
    max-width: 540px;
    width: 100%;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .desktop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-red));
  }

  .desktop-logo-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
    padding: 4px;
    border: 2px solid var(--brand-yellow);
  }

  .desktop-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .desktop-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-red-light);
    color: var(--brand-red);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
  }

  .desktop-title-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-red);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
  }

  .desktop-title-sub {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    color: var(--brand-black);
    margin-bottom: 16px;
  }

  .desktop-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .qr-container {
    background: #FFFFFF;
    border: 2px dashed var(--border-subtle);
    border-radius: 20px;
    padding: 20px;
    display: inline-block;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
  }

  .qr-container:hover {
    transform: scale(1.02);
    border-color: var(--brand-red);
  }

  .qr-code-box {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .qr-code-box canvas, .qr-code-box img {
    width: 200px !important;
    height: 200px !important;
    border-radius: 8px;
  }

  .desktop-steps {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
  }

  .step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-main);
    background: var(--bg-page);
    padding: 8px 14px;
    border-radius: 12px;
  }

  .step-num {
    background: var(--brand-red);
    color: #FFFFFF;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
  }

  .desktop-info-grid {
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    display: flex;
    justify-content: space-around;
    font-size: 13px;
    color: var(--text-muted);
  }

  .desktop-info-grid span {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-copy-link {
    margin-top: 20px;
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .btn-copy-link:hover {
    background: var(--bg-page);
    border-color: var(--brand-red);
    color: var(--brand-red);
  }
}

/* ==========================================================================
   Mobile WebApp (Full Mobile App Experience)
   ========================================================================== */
#mobile-app {
  display: block;
  min-height: 100vh;
  padding-bottom: 110px; /* Space for floating bottom nav */
  position: relative;
  background-color: var(--bg-page);
}

/* Header bar */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--brand-yellow);
  flex-shrink: 0;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text-header {
  display: flex;
  flex-direction: column;
}

.brand-subhead {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-style: italic;
  color: #1E3A8A; /* classic blue from printed menu */
  line-height: 1.1;
}

.brand-name-header {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-red);
  line-height: 1.2;
}

.header-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ECFDF5;
  color: #059669;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #D1FAE5;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hero Banner */
.hero-banner {
  margin: 16px;
  background: linear-gradient(135deg, #FFF9D2 0%, #FFF275 60%, #FFD200 100%);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 210, 0, 0.22);
  border: 1px solid rgba(255, 210, 0, 0.5);
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(211, 47, 47, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 900;
  color: #7F1D1D;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 13px;
  color: #4B2E05;
  line-height: 1.5;
  margin-bottom: 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: #1F2937;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Search bar */
.search-container {
  padding: 0 16px 12px;
}

.search-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.search-box:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

.search-box svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--text-main);
  background: transparent;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--text-light);
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  display: none;
}

/* Category Navigation (Horizontal Icons Scroll) */
.category-nav-wrapper {
  position: sticky;
  top: 69px;
  z-index: 30;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
}

.category-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 0 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.cat-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cat-pill.active {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.28);
}

/* Quick Filter Pills (Todos / Favoritos) */
.quick-filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px 4px;
}

.quick-filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.quick-filter-btn.active {
  background: var(--brand-yellow-light);
  border-color: var(--brand-yellow);
  color: #854D0E;
}

/* Menu Section */
.menu-container {
  padding: 8px 16px 20px;
}

.category-section {
  margin-bottom: 28px;
}

.category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-left: 4px;
  border-left: 4px solid var(--brand-red);
  padding-left: 10px;
}

.category-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-black);
}

.category-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Inter-Category Promo Banners */
.inter-category-banner {
  margin: 28px 0;
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-theme-asados {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  border: 1px solid #FECDD3;
}
.banner-theme-raciones {
  background: linear-gradient(135deg, #FEF9C3 0%, #FEF08A 100%);
  border: 1px solid #FDE047;
}
.banner-theme-ensaladas {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 1px solid #BBF7D0;
}
.banner-theme-croquetas {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FDE68A;
}
.banner-theme-postres {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border: 1px solid #E9D5FF;
}

.inter-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.inter-banner-content {
  flex: 1;
}

.inter-banner-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  display: block;
}

.banner-theme-asados .inter-banner-tag { color: var(--brand-red); }
.banner-theme-raciones .inter-banner-tag { color: #854D0E; }
.banner-theme-ensaladas .inter-banner-tag { color: #166534; }
.banner-theme-croquetas .inter-banner-tag { color: #92400E; }
.banner-theme-postres .inter-banner-tag { color: #6B21A8; }

.inter-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.25;
}

.inter-banner-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Dish Card: Pure clean white background, minimalist premium */
.dishes-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dish-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dish-card:active {
  transform: scale(0.99);
}

.dish-card.highlighted {
  border-color: var(--brand-red);
}

.dish-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.dish-title-wrap {
  flex: 1;
}

.dish-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--brand-black);
  line-height: 1.3;
}

.dish-special-badge {
  display: inline-block;
  background: var(--brand-yellow-light);
  color: #92400E;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
  border: 1px solid rgba(255, 210, 0, 0.4);
}

.dish-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #CBD5E1;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.dish-fav-btn:hover, .dish-fav-btn.active {
  color: var(--brand-red);
}

.dish-fav-btn.active svg {
  fill: var(--brand-red);
  transform: scale(1.1);
}

.dish-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

/* Portion / Variant Selector */
.portion-selector-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.portion-option-btn {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portion-option-btn.selected {
  background: var(--brand-red-light);
  border-color: var(--brand-red);
  color: var(--brand-red);
  font-weight: 700;
}

/* Card Footer: Price & Add to Cart */
.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #F1F5F9;
  padding-top: 12px;
}

.dish-price-wrap {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}

.dish-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-red);
  letter-spacing: -0.3px;
}

.dish-action-wrap {
  display: flex;
  align-items: center;
}

.btn-add-cart {
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(211, 47, 47, 0.25);
}

.btn-add-cart:hover {
  background: var(--brand-red-hover);
}

.btn-add-cart:active {
  transform: scale(0.96);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.qty-btn:active {
  transform: scale(0.9);
  background: var(--brand-red);
  color: #FFFFFF;
}

.qty-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-black);
  min-width: 20px;
  text-align: center;
}

/* ==========================================================================
   Bottom App Bar (Barra de Menú Inferior)
   - Bordes redondeados
   - Ítem seleccionado se encierra en un CÍRCULO del color de la marca
   ========================================================================== */
.bottom-app-bar-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 16px var(--safe-bottom);
  z-index: 50;
  pointer-events: none;
}

.bottom-app-bar {
  pointer-events: auto;
  max-width: 480px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 32px; /* Bordes redondeados */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 12px;
}

.bottom-nav-item {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  padding: 4px 6px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-muted);
  font-family: inherit;
}

/* Contenedor del ícono que se convierte en CÍRCULO de color de la marca */
.nav-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-muted);
  position: relative;
}

.nav-icon-circle svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease, font-weight 0.2s ease;
  white-space: nowrap;
}

/* Estado ACTIVO: Encerrado en círculo del color de la marca */
.bottom-nav-item.active .nav-icon-circle {
  background-color: var(--brand-red); /* Círculo del color de la marca */
  color: #FFFFFF;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

.bottom-nav-item.active .nav-icon-circle svg {
  color: #FFFFFF;
  stroke: #FFFFFF;
}

.bottom-nav-item.active .nav-label {
  color: var(--brand-red);
  font-weight: 700;
}

/* Badges for Favorites & Cart */
.nav-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-yellow);
  color: #78350F;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bottom-nav-item.active .nav-badge {
  background: #FFFFFF;
  color: var(--brand-red);
  border-color: var(--brand-red);
}

/* ==========================================================================
   Modals & Drawers: Carrito / Pedidos en 2 modalidades / Info
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.drawer-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 28px 28px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 101;
}

.drawer-sheet.open {
  transform: translateY(0);
}

.drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.drawer-drag-pill {
  width: 40px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.drawer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--brand-black);
}

.btn-close-drawer {
  background: var(--bg-page);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Modality Selector (En la mesa vs A domicilio) */
.modality-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-page);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
}

.modality-btn {
  background: none;
  border: none;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

.modality-btn.active {
  background: #FFFFFF;
  color: var(--brand-red);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

/* Form Groups */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-main);
  background: #FFFFFF;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-textarea {
  resize: none;
  height: 64px;
}

/* Cart Items in Drawer */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-page);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-black);
}

.cart-item-portion {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-item-subtotal {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-red);
  margin-right: 12px;
}

.cart-summary-box {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.summary-row.total-row {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--brand-black);
}

.summary-row.total-row span:last-child {
  color: var(--brand-red);
}

/* WhatsApp Submit Button */
.btn-whatsapp-order {
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  font-family: inherit;
}

.btn-whatsapp-order:hover {
  background: #20BA56;
}

.btn-whatsapp-order:active {
  transform: scale(0.98);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 6px;
}

.empty-text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 240px;
  margin: 0 auto 16px;
}

/* Info Sheet */
.info-card-banner {
  background: var(--brand-yellow-light);
  border: 1px solid var(--brand-yellow);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.info-banner-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--brand-yellow);
}

.info-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-page);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.info-item-icon {
  width: 36px;
  height: 36px;
  background: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.info-item-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-black);
  margin-bottom: 2px;
}

.info-item-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.info-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  color: var(--text-main);
  transition: all 0.2s;
}

.info-action-btn.primary {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.25);
}

/* Toast notifications */
.toast-notice {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1E293B;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
