/* WOSMI AI · Asistente de inversiones (demo) */
#wai-root, #wai-root * { box-sizing: border-box; }
#wai-root {
  --wai-bg: #0A1020;
  --wai-panel: #0C1428;
  --wai-panel-2: #0F1A33;
  --wai-line: rgba(199,210,254,.12);
  --wai-line-2: rgba(199,210,254,.2);
  --wai-text: #E6EDF6;
  --wai-muted: rgba(230,237,246,.62);
  --wai-dim: rgba(230,237,246,.42);
  --wai-blue: #0D47A1;
  --wai-cyan: #00B6D9;
  --wai-green: #22C55E;
  --wai-lime: #84E05C;
  --wai-lav: #C7D2FE;
  --wai-red: #F87171;
  --wai-amber: #FBBF24;
  --wai-grad: linear-gradient(90deg,#0D47A1,#00B6D9 55%,#22C55E);
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--wai-text);
  -webkit-font-smoothing: antialiased;
}
#wai-root button { font-family: inherit; }

/* ---------- Lanzador flotante ---------- */
.wai-launcher {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(0,182,217,.45);
  background: linear-gradient(135deg, rgba(13,71,161,.92), rgba(12,20,40,.95) 60%);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 50px -18px rgba(0,182,217,.85), 0 0 0 0 rgba(34,197,94,.5);
  color: #fff; text-align: left;
  animation: waiLauncherIn .7s cubic-bezier(.2,.8,.2,1) both, waiGlow 3.2s ease-in-out 1s infinite;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.wai-launcher:hover { transform: translateY(-3px); box-shadow: 0 28px 60px -18px rgba(34,197,94,.85); }
.wai-launcher.is-hidden { animation: none; opacity: 0; pointer-events: none; transform: translateY(20px) scale(.9); }
.wai-launcher-avatar { position: relative; width: 48px; height: 48px; flex: 0 0 48px; }
.wai-launcher-avatar .wai-bot { width: 48px; height: 48px; }
.wai-launcher-dot { position: absolute; right: 1px; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--wai-green); border: 2px solid #0C1428; animation: waiPulse 2s ease-in-out infinite; }
.wai-launcher-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14.5px; letter-spacing: .01em; }
.wai-launcher-sub { font-size: 11.5px; color: rgba(230,237,246,.7); margin-top: 1px; }
.wai-teaser {
  position: fixed; right: 30px; bottom: 106px; z-index: 899; max-width: 290px;
  padding: 14px 16px; border-radius: 16px 16px 4px 16px;
  background: rgba(12,20,40,.96); border: 1px solid var(--wai-line-2);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8);
  font-size: 13.5px; line-height: 1.5; color: var(--wai-text);
  animation: waiRise .5s cubic-bezier(.2,.8,.2,1) both;
  cursor: pointer; transition: opacity .4s ease, transform .4s ease;
}
.wai-teaser.is-out { opacity: 0; transform: translateY(8px); }
.wai-teaser b { color: var(--wai-lime); font-weight: 600; }
.wai-teaser-close { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--wai-dim); cursor: pointer; font-size: 14px; }

/* ---------- Panel ---------- */
.wai-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(5,9,20,.72); backdrop-filter: blur(10px);
  animation: waiFade .3s ease both;
}
.wai-panel {
  position: fixed; z-index: 960;
  top: 2.5vh; bottom: 2.5vh; left: 50%; transform: translateX(-50%);
  width: min(1360px, 96vw);
  display: grid; grid-template-rows: auto 1fr auto;
  border-radius: 22px; overflow: hidden;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(13,71,161,.28), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, rgba(34,197,94,.12), transparent 60%),
              var(--wai-bg);
  border: 1px solid var(--wai-line-2);
  box-shadow: 0 60px 140px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,182,217,.08) inset;
  animation: waiZoom .45s cubic-bezier(.2,.8,.2,1) both;
}

/* Header */
.wai-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 22px; border-bottom: 1px solid var(--wai-line);
  background: rgba(10,16,32,.65); backdrop-filter: blur(12px);
}
.wai-head-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.wai-head-logo { height: 30px; width: auto; display: block; }
.wai-head-sep { width: 1px; height: 26px; background: var(--wai-line-2); }
.wai-head-crumb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--wai-dim); white-space: nowrap; }
.wai-head-crumb b { color: var(--wai-lime); font-weight: 600; }
.wai-head-crumb span { color: #fff; font-weight: 600; margin-left: 6px; }
.wai-head-right { display: flex; align-items: center; gap: 10px; }
.wai-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(34,197,94,.4); background: rgba(34,197,94,.08); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7BE39B; white-space: nowrap; }
.wai-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--wai-green); animation: waiPulse 2s infinite; }
.wai-hbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--wai-line-2); background: rgba(199,210,254,.05); color: var(--wai-lav);
  font-size: 12.5px; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.wai-hbtn:hover { border-color: var(--wai-cyan); color: #fff; background: rgba(0,182,217,.12); }
.wai-hbtn.is-on { border-color: var(--wai-green); color: #fff; background: rgba(34,197,94,.16); }
.wai-hbtn svg { width: 14px; height: 14px; }
.wai-close { width: 36px; padding: 0; justify-content: center; font-size: 15px; }
.wai-profile-toggle { display: none; }

/* Body */
.wai-body { display: grid; grid-template-columns: minmax(0,1fr) 330px; min-height: 0; }
.wai-chat { display: grid; grid-template-rows: 1fr auto; min-height: 0; border-right: 1px solid var(--wai-line); }
.wai-feed { position: relative; overflow-y: auto; padding: 26px 30px 18px; scroll-behavior: smooth; }
.wai-feed::-webkit-scrollbar, .wai-side::-webkit-scrollbar { width: 8px; }
.wai-feed::-webkit-scrollbar-thumb, .wai-side::-webkit-scrollbar-thumb { background: rgba(199,210,254,.14); border-radius: 8px; }
.wai-feed-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.wai-msg { display: flex; gap: 12px; align-items: flex-start; animation: waiRise .45s cubic-bezier(.2,.8,.2,1) both; }
.wai-msg-av { width: 38px; height: 38px; flex: 0 0 38px; }
.wai-msg-av .wai-bot { width: 38px; height: 38px; }
.wai-msg-av.is-ghost { visibility: hidden; }
.wai-bubble {
  max-width: 680px; padding: 13px 17px; border-radius: 4px 16px 16px 16px;
  background: rgba(199,210,254,.06); border: 1px solid var(--wai-line);
  font-size: 14.5px; line-height: 1.6; color: var(--wai-text);
}
.wai-bubble b, .wai-bubble strong { color: #fff; font-weight: 600; }
.wai-bubble .hl { color: var(--wai-cyan); font-weight: 600; }
.wai-bubble .ok { color: var(--wai-lime); font-weight: 600; }
.wai-bubble .wai-hl { color: var(--wai-cyan); font-weight: 600; }
.wai-bubble small { color: var(--wai-dim); font-size: 12px; }
.wai-bubble h4 { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; margin: 0 0 4px; color: #fff; }
.wai-msg.is-user { flex-direction: row-reverse; }
.wai-msg.is-user .wai-bubble {
  border-radius: 16px 4px 16px 16px; border-color: rgba(0,182,217,.35);
  background: linear-gradient(120deg, rgba(13,71,161,.55), rgba(0,182,217,.22));
  color: #fff;
}
.wai-user-av { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: #0A1020; background: linear-gradient(135deg,#C7D2FE,#00B6D9); }
.wai-msg.is-wide .wai-bubble { max-width: none; width: 100%; padding: 0; background: none; border: 0; }
.wai-msg.is-wide { align-items: stretch; }
.wai-msg.is-wide > div:last-child { flex: 1; min-width: 0; }

.wai-typing { display: inline-flex; gap: 5px; padding: 15px 18px; }
.wai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wai-cyan); animation: waiDot 1.2s infinite ease-in-out; }
.wai-typing i:nth-child(2) { animation-delay: .15s; background: #3FBFD0; }
.wai-typing i:nth-child(3) { animation-delay: .3s; background: var(--wai-green); }
.wai-typing { align-items: center; }
.wai-typing-lbl { margin-left: 8px; font-size: 12.5px; color: #CFEFF7; }

.wai-gate { display: flex; align-items: center; gap: 16px; margin: 6px 0 4px 46px; padding: 14px 16px 14px 18px; border-radius: 16px; border: 1px solid rgba(34,197,94,.45); background: linear-gradient(90deg, rgba(34,197,94,.1), rgba(0,182,217,.08)); animation: waiRise .45s ease both; }
.wai-gate-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wai-gate-txt span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--wai-green); font-weight: 600; }
.wai-gate-txt b { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; color: #fff; }
.wai-btn.wai-gate-btn { padding: 11px 20px; animation: waiGlow 2.2s ease-in-out infinite; }
.wai-chip.wai-gate-chip { gap: 8px; animation: waiGlow 2.2s ease-in-out infinite; }
.wai-chip.wai-gate-chip svg { width: 14px; height: 14px; }
.wai-chip.wai-gate-chip span { font-weight: 400; opacity: .92; }

/* Chips & input */
.wai-dock { padding: 12px 30px 18px; border-top: 1px solid var(--wai-line); background: rgba(10,16,32,.55); }
.wai-dock-inner { max-width: 900px; margin: 0 auto; }
.wai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; min-height: 0; }
.wai-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(0,182,217,.38); background: rgba(0,182,217,.07);
  color: #CFEFF7; font-size: 13px; transition: all .2s ease;
  animation: waiRise .35s cubic-bezier(.2,.8,.2,1) both;
}
.wai-chip:hover { border-color: var(--wai-green); background: rgba(34,197,94,.14); color: #fff; transform: translateY(-1px); }
.wai-chip.is-sim { border-color: rgba(34,197,94,.55); background: rgba(34,197,94,.1); color: #fff; }
.wai-chip.is-sim::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--wai-green); }
.wai-chip.is-selected { background: linear-gradient(90deg, rgba(13,71,161,.7), rgba(34,197,94,.45)); border-color: var(--wai-green); color: #fff; }
.wai-chip.is-primary { background: var(--wai-grad); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 12px 28px -14px rgba(34,197,94,.9); }
.wai-chip.is-primary:hover { filter: brightness(1.1); }
.wai-form {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px;
  border-radius: 16px; border: 1px solid var(--wai-line-2); background: rgba(199,210,254,.05);
  transition: border-color .2s ease;
}
.wai-form:focus-within { border-color: var(--wai-cyan); }
.wai-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--wai-text); font-size: 14.5px; padding: 10px 0; font-family: inherit; }
.wai-input::placeholder { color: var(--wai-dim); }
.wai-send { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--wai-grad); color: #fff; transition: filter .2s ease, transform .2s ease; }
.wai-send:hover { filter: brightness(1.12); transform: translateY(-1px); }
.wai-send:disabled { opacity: .4; cursor: default; transform: none; }
.wai-send svg { width: 18px; height: 18px; }
.wai-hint { margin-top: 8px; font-size: 11.5px; color: var(--wai-dim); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Sidebar perfil */
.wai-side { overflow-y: auto; padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 14px; background: rgba(10,16,32,.35); }
.wai-card { border-radius: 16px; border: 1px solid var(--wai-line); background: rgba(12,20,40,.75); padding: 16px; }
.wai-card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wai-card-title .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(0,182,217,.4); background: rgba(0,182,217,.08); color: var(--wai-cyan); }
.wai-card-title .ico svg { width: 18px; height: 18px; }
.wai-card-title h5 { margin: 0; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; color: #fff; }
.wai-card-title p { margin: 2px 0 0; font-size: 11.5px; color: var(--wai-dim); }
.wai-pf { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-top: 1px solid rgba(199,210,254,.06); }
.wai-pf:first-of-type { border-top: 0; }
.wai-pf .ico { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--wai-line-2); color: var(--wai-lav); transition: all .3s ease; }
.wai-pf .ico svg { width: 14px; height: 14px; }
.wai-pf .lbl { font-size: 12px; color: var(--wai-text); font-weight: 600; }
.wai-pf .val { font-size: 11.5px; color: var(--wai-lime); margin-top: 1px; line-height: 1.35; }
.wai-pf .val.is-empty { color: rgba(132,224,92,.55); }
.wai-pf.is-filled .ico { border-color: rgba(34,197,94,.6); color: var(--wai-green); background: rgba(34,197,94,.1); }
.wai-pf.is-flash { animation: waiFlash 1.1s ease; }

.wai-gauge-wrap { text-align: center; }
.wai-gauge-wrap svg { width: 100%; max-width: 230px; display: block; margin: 0 auto; }
.wai-gauge-needle { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); transform-origin: 120px 120px; }
.wai-gauge-label { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; color: var(--wai-lime); margin-top: 4px; }
.wai-gauge-sub { font-size: 11.5px; color: var(--wai-dim); margin-top: 2px; }

/* Stepper */
.wai-steps { display: flex; align-items: center; gap: 0; padding: 14px 28px; border-top: 1px solid var(--wai-line); background: rgba(10,16,32,.7); overflow-x: auto; }
.wai-step { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 150px; }
.wai-step-n { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; display: grid; place-items: center; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; border: 1.5px solid var(--wai-line-2); color: var(--wai-dim); transition: all .4s ease; }
.wai-step-t { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--wai-dim); line-height: 1.3; transition: color .4s ease; }
.wai-step-t b { display: block; font-family: 'Poppins', sans-serif; letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 500; color: rgba(230,237,246,.55); }
.wai-step-line { flex: 1; height: 2px; margin: 0 12px; border-radius: 2px; background: var(--wai-line); position: relative; overflow: hidden; min-width: 20px; }
.wai-step-line::after { content: ''; position: absolute; inset: 0; background: var(--wai-grad); transform: scaleX(0); transform-origin: left; transition: transform .8s ease; }
.wai-step.is-active .wai-step-n { border-color: var(--wai-lime); color: var(--wai-lime); box-shadow: 0 0 0 4px rgba(132,224,92,.15), 0 0 22px rgba(132,224,92,.45); }
.wai-step.is-active .wai-step-t { color: var(--wai-lime); }
.wai-step.is-active .wai-step-t b { color: var(--wai-lime); }
.wai-step.is-done .wai-step-n { border-color: var(--wai-green); background: var(--wai-green); color: #0A1020; }
.wai-step.is-done .wai-step-t { color: var(--wai-cyan); }
.wai-step.is-done .wai-step-t b { color: var(--wai-cyan); }
.wai-step.is-done .wai-step-line::after { transform: scaleX(1); }
.wai-step:last-child { flex: 0 0 auto; }

/* ---------- Tarjetas ricas ---------- */
.wai-rich { width: 100%; border-radius: 18px; border: 1px solid var(--wai-line); background: rgba(12,20,40,.82); padding: 20px; animation: waiRise .5s cubic-bezier(.2,.8,.2,1) both; }
.wai-rich + .wai-rich { margin-top: 12px; }
.wai-rich-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.wai-rich-head h3 { margin: 0; font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 600; color: #fff; }
.wai-rich-head p { margin: 4px 0 0; font-size: 13px; color: var(--wai-muted); }
.wai-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.wai-tag.blue { color: #9FD9EC; border: 1px solid rgba(0,182,217,.4); background: rgba(0,182,217,.08); }
.wai-tag.green { color: #7BE39B; border: 1px solid rgba(34,197,94,.45); background: rgba(34,197,94,.1); }
.wai-tag.amber { color: #FCD34D; border: 1px solid rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.wai-tag.red { color: #FCA5A5; border: 1px solid rgba(248,113,113,.4); background: rgba(248,113,113,.08); }

.wai-thinking { display: flex; flex-direction: column; gap: 9px; }
.wai-think-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--wai-muted); opacity: .35; transition: opacity .3s ease, color .3s ease; }
.wai-think-row.is-run { opacity: 1; color: #fff; }
.wai-think-row.is-done { opacity: 1; color: var(--wai-muted); }
.wai-think-ic { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 2px solid var(--wai-line-2); display: grid; place-items: center; }
.wai-think-row.is-run .wai-think-ic { border-color: var(--wai-cyan); border-top-color: transparent; animation: waiSpin .8s linear infinite; }
.wai-think-row.is-done .wai-think-ic { border-color: var(--wai-green); background: var(--wai-green); }
.wai-think-row.is-done .wai-think-ic::after { content: ''; width: 5px; height: 9px; border: solid #0A1020; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.wai-think-src { margin-left: auto; font-size: 11px; color: var(--wai-dim); white-space: nowrap; }
.wai-progress { height: 4px; border-radius: 4px; background: var(--wai-line); overflow: hidden; margin-top: 6px; }
.wai-progress > i { display: block; height: 100%; width: 0; background: var(--wai-grad); transition: width .5s ease; }

.wai-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wai-kpi { border-radius: 14px; border: 1px solid var(--wai-line); background: rgba(199,210,254,.04); padding: 13px 14px; }
.wai-kpi-l { font-size: 11.5px; color: var(--wai-dim); }
.wai-kpi-v { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 600; color: #fff; margin-top: 4px; white-space: nowrap; }
.wai-kpi-v.green { color: var(--wai-lime); }
.wai-kpi-v.cyan { color: var(--wai-cyan); }
.wai-kpi-s { font-size: 11.5px; color: var(--wai-muted); margin-top: 2px; }

/* Propiedades */
.wai-props { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.wai-prop { border-radius: 16px; border: 1px solid var(--wai-line); background: rgba(10,16,32,.7); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease; animation: waiRise .55s cubic-bezier(.2,.8,.2,1) both; }
.wai-prop:hover { transform: translateY(-3px); border-color: rgba(0,182,217,.45); }
.wai-prop.is-best { border-color: rgba(34,197,94,.55); box-shadow: 0 20px 50px -30px rgba(34,197,94,.8); }
.wai-prop-img { position: relative; height: 128px; overflow: hidden; }
.wai-prop-img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wai-prop-img .wai-tag { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(6px); background: rgba(10,16,32,.6); }
.wai-prop-score { position: absolute; top: 10px; right: 10px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,16,32,.75); border: 2px solid var(--wai-green); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; color: #fff; line-height: 1; text-align: center; }
.wai-prop-score small { display: block; font-size: 7.5px; letter-spacing: .1em; color: var(--wai-lime); font-weight: 600; margin-top: 2px; }
.wai-prop-body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wai-prop-city { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--wai-cyan); }
.wai-prop-title { font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.3; }
.wai-prop-price { font-family: 'Poppins', sans-serif; font-size: 21px; font-weight: 600; color: #fff; }
.wai-prop-price small { display: block; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 400; color: var(--wai-muted); }
.wai-prop-feats { display: flex; gap: 6px; flex-wrap: wrap; }
.wai-prop-feats span { font-size: 11px; padding: 4px 8px; border-radius: 6px; background: rgba(199,210,254,.07); color: var(--wai-lav); }
.wai-ind { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--wai-line); border-radius: 10px; overflow: hidden; }
.wai-ind > div { background: #0B1326; padding: 8px 10px; }
.wai-ind-l { font-size: 10.5px; color: var(--wai-dim); }
.wai-ind-v { font-size: 13px; font-weight: 700; color: #fff; margin-top: 1px; }
.wai-ind-v.green { color: var(--wai-lime); }
.wai-ind-v.cyan { color: var(--wai-cyan); }
.wai-prop-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--wai-cyan); text-decoration: none; margin-top: auto; }
.wai-prop-link:hover { color: var(--wai-green); }
.wai-mini-chart svg { width: 100%; height: 70px; display: block; }

/* Tablas */
.wai-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--wai-line); }
.wai-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 640px; }
.wai-table.compact { min-width: 0; }
.wai-table th { text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--wai-dim); padding: 11px 12px; background: rgba(199,210,254,.04); border-bottom: 1px solid var(--wai-line); white-space: nowrap; }
.wai-table td { padding: 10px 12px; border-bottom: 1px solid rgba(199,210,254,.06); color: var(--wai-text); white-space: nowrap; }
.wai-table tr:last-child td { border-bottom: 0; }
.wai-table td.num, .wai-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.wai-table .best { color: var(--wai-lime); font-weight: 700; }
.wai-table .muted { color: var(--wai-dim); }
.wai-table tr.is-hl td { background: rgba(34,197,94,.07); }
.wai-bar { display: inline-block; height: 6px; border-radius: 6px; background: linear-gradient(90deg,#0D47A1,#00B6D9); vertical-align: middle; margin-left: 8px; }
.wai-bar.green { background: linear-gradient(90deg,#22C55E,#84E05C); }
.wai-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* Charts */
.wai-chart { width: 100%; }
.wai-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.wai-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 12px; color: var(--wai-muted); }
.wai-legend span { display: inline-flex; align-items: center; gap: 7px; }
.wai-legend i { width: 14px; height: 3px; border-radius: 3px; display: inline-block; }
.wai-legend i.is-dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px); }
.wai-legend b { font-size: 10.5px; font-weight: 700; color: var(--wai-dim); min-width: 12px; }
.wai-legend em { font-style: normal; font-weight: 700; color: var(--wai-text); }
.wai-legend-cap { margin-top: 8px; font-size: 11px; color: var(--wai-dim); font-style: italic; }

/* Términos con explicación */
.wai-term { border-bottom: 1px dashed rgba(0,182,217,.75); cursor: help; outline: none; border-radius: 2px; }
.wai-term:hover, .wai-term:focus-visible { color: #7FE3F5; background: rgba(0,182,217,.12); }
.wai-tip {
  position: fixed; z-index: 1100; max-width: 300px; padding: 11px 13px; border-radius: 12px;
  background: #0F1A33; border: 1px solid rgba(0,182,217,.5); box-shadow: 0 20px 40px -18px rgba(0,0,0,.9);
  font-size: 12.5px; line-height: 1.5; color: var(--wai-text);
  opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
}
.wai-tip.is-on { opacity: 1; transform: none; }
.wai-tip b { display: block; margin-bottom: 3px; color: #7FE3F5; font-weight: 700; }

/* Selección de segmento */
.wai-segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.wai-seg {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; cursor: pointer;
  padding: 16px; border-radius: 16px; border: 1px solid var(--wai-line-2); background: rgba(10,16,32,.7); color: var(--wai-text);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.wai-seg:hover { border-color: var(--wai-green); background: rgba(34,197,94,.08); transform: translateY(-2px); }
.wai-seg b { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; color: #fff; }
.wai-seg > span:last-child { font-size: 12.5px; line-height: 1.5; color: var(--wai-muted); }
.wai-seg-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--wai-cyan); border: 1px solid rgba(0,182,217,.4); background: rgba(0,182,217,.08); }
.wai-seg-ic svg { width: 20px; height: 20px; }
.wai-cur { color: var(--wai-lav); font-weight: 600; }

/* Glosario */
.wai-gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.wai-gloss-item { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--wai-line); background: rgba(10,16,32,.6); }
.wai-gloss-item b { display: block; font-size: 13px; color: #7FE3F5; margin-bottom: 4px; }
.wai-gloss-item span { font-size: 12px; line-height: 1.5; color: var(--wai-muted); }
.wai-gloss-item.is-extra { display: none; }
.wai-gloss.is-open .wai-gloss-item.is-extra { display: block; }
.wai-btn.wai-btn-ghost { margin: 14px 0 0; padding: 10px 18px; font-size: 13px; background: rgba(0,182,217,.1); border: 1px solid rgba(0,182,217,.45); box-shadow: none; color: #CFEFF7; }

/* Efecto cambiario, ventas y semáforo */
.wai-fx .pos { color: var(--wai-lime); font-weight: 600; }
.wai-fx .neg { color: var(--wai-red); font-weight: 600; }
.wai-stock { display: flex; flex-direction: column; gap: 9px; }
.wai-stock-row { display: grid; grid-template-columns: minmax(150px, 210px) 1fr auto; gap: 12px; align-items: center; font-size: 12.5px; }
.wai-stock-row .n { color: var(--wai-text); white-space: nowrap; }
.wai-stock-row .bar { height: 8px; border-radius: 8px; background: rgba(199,210,254,.08); overflow: hidden; }
.wai-stock-row .bar i { display: block; height: 100%; border-radius: 8px; }
.wai-stock-row .v { color: var(--wai-muted); white-space: nowrap; }
.wai-lights { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.wai-light { display: flex; gap: 11px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--wai-line); background: rgba(10,16,32,.6); }
.wai-light i { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; margin-top: 4px; }
.wai-light.is-ok i { background: var(--wai-green); box-shadow: 0 0 10px rgba(34,197,94,.7); }
.wai-light.is-warn i { background: var(--wai-amber); box-shadow: 0 0 10px rgba(251,191,36,.7); }
.wai-light.is-bad i { background: var(--wai-red); box-shadow: 0 0 10px rgba(248,113,113,.7); }
.wai-light b { display: block; font-size: 13px; color: #fff; margin-bottom: 3px; }
.wai-light span { font-size: 12px; line-height: 1.45; color: var(--wai-muted); }

/* Financieros */
.wai-fins { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.wai-fin { border-radius: 16px; border: 1px solid var(--wai-line); background: rgba(10,16,32,.7); padding: 15px; display: flex; flex-direction: column; gap: 10px; animation: waiRise .55s cubic-bezier(.2,.8,.2,1) both; }
.wai-fin-top { display: flex; align-items: center; gap: 11px; }
.wai-fin-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 40px; }
.wai-fin-ic svg { width: 20px; height: 20px; }
.wai-fin-name { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.25; }
.wai-fin-sub { font-size: 11.5px; color: var(--wai-dim); }
.wai-fin-rate { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wai-fin-rate b { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 600; color: var(--wai-lime); }
.wai-fin-rate span { font-size: 11.5px; color: var(--wai-muted); text-align: right; }
.wai-fin-list { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.wai-fin-list div { display: flex; justify-content: space-between; gap: 8px; color: var(--wai-muted); }
.wai-fin-list div b { color: var(--wai-text); font-weight: 600; }
.wai-fin-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--wai-line); margin-top: auto; }
.wai-fin-foot .v { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; color: #fff; }
.wai-fin-foot .l { font-size: 11px; color: var(--wai-dim); }

/* Portafolio */
.wai-port { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; }
.wai-port > .wai-donut { flex: 0 0 220px; }
.wai-port > :not(.wai-donut) { flex: 1 1 380px; min-width: 0; }
.wai-donut { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.wai-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wai-donut circle { transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1); }
.wai-donut-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.wai-donut-c b { display: block; font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 600; color: #fff; }
.wai-donut-c span { font-size: 11.5px; color: var(--wai-dim); letter-spacing: .08em; text-transform: uppercase; }
.wai-alloc { display: flex; flex-direction: column; gap: 9px; }
.wai-alloc-row { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(199,210,254,.04); border: 1px solid rgba(199,210,254,.07); }
.wai-alloc-row i { width: 12px; height: 12px; border-radius: 4px; }
.wai-alloc-row .n { font-size: 13px; font-weight: 600; color: #fff; }
.wai-alloc-row .d { font-size: 11.5px; color: var(--wai-dim); margin-top: 1px; }
.wai-alloc-row .p { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; color: var(--wai-lime); text-align: right; }
.wai-alloc-row .u { font-size: 12px; color: var(--wai-muted); text-align: right; min-width: 92px; }

.wai-reco { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(34,197,94,.4); background: linear-gradient(110deg, rgba(34,197,94,.12), rgba(0,182,217,.06)); }
.wai-reco-ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(34,197,94,.15); color: var(--wai-green); border: 1px solid rgba(34,197,94,.4); }
.wai-reco-ic svg { width: 24px; height: 24px; }
.wai-reco h4 { margin: 0; font-family: 'Poppins', sans-serif; font-size: 15px; color: #fff; font-weight: 600; }
.wai-reco p { margin: 3px 0 0; font-size: 13.5px; color: var(--wai-lime); line-height: 1.5; }
.wai-reco-v { margin-left: auto; text-align: right; }
.wai-reco-v span { font-size: 11.5px; color: var(--wai-dim); }
.wai-reco-v b { display: block; font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 600; color: var(--wai-lime); white-space: nowrap; }

.wai-cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.wai-list-card { border-radius: 14px; border: 1px solid var(--wai-line); background: rgba(10,16,32,.6); padding: 14px 16px; }
.wai-list-card h5 { margin: 0 0 10px; font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 600; color: #fff; }
.wai-list-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.wai-list-card li { position: relative; padding-left: 20px; font-size: 12.5px; line-height: 1.45; color: var(--wai-muted); }
.wai-list-card li::before { content: ''; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: rgba(34,197,94,.2); border: 1.5px solid var(--wai-green); }
.wai-list-card.warn li::before { background: rgba(251,191,36,.15); border-color: var(--wai-amber); }
.wai-ring { display: flex; align-items: center; gap: 14px; }
.wai-ring svg { width: 86px; height: 86px; flex: 0 0 86px; transform: rotate(-90deg); }
.wai-ring b { font-family: 'Poppins', sans-serif; font-size: 18px; color: var(--wai-lime); }

.wai-dl { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 18px; border: 1px solid rgba(0,182,217,.4); background: linear-gradient(120deg, rgba(13,71,161,.35), rgba(0,182,217,.12) 50%, rgba(34,197,94,.14)); }
.wai-dl-ic { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(10,16,32,.6); border: 1px solid var(--wai-line-2); color: var(--wai-cyan); }
.wai-dl-ic svg { width: 26px; height: 26px; }
.wai-dl h4 { margin: 0; font-family: 'Poppins', sans-serif; font-size: 16px; color: #fff; font-weight: 600; }
.wai-dl p { margin: 3px 0 0; font-size: 13px; color: var(--wai-muted); }
.wai-brand { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; padding: 16px 20px; border-radius: 18px; border: 1px dashed var(--wai-line-2); background: rgba(199,210,254,.04); }
.wai-brand-prev { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; max-width: 240px; padding: 10px 14px; border-radius: 14px; background: #0A1020; border: 1px solid var(--wai-line); }
.wai-brand-mono { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; display: grid; place-items: center; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; color: #fff; }
.wai-brand-name { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.25; }
.wai-brand-img { display: block; padding: 6px 10px; border-radius: 8px; background: #fff; }
.wai-brand-img img { display: block; max-width: 190px; max-height: 44px; object-fit: contain; }
.wai-brand-txt { flex: 1; min-width: 0; }
.wai-brand-txt h4 { margin: 0; font-family: 'Poppins', sans-serif; font-size: 15px; color: #fff; font-weight: 600; }
.wai-brand-txt p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--wai-muted); }
.wai-btn.wai-brand-up { margin: 0; cursor: pointer; }
.wai-member { display: flex; align-items: flex-start; gap: 16px; margin-top: 12px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(34,197,94,.45); background: rgba(34,197,94,.08); }
.wai-member-ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(10,16,32,.6); border: 1px solid rgba(34,197,94,.4); color: #22C55E; }
.wai-member-ic svg { width: 22px; height: 22px; }
.wai-member h4 { margin: 0; font-family: 'Poppins', sans-serif; font-size: 15px; color: #fff; font-weight: 600; }
.wai-member p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: rgba(230,237,246,.82); }
.wai-member-link { display: inline-flex; align-items: center; margin-top: 12px; padding: 9px 16px; border-radius: 999px; background: #22C55E; color: #06120B; font-size: 13px; font-weight: 600; text-decoration: none; transition: filter .2s, transform .2s; }
#wai-root a.wai-member-link { color: #06120B; }
#wai-root a.wai-member-link:hover, #wai-root a.wai-member-link:focus-visible { background: #0A1020; color: #4ADE80; box-shadow: inset 0 0 0 1.5px #22C55E; transform: translateY(-1px); }
.wai-plans { display: grid; gap: 12px; margin-top: 12px; }
.wai-plans.is-two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.wai-plan { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(34,197,94,.3); background: rgba(10,16,32,.55); }
.wai-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wai-plan-top b { font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 600; color: #fff; }
.wai-plan-top span { font-size: 13px; font-weight: 600; color: #4ADE80; }
.wai-member .wai-plan p { flex: 1; margin-top: 6px; }
.wai-plan .wai-member-link { align-self: flex-start; }
.wai-member small { display: block; margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: var(--wai-muted); }
.wai-member .wai-member-demo { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(251,191,36,.55); background: rgba(251,191,36,.08); font-size: 12.5px; color: #FCD34D; }
.wai-table .pos { color: var(--wai-lime); font-weight: 600; }
.wai-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500; color: #fff; background: var(--wai-grad); box-shadow: 0 16px 36px -16px rgba(34,197,94,.9); transition: filter .2s ease, transform .2s ease; white-space: nowrap; margin-left: auto; }
.wai-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.wai-btn:disabled { opacity: .6; cursor: progress; }
.wai-btn svg { width: 16px; height: 16px; }
.wai-note { font-size: 11.5px; color: var(--wai-dim); line-height: 1.5; margin-top: 12px; }
.wai-note a { color: var(--wai-cyan); }
.wai-sec-title { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--wai-dim); margin: 18px 0 10px; }

/* Toast */
.wai-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 1000; padding: 12px 20px; border-radius: 999px; background: rgba(12,20,40,.96); border: 1px solid rgba(34,197,94,.5); color: #fff; font-size: 13.5px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); animation: waiRise .4s ease both; }

/* ---------- Animaciones ---------- */
@keyframes waiLauncherIn { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes waiGlow { 0%,100% { box-shadow: 0 22px 50px -18px rgba(0,182,217,.85), 0 0 0 0 rgba(34,197,94,.45); } 50% { box-shadow: 0 22px 50px -18px rgba(0,182,217,.85), 0 0 0 10px rgba(34,197,94,0); } }
@keyframes waiPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes waiRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes waiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes waiZoom { from { opacity: 0; transform: translateX(-50%) scale(.96) translateY(14px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes waiDot { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes waiSpin { to { transform: rotate(360deg); } }
@keyframes waiFlash { 0% { background: rgba(34,197,94,.22); } 100% { background: transparent; } }
@keyframes waiDraw { from { stroke-dashoffset: var(--len, 1000); } to { stroke-dashoffset: 0; } }
.wai-draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); animation: waiDraw 1.6s cubic-bezier(.2,.8,.2,1) forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .wai-body { grid-template-columns: minmax(0,1fr); }
  .wai-side { position: absolute; top: 64px; right: 0; bottom: 70px; width: min(340px, 92vw); z-index: 5; background: rgba(10,16,32,.97); border-left: 1px solid var(--wai-line); transform: translateX(105%); transition: transform .35s ease; }
  .wai-panel.show-profile .wai-side { transform: none; }
  .wai-profile-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .wai-panel { top: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .wai-head { padding: 10px 14px; }
  .wai-head-crumb, .wai-head-sep, .wai-badge, .wai-hbtn .txt { display: none; }
  .wai-feed { padding: 18px 14px 12px; }
  .wai-dock { padding: 10px 14px 14px; }
  .wai-steps { padding: 10px 14px; }
  .wai-step { min-width: 120px; }
  .wai-launcher-txt { display: none; }
  .wai-launcher { padding: 3px; right: 6px; bottom: 10px; }
  .wai-launcher-avatar, .wai-launcher-avatar .wai-bot { width: 36px; height: 36px; }
  .wai-launcher-avatar { flex-basis: 36px; }
  .wai-launcher-dot { width: 10px; height: 10px; }
  .wai-teaser { right: 18px; bottom: 84px; }
  .wai-dl, .wai-reco, .wai-brand { flex-direction: column; align-items: flex-start; }
  .wai-btn, .wai-reco-v { margin-left: 0; text-align: left; }
  .wai-stock-row { grid-template-columns: 1fr auto; }
  .wai-stock-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .wai-tip { max-width: calc(100vw - 20px); }
  .wai-gate { margin-left: 0; flex-wrap: wrap; }
  .wai-btn.wai-gate-btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #wai-root * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
