/* Bernardo (chatbot) en las landings de pauta — estilos recuperados del sitio anterior y
   adaptados al sistema de diseño 2027 (site.css). Convive con el botón flotante de WhatsApp
   (.wa-float: solo en celular, abajo a la derecha): en celular el chat va encima de él. */
.chatbot{position:fixed;right:18px;bottom:88px;z-index:41;font-family:var(--font-body,'DM Sans',sans-serif);transition:opacity .2s}
.chatbot.oculto{opacity:0;pointer-events:none}
@media(min-width:1000px){.chatbot{right:22px;bottom:22px}}
.chatbot__toggle{width:58px;height:58px;border-radius:50%;background:var(--brand-ink);border:3px solid #fff;cursor:pointer;box-shadow:0 10px 24px rgba(15,79,76,.35);display:flex;align-items:center;justify-content:center;position:relative;transition:transform .2s}
.chatbot__toggle:hover{transform:scale(1.06)}
.chatbot__toggle::before{content:'';position:absolute;width:12px;height:12px;background:var(--green);border-radius:50%;top:2px;right:2px;border:2px solid #fff}
.chatbot__icon{width:28px;height:28px;color:#fff}
.chatbot__icon--close,.chatbot.active .chatbot__icon--chat{display:none}
.chatbot.active .chatbot__icon--close{display:block}
.chatbot__window{position:absolute;bottom:72px;right:0;width:380px;max-width:calc(100vw - 36px);height:540px;max-height:calc(100vh - 150px);background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-lg);display:flex;flex-direction:column;overflow:hidden;opacity:0;visibility:hidden;transform:translateY(16px);transition:all .25s ease}
.chatbot.active .chatbot__window{opacity:1;visibility:visible;transform:translateY(0)}
.chatbot__header{background:var(--brand-ink);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.chatbot__header-info{display:flex;align-items:center;gap:10px;flex:1}
.chatbot__avatar{width:38px;height:38px;background:rgba(255,255,255,.18);border-radius:50%;display:flex;align-items:center;justify-content:center}
.chatbot__avatar svg{width:22px;height:22px;fill:#fff}
.chatbot__header-text h4{margin:0;font-size:1rem;font-weight:700;color:#fff}
.chatbot__status{font-size:.78rem;color:#fff;display:flex;align-items:center;gap:6px}
.chatbot__status::before{content:'';width:8px;height:8px;background:var(--green);border-radius:50%}
.chatbot__clear,.chatbot__close{background:rgba(255,255,255,.12);border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}
.chatbot__clear:hover,.chatbot__close:hover{background:rgba(255,255,255,.24)}
.chatbot__clear svg,.chatbot__close svg{width:18px;height:18px;color:#fff}
.chatbot__messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:12px;background:var(--gray-100)}
.chatbot__message{display:flex;max-width:88%}
.chatbot__message--bot{align-self:flex-start}
.chatbot__message--user{align-self:flex-end}
.chatbot__message-content{padding:10px 14px;border-radius:14px;font-size:.93rem;line-height:1.5}
.chatbot__message--bot .chatbot__message-content{background:#fff;color:var(--ink);border-bottom-left-radius:4px;box-shadow:0 2px 8px rgba(20,32,26,.08)}
.chatbot__message--user .chatbot__message-content{background:var(--brand-dark);color:#fff;border-bottom-right-radius:4px}
.chatbot__message-content p{margin:0 0 6px}
.chatbot__message-content p:last-child{margin:0}
.chatbot__message-content a{color:inherit;text-decoration:underline}
.chatbot__typing{display:flex;gap:4px;padding:12px 14px;background:#fff;border-radius:14px;border-bottom-left-radius:4px;width:fit-content}
.chatbot__typing span{width:8px;height:8px;background:var(--gray-300);border-radius:50%;animation:chatbot-typing 1.4s infinite}
.chatbot__typing span:nth-child(2){animation-delay:.2s}
.chatbot__typing span:nth-child(3){animation-delay:.4s}
@keyframes chatbot-typing{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px);background:var(--brand)}}
.chatbot__suggestions{padding:10px 12px;display:flex;flex-wrap:wrap;gap:6px;background:#fff;border-top:1px solid var(--gray-300)}
.chatbot__suggestion{padding:6px 12px;background:var(--brand-light);border:1px solid var(--brand);border-radius:20px;font-size:.8rem;color:var(--brand-ink);cursor:pointer;font-family:inherit}
.chatbot__suggestion:hover{background:var(--brand);color:#fff}
.chatbot__form{display:flex;padding:12px;gap:8px;background:#fff;border-top:1px solid var(--gray-300)}
.chatbot__input{flex:1;padding:10px 14px;border:1px solid var(--gray-300);border-radius:24px;font-size:.95rem;color:var(--ink);outline:none;font-family:inherit}
.chatbot__input:focus{border-color:var(--brand)}
.chatbot__send{width:44px;height:44px;background:var(--brand-dark);border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}
.chatbot__send:disabled{opacity:.6;cursor:not-allowed}
.chatbot__send svg{width:20px;height:20px;color:#fff}
