/* ==========================================================================
   JATIF - TU SNACK SALUDABLE | ESTILOS DEL MENÚ DIGITAL (ARQUITECTURA MVC)
   Paleta: Café Claro, Crema Cálido, Ámbar Caramelo y Tipografía Limpia (Sin Emojis)
   ========================================================================== */

:root {
  /* Paleta Café y Tonos Cálidos */
  --bg-page: #FAF6F0;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F4ECE1;
  --bg-surface-soft: #FBF8F4;
  
  --primary: #4A2E1B;
  --primary-dark: #2E1A0E;
  --primary-light: #7A5237;
  --primary-subtle: #EFE4D8;
  
  --accent: #C87A28;
  --accent-hover: #AF651A;
  --accent-light: #FBEEDA;
  --accent-glow: rgba(200, 122, 40, 0.25);
  
  --text-main: #281910;
  --text-muted: #6E5C50;
  --text-light: #9B897D;
  --text-white: #FFFFFF;
  
  --border-color: #E6D9CB;
  --border-light: #F0E6DC;
  
  /* WhatsApp */
  --whatsapp: #25D366;
  --whatsapp-hover: #1DA851;
  --whatsapp-bg: #E8F8EE;
  
  /* Badges */
  --badge-green-bg: #E6F4EA;
  --badge-green-text: #1B5E20;
  --badge-amber-bg: #FEF3E2;
  --badge-amber-text: #96500E;
  --badge-luxury-bg: #F8EDD3;
  --badge-luxury-text: #704706;
  --badge-artisan-bg: #F2E8E1;
  --badge-artisan-text: #593118;
  
  /* Sombras y Radios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(74, 46, 27, 0.05);
  --shadow-md: 0 6px 18px rgba(74, 46, 27, 0.08);
  --shadow-lg: 0 14px 34px rgba(74, 46, 27, 0.12);
  --shadow-hover: 0 18px 40px rgba(74, 46, 27, 0.16);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-font {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   TOP BAR & BANNER (SIN EMOJIS)
   ========================================================================== */
.top-announcement {
  background: linear-gradient(90deg, #3C2212, #5A3822, #3C2212);
  color: #F8EDE3;
  font-size: 0.82rem;
  padding: 9px 16px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-transform: uppercase;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
}

.announcement-sep {
  color: var(--accent);
  opacity: 0.7;
}

/* ==========================================================================
   HEADER PRINCIPAL
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  transition: var(--transition);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(90, 56, 34, 0.2));
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.08) rotate(-2deg);
}

.brand-logo-badge {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #FFE4C4 0%, #D48B38 70%, #683B1B 100%);
  border: 2px solid #5A3822;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(104, 59, 27, 0.25);
  transition: var(--transition);
  flex-shrink: 0;
}

.brand-wrapper:hover .brand-logo-badge {
  transform: rotate(-6deg) scale(1.05);
}

.brand-info h1 {
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--primary-dark);
  font-weight: 800;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp-bg);
  color: #116B32;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-header-cart {
  background: var(--primary);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-header-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cart-count {
  background: var(--accent);
  color: white;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0 4px;
}

/* ==========================================================================
   HERO / BIENVENIDA (SIN EMOJIS)
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #FBF6F0 0%, #F3E7D9 60%, #EBDBC8 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 42px 24px;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(200, 122, 40, 0.12) 0%, rgba(200, 122, 40, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-light);
  color: var(--accent-hover);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(200, 122, 40, 0.3);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  color: var(--primary-dark);
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.hero-feature-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(74, 46, 27, 0.04);
}

.feature-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

/* ==========================================================================
   BARRA DE BÚSQUEDA Y CONTROLES (ICONOS SVG)
   ========================================================================== */
.controls-section {
  max-width: 1240px;
  margin: 30px auto 10px;
  padding: 0 24px;
}

.search-box-wrapper {
  position: relative;
  max-width: 620px;
  margin: 0 auto 24px;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 15px 46px 15px 50px;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background-color: #FFFFFF;
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-clear:hover {
  color: var(--primary);
  background: rgba(0,0,0,0.05);
}

/* ==========================================================================
   PILLS DE SUBCATEGORÍAS (SIN EMOJIS)
   ========================================================================== */
.categories-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  margin-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.categories-nav::-webkit-scrollbar {
  height: 6px;
}

.categories-nav::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 4px;
}

.category-pill {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1.5px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.category-pill:hover {
  border-color: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.category-pill.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(74, 46, 27, 0.25);
}

.category-pill .badge-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 700;
}

.category-pill.active .badge-count {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

/* ==========================================================================
   INFORMACIÓN DE SECCIÓN & FILTROS
   ========================================================================== */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.results-title {
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   GRID DE PRODUCTOS
   ========================================================================== */
.products-container {
  max-width: 1240px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}

/* Tarjeta de Producto */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #D8C3B0;
}

/* Imagen del Producto */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, #FFFFFF 0%, #F6EDE5 100%);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 12px rgba(90, 56, 34, 0.12));
}

.product-card:hover .card-image {
  transform: scale(1.06);
}

/* Badges sobre la imagen */
.card-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-natural {
  background-color: var(--badge-green-bg);
  color: var(--badge-green-text);
  border: 1px solid rgba(27, 94, 32, 0.2);
}

.badge-eco {
  background-color: #E0F2F1;
  color: #00695C;
  border: 1px solid rgba(0, 105, 92, 0.2);
}

.badge-luxury {
  background-color: var(--badge-luxury-bg);
  color: var(--badge-luxury-text);
  border: 1px solid rgba(112, 71, 6, 0.2);
}

.badge-popular {
  background-color: var(--badge-amber-bg);
  color: var(--badge-amber-text);
  border: 1px solid rgba(150, 80, 14, 0.2);
}

.badge-artisan {
  background-color: var(--badge-artisan-bg);
  color: var(--badge-artisan-text);
  border: 1px solid rgba(89, 49, 24, 0.2);
}

.card-weight-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(46, 26, 14, 0.88);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.card-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-card:hover .card-zoom-hint {
  opacity: 1;
  transform: scale(1);
}

/* Contenido de la Tarjeta */
.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-subcat {
  font-size: 0.76rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.card-title:hover {
  color: var(--accent);
}

/* Sección de Ingredientes */
.card-ingredients-wrap {
  margin-bottom: 14px;
}

.ingredients-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.ingredients-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ing-chip {
  background-color: var(--bg-surface-soft);
  color: var(--primary);
  border: 1px solid var(--border-light);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Descripción Corta */
.card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Precio y Acciones */
.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.price-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

.product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Stepper de Cantidad y Botones */
.action-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px 6px;
}

.qty-btn {
  background: none;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
}

.qty-btn:hover {
  background: rgba(0,0,0,0.06);
}

.qty-input {
  width: 30px;
  text-align: center;
  border: none;
  background: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  outline: none;
}

.btn-add-cart {
  flex: 1;
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(74, 46, 27, 0.2);
}

.btn-direct-wa {
  background-color: var(--whatsapp);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-direct-wa:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Estado de Resultados Vacío */
.empty-results-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background-color: var(--bg-surface-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-results-state h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.empty-results-state p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 20px;
}

.btn-clear-search {
  max-width: 220px;
  margin: 0 auto;
}

/* ==========================================================================
   DRAWER DEL CARRITO / ORDER SUMMARY (SIN EMOJIS)
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 25, 16, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--bg-surface);
  z-index: 210;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-surface-alt);
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  color: var(--primary-dark);
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-close-btn:hover {
  color: var(--primary);
  background: rgba(0,0,0,0.06);
}

.cart-items-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Carrito Vacío */
.cart-empty-state {
  margin: auto;
  text-align: center;
  padding: 40px 20px;
}

.cart-empty-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  background-color: var(--bg-surface-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.cart-empty-title {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.cart-empty-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Item del Carrito */
.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

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

.cart-item-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.cart-item-weight {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
}

.cart-stepper-btn {
  background: none;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-stepper-val {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 8px;
  color: var(--primary-dark);
}

.cart-item-total {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary);
}

.cart-item-remove {
  background: none;
  border: none;
  color: #C25454;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.cart-item-remove:hover {
  background: rgba(194, 84, 84, 0.1);
  transform: scale(1.1);
}

/* Footer del Carrito */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-surface-alt);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.cart-subtotal-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cart-subtotal-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.btn-checkout-wa {
  width: 100%;
  background-color: var(--whatsapp);
  color: white;
  border: none;
  padding: 16px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  text-decoration: none;
}

.btn-checkout-wa:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn-checkout-wa:disabled {
  background-color: #B2D8C0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cart-checkout-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   MODAL DE DETALLE DEL PRODUCTO (SIN EMOJIS)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 25, 16, 0.65);
  backdrop-filter: blur(5px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-dialog {
  background-color: var(--bg-surface);
  max-width: 780px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--primary);
  color: white;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow-y: auto;
}

.modal-media-col {
  background: radial-gradient(circle at center, #FFFFFF 0%, #F5EDE4 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 24px;
  overflow: hidden;
  cursor: zoom-in;
}

.modal-image {
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(74, 46, 27, 0.16));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-media-col:hover .modal-image {
  transform: scale(1.03);
}

.modal-zoom-hint {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(46, 26, 14, 0.78);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0.9;
  transition: var(--transition);
}

.modal-media-col:hover .modal-zoom-hint {
  background: rgba(46, 26, 14, 0.92);
  transform: translateY(-2px);
}

.modal-info-col {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.modal-subcat {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.modal-weight {
  display: inline-block;
  background-color: var(--bg-surface-alt);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.modal-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.modal-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-features-list li {
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feat-check {
  color: #2E7D32;
  display: inline-flex;
  align-items: center;
}

.modal-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.modal-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

/* ==========================================================================
   BOTÓN FLOTANTE DEL CARRITO (CON SVG)
   ========================================================================== */
.floating-cart-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: 2px solid #FFFFFF;
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(74, 46, 27, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 90;
  transition: var(--transition);
}

.floating-cart-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(74, 46, 27, 0.45);
}

.floating-cart-count {
  background-color: var(--accent);
  color: white;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ==========================================================================
   FOOTER DEL SITIO (SIN EMOJIS)
   ========================================================================== */
.site-footer {
  background-color: #2A190E;
  color: #E2D3C5;
  padding: 50px 24px 30px;
  margin-top: 60px;
  border-top: 4px solid var(--accent);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
}

.footer-brand h2 {
  color: #FFFFFF;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.footer-tagline {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.9rem;
  color: #BCAAA0;
  line-height: 1.6;
  max-width: 420px;
}

.footer-col h3 {
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #D3C3B6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1240px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #9C897E;
}

/* ==========================================================================
   TOAST NOTIFICATION (CON SVG, SIN EMOJIS)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 90px;
  right: 28px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--primary-dark);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  animation: slide-in 0.3s ease forwards;
  pointer-events: auto;
  border-left: 4px solid var(--accent);
}

.toast-icon {
  color: #4CAF50;
  display: flex;
  align-items: center;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   LIGHTBOX PANTALLA COMPLETA DE IMÁGENES
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 10, 6, 0.94);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

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

.lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  animation: lightboxZoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxZoomIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 510;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-media-col {
    min-height: 260px;
    max-height: 350px;
    padding: 16px;
  }

  .modal-image {
    max-height: 320px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .top-announcement {
    font-size: 0.75rem;
    gap: 10px;
  }

  .header-container {
    padding: 10px 16px;
  }
  
  .brand-logo-badge {
    width: 42px;
    height: 42px;
  }
  
  .brand-info h1 {
    font-size: 1.3rem;
  }
  
  .status-badge {
    display: none;
  }
  
  .hero-section {
    padding: 28px 16px;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .controls-section {
    padding: 0 16px;
  }
  
  .products-container {
    padding: 0 16px;
  }
  
  .floating-cart-btn {
    bottom: 20px;
    right: 20px;
    padding: 10px 18px;
    font-size: 0.92rem;
  }
  
  .cart-drawer {
    max-width: 100%;
  }
}

/* ==========================================================================
   SECCIÓN DE PUNTOS DE VENTA (MAPA Y TIENDAS FÍSICAS)
   ========================================================================== */
.locations-section {
  padding: 64px 24px 80px;
  background: linear-gradient(180deg, var(--bg-page) 0%, #F5EDE3 100%);
  border-top: 1px solid var(--border-color);
  position: relative;
}

.locations-container {
  max-width: 1240px;
  margin: 0 auto;
}

.locations-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 44px;
}

.locations-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.locations-badge svg {
  color: var(--accent);
}

.locations-title {
  font-size: 2.3rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.25;
}

.locations-subtitle {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.locations-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: stretch;
}

/* Columna de tarjetas */
.locations-cards-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.location-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.location-card.active {
  border-color: var(--accent);
  background: #FFFFFF;
  box-shadow: 0 10px 28px var(--accent-glow);
}

.location-card.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: var(--accent);
}

.location-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.location-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--badge-amber-bg);
  color: var(--badge-amber-text);
}

.location-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2E7D32;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2E7D32;
  box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(46, 125, 50, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
  }
}

.location-name {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.location-detail svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-light);
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.btn-location-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: var(--primary);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.location-card.active .btn-location-select {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn-location-select:hover {
  background: var(--primary-light);
  color: #FFFFFF;
}

.btn-location-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}

.btn-location-directions:hover {
  background: var(--accent);
  color: #FFFFFF;
}

/* Columna del Mapa */
.locations-map-col {
  display: flex;
  flex-direction: column;
}

.map-wrapper {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
}

.map-top-bar {
  padding: 14px 20px;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.map-active-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.map-active-info svg {
  color: var(--accent);
  flex-shrink: 0;
}

.map-switch-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-pill {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.map-pill:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.map-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.locations-map-frame {
  width: 100%;
  flex: 1;
  min-height: 380px;
  border: none;
}

.map-footer-bar {
  padding: 12px 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 16px;
}

.map-external-btn {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.map-external-btn:hover {
  text-decoration: underline;
}

/* Responsivo para Puntos de Venta */
@media (max-width: 960px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
  
  .locations-title {
    font-size: 1.8rem;
  }
  
  .map-wrapper {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .locations-section {
    padding: 44px 16px 60px;
  }
  
  .map-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .map-switch-pills {
    width: 100%;
    display: flex;
  }
  
  .map-pill {
    flex: 1;
    text-align: center;
  }
  
  .map-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
