/* ===========================
   CSS VARIABLES & RESET
=========================== */
:root {
  --primary:   #f7e1d7; /* powder-petal (crema para acentos) */
  --secondary: #3d1e26; /* mora profunda (contraste) */
  --light:     #ffffff;
  --accent:    #f7e1d7;
  --dark-bg:   #c65b7c; /* malva (fondo base) */

  --gold:      var(--primary);
  --yellow:    var(--primary);
  --gold-dark: #e5d1c7;
  --gold-glow: rgba(247, 225, 215, 0.3);
  --red:       #ffffff;
  --red-dark:  #f0f0f0;
  --red-glow:  rgba(255, 255, 255, 0.2);

  --dark:      var(--dark-bg);
  --dark2:     #a3435f;
  --dark3:     #d47a95;
  --card-bg:   #ffffff;
  --text:      #ffffff;
  --muted:     #f7e1d7;
  --border:    rgba(255, 255, 255, 0.15);
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 8px 32px rgba(0,0,0,0.2);
  --transition: 0.4s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===========================
   LOADER
=========================== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.8s cubic-bezier(0.87, 0, 0.13, 1), opacity 0.5s ease;
}
#loader.hide { transform: translateY(-100%); opacity: 0; visibility: hidden; }

.loader-content {
  text-align: center;
  position: relative;
}

.loader-logo-wrap {
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-logo-img {
  max-width: clamp(280px, 70vw, 480px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 20px var(--gold-glow));
  animation:
    logoModernReveal 1.8s cubic-bezier(0.19, 1, 0.22, 1) forwards,
    logoBreathingAura 3s ease-in-out infinite 1.8s;
}

@keyframes logoModernReveal {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateX(90deg) scale(0.8) translateY(100px);
    filter: blur(20px) brightness(0);
  }
  50% {
    opacity: 0.5;
    filter: blur(10px) brightness(1.5);
  }
  100% {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) scale(1) translateY(0);
    filter: blur(0) brightness(1);
  }
}

@keyframes logoBreathingAura {
  0%, 100% {
    filter: drop-shadow(0 0 20px var(--gold-glow)) brightness(1);
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.6)) brightness(1.1);
    transform: scale(1.02);
  }
}

.loader-logo-text {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--yellow);
  letter-spacing: 3px;
  display: block;
  transform: translateY(110%);
  animation: revealUp 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.loader-logo-text span { color: var(--red); }

.loader-progress-container {
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  position: relative;
  margin: 0 auto;
  overflow: hidden;
}

.loader-progress-bar {
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  animation: progressMove 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes revealUp {
  to { transform: translateY(0); }
}
@keyframes progressMove {
  0% { width: 0; left: 0; }
  100% { width: 100%; left: 0; }
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ===========================
   NAVBAR
=========================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(61, 30, 38, 0.98); /* Mora profunda */
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all var(--transition);
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.6); }

.nav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.65rem;
  letter-spacing: 3px;
  color: var(--yellow);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--red); }
.nav-logo i { font-size: 1.2rem; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
  position: fixed;
  top: 15px;
  right: 24px;
  z-index: 999;
  background: var(--primary);
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.cart-btn:hover {
  background: #ffffff;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.cart-btn:active { transform: scale(0.96); }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 900;
  min-width: 20px; height: 20px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.cart-badge.bump { animation: bumpBadge 0.45s cubic-bezier(.34,1.56,.64,1); }
@keyframes bumpBadge {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.6); }
  100% { transform: scale(1); }
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(237, 175, 184, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 55%),
    linear-gradient(175deg, var(--dark-bg) 0%, var(--dark2) 100%);
  overflow: hidden;
}

.hero-bg::before {
  content: '🧁';
  position: absolute;
  font-size: 5rem;
  opacity: 0.1;
  animation: floatBakery 15s linear infinite;
  top: 10%; left: -10%;
}

.hero-bg::after {
  content: '🥐';
  position: absolute;
  font-size: 4rem;
  opacity: 0.1;
  animation: floatBakery 12s linear infinite reverse;
  bottom: 10%; right: -10%;
}

@keyframes floatBakery {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(120vw, 20vh) rotate(90deg); }
  50% { transform: translate(60vw, 80vh) rotate(180deg); }
  75% { transform: translate(-20vw, 40vh) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.bakery-decor {
  position: absolute; inset: 0;
  pointer-events: none;
}

.bakery-decor span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.08;
  animation: fallBakery 10s linear infinite;
}

@keyframes fallBakery {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.1; }
  90% { opacity: 0.1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,194,46,0.12);
  border: 1px solid rgba(249,194,46,0.3);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 0.92;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.hero h1 .line-pink { color: #ffffff;    display: block; }
.hero h1 .line-white{ color: var(--text);   display: block; }
.hero h1 .line-gold { color: var(--primary); display: block; }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #ffffff;
  max-width: 480px;
  margin: 20px auto 36px;
  line-height: 1.7;
  opacity: 0.9;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary);
  color: var(--secondary);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 16px 36px;
  border-radius: 99px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-cta:hover {
  transform: translateY(-4px) scale(1.03);
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.hero-cta:active { transform: scale(0.97); }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(16px, 5vw, 48px);
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: 'Bebas Neue', cursive;
  font-size: 2.2rem;
  color: var(--yellow);
  letter-spacing: 1px;
}
.hero-stat .lbl {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* Floating food images/emojis */
.float-emoji {
  position: absolute;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  pointer-events: none;
  animation: floatAnim linear infinite;
  opacity: 0.65;
  z-index: 0;
}
@keyframes floatAnim {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.5; }
  50%  { opacity: 0.8; }
  100% { transform: translateY(-30px) rotate(15deg); opacity: 0.5; }
}

/* ===========================
   SECTION HEADERS
=========================== */
.section { padding: 80px 24px; max-width: 1280px; margin: 0 auto; }

.section-header { margin-bottom: 48px; }
.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1;
}
.section-title span { color: var(--primary); }

/* ===========================
   CATEGORY FILTER TABS
=========================== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.filter-tab {
  background: rgba(61, 30, 38, 0.4); /* Fondo mora translúcido */
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 99px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-tab:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}
.filter-tab.active {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--secondary);
}

/* ===========================
   MENU SECTION ENHANCEMENT
=========================== */
.menu-section {
  position: relative;
  overflow: hidden;
  background: var(--dark-bg);
  padding: 100px 24px;
}

.menu-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext y='30' x='15' font-size='22' fill='white' fill-opacity='0.4'%3E🧁%3C/text%3E%3Ctext x='70' y='45' font-size='20' fill='white' fill-opacity='0.4'%3E🥐%3C/text%3E%3Ctext x='25' y='90' font-size='21' fill='white' fill-opacity='0.4'%3E🍰%3C/text%3E%3Ctext x='85' y='20' font-size='18' fill='white' fill-opacity='0.4'%3E🥯%3C/text%3E%3Ctext x='90' y='95' font-size='23' fill='white' fill-opacity='0.4'%3E🍩%3C/text%3E%3C/svg%3E");
  pointer-events: none;
}

.menu-section .section-header,
.menu-section .filter-tabs,
.menu-section .products-grid {
  position: relative;
  z-index: 1;
}

/* ===========================
   PRODUCT GRID
=========================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: min-content;
  gap: 30px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
  height: 100%;
}

/* Tamaños de tarjetas personalizados */
.product-card.small { grid-row: span 1; }
.product-card.medium { grid-row: span 1; }
.product-card.large { grid-row: span 1; }

@media (min-width: 992px) {
  .product-card.large { grid-column: span 2; flex-direction: row; }
  .product-card.large .card-img-wrap { width: 50%; height: auto; min-height: 250px; }
  .product-card.large .card-body { width: 50%; justify-content: center; }
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(249,194,46,0.2);
  border-color: rgba(249,194,46,0.3);
}
.product-card.hidden { display: none; }

.card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 190px;
  display: flex; align-items: center; justify-content: center;
}
.card-img-emoji {
  font-size: 5.5rem;
  line-height: 1;
  position: relative; z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.product-card:hover .card-img-emoji { transform: scale(1.18) rotate(-4deg); }
.card-img-gradient {
  position: absolute; inset: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover .card-img-gradient { opacity: 0.85; }
.product-card:hover .card-img-wrap img { transform: scale(1.08); }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--secondary); /* Mora Profunda */
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
  background: #c2dfe3; /* Azul glaciar suave */
  border-bottom: 2px solid rgba(0,0,0,0.05);
}
.card-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: #000000; /* Negro para el nombre */
}
.product-options {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-options label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.5px;
  margin-left: 2px;
}
.pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.pill-btn {
  background: #ffffff;
  color: var(--secondary);
  border: 1.5px solid rgba(61, 30, 38, 0.15);
  border-radius: 10px;
  padding: 6px 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.pill-btn:hover {
  border-color: var(--dark-bg);
  transform: translateY(-1px);
}
.pill-btn.active {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(61, 30, 38, 0.3);
}

.card-desc {
  font-size: 0.95rem;
  color: #000000; /* Negro puro */
  font-weight: 900; /* Negrita más intensa */
  line-height: 1.4;
  margin-bottom: 4px;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid rgba(0,0,0,0.1);
}

.card-price {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.9rem;
  color: #000000; /* Negro puro */
  font-weight: 900;
  letter-spacing: 1px;
}

.add-btn {
  background: #ff4757; /* Rojo Coral Vibrante */
  color: #fff;
  border: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
  transition: all var(--transition);
  flex-shrink: 0;
}
.add-btn:hover {
  transform: scale(1.15) rotate(15deg);
  background: #ff6b81;
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5);
}
.add-btn:active { transform: scale(0.9); }
.add-btn.added {
  animation: addPop 0.4s cubic-bezier(.34,1.56,.64,1);
  background: #27ae60; /* Verde al agregar */
}

@keyframes addPop {
  0%  { transform: scale(1); }
  50% { transform: scale(1.35); }
  100%{ transform: scale(1); }
}
@keyframes addPop {
  0%  { transform: scale(1); }
  50% { transform: scale(1.35); }
  100%{ transform: scale(1); }
}

/* ===========================
   FLOATING ADD NOTIFICATION
=========================== */
#add-toast {
  position: fixed;
  bottom: 90px; right: 24px;
  z-index: 200;
  background: #27ae60;
  color: #fff;
  padding: 12px 20px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 28px rgba(39,174,96,0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
#add-toast.show { opacity: 1; transform: translateY(0); }

/* ===========================
   CART PANEL (SIDEBAR)
=========================== */
#cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#cart-overlay.open { opacity: 1; visibility: visible; }

#cart-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 301;
  width: min(480px, 100vw);
  background: #ffffff;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--dark2);
}
#cart-panel.open { transform: translateX(0); }

.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.7rem;
  letter-spacing: 2px;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.cart-title i { color: #ff4757; }

.cart-close {
  background: #f1f2f6;
  border: 1px solid var(--border);
  color: #2f3542;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.cart-close:hover { background: #ff4757; color: #fff; border-color: #ff4757; }

#cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 12px;
}

.cart-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  color: #2f3542;
  text-align: center;
  padding: 40px 0;
}
.cart-empty i { font-size: 3rem; opacity: 0.3; }
.cart-empty p { font-size: 0.9rem; font-weight: 700; }

.cart-item {
  background: #f1f2f6;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  transition: all 0.3s ease;
  animation: slideInItem 0.35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideInItem {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item.removing {
  opacity: 0;
  transform: translateX(30px);
}

.ci-emoji { font-size: 1.6rem; flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ci-detail {
  font-size: 0.73rem;
  color: #57606f;
  font-weight: 700;
  margin-top: 2px;
}
.ci-price {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.2rem;
  color: #000;
  font-weight: bold;
  flex-shrink: 0;
}

.ci-qty-wrap {
  display: flex; align-items: center; gap: 8px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  color: #000;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { background: #ff4757; color: #fff; border-color: #ff4757; }
.qty-num {
  font-weight: 900;
  font-size: 1rem;
  color: #000;
  min-width: 18px;
  text-align: center;
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex; flex-direction: column; gap: 16px;
  background: #f1f2f6;
}
.cart-summary {
  display: flex; flex-direction: column; gap: 8px;
}
.summary-row {
  display: flex; justify-content: space-between;
  font-size: 0.85rem;
  color: #57606f;
  font-weight: 700;
}
.summary-row.total {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: #000;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 10px;
  margin-top: 4px;
}
.summary-row.total .total-val { color: #ff4757; }

.whatsapp-btn {
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 16px;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all var(--transition);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.whatsapp-btn:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.5);
}
.whatsapp-btn:active { transform: scale(0.97); }
.whatsapp-btn:disabled {
  background: var(--dark3);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.clear-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all var(--transition);
}
.clear-btn:hover { border-color: var(--red); color: var(--red); }

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 2rem;
  color: var(--yellow);
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.footer-logo span { color: var(--red); }
footer p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}
.footer-socials {
  display: flex; justify-content: center; gap: 16px;
  margin: 20px 0 12px;
}
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
  font-size: 0.9rem;
}
.footer-socials a:hover { border-color: var(--yellow); color: var(--yellow); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 600px) {
  .hero h1 { letter-spacing: 0; }
  .hero-stats {
    gap: 12px;
    margin-top: 40px;
    justify-content: space-evenly;
    flex-wrap: nowrap; /* Forzamos una sola línea */
  }
  .hero-stat .num { font-size: 1.6rem; }
  .hero-stat .lbl { font-size: 0.6rem; letter-spacing: 1px; }

  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-img-wrap { height: 150px; }
  .card-body { padding: 12px; gap: 6px; }
  .card-name { font-size: 1.15rem; }
  .card-price { font-size: 1.25rem; }
  #cart-panel { width: 100vw; }
  .cart-btn {
    bottom: 20px;
    right: 20px;
    padding: 15px;
    width: 65px;
    height: 65px;
    justify-content: center;
  }
  #cart-btn-text { display: none; }
  .cart-btn i { font-size: 1.5rem; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ===========================
   UTILITIES
=========================== */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 0 24px;
}
