/* ===========================
   HERO DEL CATÁLOGO
   =========================== */
.cat-hero {
  height: 30vh;
  min-height: 220px;
  background: #0D0D0D;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0 1.5rem;
}
.cat-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #F5F5F5;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.6rem;
}
.cat-hero p {
  color: #B8B8B8;
  font-size: 1.05rem;
  margin: 0;
}

/* ===========================
   BARRA DE FILTROS (sticky)
   =========================== */
.cat-filtros {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5E5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
}
.filtro-btn {
  background: transparent;
  border: 1px solid #E5E5E5;
  border-radius: 50px;
  padding: 8px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #1A1A1A;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.filtro-btn.activo,
.filtro-btn:hover {
  background: #1A1A1A;
  color: #FFFFFF;
  border-color: #1A1A1A;
}

/* ===========================
   GRID DE PRODUCTOS
   =========================== */
.cat-grid-section {
  background: #F8F8F8;
  padding: 4rem 6%;
  min-height: 50vh;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ===========================
   CARD DE PRODUCTO
   =========================== */
.cat-prod-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 200ms ease,
              box-shadow 200ms ease,
              transform 200ms ease,
              opacity 200ms ease;
}
.cat-prod-card:hover {
  border-color: #C8A44A;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
}
.cat-prod-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.cat-prod-info {
  padding: 1.25rem;
}
.cat-prod-cat {
  color: #C41230;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}
.cat-prod-nombre {
  color: #1A1A1A;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* Fade out al filtrar */
.cat-prod-card.filtro-oculto {
  opacity: 0;
  pointer-events: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-hero h1 {
    font-size: 3rem;
  }
}
@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid-section {
    padding: 2.5rem 5%;
  }
  .cat-hero h1 {
    font-size: 2.4rem;
  }
  .cat-hero p {
    font-size: 0.95rem;
  }
  .cat-filtros {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
  }
  .filtro-btn {
    padding: 7px 18px;
    font-size: 0.82rem;
  }
}
