/* Asistente de Alpha Prime Medical: estilos. Colores y fuentes del .design.md del sitio. */
.apm-root{position:fixed;right:12px;bottom:62px;z-index:2147483000;font-family:'Work Sans',system-ui,sans-serif;color:#111}
.apm-launcher{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;border:0;background:#111;color:#fff;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:transform .2s,background .2s}
.apm-launcher:hover{transform:translateY(-2px);background:#5b3e96}
.apm-root [hidden]{display:none !important}
.apm-panel{position:absolute;right:0;bottom:72px;width:min(380px,calc(100vw - 24px));max-height:min(600px,calc(100vh - 100px));max-height:min(600px,calc(var(--apm-vh,100dvh) - 150px));display:flex;flex-direction:column;background:#fff;border-radius:18px;border:1px solid #d9d5cb;box-shadow:0 18px 50px rgba(0,0,0,.28);overflow:hidden}
.apm-head{position:relative;background:#111;color:#fff;padding:.9rem 4rem .7rem 1.1rem;flex:none}
.apm-head .apm-kick{margin:0 0 .15rem;font-size:.72rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#a4ffe1}
.apm-head h2{margin:0;font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-style:italic;font-weight:800;text-transform:uppercase;font-size:1.5rem;line-height:1}
.apm-close{position:absolute;top:.4rem;right:.5rem;width:44px;height:44px;min-height:44px;padding:0;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:1.25rem;line-height:1;cursor:pointer;transition:background .2s}
.apm-close:hover{background:#5b3e96}
.apm-msgs{flex:1 1 auto;min-height:130px;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:1rem 1rem .4rem;display:flex;flex-direction:column;gap:.7rem;scroll-behavior:smooth}
.apm-msg{max-width:88%;border-radius:14px;padding:.65rem .85rem;font-size:.95rem;line-height:1.45}
.apm-msg p{margin:0}
.apm-msg p + p{margin-top:.45rem}
.apm-msg.bot{align-self:flex-start;background:#f6f4ef;border-bottom-left-radius:4px}
.apm-msg.user{align-self:flex-end;background:#111;color:#fff;border-bottom-right-radius:4px}
.apm-quick{flex:0 1 auto;min-height:0;max-height:42%;display:flex;flex-wrap:wrap;gap:.5rem;padding:.6rem 1rem .8rem;overflow-y:auto;-webkit-overflow-scrolling:touch}
.apm-qb{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:.45rem .95rem;border-radius:999px;background:#fff;border:2px solid #111;color:#111;font:600 .9rem 'Work Sans',system-ui,sans-serif;cursor:pointer;text-decoration:none;transition:background .2s,color .2s,border-color .2s}
.apm-qb:hover{background:#111;color:#fff}
.apm-qb-sec{border-color:#d9d5cb;color:#555;font-weight:500}
.apm-qb-sec:hover{border-color:#111;background:#111;color:#fff}
.apm-input{flex:none;display:flex;gap:.5rem;padding:0 1rem 1rem}
.apm-input input{flex:1;min-width:0;font:400 16px 'Work Sans',system-ui,sans-serif;padding:.6rem .8rem;min-height:44px;border:1.5px solid #8b887f;border-radius:999px;background:#fff}
.apm-input input:focus{outline:3px solid #a4ffe1;border-color:#111}
.apm-send{flex:none;min-height:44px;padding:.5rem 1.1rem;border-radius:999px;border:2px solid #111;background:#111;color:#fff;font:600 .9rem 'Work Sans',system-ui,sans-serif;cursor:pointer;transition:background .2s,border-color .2s}
.apm-send:hover{background:#5b3e96;border-color:#5b3e96}
@media(prefers-reduced-motion:reduce){.apm-launcher,.apm-qb,.apm-send{transition:none}}
@media(max-width:480px){
.apm-root{right:10px;bottom:60px}
.apm-launcher{width:52px;height:52px}
.apm-panel{right:0;bottom:66px;max-height:calc(100vh - 150px);max-height:calc(var(--apm-vh,100dvh) - 150px)}
}
