:root { --bg:#f3f6fb; --panel:#fff; --ink:#172033; --muted:#5e687b; --line:#dce2ec; --blue:#3157d5; --blue-dark:#19379a; --violet:#7559d9; --green:#17785a; --green-bg:#e2f5ed; --amber:#9a5b06; --amber-bg:#fff0ce; --red:#a52a3a; --red-bg:#fde7ea; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.55; }
[hidden] { display: none !important; }
button, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #0d66d0; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 14px; background: #fff; color: #111; }
.skip-link:focus { top: 8px; }
.demo-bar { position: fixed; inset: 0 0 auto; z-index: 100; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 7px max(18px, calc((100% - 1180px)/2)); background: #12192a; color: #edf1fa; font-size: .76rem; }
.demo-bar nav { display: flex; align-items: center; gap: 16px; flex: none; }
.demo-bar a { color: inherit; text-decoration: none; }
.demo-bar a:not(.demo-cta):hover { text-decoration: underline; }
.demo-cta { padding: 7px 12px; border-radius: 999px; background: #dce5ff; color: #172033 !important; font-weight: 800; }
main { width: min(calc(100% - 38px), 1180px); margin-inline: auto; padding: 115px 0 70px; }
.page-header { max-width: 790px; }
.product-label { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 20px; color: var(--blue-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-label span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #dfe7ff; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.055em; }
.page-header > p:last-child { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.simulation-note { display: flex; gap: 12px 22px; align-items: center; margin: 38px 0 22px; padding: 15px 18px; border: 1px solid #e4c675; border-radius: 12px; background: #fff9e8; color: #65480e; font-size: .86rem; }
.simulation-note strong { flex: none; }
.workspace { display: grid; grid-template-columns: .88fr 1.12fr; min-height: 650px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 28px 70px rgba(36,51,88,.1); }
.inbox-panel, .flow-panel { padding: 28px; }
.inbox-panel { border-right: 1px solid var(--line); background: #fbfcff; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.panel-heading h2 { margin: 3px 0 0; font-size: 1.18rem; }
.step-number { color: var(--blue); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.privacy-pill { padding: 5px 9px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: .66rem; font-weight: 800; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; border: 0; }
.samples legend { width: 100%; margin-bottom: 8px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.samples button, .reset-button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 700; }
.samples button:hover { border-color: var(--blue); color: var(--blue-dark); }
label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 800; }
textarea { width: 100%; resize: vertical; padding: 14px; border: 1px solid #bdc7d8; border-radius: 10px; background: #fff; color: var(--ink); line-height: 1.55; }
textarea::placeholder { color: #8993a4; }
.input-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; }
#character-count { color: var(--muted); font-size: .72rem; }
.primary-button { min-height: 45px; padding: 10px 17px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(49,87,213,.22); }
.primary-button:hover { background: var(--blue-dark); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.reset-button { color: var(--muted); }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.flow-step { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 14px; min-height: 117px; padding-bottom: 22px; }
.flow-step:not(:last-child)::before { content:""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.step-marker { position: relative; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 50%; background: #fff; color: #7b8495; font-size: .78rem; font-weight: 900; }
.flow-step h3 { margin: 4px 0 7px; font-size: .94rem; }
.waiting { margin: 0; color: #8790a1; font-size: .82rem; }
.flow-step.processing .step-marker { border-color: var(--violet); color: var(--violet); animation: pulse 1s infinite; }
.flow-step.complete .step-marker { border-color: var(--green); background: var(--green); color: #fff; }
.flow-step.complete .step-marker::after { content:"✓"; }
.flow-step.complete .step-marker { font-size: 0; }
.flow-step.complete .step-marker::after { font-size: .88rem; }
.flow-step.complete:not(:last-child)::before { background: #8ad1ba; }
.result { margin-top: 9px; color: var(--muted); font-size: .84rem; }
.result p { margin: 6px 0 0; }
.intent-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #e6ebff; color: var(--blue-dark); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.intent-badge.queja { background: var(--red-bg); color: var(--red); }
.intent-badge.presupuesto { background: var(--amber-bg); color: var(--amber); }
.intent-badge.cita { background: var(--green-bg); color: var(--green); }
.data-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.data-list div { padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.data-list dt { color: #7a8496; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.data-list dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; }
.draft { padding: 12px 14px; border-left: 3px solid var(--violet); border-radius: 0 8px 8px 0; background: #f6f3ff; color: #3d3851; }
.assignment { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.assignment span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e5ebf8; color: var(--blue-dark); }
.human-note { margin: 2px 0 0 48px; padding: 13px 15px; border-radius: 9px; background: #f3f5f9; color: var(--muted); font-size: .75rem; }
footer { padding: 26px 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .76rem; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(117,89,217,.12); } }
@media (max-width: 880px) {
  .demo-bar { align-items: flex-start; flex-direction: column; gap: 5px; }
  .demo-bar nav { width: 100%; justify-content: space-between; }
  main { padding-top: 140px; }
  .simulation-note { align-items: flex-start; flex-direction: column; }
  .workspace { grid-template-columns: 1fr; }
  .inbox-panel { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .demo-bar { font-size: .68rem; }
  .demo-cta { padding: 6px 9px; }
  main { width: min(calc(100% - 24px),1180px); }
  .inbox-panel, .flow-panel { padding: 20px 16px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .input-footer { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; }
  .data-list { grid-template-columns: 1fr; }
  .human-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
