.page-news {
  background: #ffffff;
  color: #111111;
}

.page-news .site-nav .nav-links > a[aria-current="page"]::before {
  opacity: 1;
  transform: translateY(-50%);
}

.news-page {
  min-height: 70vh;
  padding-bottom: 88px;
}

.news-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(68px, 8vw, 120px) 24px 34px;
  text-align: center;
}

.news-intro .section-mark,
.news-list-mark {
  margin-bottom: 10px;
}

.news-eyebrow {
  margin: 0 0 5px;
  color: #7a8390;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-intro h1,
.news-catalog h2 {
  margin: 0;
  color: #101010;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.news-intro > p:last-child {
  max-width: 680px;
  margin: 16px auto 0;
  color: #5d6570;
  font-size: 1.04rem;
  line-height: 1.6;
}

.news-featured,
.news-catalog {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.featured-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  grid-template-rows: repeat(2, minmax(200px, 1fr));
  gap: 18px;
  min-height: 520px;
}

.featured-news-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #0d3f6b;
  box-shadow: 0 18px 38px rgba(11, 28, 44, 0.13);
}

.featured-news-card:first-child {
  grid-row: 1 / 3;
}

.featured-news-card:only-child {
  grid-column: 1 / -1;
}

.featured-news-card:nth-child(2):last-child {
  grid-row: 1 / 3;
}

.featured-news-card:not(:first-child) {
  grid-template-columns: minmax(160px, 0.92fr) minmax(180px, 1.08fr);
}

.featured-news-image {
  min-height: 210px;
  background-position: center;
  background-size: cover;
  transition: transform 0.5s ease;
}

.featured-news-card:first-child .featured-news-image {
  position: absolute;
  inset: 0;
}

.featured-news-card:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 12, 24, 0.9) 0%, rgba(4, 12, 24, 0.1) 78%);
}

.featured-news-card:hover .featured-news-image {
  transform: scale(1.035);
}

.featured-news-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  color: #ffffff;
  background: #103d67;
}

.featured-news-card:first-child .featured-news-copy {
  align-self: end;
  width: min(620px, 92%);
  padding: 44px;
  background: transparent;
}

.news-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 13px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: #214cf0;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.news-category-arriendo {
  background: #ef1721;
}

.news-category-consignacion {
  background: #159564;
}

.featured-news-date,
.news-list-date {
  margin: 0 0 10px;
  color: inherit;
  font-size: 0.88rem;
}

.featured-news-copy h2,
.news-list-copy h3 {
  margin: 0;
  color: inherit;
  font-family: var(--body-font);
  letter-spacing: 0;
}

.featured-news-copy h2 {
  font-size: clamp(1.08rem, 1.55vw, 1.48rem);
  line-height: 1.2;
}

.featured-news-card:first-child h2 {
  font-size: clamp(1.35rem, 2.3vw, 2.15rem);
}

.featured-news-copy > p:not(.featured-news-date) {
  display: none;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.featured-news-card:first-child .featured-news-copy > p:not(.featured-news-date) {
  display: block;
}

.news-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 22px 0 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.news-read span {
  transition: transform 0.2s ease;
}

.news-read:hover span,
.news-read:focus-visible span {
  transform: translateX(4px);
}

.news-catalog {
  padding-top: clamp(76px, 9vw, 124px);
}

.news-filter-heading {
  display: grid;
  justify-items: center;
  gap: 11px;
  margin-bottom: 24px;
}

.news-filter-heading p {
  margin: 0;
  color: #777f89;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.news-filter-heading span {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #214cf0;
}

.news-filters {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(76px, 9vw, 120px);
  padding: 8px;
  overflow-x: auto;
  border: 1px solid #e6e9ef;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(11, 28, 44, 0.1);
}

.news-filter {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  color: #5e6470;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.news-filter.active {
  color: #ffffff;
  background: #214cf0;
  box-shadow: 0 8px 18px rgba(33, 76, 240, 0.25);
}

.news-catalog h2 {
  margin-bottom: 38px;
  text-align: center;
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.news-list-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8ebf0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(11, 28, 44, 0.08);
}

.news-list-image {
  min-height: 245px;
  background-position: center;
  background-size: cover;
  transition: transform 0.5s ease;
}

.news-list-card:hover .news-list-image {
  transform: scale(1.035);
}

.news-list-copy {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}

.news-list-copy .news-category {
  margin-top: -44px;
  box-shadow: 0 7px 16px rgba(11, 28, 44, 0.2);
}

.news-list-date {
  color: #747b85;
}

.news-list-copy h3 {
  color: #121212;
  font-size: 1.22rem;
  line-height: 1.3;
}

.news-list-copy > p:not(.news-list-date) {
  margin: 14px 0 0;
  color: #4e5661;
  line-height: 1.55;
}

.news-list-copy .news-read {
  color: #103d67;
}

.news-status {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  place-items: center;
  margin: 0;
  color: #687180;
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  background: #f8fafc;
}

.news-socials {
  display: flex;
  gap: 18px;
}

.news-socials a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .featured-news-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .featured-news-card:first-child {
    grid-row: auto;
    min-height: 480px;
  }

  .featured-news-card:not(:first-child) {
    min-height: 230px;
  }

  .news-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .news-intro {
    padding-top: 48px;
  }

  .news-featured,
  .news-catalog {
    width: min(100% - 28px, 620px);
  }

  .featured-news-card:first-child {
    min-height: 430px;
  }

  .featured-news-card:not(:first-child) {
    grid-template-columns: 1fr;
  }

  .featured-news-card:not(:first-child) .featured-news-image {
    min-height: 220px;
  }

  .featured-news-card:first-child .featured-news-copy {
    width: 100%;
    padding: 30px 24px;
  }

  .news-filters {
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 76px;
  }

  .news-list-grid {
    grid-template-columns: 1fr;
  }

  .news-list-copy {
    min-height: 250px;
  }

  .news-socials {
    justify-content: center;
  }
}
