/* Noticias page — sincronizado con template/BPP_Noticias.html */

.section-hero {
  height: 275px;
  background: var(--blue-xdk);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.sh-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.sh-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 100, 200, 0.95) 0%,
    rgba(20, 80, 168, 0.82) 20%,
    rgba(10, 50, 130, 0.72) 50%,
    rgba(10, 40, 100, 0.62) 100%
  );
}

.sh-wave {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.sh-sq1 {
  position: absolute;
  top: 48px;
  right: 80px;
  width: 18px;
  height: 18px;
  background: var(--blue);
  opacity: 0.85;
  z-index: 3;
}

.sh-sq2 {
  position: absolute;
  top: 70px;
  right: 102px;
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 3;
}

.sh-sq3 {
  position: absolute;
  top: 58px;
  right: 114px;
  width: 13px;
  height: 13px;
  background: var(--blue-md);
  opacity: 0.5;
  z-index: 3;
}

.sh-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px 44px;
  display: flex;
  align-items: flex-end;
  gap: 80px;
}

.sh-left {
  flex: 0 0 400px;
}

.sh-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sh-right {
  flex: 1;
  padding-bottom: 4px;
}

.sh-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.news-section {
  background: #fff;
  padding: 52px 0 72px;
}

.news-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px;
}

.featured-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  margin-bottom: 24px;
  border: 0.5px solid var(--gray-lt);
}

.featured-img {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: var(--blue-xdk);
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.featured-block:hover .featured-img img {
  transform: scale(1.03);
}

.featured-img-ph {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background: linear-gradient(160deg, var(--blue-xdk) 0%, var(--blue-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-img-ph span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured-content {
  padding: 36px 36px 36px;
  background: var(--area-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.feat-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--blue);
  padding: 3px 10px;
}

.feat-eyebrow-light {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 0;
}

.featured-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
}

.featured-title {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  color: var(--blue-xdk);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.featured-author {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.featured-excerpt {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 16px;
  font-style: italic;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
  flex: 1;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--blue);
  height: 40px;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s;
  align-self: flex-start;
}

.featured-cta:hover {
  background: var(--blue);
}

.featured-cta:hover .fcta-label {
  color: #fff;
}

.featured-cta:hover .fcta-div {
  background: rgba(255, 255, 255, 0.4);
}

.featured-cta:hover .fcta-arrow {
  color: #fff;
}

.fcta-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--blue-xdk);
  padding: 0 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.fcta-div {
  width: 1.5px;
  height: 20px;
  background: var(--blue);
  transition: background 0.2s;
}

.fcta-arrow {
  font-size: 13px;
  color: var(--blue);
  padding: 0 14px;
  transition: color 0.2s;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-divider-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-xdk);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--gray-lt);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.news-card {
  background: #fff;
  border: 0.5px solid var(--gray-lt);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    box-shadow 0.2s ease;
}

.news-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.news-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(27, 100, 200, 0.1);
}

.news-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: var(--blue-xdk);
  flex-shrink: 0;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.news-card.is-visible:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-media {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  max-width: 150px;
  height: 44px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(10, 42, 94, 0.2);
  box-shadow: 0 10px 24px rgba(10, 42, 94, 0.2);
  z-index: 3;
}

.news-card-media-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.news-card-media-domain {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-xdk);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.news-card-img-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--blue-xdk) 0%, var(--blue-md) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-img-ph span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-card-bar {
  height: 3px;
  flex-shrink: 0;
}

.cat-columna {
  background: var(--blue);
}

.cat-analisis {
  background: var(--blue-md);
}

.cat-sentencia {
  background: var(--blue-lt);
}

.cat-noticia {
  background: var(--blue-xdk);
}

.news-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-card-cat {
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 1px solid;
}

.cat-tag-columna {
  color: var(--blue);
  border-color: var(--blue-lt);
}

.cat-tag-analisis {
  color: var(--blue-md);
  border-color: rgba(61, 127, 212, 0.35);
}

.cat-tag-sentencia {
  color: var(--blue-lt);
  border-color: var(--blue-lt);
}

.cat-tag-noticia {
  color: var(--blue-xdk);
  border-color: rgba(10, 42, 94, 0.3);
}

.news-card-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
}

.news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-xdk);
  line-height: 1.35;
  flex: 1;
}

.news-card-author {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card-author:empty {
  display: none;
}

.news-card-excerpt {
  font-size: 12px;
  color: #888;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-read {
  font-size: 10px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
  margin-top: auto;
  padding-top: 4px;
}

.news-card.is-visible:hover .news-card-read {
  opacity: 1;
}

.news-card.is-visible:hover .news-card-media {
  box-shadow: 0 10px 24px rgba(10, 42, 94, 0.2);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--blue);
  height: 40px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Montserrat", sans-serif;
}

.load-more-btn:hover {
  background: var(--blue);
}

.load-more-btn:hover .lm-label {
  color: #fff;
}

.load-more-btn:hover .lm-div {
  background: rgba(255, 255, 255, 0.4);
}

.load-more-btn:hover .lm-arrow {
  color: #fff;
}

.lm-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-xdk);
  padding: 0 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.lm-div {
  width: 1.5px;
  height: 20px;
  background: var(--blue);
  transition: background 0.2s;
}

.lm-arrow {
  font-size: 13px;
  color: var(--blue);
  padding: 0 14px;
  transition: color 0.2s;
}

.load-more-btn.loading .lm-label {
  color: var(--gray-mid);
}

.load-more-btn.all-loaded {
  display: none;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1179px) {
  .sh-inner {
    padding: 0 32px 36px;
    gap: 48px;
  }

  .news-inner {
    padding: 0 32px;
  }

  .featured-block {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .section-hero {
    height: auto;
    min-height: 240px;
  }

  .sh-inner {
    flex-direction: column;
    gap: 16px;
    padding: 0 20px 28px;
  }

  .sh-left {
    flex: none;
  }

  .sh-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .news-inner {
    padding: 0 20px;
  }

  .featured-block {
    grid-template-columns: 1fr;
  }

  .featured-img {
    min-height: 220px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
