/* ============================================================
   COMPONENT: WhatsAppCTA — Botón WA contextual pre-llenado
   Uso: <a class="svc-wa-cta" data-section="hero|pricing|case" data-service="web|agencia|redes" data-package="landing|web|tarjeta|nivel1|nivel2|nivel3" data-type="ind|inst" href="...">...</a>
   El href se genera via JS: waLink({section, service, package, type})
   ============================================================ */

.svc-wa-cta {
  --wa-green: #25D366;
  --wa-green-hover: #1ebd5a;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: var(--wa-green);
  color: #0A0A0B;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(37,211,102,0.3);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.svc-wa-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.svc-wa-cta:hover {
  background: var(--wa-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(37,211,102,0.4);
}

.svc-wa-cta:hover::before { opacity: 1; }

.svc-wa-cta:active { transform: translateY(0) scale(0.98); }

.svc-wa-cta svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.svc-wa-cta--large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.svc-wa-cta--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: none;
}

.svc-wa-cta--ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--wa-green);
  color: var(--wa-green);
  box-shadow: 0 8px 32px rgba(37,211,102,0.2);
}

.svc-wa-cta:focus-visible {
  outline: 2px solid var(--wa-green);
  outline-offset: 3px;
}

/* Pulse animation for high-priority CTAs */
.svc-wa-cta--pulse {
  animation: svc-wa-pulse 2.5s ease-in-out infinite;
}

@keyframes svc-wa-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(37,211,102,0.3); }
  50% { box-shadow: 0 12px 48px rgba(37,211,102,0.55); }
}

/* WhatsApp icon inline */
.svc-wa-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .svc-wa-cta--pulse { animation: none; }
  .svc-wa-cta { transition: none; }
}