/* ============================================================
   SECCIÓN — Parallax
   Imagen fija al fondo + overlay + CTA centrado.
   ============================================================ */

.GO-parallax {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Imagen de fondo — reemplaza la URL por la tuya */
  background-image: url('https://plus.unsplash.com/premium_photo-1740363268539-cd9093c3b5d1?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=NHwxMjA3fDA%3D');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /* El fondo queda fijo mientras la página scrollea */
  background-attachment: fixed;
}

/* Capa oscura para legibilidad del texto */
.GO-parallax_overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 20, 40, 0.75) 0%,
    rgba(0, 61, 92, 0.65) 50%,
    rgba(0, 20, 40, 0.80) 100%
  );
  pointer-events: none;
}

/* Contenido centrado sobre la imagen */
.GO-parallax_content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 40px;
  text-align: center;
  color: #ffffff;
}

.GO-parallax_eyebrow {
  font-family:var(--font-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-small);
  margin: 0 0 15px 0;
  color:var(--go-teal);
  letter-spacing:var(--ls-small);
}

.GO-parallax_title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  margin: 0 0 25px 0;
  line-height:var(--lh-h2);
  letter-spacing: var(--ls-h2) ;
  background: linear-gradient(135deg, #e4e2e2 0%, #6ddbd2 50%, #0d6860 100%);  /* ✔ antes: 1000% */
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.GO-parallax_text {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 36px;
  max-width: 600px;
}

/* ============================================
   BOTÓN CTA — mismo lenguaje visual que el resto
   ============================================ */
.GO-parallax_cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 64px;
  border-radius: 60px;
  overflow: hidden;
  text-decoration: none;
  background: #ffffff;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.20),
    0 4px 10px rgba(0, 0, 0, 0.10);
  transition:
    transform 0.4s var(--ease-smooth),
    box-shadow 0.4s ease;
  isolation: isolate;
}

.GO-parallax_cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.28),
    0 8px 16px rgba(0, 0, 0, 0.15);
}

.GO-parallax_cta_gradient {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 30%, #BCCF00 0%, transparent 45%),
    radial-gradient(circle at 75% 40%, #00A29E 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, #BCCF00 0%, transparent 50%),
    radial-gradient(circle at 40% 65%, #ffd6a5 0%, transparent 45%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  filter: blur(12px) saturate(1.5);
  opacity: 0.75;
  animation: GO_parallax_cta_gradient 8s ease-in-out infinite;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

@keyframes GO_parallax_cta_gradient {
  0%   { background-position: 0% 50%;   transform: scale(1)    rotate(0deg);  }
  25%  { background-position: 100% 50%; transform: scale(1.1)  rotate(8deg);  }
  50%  { background-position: 100% 100%; transform: scale(1.05) rotate(-5deg); }
  75%  { background-position: 0% 100%;  transform: scale(1.1)  rotate(6deg);  }
  100% { background-position: 0% 50%;   transform: scale(1)    rotate(0deg);  }
}

.GO-parallax_cta:hover .GO-parallax_cta_gradient {
  animation-play-state: paused;
  opacity: 1;
}

.GO-parallax_cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -2px 6px rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.GO-parallax_cta_content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--go-ink);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.GO-parallax_cta_icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(-16px);
  opacity: 0;
  width: 20px;
  height: 20px;
  color: var(--go-ink);
  transition:
    opacity 0.45s var(--ease-smooth),
    transform 0.45s var(--ease-smooth);
  pointer-events: none;
}

.GO-parallax_cta_text {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.45s var(--ease-smooth);
  white-space: nowrap;
}

.GO-parallax_cta:hover .GO-parallax_cta_icon {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.GO-parallax_cta:hover .GO-parallax_cta_text {
  transform: translateX(14px);
}

/* --------------------------------------------
   Responsive
   -------------------------------------------- */
@media (max-width: 768px) {
  .GO-parallax {
    height: 420px;
    /* background-attachment: fixed da lag en iOS — lo desactivamos */
    background-attachment: scroll;
  }

  .GO-parallax_content {
    padding: 0 24px;
  }

  .GO-parallax_title {
    margin-bottom: 16px;
  }

  .GO-parallax_text {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .GO-parallax_cta {
    width: 100%;
    max-width: 280px;
    height: 58px;
  }
}

@media (max-width: 480px) {
  .GO-parallax {
    height: 380px;
  }

  .GO-parallax_text {
    font-size: 14px;
  }
}

/* Accesibilidad: respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .GO-parallax {
    background-attachment: scroll;
  }

  .GO-parallax_cta_gradient {
    animation: none;
  }
}
