.ejes-assistant,
.ejes-assistant * { box-sizing: border-box; }
.ejes-assistant { position: fixed; z-index: 1000; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); font-family: var(--font-body, Inter, sans-serif); color: #0f172a; }
.ejes-assistant [hidden] { display: none !important; }
.ejes-assistant__launcher { display: flex; align-items: center; gap: .65rem; border: 0; border-radius: 999px; padding: .58rem .95rem .58rem .6rem; color: #fff; background: #1e40af; box-shadow: 0 8px 24px rgb(15 23 42 / .22); font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.2; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ejes-assistant__launcher:hover { background: #1e3a8a; }
.ejes-assistant__launcher:active { cursor: grabbing; }
.ejes-assistant__launcher:focus-visible,
.ejes-assistant button:focus-visible,
.ejes-assistant a:focus-visible,
.ejes-assistant textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.ejes-assistant__robot { display: grid; width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; place-items: center; border-radius: 50%; color: #1e40af; background: #fff; }
.ejes-assistant__robot svg { width: 1.55rem; height: 1.55rem; fill: #fff; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ejes-assistant__robot rect { fill: #eff6ff; stroke-width: 1.9; }
.ejes-assistant__panel { position: absolute; right: 0; bottom: calc(100% + .8rem); display: flex; flex-direction: column; width: min(23rem, calc(100vw - 2rem)); max-height: min(36rem, calc(100dvh - 7rem)); overflow: hidden; border: 1px solid #dbe3ee; border-radius: 1rem; background: #fff; box-shadow: 0 18px 55px rgb(15 23 42 / .22); }
.ejes-assistant__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; color: #fff; background: #0f172a; }
.ejes-assistant__eyebrow { display: block; margin-bottom: .2rem; color: #cbd5e1; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ejes-assistant__header h2 { margin: 0; color: #fff; font: 600 1.1rem/1.25 var(--font-heading, sans-serif); }
.ejes-assistant__close { width: 2rem; height: 2rem; border: 0; border-radius: 50%; color: #fff; background: transparent; font: 400 1.65rem/1 sans-serif; cursor: pointer; }
.ejes-assistant__close:hover { background: rgb(255 255 255 / .14); }
.ejes-assistant__messages { display: flex; flex: 1; flex-direction: column; gap: .75rem; min-height: 10rem; padding: 1rem; overflow-y: auto; overscroll-behavior: contain; }
.ejes-assistant__bubble { max-width: 92%; margin: 0; padding: .7rem .85rem; border-radius: .9rem; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ejes-assistant__bubble--assistant { align-self: flex-start; border: 1px solid #e2e8f0; background: #f8fafc; }
.ejes-assistant__bubble--user { align-self: flex-end; color: #fff; background: #1e40af; }
.ejes-assistant__bubble[aria-busy="true"] { color: #475569; font-style: italic; }
.ejes-assistant__links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.ejes-assistant__links a { display: inline-flex; padding: .4rem .6rem; border: 1px solid #bfdbfe; border-radius: 999px; color: #1e40af; background: #eff6ff; font-size: .78rem; font-weight: 600; text-decoration: none; }
.ejes-assistant__suggestions { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem .8rem; }
.ejes-assistant__suggestions button { padding: .42rem .65rem; border: 1px solid #cbd5e1; border-radius: 999px; color: #334155; background: #fff; font-family: inherit; font-size: .78rem; font-weight: 500; line-height: 1.2; cursor: pointer; }
.ejes-assistant__suggestions button:hover { border-color: #1e40af; color: #1e40af; }
.ejes-assistant__form { display: flex; align-items: end; gap: .55rem; padding: .8rem 1rem; border-top: 1px solid #e2e8f0; }
.ejes-assistant__form textarea { flex: 1; min-width: 0; min-height: 2.75rem; max-height: 6rem; resize: vertical; padding: .65rem .75rem; border: 1px solid #cbd5e1; border-radius: .65rem; color: #0f172a; background: #fff; font-family: inherit; font-size: .9rem; font-weight: 400; line-height: 1.4; }
.ejes-assistant__send { min-height: 2.75rem; padding: .6rem .85rem; border: 0; border-radius: .65rem; color: #fff; background: #1e40af; font-family: inherit; font-size: .85rem; font-weight: 600; line-height: 1.2; cursor: pointer; }
.ejes-assistant__send:disabled { cursor: wait; opacity: .6; }
.ejes-assistant__notice { margin: 0; padding: 0 1rem .85rem; color: #475569; font-size: .7rem; line-height: 1.4; }
.ejes-assistant__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: 480px) {
  .ejes-assistant { right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom)); }
  .ejes-assistant__panel { position: fixed; right: max(.5rem, env(safe-area-inset-right)); bottom: calc(max(.5rem, env(safe-area-inset-bottom)) + 4.2rem); width: min(23rem, calc(100vw - 1rem)); max-height: min(34rem, calc(100dvh - 6rem)); }
  .ejes-assistant__launcher { padding: .55rem .85rem .55rem .55rem; }
}
@media (prefers-reduced-motion: reduce) { .ejes-assistant *, .ejes-assistant *::before, .ejes-assistant *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
