/* Pedido de demo (pedir-demo/): sobre home.css. Tokens y campos copiados de login.css (que pisa el body de home.css): si cambian allá, cambiarlos acá. */
:root { --input: oklch(0.89 0.005 60); --destructive: oklch(0.53 0.2 27); }
@media (prefers-color-scheme: dark) { :root { --input: oklch(1 0 0 / 14%); --destructive: oklch(0.68 0.18 25); } }

.ask { max-width: calc(26rem + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 96px; }
.ask h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; }
.ask-lead { margin-top: 8px; color: var(--muted-foreground); }

#demo { display: grid; gap: 20px; margin-top: 32px; }
#demo[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.optional { font-weight: 400; color: var(--muted-foreground); }
.field input {
  width: 100%; height: 44px; padding: 0 12px; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--input); border-radius: 8px; outline: none;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.field input:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
@media (pointer: coarse) { .field input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .field input { transition: none; } }
.cf-turnstile { min-height: 65px; } /* el lugar del widget, para que nada salte cuando carga */

/* Vacío no ocupa lugar pero sigue en el árbol: el lector anuncia el error cuando aparece. */
.error { font-size: 14px; color: var(--destructive); }
.error:empty { margin-top: -20px; } /* compensa el gap de #demo */
#demo button { width: 100%; border: 0; font-family: inherit; cursor: pointer; }
#demo button:disabled { opacity: 0.6; cursor: default; }
.fine { font-size: 13px; color: var(--muted-foreground); text-align: center; }

.done { margin-top: 32px; padding: 24px; border-radius: 12px; background: var(--shelf); outline: none; }
.done h2 { font-size: 20px; line-height: 1.4; letter-spacing: -0.02em; }
.done #done-email { overflow-wrap: anywhere; }
.done p { margin-top: 12px; font-size: 14px; color: var(--muted-foreground); }
@media (prefers-reduced-motion: no-preference) {
  .done:not([hidden]) { animation: done-in 250ms var(--ease-out); }
  @keyframes done-in { from { opacity: 0; translate: 0 6px; } }
}
