/* ===== lazy para un efecto de optimizacion ===== */
.lazy {
  opacity: 0;
  transition: opacity .4s ease;
  width: 100%;
  height: auto;
  display: block;
}

.loaded {
  opacity: 1;
}
/* =================================================== */
.cats-wrap { 
    max-width: 1200px; 
    margin: 129px auto; 
    padding: 40px 20px 60px; 
}
.cats-title { 
    font-size: 28px; 
    font-weight: 700; 
    color: #333; 
    margin: 0 0 20px; 
}

.product-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cat-card:focus,
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.12);
  outline: none;
}

.cat-figure {
  display: grid;
  grid-template-rows: 1fr auto;   /* imagen arriba, caption abajo */
  height: 100%;
  margin: 0;
}

.cat-figure img {
  width: 100%;
  height: 180px;                  /* alto consistente */
 /* object-fit: cover;              /* recorte inteligente */
  display: block;
}

/* Franja azul como en WPBakery */
.cat-caption {
  background: #00aeef;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  padding: 10px 8px;
  min-height: 54px;               /* evita saltos con dos líneas */
  display: grid;
  place-items: center;
}

/* Responsivo */
@media (max-width: 1024px) {
  .product-cats { grid-template-columns: repeat(3, 1fr); }
  .cat-figure img { height: 170px; }
}

@media (max-width: 768px) {
  .product-cats { grid-template-columns: repeat(2, 1fr); }
  .cat-figure img { height: 160px; }
}

@media (max-width: 480px) {
  .product-cats { grid-template-columns: 1fr; }
  .cat-figure img { height: 180px; }
}