/* Modal de "Pedir una demo". Lo comparten las dos paginas: cualquier elemento
   con [data-demo-open] lo abre (ver js/demo-modal.js). El markup lo arma el JS,
   asi que aca esta todo el aspecto. Sin JS, esos mismos elementos siguen
   siendo links de contacto: nunca se convierten en un boton muerto. */

.lf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 5vh, 64px) 16px;
  overflow-y: auto;
  font-family: Inter, system-ui, sans-serif;
}
.lf-modal[hidden] { display: none; }

.lf-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 12, 32, .62);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .24s ease;
}
.lf-modal__card {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px -20px rgba(27, 21, 48, .55);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .26s ease, transform .3s cubic-bezier(.23, 1, .32, 1);
}
.lf-modal--in .lf-modal__backdrop { opacity: 1; }
.lf-modal--in .lf-modal__card { opacity: 1; transform: none; }

.lf-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #F3F0FB;
  color: #6A6F7E;
  font-family: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.lf-modal__close:hover { background: #EDE2FF; color: #5B21B6; }

.lf-modal__eyebrow {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7C3AED;
}
.lf-modal__title {
  margin: 0;
  padding-right: 40px;
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #1F2430;
}
.lf-modal__lead {
  margin: 12px 0 26px;
  font-size: 15px;
  line-height: 1.6;
  color: #6A6F7E;
}

.lf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .lf-grid { grid-template-columns: 1fr; } }

.lf-field label {
  font-size: 13px;
  font-weight: 600;
  color: #1F2430;
}
.lf-field label span { font-weight: 500; color: #9A96A8; }

.lf-field input,
.lf-field textarea {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #E0DFE9;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: #1F2430;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lf-field input::placeholder,
.lf-field textarea::placeholder { color: #B4B1BF; }
.lf-field input:hover,
.lf-field textarea:hover { border-color: #CFCADF; }
.lf-field input:focus,
.lf-field textarea:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .18);
}
.lf-field textarea {
  height: auto;
  min-height: 104px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}
.lf-field[data-invalid] input,
.lf-field[data-invalid] textarea { border-color: #DC2626; }
.lf-field[data-invalid] input:focus,
.lf-field[data-invalid] textarea:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .16); }

.lf-field__error {
  min-height: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #B91C1C;
}
.lf-field__error:empty { display: none; }

.lf-modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: #7C3AED;
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(124, 58, 237, .34);
  transition: background .18s ease, transform .18s cubic-bezier(.23, 1, .32, 1);
}
.lf-modal__submit:hover:not(:disabled) { background: #6D28D9; transform: translateY(-1px); }
.lf-modal__submit:disabled { opacity: .62; cursor: progress; box-shadow: none; }

.lf-modal__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: #9A96A8; }

.lf-modal__alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  font-size: 13.5px;
  line-height: 1.5;
  color: #991B1B;
}
.lf-modal__alert a { color: #991B1B; font-weight: 600; text-decoration: underline; }
.lf-modal__alert:empty { display: none; }

.lf-modal__done { text-align: center; padding: 8px 0 4px; }
.lf-modal__done span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: #F1EBFF;
  color: #7C3AED;
}
.lf-modal__done h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #1F2430;
}
.lf-modal__done p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: #6A6F7E; }

@media (prefers-reduced-motion: reduce) {
  .lf-modal__backdrop, .lf-modal__card { transition: none; }
}
