/* ---- HERO ---- */
.prod-hero {
  background: #1a1a1a;
  padding: 7rem 16rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.prod-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(16,134,67,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.prod-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 0.4rem 1rem;
  margin-bottom: 1.75rem;
}
.prod-hero__label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5db446;
  flex-shrink: 0;
}
.prod-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0;
  max-width: 800px;
}

/* ---- FILTROS ---- */
.prod-filters {
  background: #fff;
  padding: 1.75rem 16rem;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  position: sticky;
  top: 58px;
  z-index: 100;
}
.prod-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid #e0ddd6;
  color: #555;
  background: transparent;
  font-family: inherit;
  transition: all 0.18s ease;
}
.prod-filter-btn:hover { border-color: #aaa; color: #1a1a1a; }
.prod-filter-btn.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
.prod-filter-btn .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* ---- GRID ---- */
.prod-catalog {
  background: #f5f4ef;
  padding: 4rem 16rem 6rem;
}
.prod-catalog__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.prod-catalog__count {
  font-size: 0.82rem;
  color: #999;
}
.prod-catalog__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ---- BÚSQUEDA DEL CATÁLOGO ---- */
.prod-search-row { margin-bottom: 1.75rem; }
.prod-search-input {
  width: 100%;
  max-width: 420px;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid #e0ddd6;
  font-size: 0.85rem;
  font-family: inherit;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s;
}
.prod-search-input:focus { border-color: #1a1a1a; }
.prod-search-input::placeholder { color: #aaa; }

/* ---- PAGINACIÓN ---- */
.prod-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.prod-page-btn {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--color-text, #343838);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.prod-page-btn:hover:not(:disabled):not(.active) {
  background: var(--color-bg, #f4f7f4);
  border-color: #ddd;
}
.prod-page-btn:active:not(:disabled) { transform: scale(0.94); }
.prod-page-btn.active {
  background: var(--color-primary, #108643);
  border-color: var(--color-primary, #108643);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 134, 67, 0.3);
}
.prod-page-btn:disabled { opacity: 0.3; cursor: default; }
.prod-page-btn--arrow {
  font-size: 1.05rem;
  color: var(--color-text-muted, #555);
  border-color: #e2e2e2;
}
.prod-page-btn--arrow:hover:not(:disabled) { color: var(--color-primary, #108643); border-color: var(--color-primary, #108643); }
.prod-page-ellipsis {
  min-width: 1.4rem;
  text-align: center;
  color: var(--color-text-muted, #999);
  font-size: 0.85rem;
  user-select: none;
}

@media (max-width: 520px) {
  .prod-pagination { gap: 0.3rem; }
  .prod-page-btn { min-width: 2.05rem; height: 2.05rem; font-size: 0.8rem; padding: 0 0.4rem; }
}

/* ---- PRODUCT CARD ---- */
.pcard {
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}
.pcard__img {
  height: 220px;
  background: #edecea;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pcard__img svg { width: 48px; height: 48px; color: #c5c0b8; }
.pcard__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.pcard__badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pcard__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.pcard__name {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
}
.pcard__desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.65;
  flex: 1;
}
.pcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0ede8;
}
.pcard__uso {
  display: none;
  font-size: 0.7rem;
  color: #aaa;
  font-weight: 500;
}
.pcard__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.15s;
}
.pcard__btn:hover { color: var(--color-primary); }
.pcard__btn svg { width: 13px; height: 13px; }

/* Colores sector */
.badge--alim { background: #eca427; }
.badge--lav  { background: #188bc9; }
.badge--coc  { background: #e03f28; }
.badge--sal  { background: #5db446; }

/* ---- CTA ---- */
.prod-cta {
  background: radial-gradient(ellipse at 30% 50%, #108643 0%, #0a6334 100%);
  padding: 5rem 16rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.prod-cta__text {}
.prod-cta__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.prod-cta__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.prod-cta__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 480px;
}
.prod-cta__actions { display: flex; gap: 1rem; flex-shrink: 0; }
.cta-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.cta-btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1400px) {
  .prod-hero, .prod-filters, .prod-catalog, .prod-cta { padding-left: 8rem; padding-right: 8rem; }
}
@media (max-width: 1100px) {
  .prod-hero, .prod-filters, .prod-catalog, .prod-cta { padding-left: 4rem; padding-right: 4rem; }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .prod-hero, .prod-filters, .prod-catalog, .prod-cta { padding-left: 2rem; padding-right: 2rem; }
  /* 2 columnas en vez de 1: a este ancho (tablet) el catálogo tenía un
     salto brusco de 3 a 1 columna que desperdiciaba el ancho disponible. */
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .prod-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .prod-hero, .prod-filters, .prod-catalog, .prod-cta { padding-left: 1.25rem; padding-right: 1.25rem; }
  .prod-cta__actions { flex-direction: column; }
}

/* Ocultar/mostrar por filtro */
.pcard[data-sector] { transition: opacity 0.2s, transform 0.2s; }
.pcard.hidden { display: none; }
