/**
 * Hero split – fuente única (institucional + noticias + oraciones).
 * Clases BEM: fi-hero-split__*
 * Alias legacy: .fi-about-hero, .fi-news-hero (compatibilidad selectores adyacentes).
 */

.fi-hero-split,
.fi-about-hero,
.fi-news-hero {
  position: relative;
  min-height: clamp(360px, 44vh, 460px);
  display: flex;
  flex-direction: column;
  background: var(--fi-dark);
  overflow: hidden;
}

.fi-news-hero {
  min-height: clamp(380px, 46vh, 480px);
}

.fi-hero-split__bg,
.fi-about-hero-bg,
.fi-news-hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: 60%;
  z-index: 0;
}

.fi-hero-split__bg img,
.fi-about-hero-bg img,
.fi-news-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 38%;
}

.fi-hero-split__bg::after,
.fi-about-hero-bg::after,
.fi-news-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--fi-dark) 0%,
    rgba(18, 38, 72, 0.85) 12%,
    rgba(26, 50, 96, 0.35) 28%,
    transparent 48%
  );
  pointer-events: none;
}

.fi-hero-split::before,
.fi-about-hero::before,
.fi-news-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, var(--fi-dark) 0%, var(--fi-dark) 75%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.fi-hero-split__content,
.fi-about-hero-content,
.fi-news-hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--fi-header-offset) + 1.5rem) 0 3.25rem;
  position: relative;
  z-index: 5;
  color: var(--fi-white);
}

.fi-news-hero-content {
  padding-bottom: 3.5rem;
}

.fi-hero-split__text,
.fi-about-hero-text,
.fi-news-hero-text {
  max-width: 32rem;
  position: relative;
}

.fi-hero-split__dots,
.fi-about-hero-dots,
.fi-news-hero-dots {
  width: 22px;
  height: 22px;
  margin-bottom: 1rem;
  background-image: radial-gradient(var(--fi-orange) 2px, transparent 2px);
  background-size: 11px 11px;
  opacity: 0.95;
}

.fi-hero-split__label,
.fi-about-hero-label,
.fi-news-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fi-orange);
  margin-bottom: 0.75rem;
}

.fi-hero-split__text h1,
.fi-about-hero-text h1,
.fi-news-hero-text h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--fi-white);
  text-shadow: 0 2px 18px rgba(18, 38, 72, 0.4);
}

.fi-hero-split__text h1 span,
.fi-about-hero-text h1 span,
.fi-news-hero-text h1 span {
  color: var(--fi-orange);
}

.fi-hero-split__text p,
.fi-about-hero-text p,
.fi-news-hero-text p {
  font-size: clamp(0.9rem, 1.35vw, 1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 28rem;
  text-shadow: 0 1px 10px rgba(18, 38, 72, 0.3);
}

.fi-news-hero--partners {
  min-height: clamp(420px, 50vh, 540px);
}

.fi-news-hero--partners .fi-news-hero-content {
  padding-bottom: 1.5rem;
}

@media (max-width: 767px) {
  .fi-hero-split,
  .fi-about-hero,
  .fi-news-hero {
    min-height: clamp(420px, 54vh, 500px);
  }

  .fi-hero-split__content,
  .fi-about-hero-content,
  .fi-news-hero-content {
    align-items: flex-start;
    padding: calc(var(--fi-header-offset) + 1.25rem) 0 5rem;
  }

  .fi-hero-split__bg,
  .fi-about-hero-bg,
  .fi-news-hero-bg {
    top: 26%;
    width: 100%;
    left: 0;
    right: 0;
  }

  .fi-hero-split__bg img,
  .fi-about-hero-bg img,
  .fi-news-hero-bg img {
    object-position: center 32%;
  }

  .fi-hero-split::before,
  .fi-about-hero::before,
  .fi-news-hero::before {
    width: 100%;
    background: linear-gradient(
      180deg,
      var(--fi-dark) 0%,
      rgba(18, 38, 72, 0.9) 34%,
      rgba(18, 38, 72, 0.5) 54%,
      rgba(18, 38, 72, 0.15) 72%,
      transparent 88%
    );
  }

  .fi-hero-split__bg::after,
  .fi-about-hero-bg::after,
  .fi-news-hero-bg::after {
    background: linear-gradient(180deg, rgba(18, 38, 72, 0.55) 0%, transparent 40%);
  }
}
