/* ==========================================================================
   VERSTÁTIL - WEB: BRAND DESIGN SYSTEM
   Primary: Crisp Clean White (#FFFFFF)
   Secondary: Refreshing Baby Blue (#38BDF8 / #0EA5E9)
   Highlight / Accent: Premium Warm Gold (#F59E0B / #D97706)
   Tagline: "Energía que transforma" | "Tu bebida. Tu mezcla. Tu estilo."
   ========================================================================== */

:root {
  /* Primary Theme Canvas - Crisp White & Surfaces */
  --primary-white: #FFFFFF;
  --bg-main: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-surface: #F0F9FF;
  --bg-surface-alt: #FEFCE8;

  /* Secondary Color System - Baby Blue */
  --secondary-baby-blue: #38BDF8;
  --secondary-baby-blue-hover: #0EA5E9;
  --baby-blue-dark: #0284C7;
  --baby-blue-light: rgba(56, 189, 248, 0.12);
  --baby-blue-border: rgba(56, 189, 248, 0.3);

  /* Highlight & Accent System - Gold */
  --accent-gold: #F59E0B;
  --accent-gold-dark: #D97706;
  --gold-hover: #B45309;
  --gold-light: rgba(245, 158, 11, 0.12);
  --gold-border: rgba(245, 158, 11, 0.4);
  --gold-glow: 0 4px 20px rgba(245, 158, 11, 0.3);

  /* High-Contrast Typography & Text System */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  --accent-green: #10B981;

  /* Glassmorphism & Shadow System */
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(56, 189, 248, 0.25);
  --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --card-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);

  /* Layout Boundaries */
  --header-height: 80px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 85px; /* Space for sticky mobile cart bar */
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ==========================================================================
   HEADER & STICKY NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--baby-blue-border);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.brand-logo-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-header-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: #FFFFFF;
  padding: 2px;
  border: 2px solid var(--secondary-baby-blue);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.brand-logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  text-transform: uppercase;
}

@keyframes badassAColorCycle {
  0%, 100% {
    color: #F59E0B;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.75);
    transform: scale(1);
  }
  33.33% {
    color: #38BDF8;
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
    transform: scale(1.05);
  }
  66.66% {
    color: #0F172A;
    text-shadow: 0 0 8px rgba(15, 23, 42, 0.35);
    transform: scale(1);
  }
}

.brand-logo-text span {
  display: inline-block;
  animation: badassAColorCycle 12.5s ease-in-out infinite;
  transition: all 0.6s ease;
}

.desktop-nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: var(--baby-blue-dark);
  background: var(--baby-blue-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn-trigger {
  position: relative;
  background: var(--bg-surface);
  border: 1.5px solid var(--baby-blue-border);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-btn-trigger:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: var(--gold-glow);
}

.cart-badge {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.mobile-menu-btn {
  background: var(--bg-surface);
  border: 1px solid var(--baby-blue-border);
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  max-height: calc(100vh - var(--header-height));
  background: #FFFFFF;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 2.5rem 1.25rem;
  gap: 0.65rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--baby-blue-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.mobile-nav-link.admin-link {
  color: #7C3AED;
  background: rgba(124, 58, 237, 0.08);
  border: 1.5px solid rgba(124, 58, 237, 0.3);
  font-weight: 800;
  margin-top: 0.25rem;
}

/* ==========================================================================
   HERO SECTION - PROMINENT CENTERED LOGO DISPLAY
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 3rem 1.25rem 3.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.15) 0%, rgba(245, 158, 11, 0.08) 45%, #FFFFFF 85%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--baby-blue-border);
}

.hero-logo-wrapper {
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-badge {
  background: #FFFFFF;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 10px 35px rgba(56, 189, 248, 0.35), 0 0 20px rgba(245, 158, 11, 0.25);
  border: 4px solid var(--secondary-baby-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 195px;
  height: 195px;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .hero-logo-badge {
    width: 235px;
    height: 235px;
    padding: 16px;
  }
}

.hero-central-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-light);
  border: 1.5px solid var(--gold-border);
  color: var(--accent-gold-dark);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  max-width: 780px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.4rem;
  }
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-weight: 500;
}

.hero-delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--baby-blue-light);
  border: 1.5px solid var(--baby-blue-border);
  color: var(--baby-blue-dark);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: center;
  width: 100%;
  max-width: 400px;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    max-width: none;
  }
}

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg, var(--secondary-baby-blue) 0%, var(--secondary-baby-blue-hover) 100%);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.55);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--gold-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: #FFFFFF;
  border: 1.5px solid var(--baby-blue-border);
  color: var(--text-primary);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: var(--baby-blue-light);
  border-color: var(--secondary-baby-blue);
  color: var(--baby-blue-dark);
}

/* ==========================================================================
   QUICK MENU CATEGORIES
   ========================================================================== */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.section-header {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.category-card {
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 2px solid var(--baby-blue-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.6rem;
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.06);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 641px) {
  .categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.1rem;
  }

  .category-card {
    flex: 1 1 170px;
    max-width: 210px;
    padding: 1.25rem 1rem;
  }
}

.cat-card-img-wrapper {
  width: 100%;
  height: 105px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--baby-blue-border);
  position: relative;
}

.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-card:hover .cat-card-img {
  transform: scale(1.06);
}

.category-icon {
  font-size: 1.8rem;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* --- THEME MODE 1: SWAPPED (BLUE OUTLINE HIGHLIGHT, GOLD FILLED INNER CIRCLE) --- */
body.theme-icon-swapped .category-card:hover, body.theme-icon-swapped .category-card.active,
body:not(.theme-icon-classic) .category-card:hover, body:not(.theme-icon-classic) .category-card.active {
  transform: translateY(-4px);
  border-color: var(--secondary-baby-blue);
  background: #FFFFFF;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
}

body.theme-icon-swapped .category-icon, body:not(.theme-icon-classic) .category-icon {
  background: var(--gold-light);
  border: 1.5px solid var(--gold-border);
}

body.theme-icon-swapped .category-card:hover .category-icon, body.theme-icon-swapped .category-card.active .category-icon,
body:not(.theme-icon-classic) .category-card:hover .category-icon, body:not(.theme-icon-classic) .category-card.active .category-icon {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

/* --- THEME MODE 2: CLASSIC (GOLD OUTLINE HIGHLIGHT, BLUE FILLED INNER CIRCLE) --- */
body.theme-icon-classic .category-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  background: #FFFFFF;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

body.theme-icon-classic .category-icon {
  background: var(--baby-blue-light);
  border: 1.5px solid var(--baby-blue-border);
}

body.theme-icon-classic .category-card:hover .category-icon, body.theme-icon-classic .category-card.active .category-icon {
  background: linear-gradient(135deg, var(--secondary-baby-blue) 0%, var(--secondary-baby-blue-hover) 100%);
  border-color: #FFFFFF;
  color: #FFFFFF;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.45);
}

.category-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

/* ==========================================================================
   PRODUCT CATALOG & CARDS
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: #FFFFFF;
  border: 1.5px solid var(--baby-blue-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--card-shadow);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.2);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--baby-blue-border);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-badge-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.product-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: white;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  z-index: 2;
}

.product-sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  z-index: 3;
}

.product-card.is-sold-out .product-image {
  filter: grayscale(40%) opacity(0.88);
}

.btn-card-ordenar.sold-out {
  background: #E2E8F0 !important;
  color: #64748B !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  background: #FFFFFF;
}

.product-category-tag {
  color: var(--secondary-baby-blue-hover);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
  text-align: center;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  text-align: center;
}

.btn-card-ordenar {
  width: 100%;
  background: linear-gradient(135deg, var(--secondary-baby-blue) 0%, var(--secondary-baby-blue-hover) 100%);
  color: white;
  padding: 1.1rem 1.25rem;
  font-weight: 900;
  font-size: 1.15rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  margin-top: auto;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
  transition: all 0.2s ease;
}

.btn-card-ordenar:hover {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

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

/* ==========================================================================
   PRODUCT DETAIL MODAL & RECTANGLE WARNING FOR 3+ FLAVORS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border: 2px solid var(--baby-blue-border);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .modal-card {
    border-radius: var(--radius-lg);
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 1px solid var(--baby-blue-border);
}

/* RECTANGLE WARNING BANNER FOR 3+ FLAVORS */
.flavor-warning-rect {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 2px solid #F59E0B;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  margin: 0.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #92400E;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2);
  animation: fadeInWarning 0.3s ease-in-out;
}

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

.flavor-warning-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.option-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.mode-choice-card {
  background: var(--bg-secondary);
  border: 2px solid var(--baby-blue-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mode-choice-card.selected {
  border-color: var(--secondary-baby-blue);
  background: var(--gold-light);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
}

.mode-choice-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.mode-choice-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Ingredient Chips & Selector */
.ingredient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ingredient-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--baby-blue-border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.ingredient-chip.active {
  background: var(--gold-light);
  border-color: var(--secondary-baby-blue);
  color: var(--text-primary);
  font-weight: 800;
}

.flavor-chip {
  background: #FFFFFF;
  border: 1.5px solid var(--baby-blue-border);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.flavor-chip.selected {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: white;
  border: 2px solid var(--secondary-baby-blue);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Live Summary Box */
.live-summary-box {
  background: var(--bg-surface);
  border: 1.5px dashed var(--baby-blue-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.summary-title {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.qty-counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid var(--baby-blue-border);
}

/* Multi-Step Customizer Wizard Bar */
.customizer-step-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  background: var(--bg-surface);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--baby-blue-border);
}

.customizer-step-item {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.customizer-step-item.active {
  background: linear-gradient(135deg, var(--secondary-baby-blue) 0%, var(--secondary-baby-blue-hover) 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.customizer-step-item.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

/* ==========================================================================
   CREAR MI MEZCLA STEP WIZARD
   ========================================================================== */

.wizard-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--baby-blue-border);
  z-index: 1;
}

.wizard-step-num {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--baby-blue-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.wizard-step-num.active {
  background: var(--secondary-baby-blue);
  border-color: var(--secondary-baby-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.step-card {
  background: #FFFFFF;
  border: 1.5px solid var(--baby-blue-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--card-shadow);
}

.step-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   CART & STICKY BAR
   ========================================================================== */

.sticky-mobile-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--baby-blue-border);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.12);
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--baby-blue-border);
}

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

.cart-item-title {
  font-weight: 800;
  font-size: 1rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.empty-cart-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-cart-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   MOBILE & DESKTOP ADMIN PORTAL STYLES (COMPLETE RESPONSIVE LAYOUT)
   ========================================================================== */

.admin-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .admin-layout {
    flex-direction: row;
  }
}

.admin-sidebar {
  width: 260px;
  background: #F8FAFC;
  border-right: 1.5px solid var(--baby-blue-border);
  padding: 1.5rem 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .admin-sidebar {
    display: flex;
  }
}

/* Mobile Admin Sub-Navigation Header / Tab Pills */
.admin-mobile-nav {
  display: flex;
  background: #F8FAFC;
  border-bottom: 2px solid var(--baby-blue-border);
  padding: 0.75rem 0.75rem;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: var(--header-height);
  z-index: 950;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

@media (min-width: 768px) {
  .admin-mobile-nav {
    display: none;
  }
}

.admin-mobile-nav-item {
  white-space: nowrap;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--baby-blue-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.admin-mobile-nav-item.active {
  background: var(--secondary-baby-blue);
  color: #FFFFFF;
  border-color: var(--secondary-baby-blue);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.admin-mobile-nav-item.logout-item {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
  background: #FEF2F2;
}

.admin-nav-item {
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: var(--baby-blue-light);
  color: var(--baby-blue-dark);
}

.admin-content {
  flex-grow: 1;
  padding: 1.25rem 1rem;
  max-width: 1100px;
  width: 100%;
}

@media (min-width: 768px) {
  .admin-content {
    padding: 1.75rem 2rem;
  }
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: #FFFFFF;
  border: 1.5px solid var(--baby-blue-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--secondary-baby-blue-hover);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
}

/* RESPONSIVE TABLE CONTAINERS & MOBILE ORDER CARDS SYSTEM */
.desktop-order-view {
  display: block;
}

.mobile-order-view {
  display: none;
}

@media (max-width: 767px) {
  .desktop-order-view {
    display: none !important;
  }
  
  .mobile-order-view {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
}

.admin-order-card {
  background: #FFFFFF;
  border: 1.5px solid var(--baby-blue-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-order-card.order-card-unpaid {
  border-left: 5px solid #EF4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, #FFFFFF 100%);
}

.admin-order-card.order-card-paid {
  border-left: 5px solid #10B981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, #FFFFFF 100%);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--baby-blue-border);
  padding-bottom: 0.5rem;
}

.order-card-id {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.order-card-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.order-card-customer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.order-card-name {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.order-card-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.order-card-items {
  background: var(--bg-surface);
  border: 1px dashed var(--baby-blue-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.order-card-item-line {
  font-size: 0.84rem;
  margin-bottom: 0.4rem;
}

.order-card-item-line:last-child {
  margin-bottom: 0;
}

.order-card-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 0.4rem;
}

.order-control-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  display: block;
}

.order-card-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.order-card-select.select-unpaid {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
  border: 1.5px solid #EF4444;
}

.order-card-select.select-paid {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1.5px solid #10B981;
}

.btn-delete-order {
  width: 100%;
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  margin-top: 0.25rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--baby-blue-border);
  background: #FFFFFF;
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  min-width: 600px; /* Ensures table headers don't squish on small phones */
}

.admin-table th, .admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--baby-blue-border);
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 800;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.form-input {
  background: #FFFFFF;
  border: 1.5px solid var(--baby-blue-border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-input:focus {
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-light);
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 700;
}

.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-status.active {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.badge-status.inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #DC2626;
}

/* ==========================================================================
   MOBILE-FIRST VERTICAL STACKING FOR FORMS & MODALS (ZERO HORIZONTAL SCROLL)
   ========================================================================== */

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 641px) {
  .form-row-2col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
    overflow-y: auto;
  }

  .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    padding: 1.25rem 1.25rem 3.5rem 1.25rem !important;
    max-height: 86vh !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0 !important;
  }

  .modal-card form {
    padding-bottom: 2rem !important;
  }

  .modal-card button[type="submit"] {
    position: sticky !important;
    bottom: -0.5rem !important;
    z-index: 10 !important;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.25) !important;
    margin-top: 1.25rem !important;
    width: 100% !important;
  }

  .admin-content {
    padding: 1rem 0.75rem !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .option-mode-grid {
    grid-template-columns: 1fr !important;
  }

  .form-input, select.form-input, textarea.form-input, input[type="text"].form-input, input[type="number"].form-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .toggle-switch {
    align-items: flex-start !important;
    line-height: 1.4 !important;
  }

  .toggle-switch input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
  }
}
