/* =========================
   Servicio detalle - CTA
========================= */

.servicio-detalle-cta {
  position: relative;
  width: 100%;
  margin-top: 34px;
  padding-bottom: 16px;
}

.servicio-detalle-cta-box {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  gap: 34px;
  min-height: 330px;
  padding: 40px 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 15%, rgba(74, 139, 255, 0.44), transparent 36%),
    radial-gradient(circle at 82% 14%, rgba(163, 86, 255, 0.48), transparent 38%),
    radial-gradient(circle at 90% 86%, rgba(255, 105, 216, 0.36), transparent 34%),
    linear-gradient(135deg, #173dba 0%, #2647cb 38%, #7748dd 72%, #d55be8 100%);
  box-shadow:
    0 28px 72px rgba(35, 45, 130, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* Luz que cruza y regresa al quitar el cursor */
.servicio-detalle-cta-box::before {
  content: "";
  position: absolute;
  top: -80%;
  left: -36%;
  z-index: 1;
  width: 34%;
  height: 260%;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 18%,
      rgba(255, 255, 255, 0.26) 48%,
      rgba(255, 255, 255, 0.06) 72%,
      transparent 100%
    );
  opacity: 0.68;
  transform: translateX(-130%) rotate(13deg);
  transition:
    transform 0.95s ease,
    opacity 0.35s ease;
}

.servicio-detalle-cta-box:hover::before {
  opacity: 0.86;
  transform: translateX(560%) rotate(13deg);
}

.servicio-detalle-cta-content,
.servicio-detalle-cta-actions {
  position: relative;
  z-index: 2;
}

.servicio-detalle-cta-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.servicio-detalle-cta-glow,
.servicio-detalle-cta-orb,
.servicio-detalle-cta-wave {
  position: absolute;
  pointer-events: none;
}

.servicio-detalle-cta-glow,
.servicio-detalle-cta-orb {
  border-radius: 999px;
}

.servicio-detalle-cta-glow {
  filter: blur(15px);
  opacity: 0.86;
}

.servicio-detalle-cta-glow-one {
  width: 360px;
  height: 360px;
  left: -150px;
  top: -150px;
  background: radial-gradient(circle, rgba(95, 156, 255, 0.36), transparent 68%);
}

.servicio-detalle-cta-glow-two {
  width: 360px;
  height: 360px;
  right: -145px;
  bottom: -155px;
  background: radial-gradient(circle, rgba(255, 118, 220, 0.34), transparent 68%);
}

.servicio-detalle-cta-glow-three {
  width: 260px;
  height: 260px;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(179, 132, 255, 0.2), transparent 70%);
}

.servicio-detalle-cta-wave {
  height: 145px;
  opacity: 0.58;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='220' viewBox='0 0 900 220' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-40 140C90 64 202 64 336 127C482 195 626 190 770 93C826 55 875 39 940 37' stroke='rgba(255,255,255,0.38)' stroke-width='2'/%3E%3Cpath d='M-10 176C115 108 236 102 354 154C494 216 632 202 768 122C834 84 888 70 948 76' stroke='rgba(255,255,255,0.16)' stroke-width='1.5'/%3E%3C/svg%3E");
}

.servicio-detalle-cta-wave-one {
  width: 60%;
  left: -7%;
  bottom: -18px;
  transform: rotate(-4deg);
}

.servicio-detalle-cta-wave-two {
  width: 58%;
  right: -9%;
  top: -18px;
  transform: rotate(7deg) scaleX(-1);
}

.servicio-detalle-cta-orb {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(103, 160, 255, 0.22), rgba(255, 136, 222, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.servicio-detalle-cta-orb-one {
  width: 76px;
  height: 76px;
  right: 29%;
  top: 15%;
}

.servicio-detalle-cta-orb-two {
  width: 112px;
  height: 112px;
  right: 7%;
  bottom: 12%;
}

.servicio-detalle-cta-content {
  max-width: 650px;
}

.servicio-detalle-cta-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.servicio-detalle-cta-content h2 {
  max-width: 620px;
  margin: 18px 0 0;
  color: #ffffff;
  font-size: clamp(2.1rem, 3.55vw, 3.18rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.058em;
}

.servicio-detalle-cta-content p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.68;
  font-weight: 560;
}

/* Link discreto, pero más visible */
.servicio-detalle-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  margin-top: 20px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    color 0.3s ease,
    gap 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.servicio-detalle-cta-link:hover {
  gap: 11px;
  color: #ffffff;
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.23), rgba(255, 255, 255, 0.12));
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.servicio-detalle-cta-actions {
  display: grid;
  gap: 13px;
  width: 100%;
}

.servicio-detalle-cta-button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

.servicio-detalle-cta-button::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -42%;
  width: 34%;
  height: 240%;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(255, 255, 255, 0.08) 18%,
      rgba(255, 255, 255, 0.58) 48%,
      rgba(255, 255, 255, 0.08) 72%,
      transparent 100%
    );
  opacity: 0.64;
  transform: translateX(-130%) rotate(13deg);
  transition:
    transform 0.7s ease,
    opacity 0.3s ease;
}

.servicio-detalle-cta-button:hover::before {
  opacity: 0.9;
  transform: translateX(560%) rotate(13deg);
}

.servicio-detalle-cta-button span,
.servicio-detalle-cta-button img {
  position: relative;
  z-index: 1;
}

.servicio-detalle-cta-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.servicio-detalle-cta-button-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.servicio-detalle-cta-button-primary {
  background: #ffffff;
  color: #1f4be3;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.servicio-detalle-cta-button-primary:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  color: #1d42d2;
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

/* Menos transparente y con más presencia */
.servicio-detalle-cta-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.15));
  color: #ffffff;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

.servicio-detalle-cta-button-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.66);
  background: #ffffff;
  color: #2349df;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .servicio-detalle-cta-box {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding: 36px 30px;
  }

  .servicio-detalle-cta-actions {
    max-width: 520px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .servicio-detalle-cta-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .servicio-detalle-cta {
    margin-top: 28px;
  }

  .servicio-detalle-cta-box {
    padding: 30px 20px;
    border-radius: 28px;
  }

  .servicio-detalle-cta-content h2 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
    letter-spacing: -0.052em;
  }

  .servicio-detalle-cta-content p {
    font-size: 0.94rem;
    line-height: 1.66;
  }

  .servicio-detalle-cta-actions {
    grid-template-columns: 1fr;
  }

  .servicio-detalle-cta-button {
    min-height: 51px;
  }

  .servicio-detalle-cta-orb-one {
    right: 8%;
    top: 7%;
  }

  .servicio-detalle-cta-orb-two {
    right: -38px;
    bottom: 10%;
  }

  .servicio-detalle-cta-wave-one,
  .servicio-detalle-cta-wave-two {
    width: 116%;
    height: 138px;
  }
}