:root { --ink:#243b37; --muted:#697a75; --green:#225d4d; --green-dark:#194c3e; --wash:#f5f7f4; --line:#dde5df; --mint:#e9f1eb; --white:#fff; --sand:#f5f0e4; }
* { box-sizing:border-box; }
body { margin:0; background:var(--wash); color:var(--ink); font:15px/1.55 'Segoe UI',Arial,sans-serif; display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
button,input,textarea,select { font:inherit; }
button,a,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.5; cursor:default; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
a { color:var(--green); }
button { color:var(--ink); }
[hidden] { display:none !important; }
h1,h2,h3,p { margin:0; }
h1 { font-size:24px; font-weight:600; letter-spacing:-.6px; }
h2 { font-size:20px; font-weight:600; letter-spacing:-.4px; }
h3 { font-size:14px; font-weight:600; margin-bottom:12px; }
.small { font-size:12px; line-height:1.65; }
.muted { color:var(--muted); }
.eyebrow { color:var(--muted); font-size:10px; font-weight:650; letter-spacing:1.5px; }
.sidebar { padding:30px 18px 20px; border-right:1px solid var(--line); background:#fafbf8; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; }
.brand { display:flex; gap:12px; align-items:center; text-decoration:none; color:var(--ink); padding:0 8px; font-size:17px; font-weight:650; letter-spacing:-.4px; }
.brand-mark { width:36px; height:40px; border-radius:11px 11px 11px 2px; background:var(--green); color:white; display:grid; place-items:center; font-size:27px; font-family:Georgia,serif; font-weight:400; }
.brand small { display:block; font-size:10px; letter-spacing:.15px; font-weight:400; color:var(--muted); margin-top:1px; }
nav { display:grid; gap:6px; margin-top:43px; }
.nav-item { border:0; background:none; border-radius:7px; padding:12px 10px; text-align:left; display:flex; gap:12px; align-items:center; font-size:13px; }
.nav-item:hover { background:var(--mint); }
.nav-item.active { background:var(--mint); color:var(--green); font-weight:600; }
.nav-symbol { width:17px; font-size:18px; font-weight:400; text-align:center; }
.sidebar-note { margin-top:auto; padding:24px 10px 34px; }
.sidebar-note p { font-family:Georgia,serif; font-size:21px; line-height:1.5; margin:12px 0; }
.sidebar-note .muted { font-size:12px; }
.sidebar-footer { font-size:10px; color:var(--muted); padding:14px 8px 0; border-top:1px solid var(--line); display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.sidebar-footer #version { margin-left:auto; }
.status-dot { width:6px; height:6px; background:var(--green); border-radius:50%; display:inline-block; flex-shrink:0; }
main { min-width:0; }
.topbar { padding:27px 34px 23px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); background:var(--white); }
.topbar h1 { margin-top:5px; }
.mode-badge { font-size:11px; border:1px solid var(--line); padding:7px 11px; border-radius:20px; white-space:nowrap; color:var(--muted); }
.chat-layout { display:grid; grid-template-columns:minmax(330px,1fr) 300px; padding:26px 32px; gap:26px; max-width:1500px; margin:auto; }
.chat-column { background:var(--white); border:1px solid var(--line); border-radius:12px; height:calc(100vh - 169px); min-height:475px; max-height:950px; display:flex; flex-direction:column; min-width:0; }
.chat-toolbar { display:flex; align-items:center; padding:17px 21px; gap:11px; border-bottom:1px solid var(--line); }
.avatar { width:34px; height:34px; border-radius:50%; background:var(--mint); color:var(--green); display:grid; place-items:center; font-weight:650; font-size:14px; }
.chat-identity { flex:1; font-size:12px; min-width:0; }
.chat-identity strong { display:block; font-size:13px; }
.chat-identity span { color:var(--muted); font-size:10px; }
.button { border:1px solid var(--line); border-radius:6px; padding:10px 15px; font-size:12px; font-weight:550; display:inline-flex; align-items:center; justify-content:center; gap:9px; text-decoration:none; transition:background .15s; }
.primary { background:var(--green); color:var(--white); border-color:var(--green); }
.primary:hover:not(:disabled) { background:var(--green-dark); }
.secondary { background:var(--white); }
.secondary:hover:not(:disabled) { background:var(--wash); }
.compact { font-size:10px; padding:7px 9px; }
.full { width:100%; }
.messages { overflow-y:auto; flex:1; padding:24px 24px 12px; scroll-behavior:smooth; }
.message-row { margin-bottom:22px; display:flex; flex-direction:column; align-items:flex-start; }
.message-row.user { align-items:flex-end; }
.message-row .bubble + .bubble { margin-top:7px; }
.simulation-panel { padding:20px; border:1px solid var(--line, #d8e3de); border-radius:14px; margin-bottom:28px; background:#fff; }
.simulation-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:12px 0; }
.simulation-controls select { width:auto; max-width:100%; }
.simulation-answer { white-space:pre-wrap; padding:12px; background:#edf6f0; border-radius:10px; }
.message-label { font-size:9px; letter-spacing:.8px; color:var(--muted); margin-bottom:6px; }
.bubble { max-width:93%; padding:14px 17px; border-radius:2px 12px 12px 12px; background:var(--wash); white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.7; }
.user .bubble { background:var(--mint); border-radius:12px 2px 12px 12px; max-width:86%; }
.opening-media { margin:15px 0 0; width:100%; max-width:480px; white-space:normal; }
.opening-video { display:block; width:100%; aspect-ratio:16/9; border-radius:7px; background:#162721; }
.video-caption { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; margin-top:7px; font-size:10px; color:var(--muted); line-height:1.5; }
.video-caption a { white-space:nowrap; }
.video-error { font-size:11px; margin-top:8px; color:#984734; }
.message-actions { display:flex; gap:14px; margin:7px 0 0 2px; flex-wrap:wrap; }
.text-button { background:none; border:none; padding:0; color:var(--muted); font-size:10px; text-align:left; }
.text-button:hover { color:var(--green); text-decoration:underline; }
.message-engine { font-size:9px; color:var(--muted); }
.review-tag { font-size:9px; color:#806434; background:var(--sand); padding:2px 6px; border-radius:3px; }
.chat-status { min-height:21px; font-size:11px; color:var(--muted); padding:0 23px; }
.chat-status.error { color:#984734; }
.chat-status-line { padding-bottom:5px; }
.chat-status-line #retry-message { margin:5px 23px; }
.composer { border-top:1px solid var(--line); padding:17px 20px 13px; display:grid; grid-template-columns:1fr auto; gap:8px 12px; align-items:start; }
.composer textarea { width:100%; border:0; resize:none; color:var(--ink); font-size:13px; line-height:1.5; padding:4px 0; background:transparent; max-height:130px; }
.composer textarea::placeholder { color:#8b9892; }
.composer-note { font-size:9px; color:var(--muted); grid-column:1/-1; }
.review-column { padding:3px 2px; }
.review-heading h2 { font-family:Georgia,serif; font-weight:400; font-size:23px; line-height:1.35; margin:10px 0 12px; letter-spacing:-.5px; }
.review-heading p { font-size:12px; color:var(--muted); }
.engine-control { margin-top:25px; border-top:1px solid var(--line); padding-top:22px; }
.engine-control label { font-size:11px; font-weight:600; display:block; margin-bottom:8px; }
.engine-control select { font-size:12px; width:100%; border:1px solid var(--line); border-radius:5px; padding:9px 10px; color:var(--ink); background:var(--white); }
.engine-control p { margin-top:8px; }
.policy-line { display:flex; align-items:center; gap:7px; margin-top:15px; font-size:11px; }
.flow-status { margin-top:18px; padding:13px; border:1px solid var(--line); border-radius:6px; }
.flow-status strong { display:block; font-size:13px; margin:5px 0; }
.flow-status.ready { background:var(--mint); border-color:var(--green); }
.quick-questions { padding:25px 0 19px; }
.quick-questions button { display:flex; justify-content:space-between; width:100%; padding:10px 0; gap:10px; border:0; border-bottom:1px solid var(--line); background:none; font-size:11px; text-align:left; }
.quick-questions button:hover { color:var(--green); }
.quick-questions button span { color:var(--muted); }
.summary-area { padding-top:15px; }
.summary-area p { margin-top:8px; }
dl { font-size:11px; margin:0; }
dl dt { color:var(--muted); font-size:10px; }
dl dd { margin:2px 0 9px; overflow-wrap:anywhere; }
.content-view { max-width:1150px; padding:34px; margin:auto; }
.section-intro { max-width:850px; margin-bottom:28px; }
.section-intro p { color:var(--muted); font-size:13px; margin:10px 0; }
.split { display:flex; gap:32px; justify-content:space-between; align-items:flex-start; max-width:none; }
.split .button { flex-shrink:0; }
.counts { display:flex; gap:22px; margin-top:23px; color:var(--muted); font-size:12px; }
.counts strong { font-size:19px; color:var(--ink); font-weight:500; margin-right:5px; }
.tabs { border-bottom:1px solid var(--line); display:flex; gap:28px; }
.tab { border:0; border-bottom:2px solid transparent; padding:10px 0 13px; background:none; font-size:12px; color:var(--muted); }
.tab.active { border-bottom-color:var(--green); color:var(--green); font-weight:600; }
.search-label { display:block; margin:21px 0; }
.search-label input { width:min(100%,420px); padding:10px 12px; font-size:12px; border:1px solid var(--line); border-radius:5px; background:var(--white); }
.knowledge-item { border-bottom:1px solid var(--line); padding:20px 0; }
.item-head { display:flex; gap:12px; align-items:center; justify-content:space-between; }
.item-head h3 { margin:0; font-size:14px; }
.knowledge-item p { margin:10px 0; font-size:13px; max-width:820px; color:var(--muted); }
.knowledge-item .small { margin:5px 0 0; font-size:11px; }
.tag { font-size:9px; padding:3px 7px; border:1px solid var(--line); border-radius:4px; color:var(--muted); white-space:nowrap; }
.tag.pending { background:var(--sand); color:#806434; border-color:#ece3d2; }
.source-name { font-size:13px; overflow-wrap:anywhere; }
.source-caption { font-size:10px; color:var(--muted); margin-top:5px; }
.result-summary { background:var(--mint); padding:20px 24px; display:flex; align-items:center; gap:18px; border-radius:7px; margin:25px 0; }
.result-summary strong { font-size:24px; font-weight:500; }
.result-summary p { font-size:12px; }
.test-row { border-bottom:1px solid var(--line); padding:13px 0; }
.test-row summary { display:flex; gap:13px; align-items:center; cursor:pointer; font-size:12px; }
.test-row summary::marker { content:''; }
.test-number { color:var(--muted); font-size:10px; width:30px; }
.test-status { font-size:10px; margin-left:auto; color:var(--green); }
.test-status.failed { color:#984734; }
.test-content { padding:15px 0 6px 43px; font-size:12px; max-width:860px; }
.test-content p { margin-bottom:12px; white-space:pre-wrap; }
.test-content .button { margin-top:2px; }
.feedback-item { border-bottom:1px solid var(--line); padding:23px 0; }
.feedback-item h3 { margin-bottom:9px; }
.feedback-item p { font-size:13px; margin:9px 0; white-space:pre-wrap; max-width:820px; }
.feedback-item .small { font-size:10px; color:var(--muted); }
.plain-note { color:var(--muted); font-size:13px; margin-top:35px; }
dialog { border:1px solid var(--line); border-radius:10px; padding:26px; max-width:620px; width:calc(100% - 32px); color:var(--ink); max-height:85vh; overflow:auto; }
dialog::backdrop { background:rgba(20,40,32,.35); }
.dialog-header { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:16px; }
.icon-button { border:0; background:none; color:var(--muted); font-size:24px; line-height:1; }
.dialog-question { font-size:13px; font-weight:550; }
dialog blockquote { margin:12px 0 21px; font-size:12px; color:var(--muted); padding:12px 15px; background:var(--wash); white-space:pre-wrap; }
dialog label { font-size:12px; display:block; font-weight:550; margin-bottom:8px; }
dialog textarea { padding:11px; width:100%; border:1px solid var(--line); border-radius:5px; resize:vertical; font-size:13px; color:var(--ink); }
dialog .small { margin:12px 0; }
.dialog-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:20px; }
.evidence-item { padding:16px 0; border-top:1px solid var(--line); }
.evidence-item h3 { font-size:12px; margin-bottom:5px; overflow-wrap:anywhere; }
.evidence-item p { font-size:12px; color:var(--muted); white-space:pre-wrap; }
pre { font:12px/1.7 'Segoe UI',Arial,sans-serif; white-space:pre-wrap; }
#toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:var(--ink); color:white; padding:11px 18px; border-radius:7px; max-width:80%; font-size:12px; z-index:10; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(min-width:1450px) { .chat-layout { grid-template-columns:minmax(400px,1fr) 310px; gap:40px; padding:34px 50px; } .chat-column { height:calc(100vh - 184px); } }
@media(max-width:1180px) { body { grid-template-columns:205px 1fr; } .sidebar { padding-left:12px; padding-right:12px; } .chat-layout { grid-template-columns:minmax(300px,1fr) 245px; padding:22px; gap:21px; } .topbar { padding:24px; } .review-heading h2 { font-size:21px; } }
@media(max-width:950px) { body { grid-template-columns:180px 1fr; } .brand { font-size:15px; gap:8px; } .brand small { font-size:9px; } .nav-item { font-size:11px; gap:8px; } .chat-layout { grid-template-columns:1fr; } .review-column { display:grid; grid-template-columns:1fr 1fr; gap:20px; } .review-heading { grid-column:1/-1; } .engine-control { margin:0; padding:0; border:none; } .quick-questions { padding:0; } .policy-line { grid-column:1; } .summary-area { grid-column:1/-1; padding:0; } .chat-column { height:calc(100dvh - 200px); min-height:360px; } .mode-badge { font-size:9px; } }
@media(max-width:650px) { body { display:block; } .sidebar { height:auto; position:static; padding:16px 16px 10px; border-right:0; border-bottom:1px solid var(--line); } .brand { font-size:16px; } .brand-mark { height:33px; width:30px; font-size:24px; } nav { display:flex; gap:6px; margin-top:17px; overflow:auto; } .nav-item { padding:8px 9px; white-space:nowrap; font-size:10px; } .nav-symbol { display:none; } .sidebar-note,.sidebar-footer { display:none; } .topbar { padding:19px 18px; align-items:flex-start; } .topbar .eyebrow { font-size:8px; letter-spacing:1px; } h1 { font-size:21px; } .mode-badge { font-size:8px; padding:5px 7px; } .chat-layout { padding:16px 12px; gap:24px; } .chat-column { min-height:360px; height:calc(100dvh - 225px); } .chat-toolbar { padding:13px 15px; } .messages { padding:18px 15px 8px; } .bubble { max-width:97%; font-size:12px; padding:12px 14px; } .composer { padding:13px 15px; } .review-column { padding:0 7px 20px; } .review-heading h2 { font-size:22px; } .review-heading p { font-size:12px; } .content-view { padding:24px 18px; } .split { flex-direction:column; gap:15px; } .tabs { gap:20px; } .tab { font-size:11px; } .counts { gap:13px; font-size:10px; } .counts strong { font-size:17px; } .item-head { align-items:flex-start; } .test-content { padding-left:12px; } }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }
.control-details { margin: 6px 0 0; max-width: 600px; color: var(--muted, #526070); font-size: 12px; }
.control-details summary { cursor: pointer; }
.control-details p { margin: 6px 0; line-height: 1.5; }
.composer.has-attachment { grid-template-columns:auto minmax(0,1fr) auto; }
.composer textarea { min-width:0; }
.attachment-button { width:38px; height:42px; border:0; background:transparent; font-size:23px; border-radius:50%; }
.attachment-button:hover { background:#dcebe3; }
.attachment-button:disabled { opacity:.5; }
.chat-payment-link { display:block; width:fit-content; margin-top:12px; padding:10px 14px; border:1px solid #a2cbb8; border-radius:7px; background:#eef8f1; color:#216344; font-weight:600; text-decoration:none; white-space:normal; }
.chat-payment-link:hover { background:#dbf0e2; }
.receipt-preview { display:block; width:min(240px,100%); max-height:300px; object-fit:contain; border-radius:5px; margin-top:10px; }
.payment-page { display:block; min-height:100dvh; background:#e9eeec; padding:32px 16px; }
.payment-card { max-width:460px; margin:0 auto; padding:30px; border-radius:18px; background:white; box-shadow:0 10px 35px #203e3010; }
.payment-brand { display:flex; align-items:center; gap:12px; margin-bottom:28px; color:#216344; }
.payment-brand .avatar { background:#247d63; color:white; }
.payment-brand small { display:block; color:var(--muted); font-weight:400; font-size:12px; margin-top:3px; }
.payment-demo-tag { display:inline-block; color:#735100; background:#fff5d5; padding:8px 11px; border-radius:5px; font-size:11px; font-weight:650; }
.payment-card h1 { margin:22px 0 12px; font-size:25px; }
.payment-intro { color:var(--muted); font-size:14px; line-height:1.7; }
.payment-total { margin:25px 0; padding:20px; border:1px solid #dce9e1; border-radius:10px; background:#f6faf7; }
.payment-total span,.payment-total small { display:block; font-size:12px; color:var(--muted); }
.payment-total strong { display:block; font-size:32px; color:#216344; margin:8px 0; }
.payment-demo-action h2 { font-size:17px; margin-bottom:10px; }
.payment-demo-action p { font-size:13px; line-height:1.7; margin-bottom:18px; }
.payment-demo-action .button { text-align:center; text-decoration:none; font-size:13px; }
.payment-card > .small { margin:22px 0; line-height:1.7; }
.payment-return { color:#216344; font-size:13px; }
@media(min-width:951px) { .review-column { max-height:calc(100dvh - 171px); overflow-y:auto; padding-right:8px; scrollbar-width:thin; scrollbar-color:#b2c3b9 transparent; } }

/* La vista de prueba muestra únicamente la conversación. */
.tester-mode { display:block; background:#e9eeec; min-height:100dvh; }
.tester-mode .developer-only,.tester-mode .content-view,.tester-mode .message-label,.tester-mode .composer-note { display:none !important; }
.tester-mode main { height:100dvh; }
.tester-mode .chat-layout { display:block; max-width:1000px; margin:auto; padding:0; height:100%; }
.tester-mode .chat-column { height:100dvh; min-height:0; max-height:none; border:0; border-radius:0; box-shadow:0 0 25px #1c3c2c12; }
.tester-mode .chat-toolbar { background:#fafcfb; padding:15px 110px 15px 22px; min-height:75px; }
.tester-mode .chat-identity strong { font-size:15px; }
.tester-mode .chat-identity span { font-size:11px; }
.tester-mode .avatar { width:40px; height:40px; color:#fff; background:#247d63; }
.tester-mode .messages { background-color:#ece8df; background-image:radial-gradient(#8b9e9520 .7px,transparent .7px); background-size:18px 18px; padding:24px 35px; scroll-behavior:auto; }
.tester-mode .bubble { background:#fff; box-shadow:0 1px 1px #203e3015; max-width:78%; border-radius:0 9px 9px 9px; padding:10px 14px; line-height:1.65; font-size:14px; }
.tester-mode .user .bubble { background:#d9f6cd; border-radius:9px 0 9px 9px; }
.tester-mode .message-row { margin-bottom:15px; }
.tester-mode .message-actions { margin-top:5px; margin-left:7px; }
.tester-mode .report-action { color:#5f7268; font-size:10px; padding:3px 0; }
.tester-mode .composer { background:#f7f9f8; border-top:0; padding:15px 20px; align-items:center; }
.tester-mode .composer textarea { background:white; border:1px solid #e1e7e3; border-radius:24px; padding:12px 16px; font-size:14px; }
.tester-mode .composer .primary { border-radius:24px; background:#247d63; border-color:#247d63; min-height:46px; }
.tester-mode .chat-status-line { background:#f7f9f8; padding:0; }
.tester-mode .chat-status:empty { display:none; }
.developer-toggle { position:fixed; top:22px; right:20px; z-index:12; background:#f7fbf8; border:1px solid #dce5df; border-radius:7px; padding:6px 9px; font-size:11px; display:flex; align-items:center; gap:6px; }
.tester-mode .developer-toggle { right:max(14px,calc((100vw - 1000px)/2 + 14px)); top:23px; background:transparent; border-color:transparent; }
.tester-mode .developer-label,.tester-mode .report-badge { display:none; }
.tester-mode .developer-toggle > span:first-child { font-size:20px; }
.developer-mode .topbar { padding-right:190px; }
.report-badge { background:#d54e40; color:white; border-radius:12px; min-width:18px; padding:1px 5px; text-align:center; font-size:10px; }
.report-summary { padding:12px 0; border-bottom:1px solid var(--line); }
.report-transcript { background:var(--wash); padding:14px; margin-top:16px; border-radius:6px; max-height:40vh; overflow-y:auto; }
.report-transcript p { white-space:pre-wrap; margin-bottom:14px; font-size:12px; }
.report-tools { display:flex; gap:12px; flex-wrap:wrap; margin-top:12px; }
.feedback-item.unread { border-left:3px solid #d54e40; padding-left:15px; }
.report-transcript .reported-message { border-left:3px solid #d54e40; padding-left:10px; }
.report-context { font:11px/1.6 Consolas,monospace; margin-bottom:20px; }
@media(max-width:650px) { .tester-mode .chat-toolbar { padding:12px 58px 12px 14px; } .tester-mode .chat-identity strong { font-size:13px; } .tester-mode .messages { padding:17px 12px; } .tester-mode .bubble { max-width:92%; font-size:13px; } .tester-mode .composer { padding:10px; gap:8px; } .tester-mode .composer .primary { padding:10px 13px; } .tester-mode .developer-toggle { top:22px; right:10px; padding:2px; } .developer-mode .developer-label { display:none; } .developer-mode .topbar { padding-right:65px; } }
