.nav a.active {
  color: #fff;
  text-shadow: 0 0 12px var(--white-glow);
}

.catalog-offer-tape {
  width: 100%;
  overflow: hidden;
  background: #ffd400;
  border-bottom: 2px solid rgba(0, 0, 0, .35);
  box-shadow: 0 0 22px rgba(255, 212, 0, .28);
  color: #050505;
  font-weight: 950;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-offer-tape-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: catalogOfferTape 120s linear infinite;
}

.catalog-offer-tape-track span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-right: 32px;
  font-size: 15px;
  color: #050505;
}

@keyframes catalogOfferTape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


.catalog-page-section {
  padding-top: 76px;
  overflow: visible;
}

.catalog-main-head {
  text-align: center;
  margin-bottom: 38px;
}

.catalog-main-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: .9;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.catalog-main-head p:last-child {
  color: var(--muted);
  margin: 0 auto;
}

.catalog-block {
  width: min(1305px, calc(100vw - 48px));
  margin: 0 auto 52px;
}

.catalog-title {
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}

.catalog-title span {
  display: inline-flex;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.catalog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.catalog-grid .article-card {
  width: 245px;
  flex: 0 0 245px;
  max-width: 245px;
  min-height: 330px;
  margin: 0;
}

.catalog-grid .article-image {
  height: 150px;
}

.catalog-grid .article-content h3 {
  min-height: 40px;
}

.catalog-grid .empty-articles {
  width: 100%;
}

@media (max-width: 1200px) {
  .catalog-block {
    width: min(1060px, calc(100vw - 44px));
  }

  .catalog-grid .article-card {
    width: 245px;
    flex-basis: 245px;
  }
}

@media (max-width: 900px) {
  .catalog-page-section {
    padding-top: 110px;
  }

  .catalog-grid {
    gap: 16px;
  }

  .catalog-grid .article-card {
    width: 210px;
    flex-basis: 210px;
  }
}

@media (max-width: 640px) {
  .catalog-block {
    width: min(100%, calc(100vw - 28px));
  }

  .catalog-grid {
    gap: 14px;
  }

  .catalog-grid .article-card {
    width: calc((100vw - 42px) / 2);
    flex-basis: calc((100vw - 42px) / 2);
    max-width: none;
    min-height: 270px;
  }

  .catalog-grid .article-image {
    height: 112px;
  }
}

/* =========================================================
   FIX CATÁLOGO: centrar filas incompletas
   Mantiene 5 tarjetas por fila en PC, pero la fila sobrante
   (ej. tarjeta 6) queda centrada y no pegada a la izquierda.
========================================================= */
body .catalog-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  justify-items: center !important;
  width: min(1305px, calc(100vw - 48px)) !important;
  max-width: 1305px !important;
  gap: 20px !important;
  margin: 0 auto !important;
}

body .catalog-grid .article-card {
  width: 245px !important;
  flex: 0 0 245px !important;
  max-width: 245px !important;
  min-width: 245px !important;
  min-height: 330px !important;
  margin: 0 !important;
}

body .catalog-grid .article-image {
  width: 100% !important;
  height: 150px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

@media (max-width: 1200px) {
  body .catalog-grid {
    width: min(775px, calc(100vw - 44px)) !important;
  }
}

@media (max-width: 900px) {
  body .catalog-grid {
    width: min(662px, calc(100vw - 34px)) !important;
    gap: 16px !important;
  }

  body .catalog-grid .article-card {
    width: 210px !important;
    flex-basis: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
  }
}

@media (max-width: 640px) {
  body .catalog-grid {
    width: min(100%, calc(100vw - 28px)) !important;
    gap: 14px !important;
  }

  body .catalog-grid .article-card {
    width: calc((100vw - 42px) / 2) !important;
    flex-basis: calc((100vw - 42px) / 2) !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 270px !important;
  }

  body .catalog-grid .article-image {
    height: 112px !important;
  }
}
