.pmf-chat { --pmf-purple: #9c0cfc; --pmf-ink: #000; --pmf-muted: #5f5f5f; position: fixed; z-index: 10000; right: 20px; bottom: 20px; font-family: var(--body-font, Roboto, Arial, sans-serif); }
.pmf-chat button, .pmf-chat textarea { font: inherit; }
.pmf-chat__launcher { min-height: 56px; border: 0; border-radius: 999px; padding: 0 20px; color: #fff; background: var(--pmf-purple); box-shadow: 0 8px 24px rgba(0,0,0,.22); display: flex; align-items: center; gap: 9px; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s; }
.pmf-chat__launcher:hover, .pmf-chat__launcher:focus-visible { color: #fff; background: #7e09ca; transform: translateY(-2px); }
.pmf-chat__launcher i { font-size: 21px; }
.pmf-chat__panel { width: min(380px, calc(100vw - 32px)); height: min(590px, calc(100vh - 105px)); margin-bottom: 12px; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 16px 50px rgba(0,0,0,.26); display: flex; flex-direction: column; border: 1px solid rgba(156,12,252,.14); }
.pmf-chat__header { color: #fff; background: var(--pmf-purple); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.pmf-chat__header h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.1; }
.pmf-chat__eyebrow { margin: 0 0 4px; color: #fff; font-size: 10px; letter-spacing: .12em; font-weight: 700; }
.pmf-chat__close { width: 36px; height: 36px; border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; font-size: 20px; }
.pmf-chat__close:hover, .pmf-chat__close:focus-visible { background: rgba(255,255,255,.18); }
.pmf-chat__messages { flex: 1; overflow-y: auto; padding: 18px; background: #faf9fc; display: flex; flex-direction: column; gap: 10px; }
.pmf-chat__message { max-width: 88%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.pmf-chat__message--bot { align-self: flex-start; color: var(--pmf-ink); background: #eeeaf2; border-bottom-left-radius: 4px; }
.pmf-chat__message--user { align-self: flex-end; color: #fff; background: var(--pmf-purple); border-bottom-right-radius: 4px; }
.pmf-chat__message--system { align-self: center; max-width: 100%; padding: 6px; color: var(--pmf-muted); background: transparent; font-size: 12px; text-align: center; }
.pmf-chat__consent { padding: 18px; font-size: 13px; line-height: 1.45; }
.pmf-chat__consent p { margin: 0 0 9px; }
.pmf-chat__consent a { color: var(--pmf-purple); text-decoration: underline; }
.pmf-chat__consent label { display: flex; gap: 8px; align-items: flex-start; color: var(--pmf-ink); }
.pmf-chat__consent input { margin-top: 4px; accent-color: var(--pmf-purple); }
.pmf-chat__turnstile { margin: 12px 0; min-height: 1px; transform: scale(.92); transform-origin: left center; }
.pmf-chat__start { width: 100%; justify-content: center; border: 0; cursor: pointer; font-size: 13px; }
.pmf-chat__form { gap: 8px; padding: 12px; border-top: 1px solid #e8e8e8; display: flex; align-items: flex-end; }
.pmf-chat__input { flex: 1; max-height: 108px; resize: none; border: 1px solid #d7d1dc; border-radius: 12px; padding: 10px 12px; color: var(--pmf-ink); outline: none; }
.pmf-chat__input:focus { border-color: var(--pmf-purple); box-shadow: 0 0 0 3px rgba(156,12,252,.12); }
.pmf-chat__send { width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: var(--pmf-purple); cursor: pointer; }
.pmf-chat__send:disabled, .pmf-chat__input:disabled { cursor: not-allowed; opacity: .55; }
.pmf-chat__notice { margin: 0; padding: 0 14px 10px; color: var(--pmf-muted); font-size: 11px; line-height: 1.3; text-align: center; }
.pmf-chat [hidden] { display: none !important; }
/* La flecha de volver arriba queda alineada sobre el lanzador del chat. */
.scroll-top { right: 20px; bottom: 88px; z-index: 9998; }
@media (max-width: 576px) { .pmf-chat { right: 12px; bottom: 12px; } .pmf-chat__panel { height: min(620px, calc(100vh - 84px)); margin-bottom: 8px; } .pmf-chat__launcher span { display: none; } .pmf-chat__launcher { width: 56px; padding: 0; justify-content: center; } }
