/* A fictional business chat and appointment card; no third-party logos or services. */
#citas-demo { margin-top:28px; }
.cd-scenarios { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:22px; }
.cd-scenario { display:flex; align-items:center; justify-content:center; gap:9px; min-width:0; min-height:54px; padding:12px; border:1px solid var(--border); border-radius:12px; color:var(--text-secondary); background:var(--surface-soft); font:inherit; font-size:.82rem; line-height:1.35; cursor:pointer; }
.cd-scenario svg { width:19px; height:19px; flex-shrink:0; }
.cd-scenario:hover { color:var(--text); border-color:var(--border-strong); }
.cd-scenario[aria-pressed="true"] { color:var(--text); background:var(--surface-raised); border-color:var(--border-strong); box-shadow:inset 0 -3px var(--accent); font-weight:650; }
.cd-demo-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px 20px; margin:0 0 24px; }
.cd-demo-toolbar > p { margin:0; color:var(--text-secondary); font-size:.72rem; line-height:1.5; }
.cd-demo-actions { display:flex; flex-wrap:wrap; gap:10px; }
.cd-demo-actions button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; padding:11px 17px; border:1px solid var(--border-strong); border-radius:12px; font:inherit; font-size:.8rem; line-height:1.3; font-weight:650; text-decoration:none; cursor:pointer; transition:background-color 160ms ease,border-color 160ms ease; }
.cd-demo-actions svg { flex-shrink:0; width:18px; height:18px; }
.cd-demo-actions .cd-run { background:var(--accent); color:var(--on-accent); border-color:var(--accent); box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 18%,transparent); }
.cd-demo-actions .cd-run:hover:not([aria-disabled="true"]) { background:var(--accent-hover); border-color:var(--accent-hover); }
.cd-demo-actions .cd-stop { background:var(--surface-soft); color:var(--text); }
.cd-demo-actions .cd-stop:hover { background:var(--surface-raised); }
.cd-demo-actions button:disabled,.cd-demo-actions button[aria-disabled="true"] { background:var(--disabled); color:var(--disabled-text); border-color:var(--disabled); box-shadow:none; cursor:default; }
.cd-example { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:start; gap:36px; }
.cd-chat { --cd-chat-bg:#161a18; --cd-chat-head:#202622; --cd-bubble:#242626; --cd-chat-text:#f4f4f4; --cd-chat-muted:#bac3bd; --cd-chat-line:#3b443e; --cd-chat-green:#21d56b; min-width:0; color:var(--cd-chat-text); background:var(--cd-chat-bg); border:1px solid var(--cd-chat-line); border-radius:18px; overflow:hidden; font-family:"Segoe UI",system-ui,sans-serif; box-shadow:0 12px 34px #00000014; }
:root[data-theme="light"] .cd-chat { --cd-chat-bg:#efeae2; --cd-chat-head:#f6f7f4; --cd-bubble:#ffffff; --cd-chat-text:#172e2a; --cd-chat-muted:#496660; --cd-chat-line:#c8d5cd; --cd-chat-green:#086653; }
.cd-chat-header { display:flex; align-items:center; gap:12px; min-height:78px; padding:15px 20px; background:var(--cd-chat-head); border-bottom:1px solid var(--cd-chat-line); }
.cd-avatar { display:grid; place-items:center; flex-shrink:0; width:46px; height:46px; border-radius:50%; color:#dcfff1; background:#176f60; font-size:16px; font-weight:650; letter-spacing:.02em; }
.cd-chat-header > div:last-child { min-width:0; }
.cd-chat-header h4 { margin:0 0 4px; color:var(--cd-chat-text); font-size:1rem; font-weight:650; line-height:1.3; }
.cd-chat-header span { display:block; color:var(--cd-chat-muted); font-size:11px; line-height:1.5; }
.cd-chat-body { min-height:400px; height:auto; padding:18px 22px 24px; background:var(--cd-chat-bg); }
.cd-chat-date { width:max-content; max-width:100%; margin:0 auto 19px; padding:6px 11px; border-radius:8px; background:var(--cd-chat-head); color:var(--cd-chat-muted); font-size:10px; line-height:1.4; text-align:center; box-shadow:0 1px 2px #0000000f; }
.cd-chat-history { display:flex; flex-direction:column; gap:12px; }
.cd-template-card { position:relative; width:100%; max-width:470px; min-width:0; align-self:flex-start; border:1px solid var(--cd-chat-line); border-radius:10px; color:var(--cd-chat-text); background:var(--cd-bubble); box-shadow:0 1px 2px #00000012; }
.cd-template-copy { padding:18px 18px 13px; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.cd-template-title { display:block; margin:0 0 3px; font-size:14px; font-weight:700; line-height:1.45; }
.cd-template-copy > p { margin:0 0 20px; color:var(--cd-chat-text); font-size:14px; line-height:1.45; }
.cd-template-meta { display:flex; align-items:flex-end; justify-content:space-between; gap:15px; font-size:14px; line-height:1.45; }
.cd-template-meta > span { min-width:0; color:var(--cd-chat-muted); }
.cd-template-meta > time { flex-shrink:0; padding-bottom:1px; color:var(--cd-chat-muted); font-size:11px; font-variant-numeric:tabular-nums; }
.cd-template-actions { display:grid; }
.cd-template-actions > button { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; min-width:0; min-height:46px; margin:0; padding:12px 16px; border:0; border-top:1px solid var(--cd-chat-line); border-radius:0; background:var(--cd-bubble); color:var(--cd-chat-green); font:inherit; font-size:14px; line-height:1.4; font-weight:600; text-align:center; text-decoration:none; cursor:pointer; }
.cd-template-actions > button:last-child { border-radius:0 0 9px 9px; }
.cd-template-actions > button:hover,.cd-template-actions > button.cd-guided { background:color-mix(in srgb,var(--cd-bubble) 88%,var(--cd-chat-green)); }
.cd-template-actions > button.cd-guided { box-shadow:inset 0 0 0 1px var(--cd-chat-green); }
.cd-template-actions > button:focus-visible { outline:3px solid var(--cd-chat-green); outline-offset:-4px; }
.cd-template-actions > button:disabled,.cd-template-actions > button[aria-disabled="true"] { color:var(--cd-chat-muted); background:var(--cd-bubble); box-shadow:none; cursor:default; }
.cd-template-actions svg { width:18px; height:18px; flex-shrink:0; }
.cd-cursor { position:absolute; top:0; left:0; z-index:5; display:block; width:27px; height:33px; pointer-events:none; transition:transform 1300ms ease; filter:drop-shadow(0 2px 3px #0009); }
.cd-cursor > svg { display:block; width:27px; height:33px; fill:#ffffff; stroke:#102018; stroke-width:1.4; }
.cd-chat-footer { padding:12px 18px; border-top:1px solid var(--cd-chat-line); background:var(--cd-chat-head); color:var(--cd-chat-muted); font-size:10px; line-height:1.5; }
.cd-agenda { min-width:0; padding-top:3px; }
.cd-agenda-heading { display:flex; align-items:center; gap:13px; margin-bottom:20px; }
.cd-agenda-icon { display:grid; place-items:center; flex-shrink:0; width:42px; height:42px; border-radius:12px; background:var(--accent-soft); color:var(--accent-text); }
.cd-agenda-icon svg { width:22px; height:22px; }
.cd-agenda-heading p { margin:0 0 5px; color:var(--text-secondary); font-size:.68rem; line-height:1.4; }
.cd-agenda-heading h4 { margin:0; font-size:1.45rem; letter-spacing:-.025em; line-height:1.25; color:var(--text); }
.cd-appointment { padding:19px; border:1px solid var(--border-strong); border-radius:15px; background:var(--surface-soft); }
.cd-appointment-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:22px; }
.cd-patient { color:var(--text); font-size:1.02rem; font-weight:650; }
.cd-state { display:inline-flex; align-items:center; min-height:29px; padding:6px 9px; color:var(--text-secondary); background:var(--surface); border:1px solid var(--border-strong); border-radius:8px; font-size:.68rem; font-weight:600; line-height:1.3; }
.cd-state[data-state="confirm"] { color:var(--success); border-color:color-mix(in srgb,var(--success) 50%,var(--border)); background:color-mix(in srgb,var(--success) 8%,var(--surface)); }
.cd-state[data-state="change"] { color:var(--text); border-color:var(--border-strong); }
.cd-state[data-state="cancel"] { color:var(--accent-text); border-color:var(--accent-border); background:var(--accent-soft); }
.cd-appointment-date { display:flex; align-items:center; gap:15px; }
.cd-date-tile { display:flex; flex-direction:column; align-items:center; justify-content:center; flex-shrink:0; width:57px; height:66px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
.cd-date-tile span { color:var(--accent-text); font-size:.58rem; font-weight:650; letter-spacing:.11em; }
.cd-date-tile strong { color:var(--text); font-size:1.65rem; line-height:1.2; font-weight:600; }
.cd-appointment-date > div:last-child { display:flex; flex-direction:column; gap:5px; min-width:0; }
.cd-appointment-date > div:last-child > strong { color:var(--text); font-size:.96rem; font-weight:650; line-height:1.3; }
.cd-appointment-date > div:last-child > span { color:var(--text-secondary); font-size:.74rem; }
.cd-appointment-date small { color:var(--text-secondary); font-size:.65rem; }
.cd-appointment > p { margin:17px 0 0; padding-top:14px; border-top:1px solid var(--border); color:var(--text-secondary); font-size:.76rem; line-height:1.65; }
.cd-action-panel { position:relative; margin:18px 0 0; padding:20px; border:1px solid var(--border-strong); border-radius:14px; background:var(--surface); color:var(--text); }
.cd-action-panel > #cd-action-icon { display:grid; place-items:center; width:42px; height:42px; margin:0 0 13px; border-radius:50%; color:var(--success); background:color-mix(in srgb,var(--success) 10%,var(--surface)); }
.cd-action-panel > #cd-action-icon svg { width:22px; height:22px; }
.cd-action-panel .cd-action-kind { margin:0 0 6px; color:var(--text-secondary); font-size:.67rem; font-weight:600; line-height:1.5; }
.cd-action-panel h5 { margin:0 0 10px; color:var(--text); font-size:1.12rem; font-weight:650; line-height:1.3; letter-spacing:-.02em; overflow-wrap:anywhere; }
.cd-action-panel > #cd-action-detail { margin:0; color:var(--text-secondary); font-size:.77rem; line-height:1.65; }
.cd-close-action { display:inline-flex; align-items:center; justify-content:center; min-height:42px; margin-top:17px; padding:10px 15px; border:1px solid var(--border-strong); border-radius:10px; color:var(--text); background:var(--surface-soft); font:inherit; font-size:.77rem; line-height:1.35; font-weight:600; cursor:pointer; }
.cd-close-action:hover { background:var(--surface-raised); }
.cd-close-action:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
.cd-action-panel[data-kind="call"][data-stage="ringing"] .cd-close-action,.cd-action-panel[data-kind="call"][data-stage="connected"] .cd-close-action { color:var(--on-accent); background:var(--accent); border-color:var(--accent); }
.cd-action-panel[data-kind="call"][data-stage="ringing"] .cd-close-action:hover,.cd-action-panel[data-kind="call"][data-stage="connected"] .cd-close-action:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.cd-action-panel[data-stage="ended"] > #cd-action-icon { color:var(--text-secondary); background:var(--surface-soft); }
.cd-timeline { display:grid; gap:0; list-style:none; margin:24px 0 22px; padding:0; }
.cd-timeline li { position:relative; display:flex; align-items:flex-start; gap:12px; min-height:67px; padding-bottom:17px; }
.cd-timeline li:last-child { min-height:0; padding-bottom:0; }
.cd-timeline li:not(:last-child)::after { position:absolute; top:30px; bottom:3px; left:13px; width:1px; content:""; background:var(--border); }
.cd-step-number { display:grid; place-items:center; flex-shrink:0; width:27px; height:27px; border:1px solid var(--border-strong); border-radius:50%; color:var(--text-secondary); font-size:11px; }
.cd-step-number svg { width:14px; height:14px; }
.cd-step-done .cd-step-number { color:var(--success); border-color:color-mix(in srgb,var(--success) 55%,var(--border)); background:color-mix(in srgb,var(--success) 6%,var(--surface)); }
.cd-timeline li > div { min-width:0; padding-top:2px; }
.cd-timeline strong { display:block; margin-bottom:5px; color:var(--text); font-size:.78rem; font-weight:600; line-height:1.4; }
.cd-timeline li > div > span { display:block; color:var(--text-secondary); font-size:.69rem; line-height:1.5; }
.cd-later { margin:0 0 18px; padding:13px 15px; border:1px dashed var(--border-strong); border-radius:11px; background:var(--surface-soft); }
.cd-later > span { display:block; margin-bottom:5px; color:var(--text); font-size:.71rem; font-weight:650; }
.cd-later p { margin:0; color:var(--text-secondary); font-size:.73rem; line-height:1.6; }
.cd-benefit { display:flex; align-items:flex-start; gap:10px; }
.cd-benefit > svg { flex-shrink:0; width:17px; height:17px; margin-top:3px; color:var(--accent-text); }
.cd-benefit p { margin:0; color:var(--text-secondary); font-size:.8rem; line-height:1.65; }
.cd-status { min-height:1.6em; margin:17px 0 0; color:var(--text-secondary); font-size:.75rem; line-height:1.6; }
.cd-scenario:focus-visible,.cd-demo-actions button:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
@media (max-width:1050px) {
  .cd-example { gap:24px; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
  .cd-scenario { padding:12px 8px; gap:7px; font-size:.75rem; }
  .cd-chat-body { padding:18px; }
  .cd-appointment { padding:16px; }
}
@media (max-width:760px) {
  .cd-example { grid-template-columns:minmax(0,1fr); gap:27px; }
  .cd-scenarios { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .cd-agenda { padding-top:0; }
  .cd-agenda-heading h4 { font-size:1.35rem; }
}
@media (max-width:430px) {
  .cd-scenarios { grid-template-columns:minmax(0,1fr); gap:7px; margin-bottom:18px; }
  .cd-scenario { justify-content:flex-start; padding:11px 9px; min-height:50px; font-size:.71rem; }
  .cd-scenario svg { width:17px; height:17px; }
  .cd-chat-header { padding:13px 15px; gap:10px; }
  .cd-avatar { width:39px; height:39px; font-size:14px; }
  .cd-chat-header span { font-size:10px; }
  .cd-chat-header h4 { font-size:.95rem; }
  .cd-chat-body { padding:16px 12px 22px; }
  .cd-template-copy { padding:16px 13px 12px; }
  .cd-template-meta { gap:10px; }
  .cd-template-actions > button { padding:12px 9px; font-size:13px; }
  .cd-chat-footer { padding:11px 14px; }
  .cd-demo-toolbar { gap:12px; }
  .cd-demo-toolbar > p { font-size:.68rem; }
  .cd-appointment { padding:15px; }
  .cd-appointment-date { gap:12px; }
  .cd-appointment-date > div:last-child > strong { font-size:.86rem; }
  .cd-action-panel { padding:16px; }
}
@media (prefers-reduced-motion:reduce) { .cd-cursor,.cd-demo-actions button { animation:none !important; transition:none !important; } }
@media (forced-colors:active) {
  .cd-scenario[aria-pressed="true"],.cd-state,.cd-step-done .cd-step-number { outline:2px solid Highlight; }
  .cd-demo-actions button,.cd-template-actions button,.cd-close-action { border:1px solid ButtonText; }
  .cd-template-card { border:1px solid CanvasText; }
}

/* Valor comercial: ejemplo aritmético anual, separado del chat simulado. */
.cd-impact { margin:12px 0 28px; padding:32px; border:1px solid var(--border); border-radius:18px; background:var(--surface-soft); }
.cd-impact-heading { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:36px; align-items:start; }
.cd-impact-heading h5 { margin:0; color:var(--text); font-size:clamp(1.45rem,2.5vw,1.9rem); font-weight:650; letter-spacing:-.025em; line-height:1.2; }
.cd-impact-heading > p { margin:0; color:var(--text-secondary); font-size:.91rem; line-height:1.7; max-width:65ch; }
.cd-impact-label { margin:28px 0 0; color:var(--text-secondary); font-size:.8rem; font-weight:550; }
.cd-impact-assumptions { margin:10px 0 0; color:var(--text-secondary); font-size:.85rem; line-height:1.7; max-width:85ch; }
.cd-impact-equation { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,.8fr) auto minmax(0,1.4fr); gap:20px; align-items:center; padding:24px 0 28px; }
.cd-impact-equation > div { min-width:0; }
.cd-impact-equation strong { display:block; margin-bottom:9px; color:var(--text); font-size:clamp(1.65rem,2.7vw,2.35rem); font-weight:650; line-height:1.2; letter-spacing:-.035em; font-variant-numeric:tabular-nums; }
.cd-impact-equation div > span { display:block; color:var(--text-secondary); font-size:.8rem; line-height:1.5; }
.cd-impact-equation .cd-impact-total strong { color:var(--accent-text); }
.cd-impact-operator { color:var(--text-tertiary); font-size:1.6rem; font-weight:400; }
.cd-impact-note { margin:0; padding-top:21px; border-top:1px solid var(--border); color:var(--text-secondary); font-size:.8rem; line-height:1.7; max-width:100ch; }
@media (max-width:900px) {
  .cd-impact { padding:26px; }
  .cd-impact-heading { grid-template-columns:minmax(0,1fr); gap:18px; }
  .cd-impact-equation { gap:12px; }
  .cd-impact-equation strong { font-size:1.65rem; }
}
@media (max-width:650px) {
  .cd-impact { padding:22px 18px; }
  .cd-impact-equation { grid-template-columns:minmax(0,1fr); gap:14px; padding-block:22px; }
  .cd-impact-equation strong { margin-bottom:4px; font-size:1.85rem; }
  .cd-impact-operator { line-height:1; }
}
