/* ═══════════════════════════════════════════
   Home v2 — Mobile first
   Prefijo: v2b-  (v2 brand-new)
═══════════════════════════════════════════ */

body {
  padding-top: 76px;
  background: #f7f7f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
}

.v2b-main {
  width: 100%;
}

/* ── HERO ─────────────────────────────────── */

.v2b-hero {
  padding: 12px 14px 8px;
}

.v2b-hero-link {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  min-height: 200px;
  background: #1a1a1a;
}

.v2b-hero-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  object-position: center center;
}

.v2b-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.v2b-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

/* ── CATEGORÍAS ───────────────────────────── */

.v2b-categories-wrap {
  padding: 10px 0 4px;
  overflow-x: hidden;
}

.v2b-categories-scroll {
  display: flex;
  gap: 8px;
  padding: 4px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.v2b-categories-scroll::-webkit-scrollbar {
  display: none;
}

.v2b-cat-btn {
  white-space: nowrap;
  padding: 7px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 999px;
  background: transparent;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.v2b-cat-btn:hover {
  border-color: var(--color-primario);
  color: var(--color-primario);
}

.v2b-cat-btn.active {
  border-color: var(--color-primario);
  background: var(--color-primario);
  color: #fff;
}

/* ── PRODUCTOS SECTION ────────────────────── */

.v2b-products-section {
  padding: 18px 14px 48px;
}

/* ── TABS ─────────────────────────────────── */

.v2b-tabs-header {
  display: flex;
  border-bottom: 1.5px solid #eaeaea;
  margin-bottom: 18px;
}

.v2b-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.v2b-tab::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-primario);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.v2b-tab.active {
  color: #1a1a1a;
  font-weight: 700;
}

.v2b-tab.active::after {
  transform: scaleX(1);
}

/* ── PANELS ───────────────────────────────── */

.v2b-panel {
  display: none;
}

.v2b-panel.active {
  display: block;
}

/* ── GRID ─────────────────────────────────── */

.v2b-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* ── CARD ─────────────────────────────────── */

.v2b-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.v2b-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Imagen — ratio 1:1 */
.v2b-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  overflow: hidden;
}

.v2b-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.v2b-card-img.img-loaded {
  opacity: 1;
}

/* Favorito */
.v2b-btn-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: background 0.2s ease;
}

.v2b-btn-fav:hover {
  background: #fff;
}

.v2b-btn-fav svg path {
  fill: none;
  stroke: #bbb;
  stroke-width: 1.8;
}

.v2b-btn-fav.active svg path {
  fill: var(--color-primario);
  stroke: var(--color-primario);
}

/* Badges */
.v2b-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  z-index: 2;
}

.v2b-badge-out {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: #fff;
}

.v2b-badge-sale {
  background: var(--color-secundario, #007aff);
  color: #fff;
}

/* Card info */
.v2b-card-info {
  padding: 10px 12px 14px;
}

.v2b-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.v2b-card-cat {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2b-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.v2b-price {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.v2b-price-old {
  font-size: 11px;
  color: #bbb;
  text-decoration: line-through;
}

.v2b-price-sale {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primario);
}

/* Empty state */
.v2b-empty {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  padding: 40px 0;
}

/* ── DISCOVER MORE ────────────────────────── */

.v2b-discover {
  text-align: center;
  margin-top: 28px;
}

.v2b-discover-btn {
  display: inline-block;
  padding: 12px 36px;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.v2b-discover-btn:hover {
  background: #1a1a1a;
  color: #fff;
}
