:root {
  --green: #7ab52e;
  --green-dark: #5f9023;
  --pink: #d6248c;
  --pink-dark: #b41c72;
  --dark: #212529;
  --btn-dark: #333333;
  --text: #333333;
  --muted: #8a8a8a;
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --border: #ececec;
  --orange: #e8833a;
  --blue: #5b7c99;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0,0,0,0.06);
}

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

html, body { max-width: 100%; overflow-x: clip; }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1600px; margin: 0 auto; padding: 0 24px; }

/* ===== Topbar ===== */
.topbar {
  background: var(--green);
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 16px;
}

/* ===== Header + nav sticky (se ocultan al bajar, reaparecen al subir) ===== */
.stickytop { position: sticky; top: 0; z-index: 80; transition: transform .35s cubic-bezier(.22,.61,.36,1); will-change: transform; }
body.nav-hidden .stickytop { transform: translateY(-100%); }

/* ===== Header (blanco) ===== */
.header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}
.logo img { height: 48px; width: auto; }

.search {
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: center;
  display: flex;
  background: #fff;
  border-radius: 8px;
  border: 1.5px solid var(--border);
}
.search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 18px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  border-radius: 8px 0 0 8px;
  min-width: 0;
}
.search-btn {
  background: var(--green);
  border: none;
  color: #fff;
  width: 64px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
}

/* Sugerencias del buscador (autocompletar) */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  z-index: 130;
  max-height: 70vh;
  overflow-y: auto;
  padding: 6px;
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
}
.suggest-item:hover { background: var(--bg-soft); }
.suggest-img {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 8px; background: var(--bg-soft);
  display: grid; place-items: center; overflow: hidden;
}
.suggest-img img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: none; }
.suggest-info { min-width: 0; flex: 1; }
.suggest-name {
  font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.suggest-cat { font-size: 12px; color: var(--muted); }
.suggest-price { font-size: 14px; font-weight: 700; color: var(--green); white-space: nowrap; }
.suggest-all {
  display: block; width: 100%; text-align: center;
  padding: 11px; margin-top: 4px; border-top: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--green); cursor: pointer; background: none; border-left: none; border-right: none; border-bottom: none; font-family: inherit;
}
.suggest-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 22px; color: var(--dark); }
.account { font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.caret { font-size: 11px; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--dark);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ===== Nav ===== */
.nav { background: linear-gradient(90deg, #d6248c 0%, #c01f7e 100%); border-bottom: none; box-shadow: 0 4px 14px rgba(214,36,140,.28); }
.nav-inner {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 2px;
  background: #fff;
}
.nav-ofertas { color: #fff; }
.ofertas-pct {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  background: #ffe14d;
  color: #8a1259;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

/* Dropdown categorías */
.nav-drop { position: static; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 230px;
  padding: 8px 0;
  display: none;
  z-index: 60;
}
.nav-drop:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--green); }

/* Mega menú (categorías / ofertas) */
.dropdown-mega {
  min-width: min(880px, 92vw);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 0;
  overflow: hidden;
}
.mega { display: grid; grid-template-columns: 250px 1fr; }
.mega.mega-single { grid-template-columns: 1fr; }
.mega-single .mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-cats {
  border-right: 1px solid var(--border);
  padding: 22px 0;
  background: #fff;
}
.mega-cats h4 {
  margin: 0 24px 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}
.mega-cats ul { list-style: none; margin: 0; padding: 0; }
.mega-cats li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.mega-cats li:hover { background: var(--bg-soft); color: var(--green); }
.new-badge {
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  line-height: 1.4;
}
.mega-products { padding: 22px 24px; max-height: 72vh; overflow-y: auto; }
.mega-title { margin: 0 0 18px; font-size: 20px; font-weight: 800; color: var(--dark); }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.mini-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.mini-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mini-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}
.mini-img { position: relative; }
.mini-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}
.mini-old {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.mini-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.mini-price { font-size: 15px; font-weight: 700; color: var(--green); }
.mini-add {
  margin-top: auto;
  border: none;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 7px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
}
.mini-add:hover { background: var(--green-dark); }
@media (max-width: 720px) {
  .mega { grid-template-columns: 1fr; }
  .mega-cats { border-right: none; border-bottom: 1px solid var(--border); }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Hero slider (banners reales) ===== */
.hero-wrap { max-width: 1600px; margin: 26px auto 0; padding: 0 24px; }
.hero-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f3f1ec;
}
.hero-track { display: flex; transition: transform 0.5s ease; }
.hero-slide { min-width: 100%; display: block; overflow: hidden; }
.hero-slide img { width: 100%; height: auto; display: block; transition: transform 1.2s cubic-bezier(.22,.61,.36,1); }
.hero-slide:hover img { transform: scale(1.04); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 3;
  transition: background 0.15s;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.hero-dot.active { background: var(--green); width: 24px; border-radius: 5px; }
.hbtn { border: none; color: #fff; font-family: inherit; font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 999px; cursor: pointer; }
.hbtn-orange { background: var(--orange); }
.hbtn-blue { background: var(--blue); }
.hbtn-green { background: var(--green); }

/* ===== Tarjetas de categoría ===== */
.cat-cards-section { margin-top: 34px; margin-bottom: 0; }
.cat-carousel { grid-auto-columns: calc((100% - 5 * 18px) / 6); }
.cat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.cat-card h3 { font-size: 15px; font-weight: 600; color: #444; margin-bottom: 12px; }
.cat-card .cat-img-wrap { border-radius: 10px; overflow: hidden; }
.cat-card img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; display: block; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.cat-card:hover img { transform: scale(1.08); }

/* ===== Paneles / secciones ===== */
.container { margin-bottom: 34px; }
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 32px 32px;
  margin-top: 34px;
}
.panel-title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: #444; margin-bottom: 6px; text-align: center; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 24px; font-weight: 800; color: #444; }
.muted { color: var(--muted); font-size: 14px; }

/* ===== Carrusel / grilla productos ===== */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 18px) / 5);
  gap: 18px;
  overflow-x: auto;
  padding: 14px 2px 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: stretch;
}
.carousel::-webkit-scrollbar { display: none; height: 0; }
.carousel > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; padding-top: 8px; }

/* ===== Tarjeta de producto ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.13); transform: translateY(-6px); }
.card-img {
  position: relative;
  height: 200px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box;
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.card:hover .card-img img { transform: scale(1.1); }
.badge { position: absolute; top: 8px; left: 8px; z-index: 3; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 12px; color: var(--muted); }
.card-name {
  font-size: 15px; font-weight: 600; color: var(--green); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-name:hover { color: var(--green-dark); }
.card-price { font-size: 17px; font-weight: 700; color: #333; min-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price .old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.card-desc {
  font-size: 13px; color: #777; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 38px;
}
.btn-add {
  margin-top: 10px;
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.btn-add:hover { background: var(--green-dark); }
.btn-add.added { background: #2b8a31; }

/* ---- Sin stock ---- */
.btn-soldout,
.btn-add.btn-soldout,
.mini-add.btn-soldout {
  background: #e6e8ec !important;
  color: #8a909b !important;
  cursor: not-allowed;
  pointer-events: none;
}
.badge-soldout {
  position: absolute;
  top: 8px; left: 8px;
  background: #c0392b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
}
.card.is-soldout .card-img img { opacity: .55; filter: grayscale(.25); }

/* ===== Banners promocionales ===== */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.promo {
  position: relative;
  min-height: 230px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  box-shadow: var(--shadow);
}
.promo::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--img) center/cover no-repeat;
  z-index: 0;
  transform: scale(1);
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.promo:hover::before { transform: scale(1.1); }
.promo .hbtn-green { transition: transform .25s ease, background .2s ease; }
.promo:hover .hbtn-green { transform: translateY(-2px); }
.promo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
  z-index: 1;
}
.promo-content { position: relative; z-index: 2; max-width: 70%; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.promo h3 { font-size: 26px; font-weight: 800; line-height: 1.15; }
.promo h3 span { color: #d6ffd9; }
.promo p { font-size: 14px; margin: 10px 0 16px; opacity: .95; }
.promo .hbtn-green { display: inline-block; }

/* ===== Carrusel con flechas ===== */
.carousel-wrap { position: relative; }
.car-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px; height: 48px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: #9aa3b2;
  font-size: 20px;
  cursor: pointer;
  box-shadow: none;
  display: grid; place-items: center;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.car-arrow:hover {
  background: #fff;
  color: var(--green);
  box-shadow: 0 8px 22px rgba(0,0,0,.16);
}
.car-arrow.prev { left: -40px; transform: translateY(-50%); }
.car-arrow.next { right: -40px; transform: translateY(-50%); }
.car-arrow.prev:hover { transform: translateY(-50%) translateX(-3px); }
.car-arrow.next:hover { transform: translateY(-50%) translateX(3px); }
.carousel.cols-2 { grid-auto-columns: calc((100% - 18px) / 2); }
.carousel.cols-3 { grid-auto-columns: calc((100% - 2 * 18px) / 3); }

/* ===== Banner cupón ===== */
.coupon-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  padding: 26px 38px;
  background: #fdeef6;
  border: 2px dashed var(--pink);
  border-radius: var(--radius);
}
.coupon-watermark {
  position: absolute;
  right: 26%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  font-weight: 800;
  letter-spacing: 6px;
  color: rgba(214,36,140,0.08);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}
.coupon-off {
  position: relative;
  z-index: 1;
  font-size: 56px;
  font-weight: 800;
  color: var(--pink);
  line-height: 1;
}
.coupon-mid {
  position: relative;
  z-index: 1;
  text-align: center;
}
.coupon-mid h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: var(--pink);
}
.coupon-mid p {
  margin: 0;
  color: #777;
  font-size: 15px;
}
.coupon-code {
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 800;
  color: var(--pink);
  letter-spacing: 1px;
  padding: 10px 20px;
  border: 2px dashed var(--pink);
  border-radius: 10px;
  background: #fff;
  white-space: nowrap;
}

/* ===== Lo mejor para tu cocina ===== */
.kitchen-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: stretch; }
.promo-tall {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: #fff;
}
.promo-tall::before { content: ""; position: absolute; inset: 0; background: var(--img) center/cover no-repeat; z-index: 0; transform: scale(1); transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.promo-tall:hover::before { transform: scale(1.12); }
.promo-tall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.55)); z-index: 1; }
.promo-tall .promo-tall-content h3, .promo-tall .promo-tall-content p { transition: transform .4s ease; }
.promo-tall:hover .promo-tall-content h3 { transform: translateY(-4px); }
.promo-tall-content { position: relative; z-index: 2; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.promo-tall-content h3 { font-size: 30px; font-weight: 800; line-height: 1.1; }
.promo-tall-content p { font-size: 14px; margin: 10px 0 16px; }
.btn-comprar {
  background: #fff;
  color: #d9534f;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-comprar:hover { background: #f3f3f3; }
.kitchen-products { display: flex; flex-direction: column; }
.kitchen-products .carousel-wrap { width: 100%; }
.kitchen-cocina-grid { grid-template-columns: repeat(3, 1fr); width: 100%; }
.kitchen-more { text-align: center; margin-top: 18px; }
.btn-ver-mas { background: #1f9d55; color: #fff; border: 0; padding: 11px 30px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s; }
.btn-ver-mas:hover { background: #18803f; }

/* ===== Dos columnas (ofertas) ===== */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.two-col .panel { margin-top: 34px; }
.panel-center { text-align: center; font-size: 26px; font-weight: 800; color: #444; margin-bottom: 6px; }
.panel-center span { color: var(--green); }
.panel-title span { color: var(--green); }

/* ===== Bandas de color por sección (identidad) ===== */
.section-band { position: relative; padding: 30px 0 18px; }
.section-band::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%); z-index: -1;
}
.band-green::before {
  background:
    radial-gradient(440px 340px at 88% 8%, rgba(122,181,46,.22), transparent 70%),
    radial-gradient(400px 320px at 4% 92%, rgba(122,181,46,.15), transparent 70%),
    linear-gradient(135deg, #f1f9e7 0%, #e6f3d6 100%);
}
.band-pink::before {
  background:
    radial-gradient(440px 340px at 90% 10%, rgba(214,36,140,.16), transparent 70%),
    radial-gradient(380px 320px at 3% 90%, rgba(214,36,140,.12), transparent 70%),
    linear-gradient(135deg, #fdeef6 0%, #fbdcec 100%);
}
.section-band .panel {
  background: transparent; border: none; box-shadow: none;
  padding-left: 0; padding-right: 0; margin-top: 6px;
}
.band-green .panel-title span,
.band-green .panel-center span { color: var(--green-dark); }
.band-pink .panel-title,
.band-pink .panel-center { color: #8a2d63; }
.band-pink .panel-title span,
.band-pink .panel-center span { color: var(--pink); }

/* ===== Flechas laterales en dos columnas (evita que choquen) ===== */
.two-col .car-arrow.prev { left: -8px; }
.two-col .car-arrow.next { right: -8px; }

/* ===== Tira de beneficios / confianza ===== */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.benefit {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.10); }
.benefit-ic { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.benefit-ic svg { width: 25px; height: 25px; }
.benefit:nth-child(odd) .benefit-ic { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.benefit:nth-child(even) .benefit-ic { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); }
.benefit-tx strong { display: block; font-size: 15px; color: var(--dark); font-weight: 700; line-height: 1.2; }
.benefit-tx span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

/* ===== Spotlight de producto destacado (publicidad grande) ===== */
.spotlight {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 24px; margin-top: 34px;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: 36px; padding: 46px 54px;
}
.spotlight::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.spotlight-green::before {
  background:
    radial-gradient(520px 380px at 90% 12%, rgba(122,181,46,.30), transparent 70%),
    radial-gradient(420px 340px at 6% 92%, rgba(122,181,46,.20), transparent 70%),
    linear-gradient(135deg, #eef8df 0%, #dff0cb 100%);
}
.spotlight-pink::before {
  background:
    radial-gradient(520px 380px at 90% 12%, rgba(214,36,140,.22), transparent 70%),
    radial-gradient(420px 340px at 6% 92%, rgba(214,36,140,.16), transparent 70%),
    linear-gradient(135deg, #fdeef6 0%, #fbd9eb 100%);
}
.spotlight-rev { grid-template-columns: 1fr 1.05fr; }
.spotlight-rev .spotlight-media { order: 2; }

.spotlight-media { position: relative; display: grid; place-items: center; }
.spotlight-media img {
  width: 100%; max-width: 460px; border-radius: 20px;
  aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: 0 24px 54px rgba(0,0,0,.20);
}
.spotlight-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--pink); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(214,36,140,.4);
  display: inline-flex; align-items: center; gap: 7px;
}
.spotlight-tag svg { width: 15px; height: 15px; }
.spotlight-green .spotlight-tag { background: var(--green); box-shadow: 0 8px 20px rgba(122,181,46,.45); }
.spotlight-disc {
  position: absolute; bottom: -14px; right: 24px;
  width: 88px; height: 88px; border-radius: 50%;
  background: #fff; color: var(--pink);
  display: grid; place-items: center; text-align: center;
  font-size: 23px; font-weight: 800; line-height: 1;
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
  border: 3px solid var(--pink); transform: rotate(-8deg);
}
.spotlight-green .spotlight-disc { color: var(--green-dark); border-color: var(--green); }

.spotlight-body { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.spotlight-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-dark); background: rgba(122,181,46,.16);
  padding: 7px 14px; border-radius: 999px; line-height: 1;
}
.spotlight-eyebrow svg { width: 14px; height: 14px; }
.spotlight-pink .spotlight-eyebrow { color: var(--pink-dark); background: rgba(214,36,140,.14); }
.spotlight-title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.07; color: var(--dark); letter-spacing: -.5px; }
.spotlight-green .spotlight-title em { color: var(--green-dark); font-style: normal; }
.spotlight-pink .spotlight-title em { color: var(--pink); font-style: normal; }
.spotlight-desc { font-size: 16px; color: #5a5a5a; line-height: 1.6; max-width: 470px; }
.spotlight-price { display: flex; align-items: baseline; gap: 12px; margin-top: 2px; }
.spotlight-price b { font-size: 36px; font-weight: 800; color: var(--dark); }
.spotlight-green .spotlight-price b { color: var(--green-dark); }
.spotlight-pink .spotlight-price b { color: var(--pink); }
.spotlight-price .old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.spotlight-cta {
  display: inline-flex; align-items: center; gap: 10px;
  border: none; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 700; color: #fff;
  padding: 15px 30px; border-radius: 999px; margin-top: 4px; text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.spotlight-cta svg { width: 18px; height: 18px; }
.spotlight-green .spotlight-cta { background: linear-gradient(135deg, var(--green), var(--green-dark)); box-shadow: 0 12px 26px rgba(122,181,46,.42); }
.spotlight-pink .spotlight-cta { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); box-shadow: 0 12px 26px rgba(214,36,140,.38); }
.spotlight-cta:hover { transform: translateY(-3px); filter: brightness(1.05); }
.spotlight-foot { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.spotlight-foot svg { width: 15px; height: 15px; color: var(--green); }
@media (max-width: 820px) {
  .spotlight, .spotlight-rev { grid-template-columns: 1fr; padding: 30px 22px; gap: 24px; }
  .spotlight-rev .spotlight-media { order: 0; }
  .spotlight-media img { max-width: 380px; }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  margin-top: 56px;
  color: #fde4f1;
  background:
    radial-gradient(1100px 380px at 12% -20%, rgba(122,181,46,.40), transparent 60%),
    linear-gradient(160deg, var(--pink) 0%, var(--pink-dark) 100%);
}
.footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 28%, var(--pink) 68%, var(--pink-dark) 100%);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 24px 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-logo { height: 46px; margin-bottom: 18px; }
.footer-brand p { max-width: 330px; line-height: 1.65; }
.footer-col h4 {
  color: #fff; margin-bottom: 18px; font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em;
  position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 32px; height: 3px; border-radius: 3px; background: var(--green);
}
.footer-col p, .footer-col li { font-size: 14px; margin-bottom: 11px; color: #fcd5e8; }
.footer-col ul li { cursor: pointer; transition: color .18s ease, transform .18s ease; }
.footer-col ul li:hover { color: #fff; transform: translateX(5px); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.fsoc {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.fsoc:hover { background: #fff; color: var(--pink); transform: translateY(-3px); }
.fsoc svg { width: 19px; height: 19px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 11px; cursor: default; }
.footer-contact li svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; color: #fff; opacity: .92; }
.footer-contact li:hover { color: #fcd5e8; transform: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  max-width: 1320px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: #fbcde2;
}
.footer-made { color: #fff; }
.footer-made strong { color: #ffd2e6; font-weight: 700; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px 24px; padding: 44px 20px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* ===== Carrito ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 90; }
.cart-panel {
  position: fixed; top: 0; right: 0; height: 100%;
  width: min(400px, 100%);
  background: #fff; z-index: 100;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
.cart-panel.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 18px; background: var(--green); color: #fff; }
.cart-close { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 18px; }
.cart-empty { color: var(--muted); text-align: center; padding: 48px 0; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; background: #f4f4f4; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 600; }
.cart-item-price { color: var(--green); font-weight: 700; font-size: 14px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 16px; }
.qty .remove { margin-left: auto; color: #d33; background: none; border: none; cursor: pointer; font-size: 13px; }
.cart-footer { padding: 18px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 14px; font-weight: 600; }
.cart-total strong { color: var(--green); }
.btn-checkout { width: 100%; background: #25d366; color: #fff; border: none; padding: 14px; border-radius: 8px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn-checkout:hover { background: #1fb855; }
.btn-checkout:disabled { background: #e3e3e3; color: #999; cursor: not-allowed; }

/* ===== Modal ===== */
[hidden] { display: none !important; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 110; display: grid; place-items: center; padding: 20px; }
.modal { position: relative; background: #fff; border-radius: var(--radius); max-width: 760px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,.45); border: none; color: #fff; font-size: 24px; width: 36px; height: 36px; border-radius: 999px; cursor: pointer; z-index: 2; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-body > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; background: #f4f4f4; }
.modal-info { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.modal-info .card-cat { font-size: 13px; }
.modal-info h2 { font-size: 24px; color: #333; }
.modal-info .card-price { font-size: 28px; }
.modal-info p { color: #777; }

/* ===== Popup de cantidad ===== */
.qm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 130; display: grid; place-items: center; padding: 20px; animation: qmFade .18s ease; }
@keyframes qmFade { from { opacity: 0; } to { opacity: 1; } }
.qty-modal { position: relative; background: #fff; border-radius: 16px; max-width: 440px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.28); animation: qmPop .2s cubic-bezier(.22,.61,.36,1); }
@keyframes qmPop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.qm-close { position: absolute; top: 10px; right: 12px; background: var(--bg-soft); border: none; color: #555; font-size: 22px; width: 34px; height: 34px; border-radius: 999px; cursor: pointer; line-height: 1; transition: background .15s; }
.qm-close:hover { background: #e6e6e6; }
.qm-content { display: flex; gap: 18px; padding: 26px 24px 24px; align-items: stretch; }
.qm-content > img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; background: #f4f4f4; flex-shrink: 0; }
.qm-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.qm-info h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin: 0; line-height: 1.25; }
.qm-price { font-size: 20px; font-weight: 800; color: var(--green); display: flex; align-items: baseline; gap: 8px; }
.qm-price .old { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.qm-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.qm-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; width: fit-content; }
.qm-qty button { width: 38px; height: 40px; border: none; background: var(--bg-soft); color: var(--dark); font-size: 20px; cursor: pointer; line-height: 1; transition: background .15s; }
.qm-qty button:hover { background: #e6e6e6; }
.qm-qty input { width: 54px; height: 40px; border: none; text-align: center; font-family: inherit; font-size: 16px; font-weight: 600; color: var(--dark); -moz-appearance: textfield; }
.qm-qty input::-webkit-outer-spin-button, .qm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qm-confirm { margin-top: 10px; width: 100%; justify-content: center; }
@media (max-width: 480px) {
  .qm-content { flex-direction: column; align-items: center; text-align: center; }
  .qm-content > img { width: 130px; height: 130px; }
  .qm-info { align-items: center; }
}

/* ===== Breadcrumb ===== */
.breadcrumb { margin: 26px 0 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--green); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #bbb; }

/* ===== Página de categoría ===== */
.cat-page { padding-top: 24px; padding-bottom: 50px; }

/* Banner de promociones */
.cat-promo { display: block; border-radius: 18px; overflow: hidden; margin: 0 0 30px; box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.cat-promo img { width: 100%; height: auto; display: block; transition: transform 1s cubic-bezier(.22,.61,.36,1); }
.cat-promo:hover img { transform: scale(1.03); }

.cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; }
.cat-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.sidebar-box h4 { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: var(--dark); padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* Slider de precio doble */
.price-slider { position: relative; height: 26px; margin: 6px 2px 2px; }
.price-slider .ps-track { position: absolute; top: 50%; left: 0; right: 0; height: 5px; transform: translateY(-50%); background: var(--border); border-radius: 4px; }
.price-slider .ps-range { position: absolute; top: 0; height: 100%; background: var(--green); border-radius: 4px; }
.price-slider input[type="range"] {
  position: absolute; top: 0; left: 0; width: 100%; height: 26px; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--green);
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); margin-top: 0;
}
.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 3px solid var(--green); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.price-slider input[type="range"]::-webkit-slider-runnable-track { background: none; }
.price-slider-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.price-vals { font-size: 13px; color: var(--muted); }
.price-vals strong { color: var(--dark); font-weight: 700; }
.btn-filtrar { background: #fff; color: var(--green); border: 2px solid var(--green); padding: 9px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, color .15s; }
.btn-filtrar:hover { background: var(--green); color: #fff; }

.cat-sidebar-list { list-style: none; margin: 0; padding: 0; }
.cat-sidebar-list li { border-bottom: 1px solid var(--bg-soft); }
.cat-sidebar-list li:last-child { border-bottom: none; }
.cat-sidebar-list a { display: flex; justify-content: space-between; padding: 10px 10px; font-size: 14px; color: #555; border-radius: 8px; transition: background .15s, color .15s; cursor: pointer; }
.cat-sidebar-list a:hover { color: var(--green); background: var(--bg-soft); }
.cat-sidebar-list a.active { color: var(--green); font-weight: 700; background: rgba(31,157,85,.08); }
.cat-sidebar-list a span { color: var(--muted); font-size: 13px; }

/* Título centrado y resaltado, en línea con contador y orden */
.cat-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.cat-count-cell { justify-self: start; }
.cat-main-head { text-align: center; justify-self: center; }
.cat-main-title { font-size: 44px; font-weight: 800; color: var(--dark); margin: 0 0 2px; letter-spacing: -.5px; line-height: 1.05; }
.cat-title-line { display: inline-block; width: 130px; height: 5px; border-radius: 4px; background: var(--green); }
.cat-toolbar .muted { font-size: 14px; }
.cat-toolbar .sort-field { justify-self: end; }
.sort-field { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort-field select {
  font-family: inherit; font-size: 14px; color: var(--dark); cursor: pointer;
  padding: 9px 32px 9px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  transition: border-color .15s, box-shadow .15s;
}
.sort-field select:hover { border-color: var(--green); }
.sort-field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,157,85,.12); }
.cat-main .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }

/* Filtros mobile (drawer). Ocultos en desktop */
.cat-filter-btn { display: none; }
.filters-head { display: none; }
.filters-apply { display: none; }
.filters-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 125; }
.navdrop-overlay { display: none; }

/* ===== Página de producto ===== */
.product-page { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; margin-bottom: 36px; align-items: center; }
.product-gallery-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 440px; width: 100%; margin: 0 auto; }
.product-gallery { position: relative; background: #f4f4f4; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: grid; place-items: center; }
.product-gallery img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery .badge { position: absolute; top: 14px; left: 14px; background: var(--pink); color: #fff; font-weight: 700; font-size: 14px; padding: 5px 11px; border-radius: 7px; z-index: 2; }
.gallery-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery-thumb { width: 84px; height: 84px; padding: 4px; border: 2px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; transition: border-color .15s, transform .15s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumb:hover { border-color: #bdbdbd; transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--green); }
.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-info .card-cat { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.product-info .card-cat:hover { color: var(--green); }
.product-info h1 { font-size: 30px; font-weight: 800; color: var(--dark); line-height: 1.2; }
.product-price { font-size: 32px; font-weight: 800; color: var(--green); }
.product-price .old { font-size: 18px; color: var(--muted); text-decoration: line-through; margin-left: 12px; font-weight: 400; }
.product-stock .in-stock { color: var(--green); font-weight: 600; font-size: 14px; }
.product-stock .no-stock { color: var(--pink); font-weight: 600; font-size: 14px; }
.product-short { color: #666; line-height: 1.6; }
.product-buy { display: flex; align-items: stretch; gap: 14px; margin-top: 6px; }
.qtybox { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qtybox button { width: 44px; border: none; background: var(--bg-soft); font-size: 20px; cursor: pointer; color: #444; }
.qtybox button:hover { background: #e9e9e9; }
.qtybox input { width: 56px; text-align: center; border: none; font-size: 16px; font-family: inherit; -moz-appearance: textfield; }
.qtybox input::-webkit-outer-spin-button, .qtybox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-buy { width: auto; flex: 1; max-width: 320px; margin-top: 0; }
.product-meta { list-style: none; margin: 10px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.product-meta li { font-size: 14px; color: #666; }
.product-meta a { color: var(--green); }
.product-meta a:hover { text-decoration: underline; }

/* Tabs */
.product-tabs { margin-bottom: 44px; }
.tabs-head { display: flex; gap: 6px; border-bottom: 2px solid var(--border); }
.tab-btn { background: none; border: none; padding: 12px 20px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn:hover { color: var(--dark); }
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-pane { display: none; padding: 22px 4px; color: #666; line-height: 1.7; }
.tab-pane.active { display: block; }
.info-table { width: 100%; border-collapse: collapse; max-width: 520px; }
.info-table th, .info-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); font-size: 14px; }
.info-table th { background: var(--bg-soft); width: 180px; color: #444; }

/* Relacionados */
.related { text-align: center; }
.related .panel-title { text-align: center; }
.related .carousel-wrap { margin-top: 18px; }
.related .carousel { text-align: left; }
/* Cuando hay pocos productos, centrar las cards */
.related .carousel.few { display: flex; justify-content: center; flex-wrap: wrap; grid-auto-flow: unset; }
.related .carousel.few .card { width: 240px; flex: 0 0 240px; }

/* ===== Página de error / 404 ===== */
.error-section { text-align: center; padding: 70px 20px 90px; max-width: 720px; margin: 0 auto; }
.error-code { font-size: clamp(96px, 18vw, 190px); font-weight: 800; line-height: .95; color: var(--green); letter-spacing: -3px; }
.error-emoji { font-size: 48px; margin-bottom: 6px; }
.error-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--dark); margin: 12px 0 10px; }
.error-text { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto 28px; line-height: 1.6; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.error-actions a { padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: all .15s; }
.error-actions .btn-primary { background: var(--green); color: #fff; border: 2px solid var(--green); }
.error-actions .btn-primary:hover { filter: brightness(.94); transform: translateY(-1px); }
.error-actions .btn-ghost { background: #fff; color: var(--dark); border: 2px solid var(--border); }
.error-actions .btn-ghost:hover { border-color: var(--green); color: var(--green); }
.error-cats { margin-top: 42px; }
.error-cats h3 { font-size: 15px; color: #444; margin-bottom: 14px; font-weight: 700; }
.error-cat-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.error-cat-links a { background: var(--bg-soft); border: 1px solid var(--border); padding: 8px 16px; border-radius: 999px; font-size: 14px; color: #444; text-decoration: none; transition: all .15s; }
.error-cat-links a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .carousel { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .cat-carousel { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
}
@media (max-width: 900px) {
  .banners { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .kitchen-grid { grid-template-columns: minmax(0, 1fr); }
  .promo-tall { min-height: 220px; }
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .cat-sidebar { position: static; }
  .product-page { grid-template-columns: 1fr; gap: 24px; }
  .coupon-banner { grid-template-columns: 1fr; gap: 14px; text-align: center; padding: 22px; }
  .coupon-off { font-size: 44px; }
  .coupon-watermark { font-size: 90px; right: 50%; transform: translate(50%, -50%); }
  .coupon-code { justify-self: center; }
}
@media (max-width: 720px) {
  .header-inner { display: flex; flex-wrap: wrap; }
  .search { order: 3; flex: 1 1 100%; max-width: none; justify-self: auto; }
  .nav-inner { gap: 18px; overflow-x: auto; }
  .carousel { grid-auto-columns: calc((100% - 18px) / 2); }
  .cat-carousel { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .carousel.cols-3 { grid-auto-columns: calc((100% - 18px) / 2); }
  .kitchen-cocina-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-toolbar { grid-template-columns: 1fr; justify-items: center; gap: 12px; text-align: center; }
  .cat-count-cell, .cat-toolbar .sort-field { justify-self: center; }
  .cat-main-title { font-size: 32px; }
  .hero { padding: 32px 24px; }
  .modal-body { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ===== Barra inferior tipo app + hoja de categorías (mobile) ===== */
.mobile-tabbar { display: none; }
.pg-toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 200;
  transform: translateX(-50%) translateY(12px);
  background: var(--dark); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.pg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Notificación al añadir al carrito */
.cart-toast {
  position: fixed; top: 90px; right: 20px; z-index: 210; width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 16px; padding: 16px 16px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22), 0 4px 12px rgba(0,0,0,.10);
  border: 1px solid rgba(0,0,0,.05);
  opacity: 0; transform: translateY(-14px) scale(.98); pointer-events: none;
  transition: opacity .26s ease, transform .26s cubic-bezier(.22,.61,.36,1);
  overflow: hidden;
}
.cart-toast.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cart-toast-x {
  position: absolute; top: 8px; right: 10px; border: none; background: none;
  font-size: 22px; line-height: 1; color: #9aa0a6; cursor: pointer; padding: 4px;
}
.cart-toast-x:hover { color: var(--dark); }
.cart-toast-head { display: flex; align-items: center; gap: 12px; padding-right: 20px; }
.cart-toast-check {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(59,177,67,.4);
}
.cart-toast-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-toast-text strong { font-size: 15px; color: var(--dark); }
.cart-toast-total { font-size: 13px; color: #5f6368; }
.cart-toast-total b { color: var(--dark); font-weight: 700; }
.cart-toast-actions { display: flex; gap: 8px; margin-top: 14px; }
.cart-toast-btn {
  flex: 1 1 0; min-width: 0; border-radius: 10px; padding: 11px 10px;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  border: 1.5px solid var(--border); -webkit-tap-highlight-color: transparent;
}
.cart-toast-btn.ghost { background: #fff; color: var(--dark); }
.cart-toast-btn.ghost:hover { background: #f5f5f5; }
.cart-toast-btn.pay { background: var(--green); color: #fff; border-color: var(--green); }
.cart-toast-btn.pay:hover { background: var(--green-dark); border-color: var(--green-dark); }
.cart-toast-btn:active { transform: translateY(1px); }
.cart-toast-bar { margin: 12px -16px -14px; height: 3px; background: rgba(0,0,0,.06); }
.cart-toast-bar span {
  display: block; height: 100%; width: 100%; background: var(--green);
  transform-origin: left center; animation: cart-toast-progress 4.5s linear forwards;
}
@keyframes cart-toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 760px) {
  .cart-toast { top: auto; bottom: 84px; left: 12px; right: 12px; width: auto; max-width: none; }
  .cart-toast.show { transform: translateY(0) scale(1); }
  .cart-toast { transform: translateY(16px) scale(.98); }
}

/* ===== Cuentas: modal de login / panel ===== */
.account { cursor: pointer; }
.auth-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55); padding: 20px; animation: auth-fade .2s ease;
}
@keyframes auth-fade { from { opacity: 0; } to { opacity: 1; } }
.auth-modal {
  position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 18px;
  padding: 30px 26px 26px; box-shadow: 0 24px 70px rgba(0,0,0,.3);
  max-height: 90vh; overflow-y: auto; animation: auth-pop .24s cubic-bezier(.22,.61,.36,1);
}
@keyframes auth-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.auth-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 26px; line-height: 1; color: #9aa0a6; cursor: pointer;
}
.auth-close:hover { color: var(--dark); }
.auth-head { text-align: center; margin-bottom: 18px; }
.auth-head h2 { font-size: 23px; color: var(--dark); }
.auth-head p { font-size: 14px; color: #5f6368; margin-top: 4px; }
.auth-tabs { display: flex; gap: 6px; background: #f1f3f4; padding: 5px; border-radius: 12px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; border: none; background: none; padding: 10px; border-radius: 9px;
  font-family: inherit; font-size: 14px; font-weight: 700; color: #5f6368; cursor: pointer;
}
.auth-tab.active { background: #fff; color: var(--dark); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.auth-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 12px;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--dark); cursor: pointer;
}
.auth-google:hover { background: #f8f9fa; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #9aa0a6; font-size: 13px; margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #5f6368; }
.auth-form input {
  border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--dark);
}
.auth-form input:focus { outline: none; border-color: var(--green); }
.auth-submit {
  margin-top: 4px; border: none; background: var(--green); color: #fff; border-radius: 12px;
  padding: 13px; font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(59,177,67,.32);
}
.auth-submit:hover { background: var(--green-dark); }
.auth-submit:active { transform: translateY(1px); }
.auth-msg { margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 14px; text-align: center; background: #eef6ef; color: #2e7d32; }
.auth-msg.error { background: #fdecea; color: #c62828; }

/* Aviso "confirmá tu correo" */
.auth-verify { text-align: center; display: flex; flex-direction: column; gap: 12px; padding: 6px 0 2px; }
.auth-verify-ico { font-size: 40px; line-height: 1; }
.auth-verify p { margin: 0; font-size: 15px; color: var(--dark); line-height: 1.5; }
.auth-verify-tip { font-size: 13px; color: var(--muted); }
.auth-link {
  background: none; border: none; color: var(--green-dark); font-family: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px; text-decoration: underline;
}
.auth-link:hover { color: var(--green); }

/* Panel de cuenta logueada */
.account-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 20px; }
.account-avatar {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.account-id { display: flex; flex-direction: column; min-width: 0; }
.account-id strong { font-size: 18px; color: var(--dark); }
.account-id span { font-size: 13px; color: #5f6368; overflow: hidden; text-overflow: ellipsis; }
.account-actions { display: flex; flex-direction: column; gap: 8px; }
.account-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 1.5px solid var(--border); background: #fff; border-radius: 12px; padding: 15px 16px;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--dark); cursor: pointer;
}
.account-row:hover { background: #f8f9fa; }
.account-row.danger { color: #c62828; justify-content: center; }
.account-chevron { color: #9aa0a6; font-size: 20px; }

/* Historial de compras */
.orders-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.orders-head h2 { font-size: 20px; color: var(--dark); }
.orders-back { border: none; background: none; font-size: 26px; line-height: 1; color: var(--dark); cursor: pointer; padding: 0 6px 0 0; }
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.orders-loading, .orders-empty { text-align: center; color: #5f6368; padding: 24px 0; font-size: 14px; }
.order-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-date { font-size: 13px; color: #5f6368; }
.order-total { color: var(--green-dark); font-size: 16px; }
.order-items { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--dark); }
.order-items li span { color: #5f6368; white-space: nowrap; }

/* Hoja deslizable de categorías */
.sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 115; }
.cat-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: #fff; border-radius: 20px 20px 0 0;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.22,.61,.36,1);
  max-height: 82vh; overflow-y: auto; box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}
.cat-sheet.open { transform: translateY(0); }
.cat-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 10px; position: sticky; top: 0; background: #fff;
}
.cat-sheet-head h3 { font-size: 19px; font-weight: 800; color: var(--dark); }
.cat-sheet-close { background: none; border: none; font-size: 30px; line-height: 1; color: #999; cursor: pointer; }
.cat-sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 6px 16px 22px; }
.cat-sheet-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--dark); font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2; }
.cat-sheet-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--bg-soft); }
.cat-sheet-item:active img { filter: brightness(.94); }

/* Lista de secciones del index dentro de la hoja */
.sheet-list { padding: 4px 8px 22px; }
.sheet-list li { border-bottom: 1px solid var(--border); }
.sheet-list li:last-child { border-bottom: none; }
.sheet-list-item {
  display: block; padding: 16px 12px; font-size: 16px; font-weight: 600;
  color: var(--dark); cursor: pointer;
}
.sheet-list-item:active { background: var(--bg-soft); }

/* Compensa el header sticky al saltar a una sección */
[id^="sec-"] { scroll-margin-top: 120px; }

@media (max-width: 760px) {
  /* Header: solo logo + búsqueda (carrito y cuenta van a la barra inferior) */
  .header-inner { display: flex; flex-wrap: nowrap; gap: 12px; padding: 12px 16px; }
  .header-actions { display: none; }
  .search { order: 0; flex: 1; max-width: none; flex-basis: auto; justify-self: auto; }
  .logo img { height: 32px; }
  .topbar { font-size: 13px; padding: 8px 14px; }

  /* Nav de categorías scrolleable, sin recortar */
  .nav-inner { justify-content: flex-start; gap: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-link { padding: 13px 0; font-size: 14px; }

  /* Paneles y contenedores más compactos */
  .container { padding: 0 14px; }
  .panel { padding: 18px 14px 22px; margin-top: 18px; }
  .panel-title { font-size: 22px; }

  /* Tarjetas de categoría más grandes (~2 por pantalla) */
  .cat-carousel { grid-auto-columns: calc((100% - 18px) / 2); }

  /* ===== Página de categoría en mobile ===== */
  /* Toolbar: título a la izquierda, botón Filtrar al lado */
  .cat-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    text-align: center; justify-items: initial; padding-bottom: 18px; margin-bottom: 18px;
  }
  .cat-main-head { flex-basis: 100%; order: 0; min-width: 0; text-align: center; justify-self: initial; }
  .cat-main-title { font-size: 28px; margin-bottom: 8px; }
  .cat-title-line { display: inline-block; width: 56px; height: 4px; }
  .cat-count-cell { flex-basis: 100%; order: 1; text-align: center; justify-self: initial; margin-top: -2px; }

  /* Fila de controles: Ordenar (izq) + Filtrar (der), mitad y mitad */
  .cat-toolbar .sort-field { order: 2; flex: 0 0 calc(50% - 6px); width: calc(50% - 6px); min-width: 0; gap: 0; }
  .cat-toolbar .sort-field > span { display: none; }
  .cat-toolbar .sort-field select {
    width: 100%; flex: 1; padding: 12px 36px 12px 16px; border-radius: 12px;
    font-weight: 600; background-color: #fff;
  }
  .cat-filter-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; order: 3; flex: 0 0 calc(50% - 6px); width: calc(50% - 6px); min-width: 0;
    background: var(--green); color: #fff; border: none; border-radius: 12px;
    padding: 12px 16px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
    box-shadow: 0 6px 16px rgba(59,177,67,.32);
    -webkit-tap-highlight-color: transparent;
  }
  .cat-filter-btn:active { background: var(--green-dark); transform: translateY(1px); }

  /* Grilla de 2 productos por fila */
  .cat-main .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* En mobile el carrusel se desliza con el dedo: ocultamos flechas */
  .car-arrow { display: none; }

  /* Fondo oscurecido detrás de la isla flotante */
  .navdrop-overlay:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 118; }

  /* Dropdowns del navbar (CATEGORÍAS / OFERTAS) en mobile: isla flotante despegada */
  .dropdown.m-open {
    display: block; position: fixed; left: 12px; right: 12px; width: auto;
    min-width: 0; max-width: none; transform: none; margin-top: 10px;
    max-height: 72vh; overflow-y: auto; z-index: 120;
    border-radius: 18px; border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 22px 55px rgba(0,0,0,.32), 0 4px 12px rgba(0,0,0,.14);
    animation: navdrop-pop .22s cubic-bezier(.22,.61,.36,1);
  }
  @keyframes navdrop-pop {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .dropdown.m-open .mega { grid-template-columns: 1fr; }
  .dropdown.m-open .mega-products { max-height: none; padding: 14px 16px 18px; }
  .dropdown.m-open .mega.mega-single .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* CATEGORÍAS en mobile: solo la lista (sin grilla de productos) para que sea una isla compacta */
  .dropdown.m-open .mega:not(.mega-single) .mega-products { display: none; }
  .dropdown.m-open .mega-cats { border-right: none; padding: 14px 0; }
  .dropdown.m-open .mega-cats h4 { margin: 0 18px 8px; font-size: 17px; }
  .dropdown.m-open .mega-cats li { padding: 12px 18px; }

  /* Sidebar como drawer lateral deslizable */
  .cat-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 86%; max-width: 330px;
    z-index: 130; background: #fff; gap: 18px; padding: 0 16px 16px;
    transform: translateX(-100%); transition: transform .3s cubic-bezier(.22,.61,.36,1);
    overflow-y: auto; box-shadow: 2px 0 24px rgba(0,0,0,.2);
  }
  body.filters-open .cat-sidebar { transform: translateX(0); }
  .filters-head {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: #fff; z-index: 2;
    padding: 16px 4px 12px; border-bottom: 1px solid var(--border); margin: 0 -16px 4px; padding-left: 16px; padding-right: 16px;
  }
  .filters-head h3 { font-size: 19px; font-weight: 800; color: var(--dark); }
  .filters-close { background: none; border: none; font-size: 30px; line-height: 1; color: #999; cursor: pointer; }
  .filters-apply {
    display: block; position: sticky; bottom: 0; width: 100%; margin-top: 6px;
    background: var(--green); color: #fff; border: none; border-radius: 12px;
    padding: 14px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  }
  .filters-apply:active { background: var(--green-dark); }

  /* Página de producto en una columna */
  .product-info h1 { font-size: 22px; }
  .product-price { font-size: 26px; }
  .product-gallery-wrap { max-width: 100%; }

  /* Barra inferior fija tipo app */
  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 -2px 14px rgba(0,0,0,.08);
    padding: 6px 2px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; cursor: pointer; font-family: inherit;
    color: #6b7280; font-size: 11px; font-weight: 600; text-decoration: none; padding: 4px 0;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar-item svg { width: 23px; height: 23px; }
  .tabbar-item.active { color: var(--green); }
  .tabbar-item:active { opacity: .6; }
  .tabbar-ico-wrap { position: relative; display: inline-flex; }
  .tabbar-badge {
    position: absolute; top: -7px; right: -9px; background: var(--pink); color: #fff;
    font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px;
    display: grid; place-items: center; padding: 0 4px;
  }

  /* Espacio para que la barra no tape el contenido / footer */
  body { padding-bottom: 62px; }
}

@media (max-width: 460px) {
  .carousel { grid-auto-columns: calc((100% - 14px) / 2); }
  .carousel.cols-3 { grid-auto-columns: calc((100% - 14px) / 2); }
  .cat-sheet-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   VIDA: animaciones, urgencia y prueba social
   ============================================================ */

/* ===== Aparición al hacer scroll ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.benefits .benefit.reveal:nth-child(2) { transition-delay: .09s; }
.benefits .benefit.reveal:nth-child(3) { transition-delay: .18s; }
.benefits .benefit.reveal:nth-child(4) { transition-delay: .27s; }
.banners .promo.reveal:nth-child(2) { transition-delay: .1s; }
.banners .promo.reveal:nth-child(3) { transition-delay: .2s; }

/* ===== Oferta relámpago con cuenta regresiva ===== */
.flash-sale {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 26px; border-radius: 22px; padding: 30px 38px; margin-top: 34px;
  background: linear-gradient(120deg, var(--pink) 0%, var(--pink-dark) 60%, #7a1250 100%);
  color: #fff; box-shadow: 0 18px 44px rgba(214,36,140,.30);
}
.flash-sale::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.18), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(0,0,0,.18), transparent 50%);
}
.flash-sale::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); animation: flashSweep 5s ease-in-out infinite;
}
@keyframes flashSweep { 0%,72% { left: -60%; } 100% { left: 130%; } }
.flash-left { min-width: 250px; }
.flash-kicker {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; background: rgba(255,255,255,.18);
  padding: 6px 13px; border-radius: 999px; backdrop-filter: blur(4px);
}
.flash-kicker svg { width: 15px; height: 15px; animation: flashBolt 1.3s ease-in-out infinite; }
@keyframes flashBolt { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .65; } }
.flash-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.05; margin-top: 12px; }
.flash-title em { font-style: normal; color: #ffe14d; }
.flash-sub { font-size: 15px; opacity: .92; margin-top: 6px; }
.flash-right { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.flash-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .9; }
.flash-timer { display: flex; align-items: center; gap: 8px; }
.ft-box {
  background: #fff; color: var(--pink-dark); border-radius: 12px; padding: 8px 4px; min-width: 64px;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.ft-box b { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ft-box span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.ft-sep { font-size: 26px; font-weight: 800; opacity: .8; }
.flash-cta {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--pink-dark);
  font-weight: 800; font-size: 15px; padding: 12px 26px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.20); transition: transform .18s ease, box-shadow .18s ease;
}
.flash-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 30px rgba(0,0,0,.28); }
@media (max-width: 720px) {
  .flash-sale { padding: 24px 22px; justify-content: center; text-align: center; }
  .flash-left { min-width: 0; }
  .flash-kicker { margin: 0 auto; }
  .ft-box { min-width: 56px; }
  .ft-box b { font-size: 26px; }
}

/* ===== Barra de estadísticas / prueba social ===== */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px;
  border-radius: 22px; padding: 34px 30px; background: var(--dark); color: #fff;
  position: relative; overflow: hidden; isolation: isolate;
}
.stats-bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 18% 0%, rgba(122,181,46,.32), transparent 45%),
    radial-gradient(circle at 85% 110%, rgba(214,36,140,.30), transparent 50%);
}
.stat { text-align: center; padding: 6px; }
.stat b {
  display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--green) 0%, #b6e36a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat:nth-child(even) b { background: linear-gradient(120deg, var(--pink) 0%, #ff7ac4 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { display: block; font-size: 14px; font-weight: 500; color: #cfd2d6; margin-top: 8px; }
@media (max-width: 720px) { .stats-bar { grid-template-columns: 1fr 1fr; gap: 10px; padding: 26px 16px; } }

/* ===== Pulso en los badges de oferta ===== */
.badge, .mini-badge { animation: badgePulse 1.8s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(214,36,140,.55); }
@keyframes badgePulse { 0% { box-shadow: 0 0 0 0 rgba(214,36,140,.5); } 70% { box-shadow: 0 0 0 9px rgba(214,36,140,0); } 100% { box-shadow: 0 0 0 0 rgba(214,36,140,0); } }

/* ===== Brillo recorriendo el CTA del spotlight ===== */
.spotlight-cta { position: relative; overflow: hidden; }
.spotlight-cta::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: ctaSheen 3.2s ease-in-out infinite;
}
@keyframes ctaSheen { 0%,65% { left: -75%; } 100% { left: 130%; } }

/* ===== Botón flotante de WhatsApp ===== */
.wa-float {
  position: fixed; right: 22px; bottom: 24px; z-index: 95;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c4a); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(18,140,74,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { width: 32px; height: 32px; position: relative; z-index: 1; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: 0; animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.85); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(18,140,74,.55); }
.wa-float-tip {
  position: absolute; right: 72px; white-space: nowrap; background: var(--dark); color: #fff;
  font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 10px;
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.wa-float-tip::after { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 10px; height: 10px; background: var(--dark); }
.wa-float:hover .wa-float-tip { opacity: 1; transform: translateX(0); }
@media (max-width: 760px) {
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 74px; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float-tip { display: none; }
}

/* ===== Volar al carrito ===== */
.fly-img {
  position: fixed; z-index: 200; border-radius: 12px; object-fit: cover; pointer-events: none;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .85s cubic-bezier(.55,-0.05,.35,1), opacity .85s ease;
}
.cart-bump { animation: cartBump .5s ease; }
@keyframes cartBump { 0%,100% { transform: scale(1); } 28% { transform: scale(1.28); } 60% { transform: scale(.9); } }

/* ===== Etiquetas en las tarjetas ===== */
.card-tags { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.card-tags .tag { font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.tag-new { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.tag-top { background: linear-gradient(135deg, #2b2f36, #11131a); }

/* ===== Página producto: confianza + barra de compra fija ===== */
.product-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.product-trust .pt { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: #444; }
.product-trust .pt svg { width: 21px; height: 21px; flex: 0 0 21px; color: var(--green); }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 62px; z-index: 70; display: none;
  align-items: center; gap: 12px; padding: 10px 16px;
  background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,.10);
}
.buybar-price { font-size: 20px; font-weight: 800; color: var(--dark); white-space: nowrap; }
.buybar-price .old { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.buybar .btn-add { flex: 1; margin: 0; }
@media (max-width: 760px) { .buybar { display: flex; } }

/* ===== Banner de categoría ===== */
.cat-hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 20px;
  padding: 48px 38px; margin: 0 0 28px; color: #fff; text-align: center;
  background: linear-gradient(135deg, #8cc63f 0%, var(--green) 50%, var(--green-dark) 100%);
  box-shadow: 0 16px 40px rgba(122,181,46,.30);
}
.cat-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% -30%, rgba(255,255,255,.28), transparent 60%);
}
.cat-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.95) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}
.cat-hero-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; background: rgba(255,255,255,.2); padding: 6px 16px; border-radius: 999px; }
.cat-hero-title { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; line-height: 1.05; margin-top: 14px; text-shadow: 0 2px 12px rgba(0,0,0,.12); }
.cat-hero-title::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.85); margin: 16px auto 0; }
.cat-hero-sub { font-size: 15px; opacity: .95; margin-top: 14px; }
.cat-empty { grid-column: 1 / -1; text-align: center; padding: 50px 24px; }
.cat-empty-emoji { font-size: 54px; line-height: 1; margin-bottom: 12px; }
.cat-empty h3 { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.cat-empty p { color: var(--muted); max-width: 460px; margin: 0 auto 20px; }

.cat-loadmore { display: flex; justify-content: center; padding: 28px 0 8px; }
.cat-loadmore .btn-primary { min-width: 220px; }

.cat-page .cat-main-head { display: none; }
@media (min-width: 761px) { .cat-page .cat-toolbar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cat-hero { padding: 24px 22px; } }

/* ===== Lo más buscado: filtros rápidos ===== */
.qf-head { margin-bottom: 6px; text-align: center; }
.qf-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.qf-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 22px; }
.qf-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  font-family: inherit; font-weight: 600; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.qf-tab svg { opacity: .85; }
.qf-tab:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.qf-tab.active {
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: 0 8px 18px rgba(122,181,46,.30);
}
.qf-tab.qf-hot:hover { border-color: var(--pink); color: var(--pink); }
.qf-tab.qf-hot.active {
  background: var(--pink); border-color: var(--pink);
  box-shadow: 0 8px 18px rgba(214,36,140,.30);
}
.qf-tab.active svg { opacity: 1; }

/* ===== Banda de marca / identidad JC ===== */
.brand-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 26px; margin: 40px 0; padding: 64px 48px;
  color: #fff; text-align: center;
  background: linear-gradient(135deg, #8cc63f 0%, var(--green) 48%, var(--green-dark) 100%);
  box-shadow: 0 24px 60px rgba(122,181,46,.30);
}
.brand-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 50% -20%, rgba(255,255,255,.30), transparent 55%);
}
.brand-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .10;
  background-image: radial-gradient(rgba(255,255,255,.95) 1.6px, transparent 1.7px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 45%, #000 30%, transparent 72%);
}
.brand-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  background: rgba(255,255,255,.16); padding: 8px 18px; border-radius: 999px;
}
.brand-title {
  font-size: clamp(28px, 4.4vw, 50px); font-weight: 800; line-height: 1.08;
  margin: 18px auto 0; max-width: 20ch; text-shadow: 0 2px 14px rgba(0,0,0,.14);
}
.brand-title em { color: #ffe14d; font-style: normal; }
.brand-text {
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.65; opacity: .96;
  max-width: 62ch; margin: 18px auto 0;
}
.brand-sign { display: inline-block; margin-top: 20px; font-weight: 700; font-size: 15px; opacity: .92; }
.brand-stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 40px; }
.stamp {
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-content: center; align-items: center; text-align: center; padding: 14px;
  background: rgba(255,255,255,.10); border: 2px dashed rgba(255,255,255,.55); color: #fff;
  transition: transform .22s ease, background .22s ease;
}
.stamp svg { width: 30px; height: 30px; margin: 0 auto 7px; display: block; }
.stamp b { font-size: 13px; font-weight: 700; line-height: 1.25; }
.stamp span { display: block; font-size: 10px; opacity: .82; margin-top: 4px; letter-spacing: .6px; text-transform: uppercase; }
.brand-stamps .stamp:nth-child(1) { transform: rotate(-5deg); }
.brand-stamps .stamp:nth-child(3) { transform: rotate(5deg); }
.brand-stamps .stamp:hover { transform: translateY(-4px) rotate(0); background: rgba(255,255,255,.18); }
@media (max-width: 760px) {
  .brand-band { padding: 44px 22px; border-radius: 20px; }
  .stamp { width: 108px; height: 108px; }
}

/* ============================================================
   CHECKOUT (modal de datos de envío antes de Mercado Pago)
   ============================================================ */
.checkout-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20, 6, 20, .55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.checkout-overlay[hidden] { display: none; }
.checkout-modal {
  background: #fff; width: 100%; max-width: 560px;
  border-radius: 22px; padding: 30px 28px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  position: relative; animation: ckIn .26s ease;
}
@keyframes ckIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.checkout-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 28px; line-height: 1;
  color: #9a8a95; cursor: pointer;
}
.checkout-close:hover { color: #d6248c; }
.checkout-title { font-size: 22px; font-weight: 800; color: #2a1626; margin: 0 0 4px; }
.checkout-sub { font-size: 14px; color: #6f5f6a; margin: 0 0 18px; }
.checkout-form { display: grid; grid-template-columns: 1fr; gap: 13px; }
.checkout-form > label,
.checkout-row > label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: #4a3a44;
}
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  border: 1.5px solid #e6dde2; border-radius: 11px;
  padding: 11px 13px; font: inherit; font-size: 14.5px; color: #2a1626;
  background: #fbf9fb; transition: border-color .18s ease, background .18s ease;
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  outline: none; border-color: #7ab52e; background: #fff;
}
.checkout-form textarea { resize: vertical; min-height: 64px; }
.checkout-summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checkout-summary li { display: flex; justify-content: space-between; font-size: 14px; color: #5a4a54; gap: 12px; }
.checkout-summary li b { color: #2a1626; font-weight: 700; white-space: nowrap; }
.checkout-summary {
  grid-column: 1 / -1; margin-top: 6px;
  border-top: 1.5px dashed #ecdfe7; padding-top: 14px;
  display: flex; flex-direction: column; gap: 7px;
}
.checkout-summary .ck-line {
  display: flex; justify-content: space-between; font-size: 14px; color: #5a4a54;
}
.checkout-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 18px; font-weight: 800; color: #2a1626; margin-top: 4px;
}
.checkout-total strong { color: #7ab52e; font-size: 22px; }
.checkout-msg {
  grid-column: 1 / -1; font-size: 13.5px; padding: 9px 12px;
  border-radius: 10px; display: none;
}
.checkout-msg.error { display: block; background: #fdecef; color: #c0265a; }
.checkout-msg.info { display: block; background: #eef7e3; color: #4d7a16; }
.checkout-ship {
  grid-column: 1 / -1; font-size: 13.5px; line-height: 1.4;
  padding: 11px 13px; border-radius: 11px; background: #f4f6f8; color: #3a4150;
  display: flex; gap: 8px; align-items: flex-start;
}
.checkout-ship .ship-ico { flex: none; }
.checkout-ship .ship-ok { color: #1c8a4d; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.checkout-ship .ship-info { display: flex; gap: 8px; align-items: flex-start; }
.checkout-ship .ship-info b { color: #2a1626; }
.checkout-pay {
  grid-column: 1 / -1; margin-top: 6px;
  background: linear-gradient(90deg, #7ab52e 0%, #6aa322 100%);
  color: #fff; border: none; border-radius: 13px;
  padding: 15px 20px; font-size: 16px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 8px 20px rgba(122,181,46,.32);
  transition: transform .16s ease, box-shadow .16s ease;
}
.checkout-pay:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(122,181,46,.4); }
.checkout-pay:disabled { opacity: .6; cursor: default; transform: none; }
.checkout-secure {
  grid-column: 1 / -1; text-align: center; font-size: 12px;
  color: #8a7a84; margin-top: 4px; display: flex;
  align-items: center; justify-content: center; gap: 6px;
}
.checkout-secure svg { width: 14px; height: 14px; }
@media (max-width: 560px) {
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-modal { padding: 26px 20px 22px; border-radius: 18px; }
}

/* ----- Checkout API: pasos + formulario de tarjeta embebido ----- */
.co-steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 16px; }
.co-steps .co-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: #efe7ec; color: #9a8a95;
}
.co-steps .co-dot.active { background: var(--green); color: #fff; }
.co-steps .co-dot.done { background: #d8eec0; color: var(--green-dark); }
.co-steps i { width: 36px; height: 3px; border-radius: 99px; background: #efe7ec; display: block; }
.co-steps i.on { background: var(--green); }
.co-back {
  background: none; border: none; cursor: pointer; padding: 0;
  font: inherit; font-size: 13.5px; font-weight: 700; color: #6f5f6a;
  margin-bottom: 10px;
}
.co-back:hover { color: var(--green-dark); }
#payment-brick-container { min-height: 220px; margin-top: 6px; }
.co-loading {
  text-align: center; color: #8a7a84; font-size: 14px; padding: 40px 10px;
}
.co-loading::before {
  content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 12px;
  border: 3px solid #e6dde2; border-top-color: var(--green);
  border-radius: 50%; animation: sp .7s linear infinite;
}
#co-step-pago .checkout-msg { margin-top: 12px; }

/* ===== Variantes de color ===== */
/* Tarjeta: puntitos de color */
.card-colors { display: flex; align-items: center; gap: 5px; margin: 2px 0; }
.cc-dot { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.cc-dot img { width: 100%; height: 100%; object-fit: cover; }
.cc-more { font-size: 11px; font-weight: 700; color: var(--muted); }

/* Página de producto: selector de color */
.product-colors { margin: 4px 0 18px; }
.pc-label { display: block; font-size: 14px; color: #555; margin-bottom: 9px; }
.pc-label b { color: var(--dark); font-weight: 700; }
.pc-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.pc-sw {
  width: 54px; height: 54px; padding: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid var(--border); background: #fff; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.pc-sw img { width: 100%; height: 100%; object-fit: cover; }
.pc-sw:hover { transform: translateY(-2px); }
.pc-sw.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(122,181,46,.22); }

/* Popup de cantidad: selector de color */
.qm-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.qm-clabel { font-size: 13px; color: var(--muted); font-weight: 600; }
.qm-sw {
  width: 40px; height: 40px; padding: 0; border-radius: 9px; overflow: hidden;
  border: 2px solid var(--border); background: #fff; cursor: pointer; transition: border-color .15s;
}
.qm-sw img { width: 100%; height: 100%; object-fit: cover; }
.qm-sw.active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(122,181,46,.22); }

/* Carrito: etiqueta de color del ítem */
.cart-item-var {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--green-dark);
  background: rgba(122,181,46,.14); padding: 1px 8px; border-radius: 999px; margin-left: 4px;
}

/* Estado del pedido en el historial */
.order-estado {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; margin: 6px 0 2px;
  letter-spacing: .3px;
}
.order-estado.ok { background: #e7f6d8; color: #4d7a16; }
.order-estado.pend { background: #fff3d6; color: #9a6b00; }
.order-estado.fail { background: #fde0e6; color: #c0265a; }

/* ============================================================
   PÁGINA DE GRACIAS (retorno desde Mercado Pago)
   ============================================================ */
.thankyou {
  max-width: 540px; margin: 60px auto; text-align: center;
  background: #fff; border-radius: 24px; padding: 48px 36px;
  box-shadow: 0 18px 48px rgba(0,0,0,.08);
}
.ty-ic {
  width: 88px; height: 88px; margin: 0 auto 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.ty-ic svg { width: 46px; height: 46px; }
.ty-ic.ok { background: #e7f6d8; color: #5aa019; }
.ty-ic.pend { background: #fff3d6; color: #c79100; }
.ty-ic.fail { background: #fde0e6; color: #d6248c; }
.ty-title { font-size: 28px; font-weight: 800; color: #2a1626; margin: 0 0 10px; }
.ty-text { font-size: 16px; color: #6f5f6a; line-height: 1.55; margin: 0 auto 18px; max-width: 420px; }
.ty-ref {
  display: inline-block; background: #f6f0f4; color: #5a4a54;
  font-size: 13.5px; padding: 8px 16px; border-radius: 10px; margin-bottom: 24px;
}
.ty-ref b { color: #2a1626; }
.ty-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .thankyou { margin: 30px auto; padding: 38px 24px; border-radius: 18px; }
  .ty-title { font-size: 23px; }
}

/* Respeta usuarios que prefieren menos animación */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .flash-sale::after, .flash-kicker svg, .badge, .mini-badge, .spotlight-cta::after, .wa-float::before { animation: none !important; }
  .fly-img { display: none !important; }
}

/* ===== Páginas informativas (Sobre nosotros / Envíos) ===== */
.info-hero {
  text-align: center;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 28px;
  margin: 28px 0 36px;
}
.info-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.info-hero h1 { font-size: 34px; line-height: 1.2; max-width: 760px; margin: 0 auto 14px; }
.info-hero p { font-size: 17px; max-width: 680px; margin: 0 auto; opacity: 0.95; }
.info-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.info-hero .btn-ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.info-hero .btn-ghost:hover { background: rgba(255,255,255,0.28); }

.info-section { margin: 0 0 44px; }
.info-title {
  font-size: 24px; font-weight: 700; color: var(--dark);
  text-align: center; margin-bottom: 24px; position: relative;
}
.info-title::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--pink); border-radius: 3px; margin: 12px auto 0;
}
.info-text { max-width: 820px; margin: 0 auto; }
.info-text p { margin-bottom: 16px; font-size: 16.5px; color: #444; }

.info-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.info-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow);
}
.info-card-ic {
  width: 58px; height: 58px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(122,181,46,0.12); color: var(--green);
}
.info-card-ic svg { width: 28px; height: 28px; }
.info-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--dark); }
.info-card p { font-size: 14.5px; color: var(--muted); }

.info-split {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: stretch;
}
.info-split-text, .info-split-social {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.info-split .info-title { text-align: left; }
.info-split .info-title::after { margin: 12px 0 0; }
.info-split-text p { color: #444; margin-bottom: 16px; }
.info-contact { margin: 18px 0; }
.info-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #444; font-size: 15px; }
.info-contact svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }
.info-split-social h3 { font-size: 20px; margin-bottom: 8px; color: var(--dark); }
.info-split-social p { color: var(--muted); margin-bottom: 18px; }
.info-social { display: flex; flex-direction: column; gap: 12px; }
.info-soc {
  display: flex; align-items: center; gap: 12px; font-weight: 600;
  padding: 14px 18px; border-radius: 12px; color: #fff; transition: transform 0.15s, opacity 0.15s;
}
.info-soc:hover { transform: translateY(-2px); opacity: 0.92; }
.info-soc svg { width: 24px; height: 24px; }
.info-soc.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.info-soc.fb { background: #1877f2; }

/* Envíos: opciones de costo */
.ship-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ship-card {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
}
.ship-card.ship-free { border: 2px solid var(--green); }
.ship-tag {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.ship-tag.alt { background: var(--pink); }
.ship-card h3 { font-size: 19px; margin-bottom: 6px; color: var(--dark); }
.ship-price { font-size: 22px; font-weight: 800; color: var(--green); margin-bottom: 10px; }
.ship-card .ship-tag.alt + h3 + .ship-price { color: var(--pink); }
.ship-card p { color: #444; font-size: 15px; }
.ship-note {
  margin-top: 22px; background: var(--bg-soft); border: 1px dashed var(--green);
  border-radius: 12px; padding: 16px 20px; font-size: 15px; color: #444; text-align: center;
}

/* Pasos numerados */
.info-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-step {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow);
}
.info-step-num {
  width: 44px; height: 44px; margin: 0 auto 14px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 20px; font-weight: 800;
}
.info-step h3 { font-size: 16px; margin-bottom: 6px; color: var(--dark); }
.info-step p { font-size: 14px; color: var(--muted); }

/* CTA final */
.info-cta {
  text-align: center; background: var(--bg-soft); border-radius: var(--radius);
  padding: 46px 28px; margin: 0 0 40px;
}
.info-cta h2 { font-size: 26px; color: var(--dark); margin-bottom: 10px; }
.info-cta p { color: var(--muted); margin-bottom: 22px; font-size: 16px; }

/* Enlaces del footer (Información) */
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: inherit; transition: color 0.15s; }
.footer-links a:hover { color: var(--green); }

@media (max-width: 980px) {
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .info-steps { grid-template-columns: repeat(2, 1fr); }
  .info-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .info-hero { padding: 40px 20px; }
  .info-hero h1 { font-size: 26px; }
  .info-hero p { font-size: 15.5px; }
  .info-cards, .ship-options, .info-steps { grid-template-columns: 1fr; }
  .info-title { font-size: 21px; }
}

/* ===== Barra de envío gratis en el carrito ===== */
.cart-ship {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.cart-ship-msg { font-size: 13.5px; color: var(--text); margin-bottom: 9px; }
.cart-ship-msg b { color: var(--pink-dark); }
.cart-ship.done .cart-ship-msg { color: var(--green-dark); font-weight: 600; }
.cart-ship-bar {
  height: 8px; border-radius: 999px;
  background: #e3e6e2; overflow: hidden;
}
.cart-ship-bar span {
  display: block; height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  transition: width .35s ease;
}
.cart-ship.done .cart-ship-bar span { background: linear-gradient(90deg, var(--green), var(--green-dark)); }


/* ============================================================
   REDISEÑO EDITORIAL — jerarquía tipográfica, aire y carácter
   ============================================================ */
:root {
  --font-display: 'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  --paper: #faf8f2;
  --ink: #1e2227;
}

/* --- Tipografía display para los títulos grandes --- */
.panel-title, .panel-center, .spotlight-title, .brand-title, .flash-title,
.section-head h2, .info-hero h1, .info-title, .error-title, .cat-hero h1 {
  font-family: var(--font-display);
}

/* --- Subrayado marcador (se dibuja al aparecer la sección) --- */
.panel-title { position: relative; padding-bottom: 14px; }
.panel-title::after {
  content: '';
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 38px; height: 5px; border-radius: 99px;
  background: linear-gradient(90deg, var(--green), var(--pink));
  transition: width .7s cubic-bezier(.2,.7,.3,1) .2s;
}
.reveal.in .panel-title::after { width: 92px; }

/* --- Cabeceras de sección editoriales (centradas) --- */
.shead { position: relative; text-align: center; }
.shead-kicker {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--pink); margin-bottom: 4px;
}
.band-green .shead-kicker { color: var(--green-dark); }
.shead-link {
  position: absolute; right: 0; bottom: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--dark);
  transition: color .15s;
}
@media (max-width: 720px) {
  .shead-link { position: static; margin-top: 2px; }
}
.shead-link svg { width: 16px; height: 16px; transition: transform .2s; }
.shead-link:hover { color: var(--green-dark); }
.shead-link:hover svg { transform: translateX(4px); }

/* --- Home: títulos grandes a la izquierda, menos caja, más aire --- */
body[data-page='home'] .panel-title {
  text-align: center;
  font-size: clamp(27px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 4px;
}
body[data-page='home'] .panel {
  background: transparent; border: none; box-shadow: none;
  padding: 0; margin-top: 0;
}
body[data-page='home'] .container { margin-bottom: 64px; }
body[data-page='home'] .section-band { padding: 44px 24px 30px; }
.qf-sub { margin-top: 2px; }

/* --- Beneficios: tira editorial sobre papel cálido, sin cajitas --- */
.benefits {
  background: var(--paper);
  border-radius: 22px;
  padding: 28px 30px;
  gap: 0;
}
.benefit {
  background: transparent; border: none; box-shadow: none;
  border-radius: 0;
  padding: 8px 26px;
  border-left: 1px solid #e9e3d5;
}
.benefits .benefit:first-child { border-left: none; padding-left: 8px; }
.benefit:hover { transform: none; box-shadow: none; }
.benefit:nth-child(odd) .benefit-ic,
.benefit:nth-child(even) .benefit-ic { background: #fff; border: 1px solid #ece6d8; }
.benefit:nth-child(odd) .benefit-ic { color: var(--green-dark); }
.benefit:nth-child(even) .benefit-ic { color: var(--pink); }
@media (max-width: 900px) {
  .benefits { row-gap: 14px; }
  .benefit:nth-child(3) { border-left: none; padding-left: 8px; }
}
@media (max-width: 520px) {
  .benefit { border-left: none; padding: 8px; }
}

/* --- Banda de marca: oscuro elegante --- */
.brand-band {
  background: var(--ink);
  box-shadow: 0 26px 60px rgba(20,24,28,.22);
  padding: 76px 48px;
}
.brand-band::before {
  background:
    radial-gradient(620px 340px at 18% -10%, rgba(122,181,46,.28), transparent 65%),
    radial-gradient(560px 320px at 88% 112%, rgba(214,36,140,.20), transparent 65%);
}
.brand-title { font-weight: 800; letter-spacing: -.5px; text-shadow: none; }
.brand-title em { color: #a5dd5d; }
.brand-kicker { background: rgba(255,255,255,.07); }
.brand-text { color: rgba(255,255,255,.82); }
.brand-sign { color: #f2a9d4; }
.stamp { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.045); }
.brand-stamps .stamp:hover { background: rgba(255,255,255,.10); }

/* --- Tarjetas de producto refinadas --- */
.card { border-color: #f1f1f0; border-radius: 16px; }
.card:hover { box-shadow: 0 18px 42px rgba(30,34,39,.13); border-color: transparent; }
.card-name { color: var(--dark); font-weight: 600; }
.card-name:hover { color: var(--green-dark); }
.card-price { font-size: 18px; font-weight: 800; color: var(--ink); }
.btn-add { border-radius: 999px; font-weight: 700; }

/* --- Etiqueta 'Recién llegado' como sello de tinta --- */
.card-tags .tag-new {
  background: rgba(255,255,255,.92);
  color: var(--green-dark);
  border: 2px dashed var(--green-dark);
  border-radius: 7px;
  transform: rotate(3deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}

/* --- Respeto a quien prefiere menos movimiento --- */
@media (prefers-reduced-motion: reduce) {
  .panel-title::after { width: 92px; transition: none; }
}

/* ===== Nombres de producto en MAYÚSCULA (en todo el sitio) ===== */
.card-name,
.mini-name,
.product-info h1,
.modal-info h2,
.spotlight-title,
.hero2-card .hero2-card-price { text-transform: uppercase; }

/* ===== Sugeridos "Seguí viendo" (historial del visitante) ===== */
#sec-sugeridos .panel-title span { color: var(--pink); }
