body.demo { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 100dvh; background: #fff; }

/* Panel: toma el color y el ritmo de la demo elegida */
.demo-show {
  --panel: var(--brand);
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px clamp(24px, 5vw, 64px) 48px;
  overflow: hidden;
  isolation: isolate;
  background: var(--panel);
  transition: background-color .9s var(--ease);
}
.demo-show .ripple { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.demo-show .logo-img { height: 28px; }
.demo-copy h1 { margin: 10px 0 0; font-size: clamp(52px, 6.4vw, 104px); font-weight: 600; line-height: .92; letter-spacing: -.06em; }
.demo-copy h1 .px { font-size: .9em; letter-spacing: -.03em; }
.demo-copy .label { color: rgb(13 14 16 / .65); }
.demo-perks { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 8px; max-width: 360px; }
.demo-perks li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); font-size: 14px; }
.demo-perks .px { min-width: 34px; font-size: 20px; }

/* Formulario */
.demo-main { display: grid; place-items: center; padding: 48px clamp(20px, 5vw, 64px); }
.demo-form, .demo-done { width: min(560px, 100%); }
.back { font-size: 13px; color: var(--ink-3); }
.back:hover { color: var(--ink); }
.demo-form h2, .demo-done h2 { margin: 18px 0 6px; font-size: 40px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.sub { margin: 0 0 28px; color: var(--ink-3); }

.block { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.block legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 15px; }
.block legend .px { color: var(--brand-ink); margin-right: 6px; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field small { font-weight: 400; color: var(--ink-4); }
textarea.input { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.msg { margin-top: 12px; }

/* Elegir demo: tarjetas que se marcan */
.demo-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.opt {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.opt:hover { border-color: var(--ink-4); }
.opt:active { transform: scale(.98); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .pxdot { margin-top: 6px; grid-row: span 2; }
.opt b { font-size: 15px; font-weight: 600; }
.opt small { font-size: 12px; color: var(--ink-3); }
.opt::after { content: ''; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink-4); }
.opt:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--c) 22%, #fff); }
.opt:has(input:checked)::after { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt.all { grid-column: 1 / -1; }

.seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: var(--r-pill); background: var(--paper-2); }
.seg button { height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: none; font-size: 14px; }
.seg button[aria-checked='true'] { background: #fff; box-shadow: var(--shadow-1); font-weight: 550; }
.seg-wide { display: flex; }
.seg-wide button { flex: 1; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand-ink); flex: none; }
.demo-form .form-error { margin: 14px 0 0; }
.submit { width: 100%; height: 56px; margin-top: 12px; font-size: 16px; }

/* Confirmación */
.demo-done { text-align: left; animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.done-mark { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--brand-soft); }
.done-mark svg { width: 60px; height: auto; overflow: visible; }
.demo-done p { color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

@media (max-width: 900px) {
  body.demo { grid-template-columns: 1fr; }
  .demo-show { position: relative; height: auto; min-height: 52vh; gap: 40px; }
  .demo-perks { display: none; }
}
@media (max-width: 560px) {
  .grid2, .demo-pick { grid-template-columns: 1fr; }
}
