/* ==========================================================================
   VERONA BISTRO BAR - MOBILE WEBAPP & DESKTOP GATE DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  /* Warm Minimalist Bistro Palette */
  --bg-primary: #FAF7F2;
  --bg-secondary: #F3ECE2;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #FDFBF8;
  --bg-overlay: rgba(22, 19, 16, 0.75);

  --text-primary: #1C1814;
  --text-secondary: #5C554E;
  --text-muted: #8E867E;
  --text-light: #FAF7F2;

  /* Verona Gold & Bronze Accents */
  --gold-primary: #B89354;
  --gold-hover: #A07D3E;
  --gold-light: #EBDDC4;
  --gold-subtle: #F6F0E6;
  --gold-border: #D8C3A5;
  --border-subtle: #ECE4D8;
  --border-light: #F0EAE1;

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Dimensions & App Shell */
  --app-max-width: 480px;
  --bottom-nav-height: 68px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(28, 24, 20, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 24, 20, 0.08);
  --shadow-lg: 0 16px 36px rgba(28, 24, 20, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

[data-theme="dark"] {
  --bg-primary: #12100E;
  --bg-secondary: #191614;
  --bg-card: #1D1A17;
  --bg-card-subtle: #24201C;
  --bg-overlay: rgba(0, 0, 0, 0.88);

  --text-primary: #F7F3EE;
  --text-secondary: #B8B0A6;
  --text-muted: #7E776F;

  --gold-primary: #D4B272;
  --gold-hover: #E2C58A;
  --gold-light: #3D3323;
  --gold-subtle: #2A241A;
  --gold-border: #5A4A33;
  --border-subtle: #2D2722;
  --border-light: #24201C;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.7);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   DESKTOP GATE OVERLAY (Restricción Desktop con Código QR)
   ========================================================================== */

.desktop-gate-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #26211C 0%, #12100E 100%);
  color: #FAF7F2;
  padding: 30px 20px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

/* Solo se activa en pantallas de ordenador / desktop (ancho >= 992px) */
@media (min-width: 992px) {
  body:not(.simulator-mode) .desktop-gate-screen {
    display: flex;
  }
  body:not(.simulator-mode) .mobile-webapp-shell {
    display: none !important;
  }
}

.desktop-gate-card {
  max-width: 620px;
  width: 100%;
  background: rgba(29, 26, 23, 0.85);
  border: 1.5px solid var(--gold-border);
  border-radius: 28px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(184, 147, 84, 0.15);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.desktop-gate-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(184, 147, 84, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.gate-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  object-fit: cover;
}

.gate-brand-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.22em;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.gate-brand-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 24px;
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 147, 84, 0.15);
  border: 1px solid rgba(184, 147, 84, 0.4);
  color: var(--gold-light);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* QR Code Container in Desktop Card */
.qr-wrapper {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 24px;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.qr-code-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-instruction {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #D2C8BC;
  margin-bottom: 20px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.gate-actions-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn-open-simulator {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-border);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-open-simulator:hover {
  background: rgba(184, 147, 84, 0.2);
  color: #FFFFFF;
  border-color: var(--gold-primary);
}

.gate-footer-note {
  font-size: 0.78rem;
  color: #8C847B;
  margin-top: 14px;
}

/* Simulator Frame for Desktop Testing */
body.simulator-mode {
  background: #0E0D0C !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

body.simulator-mode .mobile-webapp-shell {
  width: 100%;
  max-width: 430px;
  height: 92vh;
  max-height: 880px;
  border-radius: 44px;
  border: 10px solid #2B2621;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(184, 147, 84, 0.3);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

body.simulator-mode .simulator-exit-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  background: #2B2621;
  color: #FAF7F2;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   MOBILE WEBAPP SHELL (Contenedor WebApp)
   ========================================================================== */

.mobile-webapp-shell {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-primary);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

/* Top App Bar */
.webapp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

[data-theme="dark"] .webapp-header {
  background-color: rgba(18, 16, 14, 0.95);
}

.webapp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.webapp-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-border);
}

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

.webapp-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--text-primary);
  line-height: 1.1;
}

.webapp-subtitle {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 600;
}

.webapp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-toggle-mini {
  display: inline-flex;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  padding: 2px;
  border: 1px solid var(--border-subtle);
}

.service-pill-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.service-pill-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gold-border);
}

.icon-btn-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

/* ==========================================================================
   VIEW CONTAINERS (Inicio / Menú / Carrito / Ubicación)
   ========================================================================== */

.webapp-main {
  flex: 1;
  padding-bottom: calc(var(--bottom-nav-height) + 20px);
  overflow-y: auto;
}

.app-view {
  display: none;
  padding: 16px;
  animation: fadeIn 0.25s ease-out forwards;
}

.app-view.active {
  display: block;
}

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

/* ==========================================================================
   TAB 1: INICIO (HOME VIEW)
   ========================================================================== */

.home-hero-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.home-hero-card::after {
  content: "VERONA";
  position: absolute;
  right: -15px;
  bottom: -15px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  opacity: 0.06;
  pointer-events: none;
}

.live-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.badge-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: rgba(46, 125, 50, 0.12);
  color: #2E7D32;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

[data-theme="dark"] .badge-live-dot {
  background-color: rgba(76, 175, 80, 0.2);
  color: #81C784;
}

.home-hero-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.home-hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 18px;
}

.btn-cta-explore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-primary);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(184, 147, 84, 0.35);
  transition: var(--transition);
  width: 100%;
}

.btn-cta-explore:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

/* Quick Category Highlights on Home */
.section-headline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 22px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-cats-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.quick-cats-scroll::-webkit-scrollbar {
  display: none;
}

.quick-cat-card {
  min-width: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.quick-cat-card i {
  font-size: 1.4rem;
  color: var(--gold-primary);
}

.quick-cat-card span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.quick-cat-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

/* Feature Highlights Grid */
.bistro-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.bistro-feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bistro-feature-box i {
  color: var(--gold-primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

.bistro-feature-box .text h4 {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.bistro-feature-box .text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

/* ==========================================================================
   TAB 2: MENÚ (MENU VIEW)
   ========================================================================== */

.menu-search-wrap {
  position: sticky;
  top: 63px;
  z-index: 80;
  background-color: var(--bg-primary);
  padding: 8px 0 10px;
}

.search-input-webapp {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 12px 18px 12px 42px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input-webapp:focus {
  border-color: var(--gold-primary);
}

.search-icon-web {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.category-nav-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0 12px;
}

.category-nav-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.cat-pill-btn.active {
  background: var(--gold-primary);
  color: #FFFFFF;
  border-color: var(--gold-primary);
  font-weight: 600;
}

/* Product Cards in Mobile View */
.webapp-products-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-group-header {
  margin: 18px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cat-badge-small {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
  background: var(--gold-subtle);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--gold-border);
}

.cat-group-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.product-card-mobile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card-mobile:hover {
  border-color: var(--gold-border);
}

.mobile-card-media {
  width: 100%;
  height: 180px;
  position: relative;
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.mobile-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Badge Flotante sobre la Foto (Separado del título del plato) */
.featured-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(28, 24, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(184, 147, 84, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.featured-pill i {
  color: var(--gold-primary);
  font-size: 0.72rem;
}

.mobile-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.mobile-item-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.price-pill-mobile {
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-card-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-item-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.mobile-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.btn-order-pill {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 7px 16px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  margin-left: auto;
}

.btn-order-pill:hover {
  background-color: var(--gold-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   TAB 3: CARRITO (CART & COMANDA VIEW)
   ========================================================================== */

.cart-view-header {
  text-align: center;
  margin-bottom: 18px;
}

.cart-view-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cart-view-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TAB 4: UBICACIÓN (LOCATION & CONTACT VIEW)
   ========================================================================== */

.location-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.map-embed-container {
  width: 100%;
  height: 200px;
  background-color: #E6E1D8;
  position: relative;
}

.map-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info-body {
  padding: 20px;
}

.location-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.location-address {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.action-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.btn-location-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
}

.btn-location-action.maps {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-location-action.maps:hover {
  border-color: var(--gold-border);
  color: var(--gold-primary);
}

.btn-location-action.ws {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-location-action.ws:hover {
  background-color: #1EBE5D;
}

.btn-location-action.insta {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
  color: #FFFFFF;
}

.schedule-list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-subtle);
  color: var(--text-secondary);
}

.schedule-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   BOTTOM APP NAVIGATION BAR (MENÚ INFERIOR)
   ========================================================================== */

.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  height: var(--bottom-nav-height);
  background-color: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px 10px calc(env(safe-area-inset-bottom, 0px) + 6px);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .bottom-nav-bar {
  background-color: rgba(18, 16, 14, 0.96);
  border-top-color: var(--border-subtle);
}

.nav-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  width: 25%;
  height: 100%;
}

.nav-tab-item i {
  font-size: 1.25rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-tab-item.active {
  color: var(--gold-primary);
  font-weight: 700;
}

.nav-tab-item.active i {
  transform: translateY(-2px);
  color: var(--gold-primary);
}

.nav-tab-item::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 4px;
  height: 4px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
}

.nav-tab-item.active::after {
  opacity: 1;
}

/* Badge for Cart tab */
.cart-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  background-color: #E53935;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(229, 57, 53, 0.5);
}

.cart-nav-badge.pulse {
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% { transform: scale(0.7); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   MODALS (ITEM CUSTOMIZER & SETTINGS)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background-color: var(--bg-card);
  border-radius: 24px 24px 0 0;
  border-top: 1.5px solid var(--gold-border);
  width: 100%;
  max-width: var(--app-max-width);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

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

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

.modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 14px);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Customizer Details */
.customizer-product-info {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.customizer-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.customizer-texts {
  flex: 1;
}

.option-group {
  margin-bottom: 18px;
}

.option-group-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.option-pill-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-choice-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}

.option-choice-label.selected {
  border-color: var(--gold-primary);
  background-color: var(--gold-subtle);
  font-weight: 600;
}

/* Forms */
.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}

.form-textarea, .form-input, .form-select {
  width: 100%;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-textarea:focus, .form-input:focus, .form-select:focus {
  border-color: var(--gold-primary);
  background-color: var(--bg-card);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background: var(--bg-card);
}

.stepper-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-value {
  width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Cart Items & Summary in Tab 3 */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

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

.order-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.order-type-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-sans);
}

.order-type-btn.active {
  border-color: var(--gold-primary);
  background-color: var(--gold-subtle);
  box-shadow: 0 2px 8px rgba(184, 147, 84, 0.15);
}

.order-type-btn .title {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.order-type-btn .desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.bill-summary {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.bill-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.bill-row.total {
  border-top: 1px solid var(--gold-border);
  padding-top: 8px;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-whatsapp-order {
  width: 100%;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.btn-whatsapp-order:hover {
  background: #1EBE5D;
}

.empty-state-box {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.empty-state-box i {
  font-size: 3rem;
  color: var(--gold-border);
  margin-bottom: 12px;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: calc(var(--bottom-nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-border);
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  white-space: nowrap;
}

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