/* iabot — portada «Conoce a iabot»: fondo casi negro, Geist, mucho aire y una ventana de la app que se usa. */
:root {
  --bg: #0a0a0a; --card: #1a1a1a; --win: #0f0f10; --side: #0c0c0d; --raise: #171719; --raise-2: #1f1f22;
  --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.14); --line-3: rgba(255,255,255,.26);
  --text: #fff; --soft: #a1a1a6; --muted: #7d8187;
  --green: #7cce8d; --green-tint: rgba(124,206,141,.14); --green-line: rgba(124,206,141,.4);
  --red: #ff5f57; --amber: #febc2e; --lime: #28c840; --warm: #e8b866;
  --nav-bg: rgba(10,10,10,.8); --hover: rgba(255,255,255,.04); --bar: #0b0b0c; --pop: #141416; --dim: #3a3a3e; --scroll: #2a2a2d;
  --pri-bg: #fff; --pri-fg: #0a0a0a; --pri-hover: #d9d9d9; --sec-bg: #222224; --sec-hover: #2c2c2f;
  --me-bg: #ececec; --me-fg: #0b0b0b; --me-av-bg: #2d2a26; --me-av-fg: #f1d9b5;
  --bub: #262628; --bub-fg: #d9d9dc; --cell: #1d1d20; --cell-dim: #2a2a2e; --face-line: #3a3a3d;
  --phone: #1c1c1e; --phone-edge: #333; --phone-screen: #0b0b0c; --phone-bot: #1e1e21; --phone-input: #1a1a1d;
  --shadow: rgba(0,0,0,.9); --shadow-2: #000; --overlay: rgba(0,0,0,.5);
  color-scheme: dark;
  --display: "Audiowide", "Geist", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Modo claro: sigue al sistema salvo que el visitante elija otro con el botón sol/luna (data-theme en <html>) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fff; --card: #f5f5f3; --win: #fff; --side: #fafafa; --raise: #f4f4f5; --raise-2: #ebebed;
    --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.13); --line-3: rgba(0,0,0,.24);
    --text: #0a0a0a; --soft: #52525b; --muted: #71717a;
    --green: #23824a; --green-tint: rgba(35,130,74,.1); --green-line: rgba(35,130,74,.35);
    --warm: #9a5b0c;
    --nav-bg: rgba(255,255,255,.82); --hover: rgba(0,0,0,.04); --bar: #f6f6f6; --pop: #fff; --dim: #d4d4d8; --scroll: #d4d4d8;
    --pri-bg: #0a0a0a; --pri-fg: #fff; --pri-hover: #2b2b2e; --sec-bg: #ebebeb; --sec-hover: #e0e0e0;
    --me-bg: #0a0a0a; --me-fg: #fff; --me-av-bg: #f3e6d3; --me-av-fg: #7a5320;
    --bub: #ebebed; --bub-fg: #27272a; --cell: #f1f1f3; --cell-dim: #e4e4e7; --face-line: #d4d4d8;
    --phone: #e9e9eb; --phone-edge: #d4d4d8; --phone-screen: #fff; --phone-bot: #f1f1f3; --phone-input: #f1f1f3;
    --shadow: rgba(0,0,0,.16); --shadow-2: rgba(0,0,0,.18); --overlay: rgba(0,0,0,.25);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fff; --card: #f5f5f3; --win: #fff; --side: #fafafa; --raise: #f4f4f5; --raise-2: #ebebed;
  --line: rgba(0,0,0,.08); --line-2: rgba(0,0,0,.13); --line-3: rgba(0,0,0,.24);
  --text: #0a0a0a; --soft: #52525b; --muted: #71717a;
  --green: #23824a; --green-tint: rgba(35,130,74,.1); --green-line: rgba(35,130,74,.35);
  --warm: #9a5b0c;
  --nav-bg: rgba(255,255,255,.82); --hover: rgba(0,0,0,.04); --bar: #f6f6f6; --pop: #fff; --dim: #d4d4d8; --scroll: #d4d4d8;
  --pri-bg: #0a0a0a; --pri-fg: #fff; --pri-hover: #2b2b2e; --sec-bg: #ebebeb; --sec-hover: #e0e0e0;
  --me-bg: #0a0a0a; --me-fg: #fff; --me-av-bg: #f3e6d3; --me-av-fg: #7a5320;
  --bub: #ebebed; --bub-fg: #27272a; --cell: #f1f1f3; --cell-dim: #e4e4e7; --face-line: #d4d4d8;
  --phone: #e9e9eb; --phone-edge: #d4d4d8; --phone-screen: #fff; --phone-bot: #f1f1f3; --phone-input: #f1f1f3;
  --shadow: rgba(0,0,0,.16); --shadow-2: rgba(0,0,0,.18); --overlay: rgba(0,0,0,.25);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); transition: background-color .25s, color .25s; font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
@keyframes dot { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes live { 50% { opacity: .35; } }

.staging-bar { background: #7cce8d; color: #050505; font-size: 12px; text-align: center; padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Barra superior ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.nav__inner { max-width: 1280px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { border-radius: 6px; }
.brand__name { font-family: var(--display); font-size: 20px; }
.brand__o { color: var(--green); }
.brand__product { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--green); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }
.nav__links { display: flex; gap: 26px; font-size: 14px; color: var(--soft); }
.nav__cta { display: flex; gap: 8px; margin-left: auto; }
.nav__links a { text-decoration: none; }
.nav__links a:hover { color: var(--text); }
.theme-btn { align-self: center; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ic-moon { display: none; }
:root[data-theme="light"] .theme-btn .ic-sun { display: none; }
:root[data-theme="light"] .theme-btn .ic-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-btn .ic-sun { display: none; }
  :root:not([data-theme]) .theme-btn .ic-moon { display: block; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn--light { background: var(--pri-bg); color: var(--pri-fg); }
.btn--light:hover { background: var(--pri-hover); }
.btn--dark { background: var(--sec-bg); color: var(--text); }
.btn--dark:hover { background: var(--sec-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--raise-2); }
.btn--block { width: 100%; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--xs { height: 32px; padding: 0 14px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero { max-width: 900px; margin: 0 auto; padding: clamp(64px, 11vh, 120px) 20px 64px; text-align: center; display: grid; justify-items: center; gap: 22px; }
.pill { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--hover); font-size: 13px; color: var(--soft); text-decoration: none; }
.pill b { color: var(--text); font-weight: 500; }
.pill:hover { border-color: var(--line-3); }
.hero__title { font-size: clamp(42px, 5.4vw, 64px); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; }
.hero__face { display: inline-block; width: .9em; height: .9em; border-radius: 22%; vertical-align: -.13em; margin: 0 .04em; box-shadow: 0 0 0 1px var(--line-2), 0 10px 40px -8px rgba(124,206,141,.45); }
/* El robotillo de iabot: mira al ratón, parpadea y guiña (bot-page.js) */
.bot-face { cursor: pointer; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.bot-face svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bot-face__bg { fill: #161b22; }
.bot-face__look { transition: transform .18s ease-out; }
.bot-face__eye { fill: #7cce8d; transform-box: fill-box; transform-origin: center; transition: transform .09s ease-in; }
.bot-face__mouth, .bot-face__smile { fill: #e6edf3; transition: opacity .15s; }
.bot-face__smile { opacity: 0; }
.bot-face.is-blink .bot-face__eye, .bot-face.is-wink .bot-face__eye--r { transform: scaleY(.12); }
.bot-face.is-happy .bot-face__mouth { opacity: 0; }
.bot-face.is-happy .bot-face__smile { opacity: 1; }
.bot-face:hover, .bot-face.is-hop { transform: translateY(-3px) rotate(-4deg); }
.nw { white-space: nowrap; }
.hero__sub { max-width: 672px; font-size: 18px; line-height: 1.625; color: var(--muted); text-wrap: pretty; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- La ventana ---------- */
.demo { max-width: 1232px; margin: 0 auto; padding: 0 24px; box-sizing: content-box; }
.win { position: relative; border-radius: 16px; border: 1px solid var(--line-2); background: var(--win); overflow: hidden; box-shadow: 0 50px 120px -30px var(--shadow); }
.win__bar { position: relative; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bar); }
.win__bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.win__bar i:nth-child(2) { background: var(--amber); }
.win__bar i:nth-child(3) { background: var(--lime); }
.win__bar span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.win__body { position: relative; display: grid; grid-template-columns: 290px minmax(0, 1fr); height: clamp(560px, 74vh, 720px); }
.win.has-panel .win__body { grid-template-columns: 290px minmax(0, 1fr) 340px; }
.demo__note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.icon-btn { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--soft); }
.icon-btn:hover { background: var(--raise-2); color: var(--text); }
.icon-btn svg, .send svg, .search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Avatares */
.av { flex: none; display: inline-flex; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--raise-2); }
.av__img { width: 100%; height: 100%; object-fit: cover; }
.av--sm { width: 32px; height: 32px; }
.av--ghost { visibility: hidden; }
.av--group { overflow: visible; background: none; position: relative; }
.av--group .av__img { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--side); }
.av--group .av__img:nth-child(1) { left: 0; top: 0; }
.av--group .av__img:nth-child(2) { right: 0; top: 4px; }
.av--group .av__img:nth-child(3) { left: 7px; bottom: -2px; }
.av--group.av--sm .av__img { width: 22px; height: 22px; }
.av--xs { width: 30px; height: 20px; }
.av--xs .av__img { width: 20px; height: 20px; top: 0 !important; bottom: auto !important; border-width: 1.5px; border-color: var(--win); }
.av--xs .av__img:nth-child(2) { left: 11px; right: auto; }
.av--new { display: grid; place-items: center; background: var(--pri-bg); color: var(--pri-fg); font-size: 20px; width: 32px; height: 32px; }

/* ---------- Lista lateral ---------- */
.side { display: flex; flex-direction: column; min-height: 0; background: var(--side); border-right: 1px solid var(--line); }
.side__top { display: flex; gap: 6px; padding: 12px 10px 8px 12px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); color: var(--muted); }
.search:focus-within { border-color: var(--line-2); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.list { flex: 1; overflow-y: auto; padding: 2px 6px 8px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
.row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 8px; border: 0; border-radius: 12px; background: none; text-align: left; position: relative; }
.row:hover { background: var(--hover); }
.row.is-on { background: var(--raise-2); }
.row__txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row__top { display: flex; align-items: baseline; gap: 8px; }
.row__top b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__top time { font-size: 12px; color: var(--muted); }
.row__last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 14px; }
.row__last.is-typing { color: var(--green); }
.dot { position: absolute; right: 10px; bottom: 15px; width: 8px; height: 8px; border-radius: 50%; background: #ff453a; }
.list__empty { padding: 10px 18px; font-size: 13.5px; color: var(--muted); }
.link { border: 0; background: none; padding: 0; color: var(--text); text-decoration: underline; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.me__av { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--me-av-bg); color: var(--me-av-fg); font-size: 12.5px; font-weight: 600; }
.me__txt { min-width: 0; display: grid; line-height: 1.25; }
.me__txt b { font-size: 13.5px; font-weight: 500; }
.me__txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat__head { display: flex; align-items: center; gap: 11px; height: 58px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); }
.chat__back { display: none; margin-left: -8px; }
.chat__who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.chat__who b { font-size: 15px; font-weight: 500; }
.chat__who small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__head .av { width: 34px; height: 34px; }
#screen-btn[aria-expanded="true"] { background: var(--raise-2); color: var(--text); }

.log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px;
  padding: 22px max(18px, calc((100% - 660px) / 2)) 14px; scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
.log > * { animation: in .3s ease both; }
.m { display: flex; gap: 10px; max-width: 100%; }
.m p { padding: 9px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.m--me { flex-direction: column; align-items: flex-end; margin-top: 6px; }
.m--me p { max-width: min(82%, 520px); background: var(--me-bg); color: var(--me-fg); border-bottom-right-radius: 6px; }
.m--bot { align-items: flex-start; }
.m--cont { margin-top: -4px; }
.m__body { min-width: 0; display: grid; justify-items: start; gap: 3px; max-width: min(86%, 560px); }
.m__name { font-size: 12px; color: var(--muted); padding-left: 4px; }
.m--bot p { background: var(--raise); border: 1px solid var(--line); border-top-left-radius: 6px; color: var(--text); }
.react { display: inline-block; margin-top: -10px; margin-right: 6px; padding: 1px 6px; border-radius: 999px; background: var(--raise-2); border: 1px solid var(--line-2); font-size: 12px; line-height: 1.5; }
.m--bot .react { margin-left: 10px; }
.m--typing p { color: var(--muted); font-size: 13.5px; }
.dots { display: inline-flex; gap: 3px; margin-right: 4px; vertical-align: middle; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }

.tools { display: grid; gap: 5px; margin-left: 42px; padding: 2px 0; }
.tools li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--soft); min-width: 0; }
.tools li > span:last-child { min-width: 0; }
.tools b { color: var(--text); font-weight: 500; }
.tools img { flex: none; width: 16px; height: 16px; object-fit: contain; }
.tick { flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--green-tint); color: var(--green); font-size: 10px; font-weight: 700; }
.sep { display: flex; align-items: center; gap: 12px; margin: 6px 0; font-size: 12.5px; color: var(--muted); }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sep span::before { content: "✦ "; color: var(--green); }
.mention { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-left: 42px; padding: 5px 12px 5px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); font-size: 13px; }
.mention:hover { color: var(--text); background: var(--raise); }

.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 max(18px, calc((100% - 660px) / 2)) 10px; }
.quick:empty { display: none; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--soft); font-size: 13px; text-align: left; }
.chip:hover { color: var(--text); background: var(--raise); }

.composer { position: relative; display: flex; align-items: center; gap: 4px; margin: 0 max(14px, calc((100% - 676px) / 2)) 16px; padding: 6px 6px 6px 6px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--raise); }
.composer:focus-within { border-color: var(--line-3); }
.composer input { flex: 1; min-width: 0; height: 34px; border: 0; background: none; outline: none; font-size: 14.5px; padding: 0 4px; }
.composer input::placeholder { color: var(--muted); }
.send { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--pri-bg); color: var(--pri-fg); }
.send:hover { background: var(--pri-hover); }
#mic.is-rec { color: #ff453a; animation: live 1s infinite; }
.skills { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5; width: min(280px, 100%); padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--pop); box-shadow: 0 20px 40px -10px var(--shadow-2); display: grid; animation: in .18s ease; }
.skills__h { padding: 6px 10px 4px; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.skills__opt { padding: 8px 10px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 14px; }
.skills__opt:hover, .skills__opt:focus-visible { background: var(--raise-2); }

/* «Para: Buscar o crear empleados» */
.to { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr); align-content: start; }
.to__row { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.to > .icon-btn { margin: 12px 12px 0 0; }
.to__row input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; color: var(--text); }
.to__row input::placeholder { color: var(--muted); }
.to__list { grid-column: 1 / -1; overflow-y: auto; padding: 8px; max-width: 520px; width: 100%; }
.to__list li { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.to__list li.is-on, .to__list li:hover { background: var(--raise-2); }
.to__txt { min-width: 0; display: grid; line-height: 1.3; }
.to__txt b { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.to__txt small { font-size: 12.5px; color: var(--muted); }
.win.is-new .chat__head, .win.is-new .log, .win.is-new .quick, .win.is-new .composer { display: none; }

/* ---------- Pantalla y rutinas ---------- */
.panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--side); border-left: 1px solid var(--line); animation: in .25s ease; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 58px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); }
.panel__head h2 { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel__scroll { flex: 1; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.screen { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bar); }
.screen__bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; background: var(--bar); }
.screen__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.screen__bar span { margin-left: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f4f4f5; }
.screen__view img { position: absolute; left: 0; top: 0; max-width: none; height: auto; opacity: 0; transition: opacity .2s; }
.screen__view img.is-framed { opacity: 1; }
.screen figcaption { display: flex; align-items: center; gap: 8px; padding: 9px 11px; font-size: 12.5px; color: var(--soft); border-top: 1px solid var(--line); background: var(--pop); }
.live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: live 1.6s infinite; }
.panel__h { margin: 22px 2px 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.routines { display: grid; gap: 6px; }
.rt { border-radius: 12px; border: 1px solid var(--line); background: var(--raise); }
.rt__btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; text-align: left; border-radius: 12px; }
.rt__btn:hover { background: var(--raise-2); }
.rt__ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--green-tint); color: var(--green); }
.rt__txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.rt__txt b { font-size: 14px; font-weight: 500; }
.rt__txt small { font-size: 12.5px; color: var(--muted); }
.rt__chev { color: var(--muted); transition: transform .2s; }
.rt__btn[aria-expanded="true"] .rt__chev { transform: rotate(90deg); }
.rt__more { display: grid; gap: 10px; justify-items: start; padding: 0 12px 12px 50px; font-size: 13.5px; color: var(--soft); }

/* ---------- Pantallas medianas: el panel se superpone ---------- */
@media (max-width: 1100px) {
  .win__body, .win.has-panel .win__body { grid-template-columns: 250px minmax(0, 1fr); }
  .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 90%); z-index: 6; box-shadow: -30px 0 60px -20px var(--shadow-2); }
}

/* ---------- Móvil: una sola columna ---------- */
@media (max-width: 768px) {
  .nav__links, .nav__sales { display: none; }
  .nav__inner { gap: 12px; padding: 0 16px; }
  .hero { padding: 44px 16px 40px; gap: 20px; }
  .demo { padding: 0 10px; }
  .win { border-radius: 14px; }
  .win__bar { height: 32px; }
  .win__bar i { width: 10px; height: 10px; }
  .win__body, .win.has-panel .win__body { grid-template-columns: minmax(0, 1fr); height: min(640px, calc(100svh - 130px)); min-height: 480px; }
  .side { border-right: 0; }
  .chat { display: none; }
  .win.is-chat .chat { display: flex; }
  .win.is-chat .side { display: none; }
  .chat__back { display: inline-grid; }
  .chat__head { padding: 0 10px 0 14px; }
  .log { padding: 16px 12px 10px; }
  .tools, .mention { margin-left: 0; }
  .m__body { max-width: calc(100% - 42px); }
  .quick { padding: 0 12px 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; }
  .composer { margin: 0 10px 10px; }
  .panel { top: auto; left: 0; width: 100%; max-height: 82%; border-left: 0; border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; box-shadow: 0 -30px 60px -10px var(--shadow-2); }
  .panel__head { position: relative; }
  .panel__head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-2); }
  .win.has-panel .chat::after { content: ""; position: absolute; inset: 0; z-index: 5; background: var(--overlay); }
}
@media (max-width: 400px) {
  .brand__product { display: none; }
  .hero__cta .btn { width: 100%; }
  .pill { font-size: 12px; white-space: nowrap; padding: 6px 12px; }
  .win__bar span { display: none; }
  .hero__cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
