/* Formulario de asesoría gratis (compartido por todas las páginas del sitio).
   Usa los mismos tokens de color que cada página (--surface, --ink, --brand…),
   con valores de respaldo por si alguna página no los define. */
.va-dialog {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line, #E6E1F2);
  border-radius: 22px;
  background: var(--surface, #FFFFFF);
  color: var(--ink, #1A1530);
  box-shadow: 0 24px 64px -16px rgba(26, 21, 48, .45);
  font: 400 16px/1.5 var(--f-body, "Inter", "Segoe UI", system-ui, sans-serif);
  overflow: auto;
  overscroll-behavior: contain;
}
.va-dialog::backdrop { background: rgba(16, 11, 28, .55); backdrop-filter: blur(3px); }
.va-dialog[open] { animation: va-in .18s ease-out; }
@keyframes va-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .va-dialog[open] { animation: none; } }

.va-in { padding: 24px clamp(18px, 5vw, 28px) 22px; display: grid; gap: 18px; }
.va-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.va-head h2 { margin: 0; font: 600 24px/1.15 var(--f-display, "Poppins", system-ui, sans-serif); letter-spacing: -0.02em; }
.va-head p { margin: 6px 0 0; color: var(--muted, #5C5670); font-size: 15px; }
.va-close { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line, #E6E1F2); background: transparent; color: var(--muted, #5C5670); cursor: pointer; display: grid; place-items: center; }
.va-close:hover { color: var(--ink, #1A1530); border-color: var(--muted, #5C5670); }
.va-close svg { width: 16px; height: 16px; }

.va-form { display: grid; gap: 14px; }
.va-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 460px) { .va-row { grid-template-columns: minmax(0, 1fr); } }
.va-field { display: grid; gap: 6px; min-width: 0; }
.va-field label { font-weight: 600; font-size: 14px; }
.va-field input, .va-field select {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line, #E6E1F2); background: var(--bg, #FBFAFE); color: var(--ink, #1A1530);
  font: 400 16px/1.2 var(--f-body, "Inter", system-ui, sans-serif); /* 16px evita el zoom en iPhone */
  -webkit-appearance: none; appearance: none;
}
.va-field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237F56D9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.va-field input::placeholder { color: var(--muted, #5C5670); opacity: .75; }
.va-field input:focus, .va-field select:focus { outline: none; border-color: var(--brand, #7F56D9); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #7F56D9) 25%, transparent); }
.va-field .va-err { display: none; color: var(--err, #B42318); font-size: 13px; }
.va-field.bad input, .va-field.bad select { border-color: var(--err, #B42318); }
.va-field.bad .va-err { display: block; }

.va-send {
  min-height: 52px; border: 0; border-radius: 14px; cursor: pointer; margin-top: 4px;
  background: var(--brand, #7F56D9); color: var(--on-brand, #FFFFFF);
  font: 600 16px/1 var(--f-body, "Inter", system-ui, sans-serif);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, transform .15s;
}
.va-send:hover { background: var(--brand-strong, #6941C6); transform: translateY(-1px); }
.va-send svg { width: 20px; height: 20px; }
.va-note { margin: 0; color: var(--muted, #5C5670); font-size: 13px; text-align: center; }
.va-note a { color: inherit; }

.va-done { display: grid; gap: 10px; text-align: center; justify-items: center; padding: 8px 0 4px; }
.va-done .va-ok { width: 52px; height: 52px; border-radius: 50%; background: var(--soft, #F4EFFF); color: var(--brand, #7F56D9); display: grid; place-items: center; }
.va-done .va-ok svg { width: 26px; height: 26px; }
.va-done h3 { margin: 0; font: 600 20px/1.2 var(--f-display, "Poppins", system-ui, sans-serif); }
.va-done p { margin: 0; color: var(--muted, #5C5670); font-size: 15px; max-width: 34ch; }
.va-done a { color: var(--brand, #7F56D9); font-weight: 600; }

/* Campo trampa contra bots: fuera de la vista y del orden de tabulación */
.va-trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
