/* Catálogo Explorar — layout Mercado Libre / SUT ExploreFeed (2 cols móvil) */

.bc-shell {
  max-width: 1120px;
  margin: 0 auto 56px;
  padding: 0 8px;
}
@media (min-width: 640px) {
  .bc-shell { padding: 0 16px; }
}

.bc-head { margin-bottom: 12px; padding: 0 4px; }
.bc-head h2 {
  font-family: var(--fuente-display);
  font-size: clamp(20px, 3.5vw, 28px);
  margin: 0 0 4px;
  letter-spacing: -.02em;
}
.bc-head p { margin: 0; color: var(--grafito); font-size: 13px; }

/* Buscador sticky */
.bc-search {
  position: sticky; top: 8px; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0 10px; padding: 10px 14px;
  background: color-mix(in srgb, var(--superficie) 94%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--borde);
  border-radius: 999px;
  box-shadow: 0 8px 24px -18px rgba(0,0,0,.5);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bc-search:focus-within {
  border-color: color-mix(in srgb, var(--color-secundario) 55%, var(--borde));
  box-shadow: 0 12px 32px -16px rgba(0,0,0,.6);
}
.bc-search svg { flex-shrink: 0; opacity: .55; }
.bc-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  color: var(--texto); font-size: 14px; font-family: var(--fuente-base);
}
.bc-search input::placeholder { color: var(--salvia); }

/* Chips */
.bc-chips {
  display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bc-chips::-webkit-scrollbar { display: none; }
.bc-chip {
  flex: 0 0 auto; border: 1px solid var(--borde); background: var(--superficie-2);
  color: var(--grafito); border-radius: 999px; padding: 7px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.bc-chip:hover { color: var(--texto); border-color: color-mix(in srgb, var(--color-secundario) 40%, var(--borde)); }
.bc-chip[aria-pressed="true"] {
  background: var(--color-secundario); color: #1a1008; border-color: transparent;
}
.bc-chip:active { transform: scale(.97); }

.bc-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 12px; padding: 0 2px;
}
.bc-toolbar select {
  flex: 1; min-width: 140px; background: var(--superficie); color: var(--texto);
  border: 1px solid var(--borde); border-radius: 12px; padding: 9px 11px; font-size: 13px;
}
.bc-toolbar .secundario { font-size: 13px; padding: 9px 12px; }

/* Grid: 2 cols móvil (ML/SUT) → 3 sm → 4 md+ */
.bc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) {
  .bc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 900px) {
  .bc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

/* Card compacta estilo feed SUT */
.bc-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (hover: hover) {
  .bc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-hover);
    border-color: color-mix(in srgb, var(--color-secundario) 40%, var(--borde));
  }
  .bc-card:hover .bc-slide img { transform: scale(1.03); }
}

/* Imagen cuadrada (Mercado Libre) */
.bc-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--superficie-2);
  overflow: hidden;
}
.bc-carousel {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.bc-carousel::-webkit-scrollbar { display: none; }
.bc-slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative;
}
.bc-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease, filter .3s ease;
  background: var(--superficie-2);
}
.bc-slide img.bc-blur { filter: blur(10px); transform: scale(1.05); }
.bc-fallback {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--fuente-display); font-size: 36px; font-weight: 700;
  color: color-mix(in srgb, var(--porcelana) 70%, transparent);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--color-secundario) 35%, transparent), transparent 55%),
    linear-gradient(135deg, var(--tinta-2), var(--superficie-2));
}

/* Badges: izq arriba verificado · der arriba status · izq abajo especialidad */
.bc-badge {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px; border-radius: 6px; font-size: 10px; font-weight: 700;
  line-height: 1.2; box-shadow: 0 2px 8px rgba(0,0,0,.28);
  pointer-events: none;
}
.bc-badge-cat {
  left: 6px; bottom: 6px;
  background: color-mix(in srgb, var(--superficie) 92%, transparent);
  color: var(--texto); backdrop-filter: blur(6px);
}
.bc-badge-status {
  top: 6px; right: 6px;
  background: rgba(18,18,18,.78); color: #F2F0EB;
}
.bc-badge-status.open { background: rgba(37, 120, 70, .9); }
.bc-badge-status .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

.bc-verified-pill {
  position: absolute; z-index: 2; top: 6px; left: 6px;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 7px; border-radius: 999px;
  background: #2563eb; color: #fff;
  font-size: 10px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(37,99,235,.4);
  pointer-events: none;
}
.bc-verified-pill.gold {
  background: linear-gradient(145deg, #f0c14b, #b8860b);
  box-shadow: 0 2px 8px rgba(184,134,11,.45);
  color: #1a1008;
}

/* CTA flotante sobre imagen (estilo carrito ML / bolsa SUT) */
.bc-float-cta {
  position: absolute; z-index: 3;
  right: 6px; bottom: 6px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--superficie) 96%, transparent);
  border: 1px solid var(--borde);
  color: var(--color-secundario);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.bc-float-cta:active { transform: scale(.9); }
.bc-float-cta svg { width: 16px; height: 16px; }

.bc-dots {
  position: absolute; bottom: 28px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 4px; pointer-events: none;
}
.bc-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  transition: all .2s ease;
}
.bc-dots span.on { background: #fff; width: 12px; border-radius: 999px; }

/* Cuerpo compacto */
.bc-body {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px; flex: 1; min-width: 0;
}
@media (min-width: 640px) {
  .bc-body { padding: 10px 12px 12px; gap: 5px; }
}

.bc-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0; font-size: 12px; font-weight: 600; line-height: 1.3;
  font-family: var(--fuente-base); letter-spacing: -.01em;
}
@media (min-width: 640px) {
  .bc-title { font-size: 13.5px; }
}
.bc-title a { color: inherit; text-decoration: none; }
.bc-title a:hover { text-decoration: underline; text-underline-offset: 2px; }

.bc-meta {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  font-size: 10px; color: var(--grafito); align-items: center;
}
.bc-meta .star { color: var(--color-secundario); }
.bc-price {
  font-family: var(--fuente-display);
  font-size: 13px; font-weight: 700;
  color: var(--color-secundario); letter-spacing: -.01em;
  margin-top: 2px;
}
@media (min-width: 640px) {
  .bc-price { font-size: 15px; }
}
.bc-addr {
  display: inline-flex; align-items: center; gap: 3px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bc-addr svg { flex-shrink: 0; opacity: .7; width: 11px; height: 11px; }

/* Acciones: columna en móvil (2-col grid), fila en sm+ */
.bc-actions {
  display: grid; grid-template-columns: 1fr; gap: 5px;
  margin-top: auto; padding-top: 4px;
}
@media (min-width: 640px) {
  .bc-actions { grid-template-columns: 1.15fr 1fr; gap: 6px; }
}
.bc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border-radius: 8px; padding: 7px 8px; font-size: 11px; font-weight: 700;
  border: 0; cursor: pointer; text-decoration: none;
  transition: all .15s ease; min-height: 32px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 640px) {
  .bc-btn { font-size: 12.5px; min-height: 38px; padding: 9px 10px; border-radius: 10px; }
}
.bc-btn:active { transform: scale(.98); }
.bc-btn-primary { background: #25D366; color: #062814; }
.bc-btn-primary:hover { filter: brightness(1.06); }
.bc-btn-secondary {
  background: transparent; color: var(--texto);
  border: 1px solid var(--borde);
}
.bc-btn-secondary:hover {
  border-color: color-mix(in srgb, var(--color-secundario) 45%, var(--borde));
  background: var(--superficie-2);
}
.bc-btn svg { flex-shrink: 0; width: 14px; height: 14px; }

.bc-social {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  display: flex; flex-direction: column; gap: 6px;
}
.bc-icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--superficie) 88%, transparent);
  color: var(--texto); backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.bc-icon-btn.on { color: #e11d48; background: color-mix(in srgb, #fff 90%, transparent); }
.bc-icon-btn[data-save].on { color: var(--color-secundario); }
.bc-icon-btn:active { transform: scale(.94); }

/* Skeleton */
.bc-skel {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--borde); background: var(--superficie);
}
.bc-skel-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, var(--superficie-2) 0%, #2f2f34 45%, var(--superficie-2) 90%);
  background-size: 200% 100%;
  animation: bc-shimmer 1.2s ease-in-out infinite;
}
.bc-skel-line {
  height: 10px; margin: 8px; border-radius: 5px;
  background: linear-gradient(90deg, var(--superficie-2) 0%, #2f2f34 45%, var(--superficie-2) 90%);
  background-size: 200% 100%;
  animation: bc-shimmer 1.2s ease-in-out infinite;
}
.bc-skel-line.w60 { width: 60%; }
.bc-skel-line.w40 { width: 40%; }
@keyframes bc-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.bc-empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 12px;
  color: var(--grafito); font-size: 14px;
}
.bc-empty .poste { display: inline-block; width: 12px; height: 36px; border-radius: 6px; margin-bottom: 12px; }
