:root{color-scheme:dark;--bg:#090b14;--panel:#101522;--panel2:#141b2b;--line:#263047;--text:#f3f5ff;--muted:#9ba6c2;--purple:#9d7bff;--cyan:#71e4dc;--green:#5ce0a2}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 68% -20%,#29204f 0,transparent 45%),var(--bg);color:var(--text);font:15px/1.55 Inter,Segoe UI,system-ui,sans-serif}.shell{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;gap:12px;background:#0b0e18}.brand{display:flex;align-items:center;gap:12px;margin:0 0 35px 6px}.logo{width:43px;height:43px;border-radius:13px;background:linear-gradient(135deg,#a989ff,#5d43c7);display:grid;place-items:center;font-size:24px;font-weight:900;box-shadow:0 7px 30px #7756d544}.brand strong{display:block;letter-spacing:2px;font-size:20px}.brand strong span{color:var(--purple)}.brand small,.side-bottom small{display:block;color:#77819d;font-size:9px;letter-spacing:1.4px}.side-label{font-size:10px;color:#727d9a;letter-spacing:1.8px;margin:14px 8px 4px}.nav,.nav-static{padding:12px;border-radius:10px;color:#aeb8d2;font-size:13px}.nav{background:#1a1831;border:1px solid #44346c;color:#fff;display:flex;gap:10px;align-items:center}.nav span{color:var(--purple);font-size:20px}.nav small{margin-left:auto;font-size:8px;color:#c2afff}.nav-static{padding-left:15px}.side-bottom{margin-top:auto;border:1px solid var(--line);background:#111726;padding:13px;border-radius:12px;display:flex;gap:10px;align-items:center}.side-bottom strong{font-size:12px}.side-bottom small{letter-spacing:0;font-size:10px;margin-top:3px}.status-dot,.pill span{width:7px;height:7px;border-radius:100%;background:var(--green);box-shadow:0 0 12px #5ce0a2}.main{padding:32px clamp(18px,4vw,60px);max-width:1500px;width:100%;margin:0 auto}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--purple);font-weight:800}h1{font-size:clamp(26px,3vw,39px);line-height:1.13;margin:9px 0}header p,.hero-card p,.feature-card p{color:var(--muted);margin:0}.pill{white-space:nowrap;display:flex;align-items:center;gap:9px;border:1px solid #274e48;color:#a4f2d3;background:#0d211f;border-radius:30px;padding:8px 12px;font-size:10px;letter-spacing:1px}.hero-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:17px;margin-bottom:20px}.hero-card,.feature-card,.chat-card{border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#131a2a,#0f1320);padding:25px;position:relative;overflow:hidden}.hero-card{min-height:240px}.hero-card h2{font-size:34px;line-height:1.12;margin:9px 0 12px;letter-spacing:-1px}.hero-card h2 em{font-style:normal;color:var(--purple)}.hero-card p{max-width:490px;font-size:13px}.orb{position:absolute;right:28px;top:18px;width:96px;height:96px;border-radius:50%;display:grid;place-items:center;font-size:42px;color:#d8ceff;background:radial-gradient(circle at 30% 30%,#6e53bf,#20193f 65%,transparent);box-shadow:0 0 50px #7954e522}.chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:20px}.chips span{border:1px solid #343c54;background:#171e2f;border-radius:7px;padding:5px 9px;color:#c6cde0;font-size:10px}.feature-card{display:grid;grid-template-columns:42px 1fr;column-gap:12px;align-content:center}.feature-icon{grid-row:span 2;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#24203d;color:#c1aaff;font-size:23px}.feature-icon.second{background:#152c32;color:var(--cyan);margin-top:18px}.feature-card h3{font-size:14px;margin:0 0 3px}.feature-card p{font-size:12px}.chat-card{padding:0}.chat-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.chat-head strong{display:block;font-size:14px}.chat-head small{color:var(--muted);font-size:11px}.ghost{border:1px solid var(--line);background:transparent;color:#b6c0d8;border-radius:8px;padding:8px 11px;cursor:pointer}.messages{padding:20px 22px;display:flex;flex-direction:column;gap:13px;min-height:175px;max-height:390px;overflow:auto}.bubble{max-width:88%;padding:13px 15px;border-radius:12px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.bubble p{margin:5px 0 0}.bubble.assistant{background:#171d2d;border:1px solid #2a344b;align-self:flex-start}.bubble.user{background:#2a2147;border:1px solid #58458a;align-self:flex-end}.bubble b{font-size:10px;color:#c5b4ff;letter-spacing:.8px}.suggestions{display:flex;gap:8px;flex-wrap:wrap;padding:0 22px 14px}.suggestions button{background:#121827;border:1px solid #2c354a;color:#c6cee2;border-radius:9px;padding:8px 10px;font-size:11px;cursor:pointer}.suggestions button:hover,.ghost:hover{border-color:var(--purple)}#chat-form{margin:0 22px 14px;border:1px solid #343d55;background:#0b101b;border-radius:13px;padding:11px}textarea{width:100%;resize:vertical;min-height:60px;max-height:180px;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:13px}textarea::placeholder{color:#707b96}.composer-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}.security{font-size:10px;color:#818da8;max-width:70%}.send{background:linear-gradient(135deg,#a68aff,#7655d7);border:0;border-radius:9px;padding:10px 15px;color:white;font-weight:700;cursor:pointer}.send:disabled{opacity:.45;cursor:not-allowed}.send span{margin-left:8px}.notice{padding:0 22px 16px;color:#8c98b3;font-size:11px}.notice.error{color:#ffb0b0}.notice.success{color:#9de9c7}footer{color:#69748e;font-size:10px;padding:18px 2px}.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(max-width:850px){.shell{grid-template-columns:1fr}.sidebar{display:none}.main{padding:22px 14px}.hero-grid{grid-template-columns:1fr}.hero-card{min-height:225px}header{align-items:flex-start}.pill{font-size:9px}header p{font-size:13px}}@media(max-width:480px){header{flex-direction:column}.hero-card h2{font-size:29px}.orb{right:14px;width:70px;height:70px}.chat-head{align-items:flex-start;flex-direction:column}.bubble{max-width:100%}.composer-bottom{align-items:flex-end}.security{max-width:65%}}


/* Modo integrado: la conversación ocupa el WebView2 como una pantalla nativa de FalyProject. */
.embed-kicker{display:none}
body.embed-mode{height:100vh;overflow:hidden;background:radial-gradient(ellipse at 75% -30%,#30245d 0,transparent 48%),#090b14}
.embed-mode .shell{display:block;min-height:0;height:100vh}
.embed-mode .sidebar,.embed-mode .main>header,.embed-mode .hero-grid,.embed-mode .main>footer{display:none!important}
.embed-mode .main{height:100vh;max-width:none;width:100%;margin:0;padding:10px;display:flex;flex-direction:column;min-height:0}
.embed-mode .chat-card{flex:1;min-height:0;display:flex;flex-direction:column;border-color:#303a55;border-radius:14px;background:linear-gradient(145deg,#121a2a,#0d121e);box-shadow:0 12px 38px #0003}
.embed-mode .chat-head{flex:0 0 auto;padding:13px 16px;background:#111827;border-bottom-color:#29334a}
.embed-mode .embed-kicker{display:block;color:#a995ff;font-size:9px;letter-spacing:1.7px;font-weight:800;margin-bottom:3px}
.embed-mode .chat-head strong{font-size:14px;letter-spacing:.1px}
.embed-mode .chat-head small{display:block;margin-top:3px}
.embed-mode .ghost{white-space:nowrap}
.embed-mode .messages{flex:1;min-height:150px;max-height:none;padding:18px 16px;overscroll-behavior:contain}
.embed-mode .bubble{max-width:min(86%,780px);font-size:13px;line-height:1.65;padding:12px 15px;border-radius:13px}
.embed-mode .bubble.assistant{background:#151d2d;border-color:#2c3852}
.embed-mode .bubble.user{background:linear-gradient(135deg,#2b2450,#222344);border-color:#514583}
.embed-mode .suggestions{flex:0 0 auto;padding:0 14px 11px;gap:7px}
.embed-mode .suggestions button{font-size:11px;padding:8px 10px;transition:border-color .15s,background .15s}
.embed-mode .suggestions button:hover{background:#1a2033}
.embed-mode #chat-form{flex:0 0 auto;margin:0 12px 8px;padding:10px 12px;border-radius:12px;background:#0a0f1a;border-color:#39445e}
.embed-mode textarea{min-height:48px;max-height:180px;resize:none;line-height:1.5}
.embed-mode .composer-bottom{align-items:center}
.embed-mode .security{max-width:calc(100% - 120px)}
.embed-mode .notice{flex:0 0 auto;padding:0 16px 10px}
.embed-mode .notice:empty{display:none}
.embed-mode .send{min-width:98px;padding:11px 14px}
@media(max-width:600px){
  .embed-mode .main{padding:6px}
  .embed-mode .chat-head{padding:11px 12px}
  .embed-mode .chat-head{align-items:center;flex-direction:row}
  .embed-mode .ghost{font-size:10px;padding:7px 8px}
  .embed-mode .messages{padding:12px 9px}
  .embed-mode .bubble{max-width:96%;font-size:12px}
  .embed-mode .suggestions{padding:0 8px 8px}
  .embed-mode .suggestions button{font-size:10px}
  .embed-mode #chat-form{margin:0 7px 7px;padding:8px}
  .embed-mode .security{max-width:calc(100% - 100px)}
  .embed-mode .security #turnstile{transform:scale(.88);transform-origin:left top}
  .embed-mode .send{min-width:86px;padding:10px}
}
