/* ==========================================================
   Propac — Catálogo de productos
   ========================================================== */

:root {
  --products-yellow: #f7c600;
  --products-yellow-soft: #fff7d1;
  --products-text: #161616;
  --products-muted: #777;
  --products-border: #e9e9e9;
  --products-card: #fbfaf7;
  --products-radius: 22px;
  --products-shell: 1480px;
}

.productos-breadcrumb {
  background: #000;
  color: #fff;
  padding: 30px 10px 30px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.productos-breadcrumb__link {
  color: #fff !important;
}

.propac-products-page,
.propac-products-page * {
  box-sizing: border-box;
}

.propac-products-page {
  color: var(--products-text);
  background: #fff;
}

.products-shell {
  width: min(calc(100% - 64px), var(--products-shell));
  margin: 0 auto;
}

/* HERO */
.products-hero {
  border-bottom: 1px solid var(--products-border);
  padding: 28px 0 20px;
}

.products-hero__grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(520px, 1.35fr);
  gap: 64px;
  align-items: end;
}

.products-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #5f5f5f;
}

.products-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.products-hero h1 {
  margin: 0 0 14px;
  max-width: 560px;
  font-size: clamp(42px, 4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.products-hero__intro>p {
  margin: 0;
  max-width: 520px;
  color: #707070;
  font-size: 18px;
  line-height: 1.6;
}

.products-hero__visual {
  min-height: 220px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #fbf9f4 0%, #f1efeb 100%);
  padding: 28px 32px;
}

.products-hero__copy {
  font-size: 23px;
  line-height: 1.35;
  font-weight: 500;
}

.products-hero__media {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
}

.products-hero__media img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: right bottom;
}

/* LAYOUT */
.products-catalog {
  position: relative;
}

.products-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 650px;
}

.products-filters {
  padding: 36px 36px 48px 0;
  border-right: 1px solid var(--products-border);
}

.products-content {
  min-width: 0;
  padding: 36px 0 80px 48px;
}

.filter-mobile-header,
.filter-toggle {
  display: none;
}

/* FILTERS */
.filter-group+.filter-group {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--products-border);
}

.filter-label {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.species-list,
.stage-list {
  display: grid;
  gap: 10px;
}

.species-card,
.stage-link {
  color: var(--products-text);
  text-decoration: none;
}

.species-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid var(--products-border);
  border-radius: 13px;
  font-size: 17px;
  font-weight: 650;
  transition: 180ms ease;
}

.species-card:hover {
  transform: translateY(-1px);
  border-color: #d9d9d9;
}

.species-card.is-active {
  background: linear-gradient(135deg, #ffc928 0%, #ffdf62 100%);
  border-color: transparent;
}

.species-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
}

.species-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.species-icon--all {
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
}

.stage-link {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.35;
  transition: 160ms ease;
}

.stage-link:hover {
  background: #fafafa;
}

.stage-link.is-active {
  background: #fff;
  border: 1px solid var(--products-border);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .035);
  font-weight: 700;
}

.stage-link.is-active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 4px;
  background: var(--products-yellow);
}

.stage-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.stage-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stage-icon--all {
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  font-size: 17px;
}

.stage-icon--empty {
  position: relative;
}

.stage-icon--empty::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9d9d9;
}

/* TOOLBAR */
.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.products-toolbar h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.products-toolbar p {
  margin: 8px 0 0;
  color: var(--products-muted);
  font-size: 16px;
}

.products-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-form label {
  font-size: 14px;
  color: #555;
}

.sort-form select {
  min-width: 190px;
  height: 50px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--products-border);
  border-radius: 12px;
  background: #fff;
  color: var(--products-text);
  font: inherit;
  cursor: pointer;
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  min-width: 0;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--products-border);
  border-radius: var(--products-radius);
  background: #fff;
  color: var(--products-text);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card__link:hover {
  transform: translateY(-4px);
  border-color: #dedede;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .07);
}

.product-card__image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 0.98 / 1;
  padding: 26px;
  background: linear-gradient(180deg, #fbfaf7 0%, #f8f6f1 100%);
}

.product-card__image {
  width: 100%;
  height: 100%;
  max-width: 250px;
  object-fit: contain;
  transition: transform 240ms ease;
}

.product-card__link:hover .product-card__image {
  transform: scale(1.035);
}

.product-card__plus {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .95);
  font-size: 27px;
  font-weight: 300;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .035);
}

.product-card__body {
  position: relative;
  flex: 1;
  min-height: 154px;
  padding: 22px 22px 55px;
}

.product-card__body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.product-card__body p {
  margin: 9px 0 0;
  color: var(--products-muted);
  font-size: 14px;
}

.product-card__arrow {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-size: 26px;
  line-height: 1;
  transition: transform 160ms ease;
}

.product-card__link:hover .product-card__arrow {
  transform: translateX(4px);
}

/* PAGINATION */
.products-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 46px;
}

.products-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--products-border);
  border-radius: 11px;
  background: #fff;
  color: var(--products-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.products-pagination .page-numbers:hover,
.products-pagination .page-numbers.current {
  background: var(--products-yellow);
  border-color: var(--products-yellow);
}

.products-pagination .dots {
  border-color: transparent;
  background: transparent;
}

/* EMPTY */
.products-empty {
  padding: 70px 30px;
  border: 1px solid var(--products-border);
  border-radius: 20px;
  text-align: center;
}

.products-empty h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.products-empty p {
  margin: 0 0 22px;
  color: var(--products-muted);
}

.products-empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--products-yellow);
  color: var(--products-text);
  font-weight: 700;
  text-decoration: none;
}

.filters-overlay {
  display: none;
}

/* TABLET */
@media (max-width: 1180px) {
  .products-shell {
    width: min(calc(100% - 40px), var(--products-shell));
  }

  .products-hero__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
  }

  .products-layout {
    grid-template-columns: 245px minmax(0, 1fr);
  }

  .products-filters {
    padding-right: 24px;
  }

  .products-content {
    padding-left: 30px;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* MOBILE */
@media (max-width: 820px) {
  .products-shell {
    width: min(calc(100% - 32px), var(--products-shell));
  }

  .products-hero {
    padding: 18px 0 16px;
  }

  .products-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .products-breadcrumb {
    margin-bottom: 14px;
  }

  .products-hero h1 {
    max-width: 100%;
    font-size: 42px;
  }

  .products-hero__intro>p {
    font-size: 16px;
  }

  .products-hero__visual {
    min-height: 155px;
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }

  .products-hero__copy {
    font-size: 18px;
  }

  .products-hero__media img {
    height: 130px;
  }

  .products-layout {
    display: block;
  }

  .products-content {
    padding: 28px 0 56px;
  }

  .products-toolbar {
    align-items: flex-end;
    margin-bottom: 22px;
  }

  .products-toolbar__actions {
    align-items: stretch;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--products-border);
    border-radius: 12px;
    background: #fff;
    color: var(--products-text);
    font: inherit;
    font-weight: 700;
  }

  .sort-form label {
    display: none;
  }

  .sort-form select {
    min-width: 150px;
    height: 48px;
  }

  .products-filters {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 360px);
    overflow-y: auto;
    padding: 22px;
    border: 0;
    background: #fff;
    box-shadow: 20px 0 50px rgba(0, 0, 0, .16);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .products-filters.is-open {
    transform: translateX(0);
  }

  .filter-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
  }

  .filter-mobile-header strong {
    font-size: 20px;
  }

  .filter-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #f5f5f5;
    font-size: 28px;
    line-height: 1;
  }

  .filters-overlay {
    position: fixed;
    z-index: 99998;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, .38);
    opacity: 0;
    visibility: hidden;
    transition: 180ms ease;
  }

  .filters-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  body.filters-open {
    overflow: hidden;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card__image-wrap {
    padding: 18px;
  }

  .product-card__body {
    min-height: 140px;
    padding: 18px 16px 48px;
  }

  .product-card__body h3 {
    font-size: 16px !important;
  }

  .product-card__plus {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .product-card__arrow {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 560px) {
  .products-shell {
    width: min(calc(100% - 24px), var(--products-shell));
  }

  .products-hero h1 {
    font-size: 36px;
  }

  .products-hero__visual {
    min-height: 130px;
    border-radius: 16px;
  }

  .products-hero__media img {
    height: 108px;
  }

  .products-toolbar {
    display: grid;
    gap: 18px;
  }

  .products-toolbar__actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
  }

  .sort-form,
  .sort-form select,
  .filter-toggle {
    width: 100%;
  }

  .products-toolbar h2 {
    font-size: 31px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card__link {
    border-radius: 15px;
  }

  .product-card__image-wrap {
    aspect-ratio: 1 / 1.08;
    padding: 12px;
  }

  .product-card__body {
    min-height: 128px;
    padding: 14px 12px 44px;
  }

  .product-card__body h3 {
    font-size: 14px !important;
  }

  .product-card__body p {
    font-size: 12px;
  }

  .product-card__plus {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }

  .products-pagination {
    margin-top: 34px;
  }

  .products-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
  }
}