/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --red-light: #fee2e2;
  --black: #0f0f10;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.text-red { color: var(--red); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 12.5px;
  padding: 8px 48px;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: none;
  padding: 0;
}
.topbar__links { display: flex; gap: 18px; margin-left: auto; }
.topbar__links a:hover { color: var(--red); }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px 20px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.logo__mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.logo__text {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.search {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: var(--transition);
  margin-left: 28px;
}
.search:focus-within { background: var(--white); border-color: var(--red); }
.search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  color: var(--gray-900);
}
.search button {
  background: var(--red);
  color: var(--white);
  padding: 0 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  display: grid; place-items: center;
  transition: var(--transition);
}
.search button:hover { background: var(--red-dark); }

.header__actions { display: flex; gap: 20px; align-items: center; margin-left: 28px; }
.action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  transition: var(--transition);
}
.action:hover { color: var(--red); }
.cart { position: relative; }
.cart__count {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: -4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: var(--radius);
  transition: var(--transition);
}
.menu-toggle:hover { background: var(--gray-200); }
.menu-toggle.is-active { background: var(--red); }
.menu-toggle.is-active span { background: #fff; }
.menu-toggle span {
  width: 22px;
  height: 2.5px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== NAV ===== */
.nav {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}
.nav__list {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav__item { position: relative; }
.nav__item > a {
  display: block;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-700);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.nav__item > a:hover { color: var(--red); border-bottom-color: var(--red); }
.nav__item--accent > a { color: var(--red); }
.caret { font-size: 10px; margin-left: 4px; display: inline-block; transition: transform .2s ease; }
.nav__item.has-mega.is-open .caret { transform: rotate(180deg); }
.nav__item.has-mega.is-open > a { color: var(--red); border-bottom-color: var(--red); }

.mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 580px;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  z-index: 50;
  border-top: 3px solid var(--red);
}
.nav__item.has-mega:hover .mega,
.nav__item.has-mega.is-open .mega { display: grid; }
.mega h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.mega a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-700);
  transition: var(--transition);
}
.mega a:hover { color: var(--red); transform: translateX(4px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(220,38,38,.3); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.3); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn--whatsapp { background: #25d366; color: var(--white); padding: 12px 14px; }
.btn--whatsapp:hover { background: #1ebe57; }
.btn--sm { padding: 10px 16px; font-size: 13px; }

.badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.badge--light { background: rgba(255,255,255,.2); backdrop-filter: blur(6px); }

.link-arrow {
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
  transition: var(--transition);
}
.link-arrow:hover { gap: 12px; }
.link-arrow--light { color: var(--white); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f0f10 0%, #1f2937 60%, #2d1010 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(220,38,38,.18), transparent 50%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 20px;
  position: relative;
  text-align: center;
  justify-items: center;
}
.hero__content { display: flex; flex-direction: column; align-items: center; }
.hero__content p { margin-left: auto; margin-right: auto; }
.hero__cta { justify-content: center; }
.hero__stats { justify-content: center; }
.hero__content h1 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.hero__content p {
  font-size: 17px;
  color: var(--gray-300);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 26px; font-weight: 800; color: var(--white); }
.hero__stats span { font-size: 12.5px; color: var(--gray-300); text-transform: uppercase; letter-spacing: 1px; }

.hero__visual { display: flex; justify-content: center; }
.hero__card {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  position: relative;
  transform: rotate(-2deg);
  transition: var(--transition);
}
.hero__card:hover { transform: rotate(0); }
.hero__card-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.hero__card-img {
  background: var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.hero__card-img img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.hero__card-info h3 { font-size: 18px; margin-bottom: 6px; }
.hero__card-info p { color: var(--gray-500); font-size: 13px; margin-bottom: 12px; }

/* ===== PRICE ===== */
.price { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; margin-bottom: 0; }
.price__old {
  text-decoration: line-through;
  color: var(--gray-500);
  font-size: 13px;
}
.price__new {
  font-size: 22px;
  font-weight: 800;
  color: var(--red);
}
.price__cash {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  margin-top: 3px;
  margin-bottom: 14px;
}

/* ===== BENEFITS ===== */
.benefits {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit { display: flex; align-items: center; gap: 14px; }
.benefit > span {
  font-size: 26px;
  width: 48px; height: 48px;
  background: var(--white);
  border-radius: var(--radius);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.benefit strong { display: block; font-size: 14px; color: var(--gray-900); }
.benefit small { font-size: 12px; color: var(--gray-500); }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section--gray { background: var(--gray-50); }
.section__head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.section__head--center { justify-content: center; text-align: center; }
.section__head h2 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.section__head p { color: var(--gray-500); font-size: 15px; }

/* ===== PRODUCTS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}
.product__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  z-index: 2;
}
.product__badge--hot { background: var(--black); }
.product__img {
  font-size: 72px;
  text-align: center;
  background: var(--gray-50);
  padding: 28px 0;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.product h3 { font-size: 15px; margin-bottom: 6px; }
.product__specs {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 14px;
  min-height: 36px;
}
/* Si el producto no tiene specs, no reservar el espacio (precio sube) */
.product__specs:empty { display: none; }
.product__installments {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
  margin: 6px 0 16px;
}
.product__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.product__actions .btn--primary { flex: 1; }

.product-grid__loading,
.product-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-500);
  font-size: 14px;
}

.product__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product__link h3 { transition: var(--transition); }
.product:hover .product__link h3 { color: var(--red); }

/* ===== DUAL BANNERS ===== */
.dual-banners { padding: 24px 0 48px; }
.dual-banners__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.banner {
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}
.banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.banner--dark { background: linear-gradient(135deg, #1f2937, #0f0f10); }
.banner--red { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.banner h3 { font-size: 22px; margin: 8px 0 6px; }
.banner p { opacity: .85; font-size: 14px; margin-bottom: 14px; }
.banner__icon { font-size: 72px; opacity: .85; flex-shrink: 0; }

/* ===== CATEGORIES ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.category {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px 12px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.category > span { font-size: 36px; }
.category strong { font-size: 13px; color: var(--gray-700); }
.category:hover {
  border-color: var(--red);
  background: var(--red-light);
  transform: translateY(-3px);
}
.category:hover strong { color: var(--red); }

/* ===== WHY ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.why:hover { border-color: var(--red); box-shadow: var(--shadow); }
.why__icon {
  font-size: 42px;
  width: 76px; height: 76px;
  background: var(--red-light);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.why h3 { font-size: 17px; margin-bottom: 8px; }
.why p { color: var(--gray-500); font-size: 14px; }

/* ===== NEWSLETTER ===== */
.newsletter { background: var(--black); color: var(--white); padding: 56px 0; }
.newsletter__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter h2 { font-size: 26px; margin-bottom: 6px; }
.newsletter p { color: var(--gray-300); font-size: 14px; }
.newsletter__form {
  display: flex;
  gap: 10px;
  min-width: 360px;
  flex: 1;
  max-width: 480px;
}
.newsletter__form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-700);
  background: var(--gray-900);
  color: var(--white);
  font-size: 14px;
  outline: none;
}
.newsletter__form input:focus { border-color: var(--red); }

/* ===== FOOTER ===== */
.footer { background: #0a0a0b; color: var(--gray-300); padding: 64px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer a { display: block; font-size: 14px; color: var(--gray-300); padding: 6px 0; transition: var(--transition); }
.footer a:hover { color: var(--red); transform: translateX(3px); }
.footer__about { font-size: 14px; margin: 16px 0 20px; max-width: 320px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  background: var(--gray-900);
  border-radius: 50%;
  display: grid; place-items: center;
  padding: 0;
  font-size: 18px;
  color: #fff;
}
.footer__social a:hover { background: var(--red); transform: none; color: #fff; }
.footer__social a svg { display: block; }

/* Línea de WhatsApp en el footer */
.footer a.footer__wsp-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--gray-300);
  transition: var(--transition);
  white-space: nowrap;
  width: max-content;
}
.footer a.footer__wsp-link:hover {
  color: #25d366;
  transform: translateX(3px);
}
.footer a.footer__wsp-link svg {
  color: #25d366;
  flex-shrink: 0;
}
.footer__bottom {
  border-top: 1px solid var(--gray-900);
  padding: 20px 0;
}
.footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer__bottom small { color: var(--gray-500); font-size: 12.5px; }

/* ===== SEARCH SUGGESTIONS ===== */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  z-index: 250;
  max-height: 480px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.search-suggest.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-suggest__empty,
.search-suggest__loading {
  padding: 22px 18px;
  text-align: center;
  color: var(--gray-500);
  font-size: 13.5px;
}
.search-suggest__empty strong { color: var(--gray-900); }
.search-suggest__empty a {
  display: block;
  color: var(--red);
  font-weight: 700;
  margin-top: 8px;
}

.search-suggest__item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-900);
  text-decoration: none;
  transition: background .15s ease;
}
.search-suggest__item:last-of-type { border-bottom: none; }
.search-suggest__item:hover { background: var(--gray-50); }

.search-suggest__img {
  width: 52px;
  height: 52px;
  background: var(--gray-50);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.search-suggest__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.search-suggest__placeholder { font-size: 22px; opacity: .5; }

.search-suggest__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.search-suggest__info strong {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest__info small {
  font-size: 11.5px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest__info mark {
  background: rgba(220, 38, 38, .15);
  color: var(--red);
  padding: 0 2px;
  border-radius: 3px;
}

.search-suggest__price {
  font-weight: 800;
  color: var(--red);
  font-size: 14px;
  white-space: nowrap;
}

.search-suggest__footer {
  display: block;
  padding: 12px 16px;
  text-align: center;
  background: var(--gray-50);
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s;
  border-top: 1px solid var(--gray-200);
}
.search-suggest__footer:hover { background: var(--red-light); }

/* ===== CART TOAST ===== */
.cart-toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
  z-index: 1100;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s ease, transform .3s ease;
  max-width: 320px;
  pointer-events: none;
}
.cart-toast.is-show { opacity: 1; transform: translateY(0); }
.cart-toast--ok      { background: #0f0f10; color: #fff; }
.cart-toast--warning { background: var(--red); color: #fff; }

.cart-drawer__stock {
  display: block;
  font-size: 11px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 4px;
}
.cart-drawer__qty button:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.cart-drawer__qty button:disabled:hover {
  background: var(--gray-50);
  color: var(--gray-700);
}

/* ===== CART DRAWER (mini carrito lateral derecho) ===== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cart-backdrop.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0,0,0,.18);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.cart-drawer__head h2 { font-size: 18px; }
.cart-drawer__close {
  width: 36px; height: 36px;
  font-size: 24px;
  color: var(--gray-500);
  border-radius: 50%;
  transition: var(--transition);
}
.cart-drawer__close:hover { background: var(--gray-200); color: var(--gray-900); }

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
}

.cart-drawer__empty {
  text-align: center;
  padding: 60px 20px;
}
.cart-drawer__empty-icon { font-size: 56px; opacity: .5; margin-bottom: 12px; }
.cart-drawer__empty h3 { font-size: 17px; margin-bottom: 6px; }
.cart-drawer__empty p { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }

.cart-drawer__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--gray-50);
}
.cart-drawer__img {
  width: 64px; height: 64px;
  background: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  overflow: hidden;
  font-size: 28px;
  opacity: .85;
}
.cart-drawer__img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.cart-drawer__info h4 {
  font-size: 13px;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-drawer__qty {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  overflow: hidden;
}
.cart-drawer__qty button {
  width: 26px; height: 26px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  transition: var(--transition);
}
.cart-drawer__qty button:hover { background: var(--red); color: #fff; }
.cart-drawer__qty span {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.cart-drawer__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
}
.cart-drawer__remove {
  background: transparent;
  color: var(--gray-300);
  font-size: 18px;
  width: 22px; height: 22px;
  border-radius: 4px;
  transition: var(--transition);
}
.cart-drawer__remove:hover { background: var(--red-light); color: var(--red); }

.cart-drawer__foot {
  padding: 18px 22px;
  border-top: 1px solid var(--gray-200);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--gray-700);
}
.cart-drawer__total strong { font-size: 22px; color: var(--red); font-weight: 800; }
.cart-drawer__foot .btn { width: 100%; padding: 14px; font-size: 14px; }
.cart-drawer__foot .btn--whatsapp { background: #25d366; color: #fff; }
.cart-drawer__foot .btn--whatsapp:hover { background: #1ebe57; }

@media (max-width: 480px) {
  .cart-drawer { max-width: 100%; }
}

/* ===== WHATSAPP FLOATING ===== */
.wsp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: var(--white);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  z-index: 200;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.wsp-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.4); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.7), 0 0 0 12px rgba(37,211,102,0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .categories { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__content p { margin-left: auto; margin-right: auto; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar__links { display: none; }
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo   cart"
      "search search";
    gap: 10px 12px;
    padding: 12px 16px;
    align-items: center;
  }
  .logo            { grid-area: logo; }
  .header__actions { grid-area: cart; margin: 0; gap: 14px; }
  .search          { grid-area: search; margin: 0; }
  .menu-toggle     { display: none !important; }
  .header__actions .action span { display: none; }
  .menu-toggle { display: flex; }
  .nav {
    display: block;
    border-top: 1px solid var(--gray-100);
    background: var(--white);
  }
  .nav .container { padding: 0; }
  .nav__list {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav__list::-webkit-scrollbar { display: none; }

  .nav__item {
    flex-shrink: 0;
  }
  /* Espacio extra de seguridad al inicio para que el primer chip no quede pegado */
  .nav__item:first-child { margin-left: 0; }
  .nav__item:last-child { margin-right: 8px; }
  .nav__item > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 13.5px;
    border-bottom: none !important;
    white-space: nowrap;
    transition: var(--transition);
  }
  .nav__item > a:hover {
    background: var(--gray-200);
    color: var(--red);
  }
  /* En mobile, evitar que el "tap" deje el chip pintado en rojo */
  .nav__item > a {
    -webkit-tap-highlight-color: transparent;
  }
  .nav__item > a:focus { outline: none; }
  .nav__item > a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
  }
  .nav__item--accent > a {
    background: var(--red-light);
    color: var(--red);
  }
  .nav__item--accent > a:hover {
    background: var(--red);
    color: #fff;
  }
  .caret { display: none; }

  /* Mega menú deshabilitado en mobile (los clicks navegan directo a la categoría) */
  .mega { display: none !important; }

  .dual-banners__grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product { padding: 14px; }
  .product__img { font-size: 56px; padding: 18px 0; }
  .categories { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .newsletter__form { min-width: 0; width: 100%; }
  .section { padding: 48px 0; }
  .banner { flex-direction: column; text-align: center; padding: 28px 20px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: 1fr; }
}
