.nx-pia-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}
.nx-pia-overlay.nx-pia-open { display: flex; }
.nx-pia-box {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.nx-pia-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
}
.nx-pia-close:hover { color: #0f172a; }
.nx-pia-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.nx-pia-sub {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0 0 28px;
}
.nx-pia-pregunta { margin-bottom: 26px; }
.nx-pia-qtext {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.97rem;
  margin: 0 0 12px;
}
.nx-pia-opciones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nx-pia-opcion {
  text-align: left;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}
.nx-pia-opcion:hover { border-color: #7c3aed; background: #f5f3ff; }
.nx-pia-opcion.nx-pia-selected {
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
}
.nx-pia-form { display: flex; flex-direction: column; gap: 16px; }
.nx-pia-form label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nx-pia-form input[type=text],
.nx-pia-form input[type=email],
.nx-pia-form input[type=tel] {
  font-weight: 400;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}
.nx-pia-form input:focus { outline: none; border-color: #7c3aed; }
.nx-pia-gdpr {
  flex-direction: row !important;
  align-items: center;
  font-weight: 400 !important;
  font-size: 0.82rem !important;
  color: #64748b !important;
}
.nx-pia-gdpr input { width: auto; }
.nx-pia-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.nx-pia-submit {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
.nx-pia-submit:hover { background: #6d28d9; }
.nx-pia-loading {
  text-align: center;
  padding: 40px 0;
  color: #64748b;
  font-size: 0.95rem;
}
.nx-pia-resultado {
  background: #f5f3ff;
  border-left: 4px solid #7c3aed;
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 20px;
}
.nx-pia-cierre {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0 0 20px;
}
@media (max-width: 560px) {
  .nx-pia-box { padding: 28px 20px; }
}
