/* Noticias page components */
.noticias-page-main {
  background: var(--gray-bg);
}

.bpp-news-page {
  padding: 56px 0 72px;
}

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

.bpp-news-query {
  margin: 0;
}

.bpp-news-page.is-layout-flow > *,
.bpp-news-page__inner.is-layout-flow > *,
.bpp-news-query.is-layout-flow > *,
.bpp-news-card.is-layout-flow > *,
.bpp-news-overlay.is-layout-flow > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.bpp-news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 0;
  list-style: none;
  padding: 0;
}

.bpp-news-card {
  position: relative;
  overflow: hidden;
  height: 300px;
  background: var(--gray-lt);
}

.bpp-news-img-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* nc1..nc10 fallback backgrounds (used when post has no featured image) */
.bpp-news-grid > li:nth-child(10n + 1) .bpp-news-img-ph {
  background: linear-gradient(135deg, #b5d4f4 0%, #85b7eb 100%);
}

.bpp-news-grid > li:nth-child(10n + 2) .bpp-news-img-ph {
  background: linear-gradient(135deg, #0a3a78 0%, #1565c8 100%);
}

.bpp-news-grid > li:nth-child(10n + 3) .bpp-news-img-ph {
  background: linear-gradient(135deg, #378add 0%, #0a3a78 100%);
}

.bpp-news-grid > li:nth-child(10n + 4) .bpp-news-img-ph {
  background: linear-gradient(135deg, #85b7eb 0%, #378add 100%);
}

.bpp-news-grid > li:nth-child(10n + 5) .bpp-news-img-ph {
  background: linear-gradient(135deg, #0d4fa0 0%, #85b7eb 100%);
}

.bpp-news-grid > li:nth-child(10n + 6) .bpp-news-img-ph {
  background: linear-gradient(135deg, #1565c8 0%, #042c53 100%);
}

.bpp-news-grid > li:nth-child(10n + 7) .bpp-news-img-ph {
  background: linear-gradient(135deg, #b5d4f4 0%, #1565c8 100%);
}

.bpp-news-grid > li:nth-child(10n + 8) .bpp-news-img-ph {
  background: linear-gradient(135deg, #042c53 0%, #378add 100%);
}

.bpp-news-grid > li:nth-child(10n + 9) .bpp-news-img-ph {
  background: linear-gradient(135deg, #85b7eb 0%, #0a3a78 100%);
}

.bpp-news-grid > li:nth-child(10n + 10) .bpp-news-img-ph {
  background: linear-gradient(135deg, #378add 0%, #b5d4f4 100%);
}

/* Decorative signature squares inspired by static template */
.bpp-news-card::before,
.bpp-news-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.bpp-news-card::before {
  top: 12px;
  left: 12px;
  width: 12px;
  height: 12px;
  background: var(--blue);
  opacity: 0.85;
}

.bpp-news-card::after {
  top: 26px;
  left: 26px;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 1px solid var(--gray-lt);
  opacity: 0.8;
}

.bpp-news-card__image,
.bpp-news-card__image .wp-block-post-featured-image,
.bpp-news-card__image img,
.bpp-news-card > .wp-block-post-featured-image,
.bpp-news-card > .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
}

.bpp-news-card > .wp-block-post-featured-image {
  margin: 0;
  position: relative;
  z-index: 2;
}

.bpp-news-card > .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.bpp-news-card > .wp-block-post-featured-image img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.bpp-news-card:hover > .wp-block-post-featured-image img {
  transform: scale(1.05);
}

.bpp-news-box {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  background: #fff;
  padding: 18px;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.bpp-news-card:hover .bpp-news-box {
  opacity: 0;
}

.bpp-news-cat {
  margin: 0 0 7px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.bpp-news-title-box {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-xdk);
  line-height: 1.35;
  text-transform: none;
}

.bpp-news-title-box a {
  color: inherit;
  text-decoration: none;
}

.bpp-news-desc-box {
  margin: 0;
  font-size: 11px;
  color: var(--gray-mid);
  line-height: 1.55;
}

.bpp-news-desc-box .wp-block-post-excerpt__more-text {
  display: none;
}

.bpp-news-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 79, 160, 0.78);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  z-index: 4;
}

.bpp-news-card:hover .bpp-news-overlay {
  transform: translateY(0);
}

.bpp-no-cat {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bpp-no-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.bpp-no-title a {
  color: inherit;
  text-decoration: none;
}

.bpp-no-desc {
  margin: 0 0 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
}

.bpp-no-desc .wp-block-post-excerpt__more-text {
  display: none;
}

.bpp-no-meta {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.bpp-no-date {
  margin: 0;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: none;
}

.bpp-no-link {
  margin: 0;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.bpp-no-link:hover {
  text-decoration: underline;
}

.bpp-news-pagination {
  margin-top: 32px;
  gap: 8px;
}

.bpp-news-pagination .wp-block-query-pagination-numbers,
.bpp-news-pagination .wp-block-query-pagination-previous,
.bpp-news-pagination .wp-block-query-pagination-next {
  color: var(--blue-xdk);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 1179px) {
  .bpp-news-page__inner {
    padding: 0 32px;
  }

  .bpp-news-grid {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .bpp-news-page {
    padding: 40px 0 56px;
  }

  .bpp-news-page__inner {
    padding: 0 20px;
  }

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

  .bpp-news-card {
    height: 260px;
  }

  .bpp-news-box {
    width: 80%;
  }
}

/* Single noticia page */
.noticia-page-main {
  background: var(--gray-bg);
}

/* Editor: evitar que el hero posicionado colapse en el editor */
.editor-styles-wrapper .bpp-single-hero {
  min-height: 280px;
}

.editor-styles-wrapper .bpp-single-hero__inner {
  position: relative;
  z-index: 4;
}

.bpp-single-noticia,
.bpp-single-noticia.is-layout-flow > *,
.bpp-single-hero.is-layout-flow > *,
.bpp-single-hero__inner.is-layout-flow > *,
.bpp-single-meta-strip.is-layout-flow > *,
.bpp-single-meta-strip__inner.is-layout-flow > *,
.bpp-single-article.is-layout-flow > *,
.bpp-single-article__inner.is-layout-flow > *,
.bpp-single-related.is-layout-flow > *,
.bpp-single-related__inner.is-layout-flow > *,
.bpp-single-related-query.is-layout-flow > *,
.bpp-single-related-card.is-layout-flow > *,
.bpp-single-related-card__box.is-layout-flow > *,
.bpp-single-related-card__overlay.is-layout-flow > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.bpp-single-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(100deg, #0a1a3e 0%, #0d2d6b 45%, #0a1830 100%);
}

.bpp-single-hero__image-ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a3a78 0%, #378add 100%);
  z-index: 1;
}

.bpp-single-hero > .wp-block-post-featured-image,
.bpp-single-hero__image,
.bpp-single-hero__image .wp-block-post-featured-image,
.bpp-single-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.bpp-single-hero > .wp-block-post-featured-image,
.bpp-single-hero__image {
  z-index: 2;
}

.bpp-single-hero__image img,
.bpp-single-hero > .wp-block-post-featured-image img {
  object-fit: cover;
  object-position: center;
}

.bpp-single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 26, 62, 0.94) 0%,
    rgba(10, 26, 62, 0.72) 55%,
    rgba(10, 26, 62, 0.45) 100%
  );
  z-index: 3;
}

.bpp-single-hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px 40px;
}

.bpp-single-hero__eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bpp-single-hero__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.bpp-single-hero__title {
  margin: 0;
  max-width: 900px;
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.bpp-single-meta-strip {
  background: #fff;
  border-bottom: 1px solid var(--gray-lt);
}

.bpp-single-meta-strip__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 80px;
  gap: 18px;
}

.bpp-single-meta-strip__cat {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--blue-lt);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.bpp-single-meta-strip__cat a {
  color: inherit;
  text-decoration: none;
}

.bpp-single-meta-strip__tags {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bpp-single-meta-strip__tags a {
  color: var(--blue-xdk);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.bpp-single-meta-strip__tags a:hover {
  color: var(--blue);
}

.bpp-single-meta-strip__date {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bpp-single-article {
  background: #fff;
  padding: 52px 0 64px;
}

.bpp-single-article__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px;
}

.bpp-single-article__lead {
  margin: 0 0 38px;
  padding: 0 0 26px;
  border-bottom: 2px solid var(--blue);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-xdk);
  line-height: 1.7;
}

.bpp-single-article__lead .wp-block-post-excerpt__excerpt {
  margin: 0;
}

.bpp-single-article__lead .wp-block-post-excerpt__more-text {
  display: none;
}

.bpp-single-article__lead:empty {
  display: none;
}

.bpp-single-article__content {
  margin: 0;
  color: #3a3a3a;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.85;
}

.bpp-single-article__content > * {
  margin-top: 0;
  margin-bottom: 24px;
}

.bpp-single-article__content > *:last-child {
  margin-bottom: 0;
}

.bpp-single-article__content h2,
.bpp-single-article__content h3,
.bpp-single-article__content h4 {
  color: var(--blue-xdk);
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.2;
}

.bpp-single-article__content a {
  color: var(--blue);
}

.bpp-single-article__content blockquote {
  margin: 36px 0;
  padding: 24px 26px;
  border-left: 3px solid var(--blue);
  background: #f8fbff;
}

.bpp-single-article__content blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--blue-xdk);
  line-height: 1.6;
}

.bpp-single-related {
  background: var(--gray-bg);
  padding: 56px 0 64px;
}

.bpp-single-related__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px;
}

.bpp-single-related__eyebrow {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bpp-single-related__title {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-xdk);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bpp-single-related-query {
  margin: 0;
}

.bpp-single-related-grid {
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
}

.bpp-single-related-card {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--gray-lt);
}

.bpp-single-related-card__ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #85b7eb 0%, #0a3a78 100%);
  z-index: 1;
}

.bpp-single-related-card > .wp-block-post-featured-image,
.bpp-single-related-card__image,
.bpp-single-related-card__image .wp-block-post-featured-image,
.bpp-single-related-card__image img {
  width: 100%;
  height: 100%;
}

.bpp-single-related-card > .wp-block-post-featured-image,
.bpp-single-related-card__image {
  margin: 0;
  position: relative;
  z-index: 2;
}

.bpp-single-related-card > .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.bpp-single-related-card > .wp-block-post-featured-image img {
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.bpp-single-related-card:hover > .wp-block-post-featured-image img {
  transform: scale(1.05);
}

.bpp-single-related-card__box {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 62%;
  background: #fff;
  padding: 16px;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.bpp-single-related-card:hover .bpp-single-related-card__box {
  opacity: 0;
}

.bpp-single-related-card__cat {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.bpp-single-related-card__cat a {
  color: inherit;
  text-decoration: none;
}

.bpp-single-related-card__title {
  margin: 0;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-xdk);
  line-height: 1.35;
}

.bpp-single-related-card__title a {
  color: inherit;
  text-decoration: none;
}

.bpp-single-related-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 79, 160, 0.82);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  z-index: 4;
}

.bpp-single-related-card:hover .bpp-single-related-card__overlay {
  transform: translateY(0);
}

.bpp-single-related-card__overlay-cat {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bpp-single-related-card__overlay-cat a {
  color: inherit;
  text-decoration: none;
}

.bpp-single-related-card__overlay-title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.bpp-single-related-card__overlay-title a {
  color: inherit;
  text-decoration: none;
}

.bpp-single-related-card__overlay-link {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.bpp-single-related-card__overlay-link:hover {
  text-decoration: underline;
}

@media (max-width: 1179px) {
  .bpp-single-hero__inner,
  .bpp-single-meta-strip__inner,
  .bpp-single-article__inner,
  .bpp-single-related__inner {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 767px) {
  .bpp-single-hero {
    min-height: 220px;
  }

  .bpp-single-hero__inner {
    padding: 0 20px 28px;
  }

  .bpp-single-hero__title {
    font-size: clamp(18px, 5vw, 26px);
  }

  .bpp-single-meta-strip__inner {
    padding: 10px 20px;
    gap: 12px;
  }

  .bpp-single-article {
    padding: 36px 0 48px;
  }

  .bpp-single-article__inner {
    padding: 0 20px;
  }

  .bpp-single-article__lead {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .bpp-single-related {
    padding: 40px 0 48px;
  }

  .bpp-single-related__inner {
    padding: 0 20px;
  }

  .bpp-single-related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bpp-single-related-card {
    height: 220px;
  }

  .bpp-single-related-card__box {
    width: 80%;
  }
}

/* ── Pull Quote pattern ── */
.bpp-pull-quote {
  position: relative;
  overflow: hidden;
  background: #0a2a5e; /* --blue-xdk fallback hardcoded */
  background: var(--blue-xdk, #0a2a5e);
  padding: 44px 52px;
  margin: 0;
}

.bpp-pull-quote,
.bpp-pull-quote.is-layout-flow > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* SVG wave decorativa: z-index 1 para quedar detrás del contenido */
.bpp-pull-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 700 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C120,25 240,95 360,60 S560,25 700,60' stroke='%234ECDC4' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0,80 C140,45 260,110 380,75 S580,40 700,80' stroke='%234ECDC4' stroke-width='1' fill='none' opacity='.5'/%3E%3Cpath d='M0,40 C100,10 220,75 340,45 S540,10 700,40' stroke='%234ECDC4' stroke-width='.8' fill='none' opacity='.35'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

/* Cuadrado decorativo */
.bpp-pull-quote::after {
  content: "";
  position: absolute;
  bottom: 20px;
  right: 24px;
  width: 12px;
  height: 12px;
  z-index: 1;
  background: #1b64c8;
  background: var(--blue, #1b64c8);
  opacity: 0.6;
  pointer-events: none;
}

.bpp-pull-quote__mark {
  margin: 0 0 4px;
  font-family: "Crimson Pro", Georgia, serif;
  font-family: var(--serif, "Crimson Pro", Georgia, serif);
  font-size: 72px;
  font-weight: 400;
  color: rgba(27, 100, 200, 0.4);
  line-height: 0.8;
  position: relative;
  z-index: 2;
}

.bpp-pull-quote__text {
  margin: 0 0 20px;
  font-family: "Crimson Pro", Georgia, serif;
  font-family: var(--serif, "Crimson Pro", Georgia, serif);
  font-size: 20px;
  font-style: italic;
  color: #ffffff;
  line-height: 1.65;
  position: relative;
  z-index: 2;
}

.bpp-pull-quote__source {
  margin: 0;
  display: block;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: "IBM Plex Mono", monospace;
  font-family: var(--mono, "IBM Plex Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  .bpp-pull-quote {
    padding: 28px 24px;
  }

  .bpp-pull-quote__text {
    font-size: 17px;
  }
}
