/* ===========================================================================
   Webskill · Botón flotante + ventana (modal) del diagnóstico
   =========================================================================== */
.wskd-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245, 200, 0, 0.5);
  border-radius: 999px;
  padding: 14px 22px;
  background: #0C0C0C;
  color: #FAFAFA;
  cursor: pointer;
  font-family: 'Sora', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.wskd-launcher:hover {
  transform: translateY(-2px);
  border-color: #F5C800;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.5);
}
.wskd-launcher:focus-visible { outline: 3px solid #F5C800; outline-offset: 3px; }
.wskd-launcher.wskd-left { right: auto; left: 24px; }
.wskd-launcher .wskd-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #F5C800;
  box-shadow: 0 0 0 4px rgba(245, 200, 0, 0.22);
  animation: wskdPulse 2s ease-in-out infinite;
}

.wskd-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(76px, 9vh, 110px) 16px 32px;
  overflow-y: auto;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.wskd-overlay.is-open { display: flex; }
.wskd-dialog { position: relative; width: 100%; max-width: 760px; margin: 0 auto; }
.wskd-overlay .lead-magnet { width: 100%; margin: 0; padding: 0; }
.wskd-close {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.85);
  color: #FAFAFA;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
/* Reserva hueco para que la X no tape el texto del paso superior derecho.
   Desktop (4 col): la X cae sobre el 4º paso. */
@media (min-width: 621px) {
  .wskd-overlay .lead-magnet .stepper li:last-child { padding-right: 46px; }
}
.wskd-close:hover { background: #1E1E1E; border-color: #F5C800; color: #F5C800; }
.wskd-close:focus-visible { outline: 3px solid #F5C800; outline-offset: 2px; }

@keyframes wskdPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }

@media (max-width: 620px) {
  .wskd-launcher { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 14px; }
  .wskd-launcher.wskd-left { left: 16px; }
  .wskd-overlay { padding-left: 10px; padding-right: 10px; }
  .wskd-close { top: 7px; right: 7px; width: 34px; height: 34px; }
  .wskd-overlay .lead-magnet .stepper li:nth-child(2) { padding-right: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .wskd-launcher, .wskd-dot { animation: none !important; transition: none !important; }
}
