.nj-history {
  padding-top: 64px;
  padding-bottom: 100px;
  width: 100%;
  max-width: 1100px;
}
@media screen and (max-width: 767px) {
  .nj-history {
    padding-top: 24px;
    padding-bottom: 40px;
  }
}
.nj-history .nj-kicker {
  text-align: center;
}
.nj-history .nj-history__filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin: 63px 0 64px;
}
.nj-history .nj-pill-group,
.nj-history .nj-decade-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nj-history .nj-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--nj-soft, #b5b5b5);
  background: #fff;
  color: var(--nj-text, #454545);
  font-size: 16.5px;
  line-height: 32px;
  cursor: pointer;
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nj-history .nj-pill.is-active,
.nj-history .nj-pill:hover {
  border-color: var(--nj-text, #454545);
  background: var(--nj-text, #454545);
  color: #fff;
}
.nj-history .nj-decade {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-top: 15px;
  border: 0;
  border-top: 1px solid var(--nj-line, #e5e5e5);
  background: transparent;
  color: #525252;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}
.nj-history .nj-decade.is-active {
  font-weight: 700;
}
.nj-history .nj-history__intro {
  width: 568px;
}
.nj-history .nj-history__intro h2 {
  margin: 0 0 26px;
  color: #231f20;
  font-size: 29.5px;
  font-weight: 400;
  line-height: 29.5px;
  text-transform: uppercase;
}
.nj-history .nj-history__intro p {
  margin: 0;
  color: #374151;
  font-size: 16.5px;
  font-weight: 300;
  line-height: 32px;
}
.nj-history .nj-history__divider {
  height: 1px;
  margin-bottom: 9px;
  background: #f3f4f6;
}
.nj-history .nj-history__archive {
  padding-top: 1.5rem;
  width: 100%;
}
.nj-history .year-group {
  margin-top: 4rem;
}
.nj-history .year-group .year-title {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 1.7rem;
}
.nj-history .year-group .year-title span {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.nj-history .year-group .year-title:after {
  content: '';
  height: 1px;
  background: var(--nj-line, #e5e5e5);
  flex: 1;
}
.nj-history .nj-history__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 47px;
}
.nj-history .nj-history-card {
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.nj-history .nj-history-card__image {
  display: block;
  height: 420px;
  overflow: hidden;
  background: #e5e5e5;
}
.nj-history .nj-history-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transition: transform 0.5s ease, filter 0.3s;
}
.nj-history .nj-history-card:hover img {
  transform: scale(1.018);
  filter: saturate(1) contrast(1.04);
}
.nj-history .nj-history-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.48rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body .nj-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.93);
  z-index: 9999;
  display: none;
  grid-template-columns: minmax(0, 1fr) 320px;
}
body .nj-modal.is-open {
  display: grid;
}
body .nj-modal__view {
  position: relative;
  background: #2b2b2b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}
body .nj-modal__view img {
  max-width: 100%;
  max-height: 90%;
  height: auto;
  object-fit: contain;
  display: block;
}
body .nj-modal__year {
  position: absolute;
  top: 30px;
  left: 40px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.5;
  pointer-events: none;
}
body .nj-modal__pie {
  position: absolute;
  bottom: 30px;
  left: 40px;
  right: 40px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.85;
  pointer-events: none;
}
body .nj-modal__info {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
}
body .nj-modal__close {
  border: 0;
  background: transparent;
  color: #000;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: -6px 0 0 auto;
  /* alineado a la derecha arriba */
  transition: all 0.3s ease;
}
body .nj-modal__close:hover {
  background: transparent;
  color: #000;
  transform: rotate(90deg);
}
body .nj-modal__editorial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  margin: auto 0;
}
body .nj-modal__kicker {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1c1c1c;
}
body .nj-modal__title {
  font-weight: 400;
  color: #1c1c1c;
  margin-top: 0;
}
body .nj-modal__desc {
  margin: 0;
  font-size: 16px;
  color: var(--nj-soft);
  line-height: 1.2;
}
body .nj-modal__footer {
  color: #b5b5b5;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-top: auto;
}
@media (max-width: 820px) {
  body .nj-history .nj-history__filters {
    display: block;
    margin: 42px 0 50px;
  }
  body .nj-history .nj-decade-group {
    margin-top: 18px;
  }
  body .nj-history .nj-history__intro {
    width: 100%;
  }
  body .nj-history .nj-history__grid {
    grid-template-columns: 1fr;
  }
  body .nj-history .nj-history-card__image {
    height: auto;
    aspect-ratio: 628 / 628;
  }
  body .nj-modal.is-open {
    display: flex;
    flex-direction: column;
  }
  body .nj-modal.is-open .nj-modal__info .nj-modal__footer {
    margin-top: 50px;
  }
  body .nj-modal.is-open .nj-modal__view {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}
