.nubo-hero-bottom {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #EFF0F4;
  overflow: hidden;
  padding-bottom: 64px;
}

.nubo-hero-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
      #EFF0F4 0%,
      rgba(239, 240, 244, 0) 30%,
      rgba(239, 240, 244, 0) 80%,
      rgba(239, 240, 244, 0.1));
}

.nubo-hero-bottom__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* Modo Video en Bucle: altura limitada (~900px) sobre fondo blanco con degradado superior e inferior */
.nubo-hero-bottom.has-video {
  min-height: 980px;
  background-image: none;
  background-color: #ffffff;
  padding-top: 120px;
  padding-bottom: 64px;
}

.nubo-hero-bottom.has-video::before {
  display: none;
}

.nubo-hero-bottom.has-video .nubo-hero-bottom__video-wrapper {
  height: 900px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 7%,
    rgba(0, 0, 0, 0.55) 15%,
    black 25%,
    black 52%,
    rgba(0, 0, 0, 0.45) 74%,
    transparent 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 7%,
    rgba(0, 0, 0, 0.55) 15%,
    black 25%,
    black 52%,
    rgba(0, 0, 0, 0.45) 74%,
    transparent 94%,
    transparent 100%
  );
}

/* Fallback con overlay blanco para navegadores sin soporte de CSS mask-image */
@supports (not (mask-image: linear-gradient(to bottom, black, transparent))) and (not (-webkit-mask-image: linear-gradient(to bottom, black, transparent))) {
  .nubo-hero-bottom.has-video .nubo-hero-bottom__video-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      #ffffff 0%,
      #ffffff 7%,
      rgba(255, 255, 255, 0.45) 15%,
      rgba(255, 255, 255, 0) 25%,
      rgba(255, 255, 255, 0) 52%,
      rgba(255, 255, 255, 0.55) 74%,
      #ffffff 94%,
      #ffffff 100%
    );
  }
}

.nubo-hero-bottom__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.nubo-hero-bottom__container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.nubo-hero-bottom__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.nubo-hero-bottom__content.is-glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 48px 44px;
  box-shadow: 0 16px 48px rgba(0, 82, 141, 0.12);
  max-width: 820px;
}

.nubo-hero-bottom__pre-title {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nubo-hero-bottom__pre-title-img {
  max-height: 130px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.nubo-hero-bottom__pre-title-badge {
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1278D5;
  background-color: rgba(18, 120, 213, 0.1);
  padding: 6px 18px;
  border-radius: 50px;
}

.nubo-hero-bottom__title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 44px;
  font-weight: 300;
  color: #00528D;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.nubo-hero-bottom__title strong,
.nubo-hero-bottom__title b {
  font-weight: 700;
  background: radial-gradient(ellipse at 50% 35%, #5BB0EC 0%, #2B76D9 50%, #1B4E8C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.nubo-hero-bottom__subtitle {
  font-family: 'Noto Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #201C1D;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 28px auto;
}

.nubo-hero-bottom__subtitle strong,
.nubo-hero-bottom__subtitle b {
  font-weight: 700;
  color: #201C1D;
}

.nubo-hero-bottom__action {
  display: inline-flex;
  justify-content: center;
}

.nubo-hero-bottom__action .nubo-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(18, 120, 213, 0.35);
  transition: all 0.3s ease;
}


.nubo-btn__arrow {
  transition: transform 0.2s ease;
}

.nubo-hero-bottom__action .nubo-btn:hover .nubo-btn__arrow {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .nubo-hero-bottom {
    min-height: 75vh;
    padding-bottom: 48px;
  }

  .nubo-hero-bottom.has-video {
    min-height: 760px;
    padding-bottom: 48px;
  }

  .nubo-hero-bottom.has-video .nubo-hero-bottom__video-wrapper {
    height: 680px;
  }

  .nubo-hero-bottom__content.is-glass-card {
    padding: 36px 28px;
    border-radius: 20px;
  }

  .nubo-hero-bottom__title {
    font-size: 36px;
  }

  .nubo-hero-bottom__subtitle {
    font-size: 16px;
  }
}

@media (min-height: 670px) and (max-height: 980px) {
  .nubo-hero-bottom {
    background-position: bottom;
    min-height: 150vh;
  }
}

@media (max-width: 768px) {
  .nubo-hero-bottom,
  .nubo-hero-bottom.has-video {
    background-image: var(--hero-bg-mobile);
    background-color: #EFF0F4;
    min-height: 75vh;
    padding-top: 0;
  }

  .nubo-hero-bottom.has-video::before {
    display: block;
  }

  .nubo-hero-bottom__video-wrapper {
    display: none;
  }
}

@media (max-width: 576px) {
  .nubo-hero-bottom,
  .nubo-hero-bottom.has-video {
    min-height: 65vh;
    padding-bottom: 32px;
  }

  .nubo-hero-bottom__content.is-glass-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .nubo-hero-bottom__title {
    font-size: 28px;
  }

  .nubo-hero-bottom__subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .nubo-hero-bottom__action .nubo-btn {
    padding: 12px 28px;
    font-size: 15px;
  }
}