/* Widget aislado del sitio: especificidad por ID, sin modificar estilos anfitriones. */
#pl-chat-root{--pl-green:#145b45;--pl-ink:#183b31;--pl-muted:#526b63;--pl-line:#d9e5df;--pl-bg:#f2f7f4;--pl-edge:24px;--pl-bottom:22px;--pl-panel-gap:62px;position:fixed;z-index:1000;right:var(--pl-edge);bottom:var(--pl-bottom);width:auto;max-width:calc(100vw - var(--pl-edge) - var(--pl-edge));font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--pl-ink);text-align:left;letter-spacing:normal;isolation:isolate}
#pl-chat-root,#pl-chat-root *,#pl-chat-root *::before,#pl-chat-root *::after{box-sizing:border-box;min-width:0}
#pl-chat-root [hidden]{display:none!important}
#pl-chat-root :is(h2,h3,p,ul,li,button,textarea,select,label,a){font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:normal;text-transform:none}
#pl-chat-root :is(h2,h3,p){max-width:none}
#pl-chat-root :is(button,textarea,select){margin:0;font:inherit}
#pl-chat-root :is(button,a,select){-webkit-tap-highlight-color:transparent;touch-action:manipulation}
#pl-chat-root button{cursor:pointer;white-space:normal}
#pl-chat-root :is(button,a,textarea,select,.pl-chat__messages):focus-visible{outline:3px solid #b07d12;outline-offset:-3px}
#pl-chat-root .pl-chat__launcher{display:block;margin:0 0 0 auto;background:var(--pl-green);color:#fff;border:1px solid #0a4e39;border-radius:999px;min-height:50px;padding:13px 22px;font-size:15px;line-height:1.4;font-weight:700;box-shadow:0 5px 20px #133d3026}
#pl-chat-root .pl-chat__launcher:hover,#pl-chat-root .pl-chat__button:hover{background:#0e4735}
#pl-chat-root .pl-chat__panel{position:fixed;right:var(--pl-edge);bottom:calc(var(--pl-bottom) + var(--pl-panel-gap));width:min(420px,calc(100vw - var(--pl-edge) - var(--pl-edge)));max-width:calc(100vw - var(--pl-edge) - var(--pl-edge));height:min(740px,calc(100vh - var(--pl-bottom) - var(--pl-panel-gap) - 16px));height:min(740px,calc(100dvh - var(--pl-bottom) - var(--pl-panel-gap) - 16px));min-height:0;max-height:none;display:flex;flex-direction:column;background:#fff;border:1px solid var(--pl-line);border-radius:20px;box-shadow:0 14px 50px #123a332e;margin:0;padding:0;overflow:hidden;text-align:left}
#pl-chat-root .pl-chat__header{position:static;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex:0 0 auto;width:100%;margin:0;padding:17px 18px;background:var(--pl-green);color:#fff;border:0}
#pl-chat-root .pl-chat__header>div{flex:1 1 0;min-width:0}
#pl-chat-root .pl-chat__header .pl-chat__eyebrow{font-size:10px;font-weight:750;line-height:1.4;letter-spacing:.12em;color:#fff;margin:0 0 5px;padding:0}
#pl-chat-root .pl-chat__title{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:20px;font-weight:750;line-height:1.2;letter-spacing:normal;color:#fff;margin:0;padding:0;overflow-wrap:normal}
#pl-chat-root .pl-chat__header .pl-chat__subtitle{font-size:11px;font-weight:400;line-height:1.4;letter-spacing:normal;margin:7px 0 0;padding:0;color:#e1eee7}
#pl-chat-root .pl-chat__icon-button{flex:0 0 36px;display:grid;place-items:center;border:1px solid #ffffff6b;background:transparent;color:#fff;border-radius:50%;width:36px;height:36px;min-height:36px;padding:0;font-size:28px;line-height:1}
#pl-chat-root .pl-chat__icon-button:hover{background:#ffffff17}
#pl-chat-root .pl-chat__intro{flex:1 1 auto;width:100%;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:18px}
#pl-chat-root .pl-chat__intro h3{font-size:19px;font-weight:700;line-height:1.3;color:var(--pl-ink);margin:0 0 10px;padding:0}
#pl-chat-root .pl-chat__intro ul{display:block;list-style:disc;padding:0 0 0 21px;margin:0 0 16px}
#pl-chat-root .pl-chat__intro li{font-size:14px;line-height:1.5;color:var(--pl-ink);padding:0;margin:9px 0}
#pl-chat-root .pl-chat__status{font-size:12px;font-weight:400;line-height:1.45;border:1px solid #ded4af;background:#fcf8e8;color:#5c4d20;border-radius:9px;padding:10px 12px;margin:14px 0;overflow-wrap:anywhere}
#pl-chat-root .pl-chat__status--compact{flex:0 0 auto;width:100%;margin:0 0 8px;padding:7px 9px;text-align:center;font-size:11px}
#pl-chat-root .pl-chat__main{display:flex;flex:1 1 0;flex-direction:column;width:100%;min-height:0;max-width:100%;padding:11px 14px 0;margin:0;overflow:hidden}
#pl-chat-root .pl-chat__messages{flex:1 1 0;width:100%;min-height:80px;max-width:100%;max-height:none;margin:0 0 6px;padding:0 0 6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;scrollbar-width:thin}
#pl-chat-root .pl-chat__message{font-size:13px;line-height:1.5;border-radius:11px;margin:8px 0;padding:12px;max-width:100%;overflow-wrap:anywhere}
#pl-chat-root .pl-chat__message--guide{background:var(--pl-bg);border:1px solid var(--pl-line);margin-right:7px;color:var(--pl-ink)}
#pl-chat-root .pl-chat__message--guide h3{font-size:14px;font-weight:700;line-height:1.35;letter-spacing:normal;color:var(--pl-ink);margin:0 0 8px;padding:0}
#pl-chat-root .pl-chat__message--guide p{font-size:13px;font-weight:400;line-height:1.5;color:var(--pl-ink);margin:0 0 8px;padding:0}
#pl-chat-root .pl-chat__message--guide p:last-child{margin-bottom:0}
#pl-chat-root .pl-chat__message .pl-chat__speaker{font-size:10px;line-height:1.4;letter-spacing:.04em;font-weight:750;color:var(--pl-muted);text-transform:uppercase;margin:0 0 7px}
#pl-chat-root .pl-chat__message--user{background:#e4efe8;border:1px solid #c9dcd0;margin-left:34px;color:#1b4c3a}
#pl-chat-root .pl-chat__message .pl-chat__handoff-note{font-size:11px;line-height:1.45;color:var(--pl-muted);border-top:1px solid var(--pl-line);padding:8px 0 0;margin:10px 0 0}
#pl-chat-root .pl-chat__small-heading{flex:0 0 auto;font-size:11px;line-height:1.35;color:var(--pl-muted);margin:0 0 6px;padding:0;font-weight:700}
#pl-chat-root .pl-chat__suggestions{display:flex;flex:0 0 auto;flex-wrap:wrap;width:100%;gap:5px;margin:0 0 8px;padding:0}
#pl-chat-root .pl-chat__chip{border:1px solid #b9cec0;border-radius:999px;background:#fff;color:#184d38;padding:6px 9px;min-height:32px;max-width:100%;font-size:11px;line-height:1.3;font-weight:650}
#pl-chat-root .pl-chat__chip:hover{background:#edf5ef}
#pl-chat-root .pl-chat__select{display:block;flex:0 0 auto;align-self:stretch;width:100%;min-width:0;max-width:100%;height:36px;min-height:36px;line-height:1.4;color:var(--pl-ink);border:1px solid #bccfc4;border-radius:8px;background:#fff;margin:0 0 8px;padding:7px 27px 7px 9px;font-size:12px;text-overflow:ellipsis}
#pl-chat-root .pl-chat__form{display:grid;grid-template-columns:minmax(0,1fr) auto;flex:0 0 auto;align-self:stretch;width:100%;min-width:0;max-width:100%;gap:5px 8px;border:0;border-top:1px solid var(--pl-line);margin:0;padding:9px 0;background:transparent}
#pl-chat-root .pl-chat__label{display:block;grid-column:1/-1;font-size:11px;line-height:1.4;font-weight:700;color:var(--pl-ink);margin:0;padding:0}
#pl-chat-root .pl-chat__input{display:block;grid-column:1/-1;width:100%;min-width:0;max-width:100%;height:54px;min-height:54px;max-height:54px;resize:none;border:1px solid #afc4b7;border-radius:8px;padding:8px 9px;margin:0;background:#fff;color:var(--pl-ink);font-size:13px;line-height:1.4;overflow:auto}
#pl-chat-root .pl-chat__input::placeholder{color:#5d7367;opacity:1}
#pl-chat-root .pl-chat__helper{grid-column:1/-1;font-size:10px;line-height:1.35;color:var(--pl-muted);margin:2px 0;padding:0;overflow-wrap:anywhere}
#pl-chat-root .pl-chat__button{grid-column:2;border:1px solid var(--pl-green);background:var(--pl-green);color:#fff;border-radius:8px;min-height:37px;padding:8px 12px;font-size:12px;line-height:1.4;font-weight:700;max-width:100%}
#pl-chat-root .pl-chat__intro .pl-chat__button{width:100%;font-size:14px}
#pl-chat-root .pl-chat__footer{position:static;display:block;flex:0 0 auto;align-self:stretch;width:100%;min-width:0;max-width:100%;padding:7px 0 9px;margin:0;border:0;border-top:1px solid var(--pl-line);background:#fafcfb;text-align:center}
#pl-chat-root .pl-chat__human-link{display:inline-block;max-width:100%;font-size:12px;line-height:1.4;font-weight:700;color:#12583e;text-decoration:underline;text-underline-offset:3px;padding:3px;margin:0;overflow-wrap:anywhere}
#pl-chat-root .pl-chat__footer p{font-size:10px;font-weight:400;line-height:1.35;color:var(--pl-muted);margin:4px auto;padding:0;max-width:330px;overflow-wrap:anywhere}
#pl-chat-root .pl-chat__text-button{display:inline-block;background:none;border:0;color:#456558;padding:4px 8px;margin:0;font-size:10px;line-height:1.3;text-decoration:underline;text-underline-offset:3px;min-height:25px}
#pl-chat-root .pl-chat__sr-only{position:absolute;display:block;width:1px;height:1px;min-height:0;max-width:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:520px){#pl-chat-root{--pl-edge:12px;--pl-bottom:max(12px,env(safe-area-inset-bottom));--pl-panel-gap:56px}#pl-chat-root .pl-chat__panel{border-radius:16px}#pl-chat-root .pl-chat__header{padding:14px 15px;gap:10px}#pl-chat-root .pl-chat__title{font-size:20px;line-height:1.2;color:#fff}#pl-chat-root .pl-chat__intro{padding:17px}#pl-chat-root .pl-chat__launcher{min-height:46px;padding:10px 18px;font-size:14px}#pl-chat-root .pl-chat__main{padding:10px 12px 0}#pl-chat-root .pl-chat__input{font-size:16px;line-height:1.35}#pl-chat-root .pl-chat__footer{padding-bottom:8px}#pl-chat-root .pl-chat__chip{font-size:10px;padding:6px 8px}}
/* En pantallas bajas o con mucho zoom, un único scroll permite alcanzar todo. */
@media(max-height:680px){#pl-chat-root .pl-chat__header{padding:11px 14px}#pl-chat-root .pl-chat__header .pl-chat__subtitle{font-size:10px}#pl-chat-root .pl-chat__main{flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}#pl-chat-root .pl-chat__messages{flex:0 0 auto;min-height:0;max-height:none;height:auto;overflow:visible}#pl-chat-root .pl-chat__footer{padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){#pl-chat-root .pl-chat__messages{scroll-behavior:auto}}
@media print{#pl-chat-root{display:none!important}}
