/* /account/demo (diseño 2026-11-27, propuesta aprobada por Martin): sin la cabecera del sitio, con su pie. A la
   izquierda, ilustración animada y los tres pasos (fija mientras se baja); a la derecha, el formulario. Por debajo de
   900px, una columna: primero el formulario y después la ilustración. La animación corre una vez al cargar; el estado
   sin animar es el final, así que «reducir movimiento» muestra la escena terminada. */
.dm-main { flex: 1; width: 100%; }
.dm { --dm-sky: #edf7fb; --dm-sky-2: #dff1f8; --dm-line: #c6dfe9; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); color: var(--reading); }
.dm-art { position: sticky; top: 0; height: 100vh; background: var(--dm-sky); display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 56px 48px; overflow: hidden; border-right: 1px solid var(--border); }
.dm-art::before { content: ""; position: absolute; width: 780px; height: 780px; border-radius: 50%; background: var(--dm-sky-2); right: -260px; bottom: -360px; }
.dm-scene { position: relative; width: 100%; max-width: 640px; height: auto; max-height: calc(100vh - 230px); }
.dm-steps { position: relative; list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 600px; width: 100%; }
.dm-steps li { background: var(--base); border: 1px solid var(--dm-line); border-radius: 12px; padding: 14px 14px 16px; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.dm-steps b { display: block; color: var(--ink); font-size: .95rem; margin: 6px 0 2px; }
.dm-n { font: 500 .78rem var(--font-mono); color: var(--accent); display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-subtle); }

.dm-panel { display: flex; flex-direction: column; padding: 40px clamp(20px, 5vw, 72px); }
.dm-brand img { width: 184px; height: auto; display: block; }
.dm-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.dm-lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--dm-line); border-radius: 999px; background: var(--base); }
.dm-lang a, .dm-lang span { font-size: .78rem; font-weight: 700; letter-spacing: .4px; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.dm-lang a:hover { color: var(--ink); }
.dm-lang a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dm-lang [aria-current="true"] { background: var(--brand); color: #fff; }
.dm-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 440px; width: 100%; margin: 0 auto; padding: 28px 0; }
.dm-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 14px; }
.dm-kicker svg { width: 16px; height: 16px; }
.dm h1 { color: var(--ink); font-size: 2rem; line-height: 1.1; letter-spacing: -1px; margin: 0 0 12px; }
.dm-lead { font-size: 1rem; line-height: 1.55; margin: 0 0 18px; }
.dm-tool { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--dm-line); background: var(--accent-subtle); border-radius: 12px; margin-bottom: 18px; }
.dm-tool__ic { flex: 0 0 36px; height: 36px; border-radius: 9px; background: var(--base); border: 1px solid var(--dm-line); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.dm-tool__ic svg { width: 20px; height: 20px; }
.dm-tool small { display: block; font-size: .75rem; color: var(--muted); letter-spacing: .3px; }
.dm-tool strong { color: var(--ink); font-size: 1rem; }
.dm-alert { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--danger-subtle); border: 1px solid #f2c2bf; color: var(--danger); font-size: .9rem; line-height: 1.45; }
.dm-form { margin: 0; }
.dm-field { margin-bottom: 14px; }
.dm-field label { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 7px; }
.dm-opt { font-weight: 400; color: var(--muted); }
.dm-field input, .dm-field textarea { width: 100%; box-sizing: border-box; font: 400 1rem var(--font-sans); color: var(--ink); border: 1.5px solid var(--dm-line); border-radius: 10px; background: var(--base); padding: 11px 14px; transition: border-color .2s, box-shadow .2s; }
.dm-field textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
.dm-field input:focus, .dm-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px #068ac626; }
.dm-field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-subtle); }
.dm-check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.5; margin: 4px 0 20px; cursor: pointer; padding: 12px 14px; border-radius: 10px; border: 1.5px solid transparent; background: var(--surface); }
.dm-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--brand); }
.dm-check--bad { border-color: var(--danger); background: var(--danger-subtle); }
.dm .cf-turnstile { margin: 0 0 16px; }
.dm-btn { display: flex; width: 100%; box-sizing: border-box; justify-content: center; align-items: center; height: 52px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: 700 1rem var(--font-sans); cursor: pointer; text-decoration: none; transition: background .2s; }
.dm-btn:hover { background: var(--accent-hover); color: #fff; }
.dm-btn:focus-visible { outline: 3px solid #068ac655; outline-offset: 3px; }
.dm-btn--ghost { background: var(--base); color: var(--accent); border: 1.5px solid var(--dm-line); }
.dm-btn--ghost:hover { background: var(--accent-subtle); color: var(--accent); }
.dm-btn + .dm-btn { margin-top: 12px; }
.dm-note { font-size: .84rem; color: var(--muted); margin: 12px 0 0; display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.dm-note svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; }
.dm-wrap > .dm-note { margin: 0 0 22px; }
.dm-alt { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: .92rem; display: flex; flex-direction: column; gap: 8px; }
.dm-alt a { color: var(--accent); font-weight: 700; text-decoration: none; }
.dm-alt a:hover { text-decoration: underline; }
.dm-badge { width: 56px; height: 56px; border-radius: 50%; background: #eaf7f2; color: #0e8f6a; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.dm-badge svg { width: 28px; height: 28px; }
.dm-badge--neutral { background: var(--accent-subtle); color: var(--accent); }

/* Ilustración: una vez al cargar. */
.dm-scene .typed, .dm-scene #btn, .dm-scene #pill, .dm-scene #row, .dm-scene #sparkles, .dm-scene #head { transform-box: fill-box; }
.dm-scene .typed { transform-origin: left center; }
.dm-scene #btn, .dm-scene #pill, .dm-scene #sparkles { transform-origin: center; }
.dm-scene #head { transform-origin: 40% 100%; }
.dm-scene #env { offset-path: path("M478 158 C 440 40 270 26 104 116"); offset-rotate: 0deg; offset-distance: 100%; opacity: 0; }
.dm-scene #sparkles { opacity: 0; }
.dm-scene #trail { opacity: .45; }
.dm-scene .t1 { animation: dm-type .7s steps(9) .5s both; }
.dm-scene .t2 { animation: dm-type .55s steps(7) 1.3s both; }
.dm-scene .t3 { animation: dm-type .8s steps(11) 2s both; }
@keyframes dm-type { from { transform: scaleX(0); } }
.dm-scene #tick { animation: dm-fade .2s 2.95s both; }
@keyframes dm-fade { from { opacity: 0; } }
.dm-scene #btn { animation: dm-press .45s ease-out 3.2s both; }
@keyframes dm-press { 0% { transform: scale(1); } 40% { transform: scale(.9); } 100% { transform: scale(1); } }
.dm-scene #arm { animation: dm-tap .5s ease-in-out 3.05s both; }
@keyframes dm-tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.dm-scene #trail { animation: dm-trail 1.3s ease-out 3.45s both; }
@keyframes dm-trail { from { opacity: 0; stroke-dashoffset: 60; } }
.dm-scene #env { animation: dm-fly 1.4s cubic-bezier(.45,.05,.4,1) 3.45s both; }
@keyframes dm-fly { 0% { offset-distance: 0%; opacity: 0; transform: scale(.6); } 10% { opacity: 1; transform: scale(1); } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; transform: scale(.7); } }
.dm-scene #row { animation: dm-rowin .5s ease-out 4.7s both; }
@keyframes dm-rowin { from { opacity: 0; transform: translateY(-8px); } }
.dm-scene #pill { animation: dm-pop .5s cubic-bezier(.3,1.6,.5,1) 5.05s both; }
@keyframes dm-pop { from { opacity: 0; transform: scale(.4); } }
.dm-scene #sparkles { animation: dm-spark .9s ease-out 5.15s both; }
@keyframes dm-spark { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
.dm-scene #head { animation: dm-nod .7s ease-in-out 5s both; }
@keyframes dm-nod { 0% { transform: rotate(0); } 40% { transform: rotate(-5deg); } 75% { transform: rotate(1deg); } 100% { transform: rotate(0); } }
/* Reposo en bucle, suave. */
.dm-scene #torso { transform-box: fill-box; transform-origin: 50% 100%; animation: dm-breathe 4s ease-in-out infinite; }
@keyframes dm-breathe { 50% { transform: scaleY(1.012); } }
.dm-scene #leaf { transform-box: fill-box; transform-origin: 50% 100%; animation: dm-sway 6s ease-in-out infinite; }
@keyframes dm-sway { 50% { transform: rotate(3deg); } }
.dm-scene #steam { animation: dm-steam 3s ease-in-out infinite; }
@keyframes dm-steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .7; } 100% { opacity: 0; transform: translateY(-10px); } }
/* Herramienta sin demo: sin el pedido en la bandeja. */
.dm--closed #row, .dm--closed #trail, .dm--closed #env, .dm--closed #sparkles { display: none; }
@media (prefers-reduced-motion: reduce) { .dm *, .dm *::before, .dm *::after { animation: none !important; transition: none !important; } }

@media (max-width: 900px) {
  .dm { grid-template-columns: 1fr; min-height: 0; }
  .dm-art { position: relative; height: auto; order: 2; padding: 28px 16px 32px; border-right: 0; border-top: 1px solid var(--border); }
  .dm-art::before { width: 520px; height: 520px; right: -200px; bottom: -280px; }
  .dm-scene { max-width: 440px; max-height: none; }
  .dm-steps { grid-template-columns: 1fr; gap: 10px; }
  .dm-steps li { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; padding: 12px 14px; }
  .dm-n { grid-row: span 2; }
  .dm-steps b { margin: 2px 0 0; }
  .dm-panel { padding: 20px 16px 28px; }
  .dm-brand img { width: 150px; }
  .dm-wrap { padding: 28px 0 4px; max-width: none; }
  .dm h1 { font-size: 1.85rem; }
}
/* Lista de herramientas que reciben demos (/account/demo sin app). */
.dm-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
