/* =========================================================
   HERO TRANSITION CTA
   Puente visual entre HERO e INTRO
   Nube azul arriba + nube nocturna encima del corte
========================================================= */

.hero-transition-section {
  position: relative;
  overflow: visible;

  min-height: 330px;
  padding: 60px 5vw 145px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: -80px;
  margin-bottom: -120px;

  background: transparent;

  color: #ffffff;

  z-index: 20;
  isolation: isolate;

  box-shadow:
    inset 0 70px 90px rgba(128, 220, 255, 0.18),
    inset 0 -95px 110px rgba(23, 43, 130, 0.26);
}

/* =========================================================
   NUBE AZUL SUPERIOR
   Queda debajo de la nube nocturna y debajo de los botones
========================================================= */

.hero-transition-section::before {
  content: "";
  position: absolute;

  left: 50%;
  top: 46%;

  width: 110%;
  height: 390px;

  transform: translate(-50%, -50%);

  background-image: url("../img/hero/nube-azul.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  opacity: 0.94;

  pointer-events: none;
  z-index: 1;

  -webkit-mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.72) 16%,
      rgba(0, 0, 0, 1) 32%,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0.72) 86%,
      rgba(0, 0, 0, 0) 100%
    );

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.72) 16%,
      rgba(0, 0, 0, 1) 32%,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, 0.72) 86%,
      rgba(0, 0, 0, 0) 100%
    );
}

/* =========================================================
   NUBE NOCTURNA INFERIOR
   Va SOBRE la línea para tapar el corte visual
========================================================= */

.hero-transition-section::after {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -38px;

  width: 118%;
  height: 340px;

  transform: translateX(-50%);

  background-image: url("../img/intro/nubenoche.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  opacity: 1;

  z-index: 10;
  pointer-events: none;

  -webkit-mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0.74) 8%,
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 88%,
      rgba(0, 0, 0, 0.62) 96%,
      rgba(0, 0, 0, 0) 100%
    );

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0.74) 8%,
      rgba(0, 0, 0, 1) 20%,
      rgba(0, 0, 0, 1) 88%,
      rgba(0, 0, 0, 0.62) 96%,
      rgba(0, 0, 0, 0) 100%
    );
}

/* Glow desactivado para evitar manchas rectangulares */
.hero-transition-glow {
  display: none;
}

/* =========================================================
   CONTENIDO ENCIMA DE LAS NUBES
========================================================= */

.hero-transition-inner {
  position: relative;
  z-index: 20;

  width: min(100%, 980px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.hero-transition-kicker {
  margin: 0 0 16px;

  color: rgba(255, 255, 255, 0.95);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  text-shadow:
    0 4px 14px rgba(7, 16, 56, 0.34),
    0 10px 24px rgba(7, 16, 56, 0.2);
}

/* =========================================================
   CÁPSULA DE BOTONES
========================================================= */

.hero-transition-actions {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  padding: 12px 14px;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);

  background: rgba(83, 173, 245, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 14px 36px rgba(43, 120, 197, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.transition-btn {
  min-height: 68px;
  padding: 0 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.transition-btn:hover {
  transform: translateY(-2px);
}

/* Botón principal blanco */
.transition-btn-primary {
  min-width: 220px;

  background: #ffffff;
  color: #1d4674;

  border: 1px solid rgba(255, 255, 255, 0.85);

  box-shadow:
    0 10px 24px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.transition-btn-primary:hover {
  background: #ffffff;
  color: #173c68;

  box-shadow:
    0 14px 30px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Botón glass */
.transition-btn-glass {
  min-width: 270px;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.28);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.transition-btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 720px) {
  .hero-transition-section {
    min-height: 300px;
    padding: 58px 20px 120px;

    margin-top: -55px;
    margin-bottom: -95px;

 box-shadow:
  inset 0 110px 130px rgba(128, 220, 255, 0.28),
  inset 0 -150px 150px rgba(23, 43, 130, 0.46);
  }

  .hero-transition-section::before {
    width: 135%;
    height: 340px;
    top: 45%;

    background-size: cover;
    background-position: center center;
  }

  .hero-transition-section::after {
    width: 140%;
    height: 90px;
    bottom: -5px;

    background-size: cover;
    background-position: center top;
  }

  .hero-transition-actions {
    width: 100%;
    max-width: 430px;

    flex-direction: column;
    gap: 10px;

    padding: 12px;
    border-radius: 28px;
  }

  .transition-btn {
    width: 100%;
    min-height: 60px;
    padding: 0 20px;
  }

  .transition-btn-primary,
  .transition-btn-glass {
    min-width: 0;
  }

  .hero-transition-kicker {
    max-width: 320px;
    line-height: 1.5;
  }
}