/* typography */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f5f7;
  color: #0f172a;
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.is-loaded {
  opacity: 1;
}

/* custom-animations */
@keyframes pulse-neon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.neon-glow {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35);
}

.gradient-text {
  background: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* demo page */
.qr-placeholder {
  background: repeating-conic-gradient(#e2e2e7 0% 25%, #ebebf0 0% 50%) 0 0 / 8px 8px;
  border-radius: 8px;
}

/* HubSpot form (embed v2 — DOM normal) — adaptado al design system de Identfy */
.hbspt-form,
.hs-form {
  width: 100% !important;
  font-family: 'Inter', sans-serif !important;
}

.hs-form-field {
  margin-bottom: 20px !important;
}

.hs-form-field > label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #64748b !important;
  margin-bottom: 8px !important;
}

.hs-form-field > label .hs-form-required {
  color: #7c3aed !important;
  margin-left: 2px !important;
}

.hs-form-field input[type="text"],
.hs-form-field input[type="email"],
.hs-form-field input[type="tel"],
.hs-form-field input[type="number"],
.hs-form-field input[type="url"],
.hs-form-field textarea,
.hs-form-field select {
  width: 100% !important;
  background-color: #f5f5f7 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #0f172a !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.hs-form-field input::placeholder,
.hs-form-field textarea::placeholder {
  color: #94a3b8 !important;
}

.hs-form-field input:focus,
.hs-form-field textarea:focus,
.hs-form-field select:focus {
  outline: none !important;
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2) !important;
}

.hs-form-field textarea {
  min-height: 120px !important;
  resize: vertical !important;
}

/* Checkbox / legal consent */
.hs-form-booleancheckbox,
.legal-consent-container .hs-form-booleancheckbox {
  margin-bottom: 12px !important;
}

.hs-form-booleancheckbox label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  cursor: pointer !important;
}

.hs-form-booleancheckbox input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #f5f5f7 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  position: relative !important;
  transition: all 0.2s !important;
}

.hs-form-booleancheckbox input[type="checkbox"]:checked {
  background-color: #7c3aed !important;
  border-color: #7c3aed !important;
}

.hs-form-booleancheckbox input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 6px !important;
  top: 2px !important;
  width: 5px !important;
  height: 10px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
}

.hs-form-booleancheckbox a {
  color: #7c3aed !important;
  text-decoration: none !important;
}

.hs-form-booleancheckbox a:hover {
  text-decoration: underline !important;
}

.hs-form-booleancheckbox span {
  display: inline !important;
}

/* Submit button */
.hs-submit {
  margin-top: 8px !important;
}

.hs-button,
input.hs-button[type="submit"] {
  width: 100% !important;
  background: linear-gradient(90deg, #7c3aed 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 24px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.35) !important;
  transition: opacity 0.2s !important;
}

.hs-button:hover,
input.hs-button[type="submit"]:hover {
  opacity: 0.9 !important;
}

/* Errores */
.hs-error-msgs {
  list-style: none !important;
  padding: 0 !important;
  margin: 6px 0 0 !important;
}

.hs-error-msg,
.hs-error-msgs label {
  font-size: 12px !important;
  color: #dc2626 !important;
}

.hs-form-field input.invalid,
.hs-form-field input.error {
  border-color: #dc2626 !important;
}

/* Mensaje de éxito (si no se redirige) */
.submitted-message {
  font-size: 14px !important;
  color: #0f172a !important;
  text-align: center !important;
  padding: 20px !important;
  background: #f5f5f7 !important;
  border-radius: 12px !important;
}

/* Layout grid de HubSpot (filas con varias columnas) */
.hs-form .hs-form-field .input {
  margin: 0 !important;
}

.hs-fieldtype-booleancheckbox > label {
  display: none !important;
}
