/* ═══════════════════════════════════════════════════════════════
   ELECTROBOOM — styles.css
   Autor: Senior Frontend Developer
   Colores: Rojo #E8000D | Amarillo #FFD000 | Negro #111 | Blanco #FFF
═══════════════════════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --red:        #E8000D;
  --red-dark:   #B50009;
  --red-light:  #FF1A22;
  --yellow:     #FFD000;
  --yellow-dark:#E5B800;
  --dark:       #111111;
  --dark-2:     #222222;
  --dark-3:     #333333;
  --gray:       #F5F5F5;
  --gray-2:     #EEEEEE;
  --gray-3:     #CCCCCC;
  --white:      #FFFFFF;
  --text:       #222222;
  --text-light: #666666;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.16);
  --radius:     10px;
  --radius-lg:  16px;
  --transition: .22s ease;
  --font-head:  'Bebas Neue', sans-serif;
  --font-body:  'Nunito', sans-serif;
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, button { font-family: var(--font-body); }

/* ─── UTILITY ───────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section-gray { background: var(--gray); }

/* ─── LOADER ────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--red);
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(232,0,13,.6);
  margin-bottom: 20px;
  animation: pulse-logo 1s ease infinite alternate;
}
@keyframes pulse-logo {
  from { text-shadow: 0 0 20px rgba(232,0,13,.4); }
  to   { text-shadow: 0 0 40px rgba(232,0,13,.9), 0 0 80px rgba(255,208,0,.4); }
}
.loader-bar {
  width: 240px; height: 4px;
  background: var(--dark-2);
  border-radius: 2px; overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  border-radius: 2px;
  animation: fill-bar 1.6s ease forwards;
}
@keyframes fill-bar { from { width: 0 } to { width: 100% } }

/* ─── HEADER ────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 800;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

/* Top bar */
.header-topbar {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 0;
}
.topbar-container {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.topbar-container span, .topbar-container a {
  display: flex; align-items: center; gap: 5px;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.topbar-container a:hover { color: var(--yellow); }
.topbar-container .fa-whatsapp { color: #25D366; font-size: 1rem; }
.header-campaign-bar {
  background: linear-gradient(90deg, #2b0000 0%, #4f0000 55%, #7d0000 100%);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 0;
}
.campaign-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.campaign-pill {
  background: var(--yellow);
  color: var(--dark);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* Main header */
.header-main {
  background: var(--white);
  border-bottom: 2px solid var(--red);
  padding: 12px 0;
}
.header-container {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 16px;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--gray); }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Logo */
.header-logo {
  display: flex; align-items: center; gap: 2px;
  white-space: nowrap; flex-shrink: 0;
  min-height: 40px;
}
.logo-electro {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--red);
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 2px 2px 0 var(--dark);
}
.logo-boom {
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--yellow);
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 2px 2px 0 var(--dark);
}
.logo-bomb { font-size: 1.4rem; margin-left: 4px; }
.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-brand-logo {
  height: 34px;
}
.brand-logo-fallback {
  display: inline-flex;
  align-items: center;
}

/* Search */
.header-search {
  flex: 1; max-width: 600px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 50px 10px 18px;
  border: 2px solid var(--gray-2);
  border-radius: 50px;
  font-size: .95rem;
  color: var(--text);
  background: var(--gray);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.header-search input:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232,0,13,.08);
}
.search-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: var(--red); color: var(--white);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}
.search-btn:hover { background: var(--red-dark); transform: translateY(-50%) scale(1.08); }

/* Search results dropdown */
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 380px; overflow-y: auto;
  z-index: 900;
}
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--gray-2);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--gray); }
.search-result-img {
  width: 48px; height: 48px;
  object-fit: contain; border-radius: 6px;
  background: var(--gray); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.search-result-info { flex: 1; }
.search-result-name { font-weight: 700; font-size: .9rem; }
.search-result-price { color: var(--red); font-weight: 800; font-size: .9rem; }
.search-no-results { padding: 18px; text-align: center; color: var(--text-light); font-size: .9rem; }

/* Header actions */
.header-actions {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.action-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 10px; border-radius: var(--radius);
  color: var(--dark);
  font-size: .85rem; font-weight: 700;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.action-btn i { font-size: 1.2rem; }
.action-btn:hover { background: var(--gray); color: var(--red); }
.whatsapp-btn { background: #25D366 !important; color: var(--white) !important; border-radius: 50px; padding: 8px 14px; }
.whatsapp-btn:hover { background: #1da851 !important; color: var(--white) !important; }
.whatsapp-btn span { font-size: .78rem; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--red); color: var(--white);
  font-size: .65rem; font-weight: 900;
  min-width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  line-height: 1;
  animation: pop .3s ease;
}
@keyframes pop { 0% { transform: scale(0) } 80% { transform: scale(1.2) } 100% { transform: scale(1) } }

/* Navigation bar */
.header-nav {
  background: var(--yellow);
  border-bottom: 3px solid var(--yellow-dark);
  overflow: hidden;
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 2px; overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.nav-container::-webkit-scrollbar { display: none; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  font-size: .85rem; font-weight: 800;
  color: var(--dark); white-space: nowrap;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-transform: uppercase; letter-spacing: .5px;
}
.nav-link:hover, .nav-link.active {
  background: var(--dark); color: var(--yellow);
}
.nav-link i { font-size: .9rem; }

/* ─── HERO CAROUSEL ─────────────────────────────────────────── */
.hero-section { background: var(--dark); overflow: hidden; }
.hero-carousel { position: relative; overflow: hidden; }
.hero-track {
  display: flex;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.hero-slide {
  min-width: 100%;
  display: flex; align-items: center;
  padding: 48px 5%;
  gap: 32px;
  min-height: 460px;
  position: relative;
}
.slide-1 { background: linear-gradient(135deg, #0d0d0d 0%, #1a0000 50%, #2d0000 100%); }
.slide-2 { background: linear-gradient(135deg, #0a0a14 0%, #0a0a2a 50%, #14142d 100%); }
.slide-3 { background: linear-gradient(135deg, #0a1418 0%, #0a1e2a 50%, #102a35 100%); }

.slide-content { flex: 1; z-index: 2; }
.slide-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-size: .8rem; font-weight: 900;
  padding: 4px 12px; border-radius: 50px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 16px;
}
.slide-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: 2px;
}
.slide-content .highlight { color: var(--yellow); }
.slide-content p {
  color: rgba(255,255,255,.7);
  font-size: 1rem; font-weight: 600;
  margin-bottom: 28px;
}
.slide-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--red); color: var(--white);
  padding: 12px 28px; border-radius: 50px;
  font-size: .95rem; font-weight: 800;
  letter-spacing: .5px; text-transform: uppercase;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(232,0,13,.4);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,0,13,.5);
}
.btn-whatsapp {
  background: #25D366; color: var(--white);
  padding: 12px 24px; border-radius: 50px;
  font-size: .95rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

.slide-image {
  flex: 1; display: flex; justify-content: center; align-items: center;
  max-width: 380px; position: relative;
}
.slide-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
  max-height: 320px;
}
.slide-image-placeholder {
  font-size: 8rem; opacity: .15;
  position: absolute;
}

/* Carousel nav buttons */
.hero-prev, .hero-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); color: var(--white);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; backdrop-filter: blur(4px);
  transition: background var(--transition), transform var(--transition);
  z-index: 10;
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover, .hero-next:hover {
  background: var(--red); transform: translateY(-50%) scale(1.08);
}

/* Dots */
.hero-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.dot.active { background: var(--yellow); transform: scale(1.3); }

/* ─── PROMO BANNERS ─────────────────────────────────────────── */
.promo-banners { padding: 24px 0; }
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.promo-card {
  border-radius: var(--radius-lg);
  padding: 20px 20px;
  display: flex; align-items: center; gap: 16px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden; position: relative;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-red    { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: var(--white); }
.promo-dark   { background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: var(--white); }
.promo-yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color: var(--dark); }
.promo-icon { display:inline-flex; align-items:center; justify-content:center; flex-shrink: 0; }
.promo-tag {
  font-size: .7rem; font-weight: 900; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: .8; margin-bottom: 4px; display: block;
}
.promo-text h3 { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: 1px; }

/* ─── SECTION HEADER ────────────────────────────────────────── */
.section-header { margin-bottom: 28px; }
.section-title {
  font-family: var(--font-head);
  font-size: 2rem; letter-spacing: 2px;
  color: var(--dark);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.title-accent { font-size: 1rem; display:inline-flex; align-items:center; color: var(--red); }
.section-line {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  border-radius: 2px;
}

/* ─── CATEGORIES GRID ───────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.cat-card {
  background: var(--white);
  border: 2px solid var(--gray-2);
  border-radius: var(--radius-lg);
  padding: 18px 10px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.cat-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-icon { font-size: 2.2rem; }
.cat-card span { font-size: .8rem; font-weight: 800; color: var(--dark); letter-spacing: .3px; }
.cat-wa {
  position: absolute; bottom: 8px; right: 8px;
  background: #25D366; color: var(--white);
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; opacity: 0;
  transition: opacity var(--transition);
}
.cat-card:hover .cat-wa { opacity: 1; }

/* ─── PRODUCTS GRID ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ─── PRODUCT CARD ──────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}
.product-img-wrapper {
  position: relative; overflow: hidden;
  background: var(--gray);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.product-img-wrapper img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 12px;
  transition: transform .4s ease;
  image-rendering: auto;
}
.product-card:hover .product-img-wrapper img { transform: scale(1.06); }
.product-img-placeholder {
  opacity: .4;
}
.product-placeholder-icon {
  width: 56px;
  height: 56px;
  color: #9ca3af;
}
.product-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.product-saving {
  font-size: .72rem;
  font-weight: 800;
  color: #166534;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 99px;
}
.product-offer-strip {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: .7rem;
  font-weight: 700;
  color: #9a3412;
}
.offer-stock {
  color: #b91c1c;
}
.offer-clock {
  color: #1e40af;
}
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--red); color: var(--white);
  font-size: .7rem; font-weight: 900;
  padding: 3px 10px; border-radius: 50px;
  letter-spacing: 1px; text-transform: uppercase;
}
.product-discount {
  position: absolute; top: 10px; right: 10px;
  background: var(--yellow); color: var(--dark);
  font-size: .7rem; font-weight: 900;
  padding: 3px 8px; border-radius: 50px;
}
.product-info {
  padding: 14px 14px 0;
  flex: 1;
}
.product-category {
  font-size: .72rem; font-weight: 700;
  color: var(--text-light); text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 4px;
}
.product-name {
  font-size: .92rem; font-weight: 800;
  color: var(--dark); line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-prices { margin-bottom: 12px; }
.product-old-price {
  font-size: .8rem; color: var(--text-light);
  text-decoration: line-through; font-weight: 600;
}
.product-price {
  font-size: 1.2rem; font-weight: 900;
  color: var(--red); line-height: 1;
}
.product-actions {
  padding: 0 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.btn-cart {
  background: var(--red); color: var(--white);
  padding: 10px; border-radius: 8px;
  font-size: .85rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.btn-cart:hover { background: var(--red-dark); transform: scale(1.02); }
.btn-wa-product {
  background: #f0fff4; color: #1a7a3a;
  border: 1.5px solid #25D366;
  padding: 8px; border-radius: 8px;
  font-size: .82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--transition);
  width: 100%;
}
.btn-wa-product:hover { background: #25D366; color: var(--white); }

/* Microinteracciones suaves para desktop */
@media (hover: hover) and (pointer: fine) {
  .product-card,
  .promo-card,
  .cat-card,
  .boom-card {
    will-change: transform;
  }
}

/* ─── CART SIDEBAR ──────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 900; opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
  position: fixed; top: 0; right: -100%;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: 950;
  display: flex; flex-direction: column;
  transition: right .35s cubic-bezier(.25,.46,.45,.94);
  box-shadow: -8px 0 32px rgba(0,0,0,.2);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  background: var(--dark);
  color: var(--white);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cart-header h2 { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; }
.cart-close {
  color: var(--white); font-size: 1.3rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cart-close:hover { background: rgba(255,255,255,.15); }

.cart-items {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 12px; color: var(--text-light);
}
.cart-empty i { font-size: 3rem; opacity: .3; }
.cart-empty p { font-size: 1rem; font-weight: 600; }

.cart-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--gray);
  border-radius: var(--radius);
  padding: 12px;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(20px) } to { opacity: 1; transform: none } }
.cart-item-img {
  width: 60px; height: 60px;
  object-fit: contain; border-radius: 6px;
  background: var(--white); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: .85rem; font-weight: 800; line-height: 1.3; margin-bottom: 4px; }
.cart-item-price { color: var(--red); font-weight: 900; font-size: .92rem; }
.cart-item-controls {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.qty-btn {
  width: 28px; height: 28px;
  background: var(--white); border: 2px solid var(--gray-3);
  border-radius: 6px; font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-count { font-weight: 900; font-size: .95rem; min-width: 20px; text-align: center; }
.cart-item-remove {
  color: var(--text-light); font-size: .9rem;
  transition: color var(--transition);
  padding: 4px;
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer {
  padding: 16px; border-top: 2px solid var(--gray-2);
  flex-shrink: 0;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  font-size: 1rem; font-weight: 700;
}
.cart-total-amount { color: var(--red); font-size: 1.3rem; font-weight: 900; }
.btn-whatsapp-cart {
  width: 100%;
  background: #25D366; color: var(--white);
  padding: 14px; border-radius: 10px;
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .5px;
}
.btn-whatsapp-cart:hover { background: #1da851; transform: scale(1.01); }
.btn-whatsapp-cart i { font-size: 1.2rem; }
.btn-clear-cart {
  width: 100%;
  background: none; border: 2px solid var(--gray-3);
  color: var(--text-light);
  padding: 10px; border-radius: 10px;
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--transition);
}
.btn-clear-cart:hover { border-color: var(--red); color: var(--red); }

/* ─── BRANDS SECTION ────────────────────────────────────────── */
.brands-section {
  padding: 40px 0;
  background: var(--dark);
  overflow: hidden;
}
.brands-section .section-title { color: var(--white); margin-bottom: 24px; }
.brands-section .section-line { margin-bottom: 0; }
.brands-track-wrapper {
  overflow: hidden;
  padding: 16px 0;
}
.brands-track {
  display: flex; gap: 40px; align-items: center;
  animation: scroll-brands 24s linear infinite;
  width: max-content;
}
.brands-track:hover { animation-play-state: paused; }
@keyframes scroll-brands {
  from { transform: translateX(0) }
  to   { transform: translateX(-50%) }
}
.brand-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: center;
  min-width: 130px; height: 64px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.brand-item:hover { background: rgba(255,255,255,.15); }
.brand-item img { height: 36px; object-fit: contain; filter: brightness(0) invert(1); opacity: .75; }
.brand-item span {
  font-family: var(--font-head);
  font-size: 1.5rem; letter-spacing: 2px;
  color: rgba(255,255,255,.75);
}

/* ─── CATEGORY VIEW ─────────────────────────────────────────── */
.category-view-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.category-title {
  font-family: var(--font-head);
  font-size: 2rem; letter-spacing: 2px;
  display: flex; align-items: center; gap: 8px;
}
.btn-back {
  background: var(--gray); color: var(--dark);
  padding: 8px 18px; border-radius: 50px;
  font-size: .88rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--transition), color var(--transition);
}
.btn-back:hover { background: var(--red); color: var(--white); }

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.8); }
.footer-top { padding: 48px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.8rem; letter-spacing: 2px;
  margin-bottom: 12px;
}
.footer-col p {
  font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.6);
  margin-bottom: 18px;
}
.footer-col h4 {
  font-size: 1rem; font-weight: 900;
  color: var(--yellow); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: .88rem; color: rgba(255,255,255,.6);
  transition: color var(--transition);
  cursor: pointer;
}
.footer-col ul li a:hover { color: var(--yellow); }
.contact-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; color: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.contact-list i { color: var(--yellow); width: 16px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.social-fb { background: #1877F2; color: var(--white); }
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: var(--white); }
.social-wa { background: #25D366; color: var(--white); }
.social-links a:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,.3); }

.footer-bottom {
  background: #000;
  padding: 16px; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.4);
}

/* ─── WHATSAPP FLOAT ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 24px; z-index: 800;
  background: #25D366; color: var(--white);
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.6);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.whatsapp-float:hover {
  width: auto; height: 54px;
  border-radius: 50px; padding: 0 22px;
  gap: 10px; font-size: 1.4rem;
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(37,211,102,.7);
}
.whatsapp-float-label {
  font-size: .88rem; font-weight: 800;
  max-width: 0; overflow: hidden; white-space: nowrap;
  transition: max-width .3s ease;
}
.whatsapp-float:hover .whatsapp-float-label { max-width: 200px; }

/* ─── AUTH MODAL ───────────────────────────────────────────── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 1200;
  display: none;
}
.auth-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(420px, calc(100% - 24px));
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  z-index: 1201;
  display: none;
  transition: transform .2s ease;
}
.auth-modal.open { transform: translate(-50%, -50%) scale(1); }
.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-2);
}
.auth-modal-header h3 { font-size: 1rem; font-weight: 800; }
.auth-close {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: var(--gray);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px 0;
}
.auth-tab {
  border: 1px solid var(--gray-2);
  background: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
}
.auth-tab.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.auth-feedback {
  margin: 12px 16px 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .85rem;
  font-weight: 700;
}
.auth-feedback.success { background: #dcfce7; color: #166534; }
.auth-feedback.error { background: #fee2e2; color: #991b1b; }
.auth-form {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}
.auth-form label { font-size: .82rem; font-weight: 700; }
.auth-form input {
  border: 1.5px solid var(--gray-2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: .9rem;
}
.auth-submit {
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  padding: 10px 12px;
}
.auth-submit:hover { background: var(--red-dark); }
.auth-user-box {
  padding: 16px;
  border-top: 1px solid var(--gray-2);
}
.auth-user-box p { margin-bottom: 12px; font-weight: 700; }
.auth-logout { background: var(--dark); }
.auth-logout:hover { background: #000; }

/* ─── RESPONSIVE — TABLET (768px) ──────────────────────────── */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .whatsapp-btn span { display: none; }
  .action-btn span { display: none; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid .promo-card:last-child { grid-column: span 2; }

/* ─── DESCUENTOS BOOM ─────────────────────────────────────── */
.boom-discounts-section {
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
}
.boom-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}
.boom-card {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}
.boom-primary {
  background: linear-gradient(135deg, #151515 0%, #2a0000 40%, #460000 100%);
  color: var(--white);
  border: none;
}
.boom-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.boom-tag {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(232, 0, 13, .12);
  color: var(--red);
}
.boom-primary .boom-tag {
  background: rgba(255, 208, 0, .15);
  color: var(--yellow);
}
.boom-percent {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--yellow);
}
.boom-icon {
  color: #444;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.boom-card h3 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.boom-card p {
  font-size: .88rem;
  line-height: 1.45;
  color: var(--text-light);
}
.boom-primary p { color: rgba(255, 255, 255, .8); }
.boom-btn, .boom-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  padding: 9px 12px;
}
.boom-btn {
  background: var(--yellow);
  color: #181818;
}
.boom-btn:hover { background: #f3c000; }
.boom-link {
  background: #111;
  color: #fff;
}
.boom-link:hover { background: #000; }
}

@media (max-width: 768px) {
  /* Header */
  .header-topbar { display: none; }
  .header-campaign-bar { display: none; }
  .hamburger { display: flex; }
  .header-logo .logo-electro, .header-logo .logo-boom { font-size: 1.5rem; }
  .brand-logo-img { height: 34px; }
  .header-search { order: 3; flex-basis: 100%; max-width: 100%; margin-top: 10px; }
  .header-container { flex-wrap: wrap; }
  .header-actions { margin-left: auto; }

  /* Nav */
  .header-nav {
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease;
  }
  .header-nav.nav-open { max-height: 400px; }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 8px; }
  .nav-link { width: 100%; border-radius: 8px; padding: 12px 14px; }

  /* Hero */
  .hero-slide { flex-direction: column; padding: 32px 20px; min-height: auto; gap: 20px; }
  .slide-image { max-width: 100%; }
  .slide-image-placeholder { font-size: 5rem; opacity: .3; }
  .slide-content h1 { font-size: 2.2rem; }

  /* Grids */
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-grid .promo-card:last-child { grid-column: auto; }
  .boom-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .cat-icon { font-size: 1.6rem; }
  .cat-card span { font-size: .7rem; }
  .cat-card { padding: 12px 6px 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-name { font-size: .82rem; }
  .product-price { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.4rem; }
}

/* ─── SCROLL BAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray); }
::-webkit-scrollbar-thumb { background: var(--gray-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.product-card {
  animation: fadeInUp .35s ease both;
}

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
