.categoriawoop-wrap {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
}
.categoriawoop-item {
  text-align: center;
  text-decoration: none;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.categoriawoop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f5f5f5;
  margin-bottom: .5rem;
}
.categoriawoop-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.categoriawoop-sub {
  font-size: 0.8rem;
  color: #666;
}

.categoriawoop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}
.cw-card {
  display: block;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.2s ease-in-out;
}
.cw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.cw-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.cw-card-body {
  padding: 10px 12px;
  text-align: center;
}
.cw-card-title {
  font-weight: 600;
  font-size: 0.95rem;
}
/* === Pinterest-style Masonry con solo CSS === */
.cw-pinterest-grid {
  column-count: 4;           /* Número de columnas base */
  column-gap: 1.5rem;        /* Espacio entre columnas */
  padding: 1rem;
  max-width: 1300px;
  margin: 0 auto;
}

.cw-pin-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.5rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  break-inside: avoid;       /* 🔑 Evita que los bloques se corten entre columnas */
  transition: transform .25s ease, box-shadow .25s ease, opacity 0.3s ease;
  opacity: 0;
  animation: fadeIn .6s ease forwards;
}

.cw-pin-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.cw-pin-item img {
  width: 100%;
  height: auto;
  display: block;
}

.cw-pin-info {
  text-align: center;
  padding: 0.9rem;
  background: #fff;
}

.cw-pin-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
}

/* 🔹 Animación de aparición */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .cw-pinterest-grid { column-count: 3; }
}
@media (max-width: 900px) {
  .cw-pinterest-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .cw-pinterest-grid { column-count: 1; }
}
/* === ESTILO DE BURBUJAS / TAGS TIPO PINTEREST === */
.cw-tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.cw-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f3f3f3;
  color: #111;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cw-tag:hover {
  background: #eaeaea;
}

.cw-tag.active {
  border: 1px solid #111;
  background: #fff;
}

.cw-tag.mas {
  font-weight: 600;
  border: none;
  background: #f3f3f3;
  color: #111;
  cursor: pointer;
}

.cw-tag.mas:hover {
  background: #eaeaea;
}
/* === VITRINA TIPO ETSY / GOOGLE SHOPPING === */
.cw-vitrina-bloque {
  margin-bottom: 2.5rem;
}

.cw-vitrina-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 1rem;
}

.cw-vitrina-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.cw-vitrina-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #222;
}

.cw-vitrina-sub {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.cw-vitrina-explorar {
  margin-left: auto;
  font-size: 0.9rem;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cw-vitrina-explorar:hover {
  color: #0073aa;
}

/* === Scroll horizontal productos === */
.cw-vitrina-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.cw-vitrina-item {
  flex: 0 0 170px;
  text-decoration: none;
  color: #111;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
}

.cw-vitrina-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cw-vitrina-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.cw-vitrina-info {
  padding: 6px 8px 10px;
}

.cw-vitrina-nombre {
  font-size: 0.85rem;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.cw-vitrina-precio {
  font-size: 0.9rem;
  color: #111;
  font-weight: 600;
}

/* === Scrollbar bonito === */
.cw-vitrina-scroll::-webkit-scrollbar {
  height: 6px;
}
.cw-vitrina-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.cw-vitrina-scroll::-webkit-scrollbar-track {
  background: transparent;
}
/* === Ajuste visual para estilo Etsy === */
.cw-vitrina-bloque {
  margin-bottom: 3rem;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1.5rem;
}

.cw-vitrina-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eaeaea;
}

.cw-vitrina-explorar::after {
  content: " →";
  font-weight: bold;
}

.cw-vitrina-scroll {
  scroll-snap-type: x mandatory;
  scroll-padding-left: 10px;
}

.cw-vitrina-item {
  flex: 0 0 200px; /* un poco más ancho */
  border: 1px solid #eaeaea;
  background: #fff;
  border-radius: 8px;
}

.cw-vitrina-item img {
  height: 180px;
}

.cw-vitrina-info {
  text-align: left;
  padding: 8px 10px 12px;
}
.cw-ideas-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.cw-idea-card {
  width: 200px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #111;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.cw-idea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cw-idea-title {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 14px 0;
  color: #111;
  min-height: 50px;
}

.cw-idea-img-wrap {
  background: #fff;
  border-radius: 100% 100% 0 0 / 35% 35% 0 0; /* curva tipo Etsy */
  overflow: hidden;
  margin-top: auto;
}

.cw-idea-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
/* ======= Contenedor general ======= */
.cw-temas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 2rem 0;
}

/* ======= Header de cada bloque ======= */
.cw-tema-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.cw-tema-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

/* ======= Icono clickeable ======= */
.cw-tema-icon-link {
  text-decoration: none;
}

.cw-tema-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7f1fb;
  font-size: 1.3rem;
  border-radius: 8px;
  padding: 6px 8px;
  transition: all 0.2s ease-in-out;
}

.cw-tema-icon:hover {
  background: #d3e7ff;
  transform: scale(1.05);
}

/* ======= Título clickeable ======= */
.cw-tema-titulo-text {
  color: #0b57d0;
  font-weight: 600;
  text-decoration: none;
}

.cw-tema-titulo-text:hover {
  text-decoration: underline;
}

/* ======= Enlace “Ver todo” ======= */
.cw-tema-ver {
  color: #0b57d0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.cw-tema-ver:hover {
  text-decoration: underline;
}

/* ======= Tarjetas horizontales ======= */
.cw-tema-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.cw-tema-scroll::-webkit-scrollbar {
  height: 6px;
}

.cw-tema-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* Tarjeta individual */
.cw-tema-item {
  flex: 0 0 180px;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.cw-tema-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.cw-tema-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.cw-tema-item p {
  margin: 10px;
  font-size: 0.9rem;
  color: #333;
}
/* ======= Rejilla de personas ======= */
.cw-personas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

/* Cada tarjeta (clickeable) */
.cw-persona-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111;
  transition: all 0.25s ease;
  cursor: pointer;
}

.cw-persona-item:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Icono */
.cw-persona-icon {
  background: #e7f1fb;
  color: #000;
  border-radius: 6px;
  font-size: 1.3rem;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* Texto */
.cw-persona-titulo {
  color: #111;
  font-weight: 600;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 600px) {
  .cw-persona-item {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }

  .cw-persona-titulo {
    font-size: 0.9rem;
  }
}
/* Si dinámicamente queda un solo producto,
   no permitir que ocupe toda la fila */
.woopcb-prod:only-child {
    width: 280px;
    max-width: 280px;
    flex: 0 0 280px;
    justify-self: start;
}

@media (max-width: 600px) {
    .woopcb-prod:only-child {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
    }
}