/* Asistente de preguntas del sitio · esquina inferior derecha.
   v36: el mismo registro del sitio nuevo: blanco, Poppins, bordes de un píxel,
   píldoras, el rojo de Attendo sólo donde hay una acción y el isotipo nuevo
   (la «o» burbuja) como marca. */
.ata{position:fixed;right:22px;bottom:22px;z-index:90;font-family:Poppins,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:14px;line-height:1.5;color:#1B1B1F}
.ata *{box-sizing:border-box}
.ata [hidden]{display:none!important}
.ata-mark{display:inline-block;width:28px;height:28px;flex-shrink:0;background:#DA1A2E;-webkit-mask:url(/assets/marca/attendo-isotipo.svg) no-repeat center/contain;mask:url(/assets/marca/attendo-isotipo.svg) no-repeat center/contain}
.ata-launcher{display:flex;align-items:center;gap:10px;height:48px;padding:0 18px 0 12px;border:1px solid #E3E5EC;border-radius:999px;background:#fff;box-shadow:0 2px 48px rgba(27,27,31,.12);color:#1B1B1F;font:inherit;font-weight:600;font-size:14px;cursor:pointer;transition:border-color .18s,box-shadow .18s}
.ata-launcher:hover{border-color:#1B1B1F}
.ata-launcher:focus-visible{outline:2px solid #DA1A2E;outline-offset:3px}
.ata:not(.ata-still) .ata-launcher .ata-mark{animation:ata-beat 2.4s ease-in-out infinite}
@keyframes ata-beat{0%,70%,100%{transform:none}80%{transform:scale(.88)}90%{transform:scale(1.04)}}
.ata-open .ata-launcher{display:none}
.ata-bubble{position:absolute;right:0;bottom:58px;width:max-content;max-width:min(260px,calc(100vw - 40px));background:#fff;color:#1B1B1F;border:1px solid #E3E5EC;padding:10px 14px;border-radius:16px 16px 4px 16px;font-size:13px;font-weight:500;cursor:pointer;box-shadow:0 2px 48px rgba(27,27,31,.1);animation:ata-in .3s ease}
.ata-panel{position:absolute;right:0;bottom:0;width:min(380px,calc(100vw - 32px));max-height:min(620px,calc(100vh - 44px));display:flex;flex-direction:column;background:#fff;border:1px solid #E3E5EC;border-radius:20px;box-shadow:0 24px 64px -24px rgba(27,27,31,.25),0 2px 48px rgba(27,27,31,.08);overflow:hidden;animation:ata-in .3s ease}
@keyframes ata-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ata-still .ata-panel,.ata-still .ata-bubble{animation:none}
.ata-head{display:flex;align-items:center;gap:12px;padding:14px 14px 12px 16px;background:#fff;border-bottom:1px solid #E3E5EC}
.ata-head .ata-mark{width:32px;height:32px}
.ata-head div{display:flex;flex-direction:column;line-height:1.3;flex:1;min-width:0}
.ata-head strong{font-size:14px;font-weight:600;color:#1B1B1F}
.ata-head span{font-size:12px;color:#5B5F6E}
.ata-close{width:32px;height:32px;border:1px solid transparent;border-radius:50%;background:transparent;color:#5B5F6E;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center}
.ata-close:hover{background:#F5F6F8;color:#1B1B1F}
.ata-log{flex:1;min-height:180px;overflow:auto;padding:16px 14px 6px;display:flex;flex-direction:column;gap:10px;background:#F5F6F8;scrollbar-width:thin}
.ata-msg{display:flex;gap:8px;align-items:flex-end;max-width:92%}
.ata-msg .ata-mark{width:22px;height:22px;margin-bottom:6px}
.ata-msg.me{align-self:flex-end;flex-direction:row-reverse}
.ata-text{padding:10px 14px;border-radius:14px;background:#fff;border:1px solid #E3E5EC;font-size:13.5px;font-weight:500;color:#1B1B1F;white-space:normal;overflow-wrap:anywhere;animation:ata-in .25s ease}
.ata-msg.bot .ata-text{border-bottom-left-radius:4px}
.ata-msg.me .ata-text{background:#FDE8EA;border-color:#FDE8EA;border-bottom-right-radius:4px}
.ata-cta{display:flex;width:max-content;max-width:100%;align-items:center;gap:6px;margin-top:9px;padding:7px 14px;border-radius:999px;background:#DA1A2E;color:#fff;text-decoration:none;font-size:12.5px;font-weight:600}
.ata-cta:hover{background:#B8152A}
.ata-typing{display:inline-flex;gap:4px;padding:2px 0}
.ata-typing i{width:6px;height:6px;border-radius:50%;background:#8A8D99;animation:ata-dot 1s infinite}
.ata-typing i:nth-child(2){animation-delay:.15s}.ata-typing i:nth-child(3){animation-delay:.3s}
@keyframes ata-dot{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
.ata-still .ata-typing i{animation:none}
.ata-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:8px 14px 6px;background:#fff;scrollbar-width:none}
.ata-chips::-webkit-scrollbar{display:none}
.ata-chips button{white-space:nowrap;flex-shrink:0}
.ata-chips:empty{display:none}
.ata-chips button{font:inherit;font-size:12.5px;font-weight:500;padding:7px 13px;border-radius:999px;border:1px solid #E3E5EC;background:#fff;color:#1B1B1F;cursor:pointer;transition:background .15s,border-color .15s}
.ata-chips button:hover{border-color:#1B1B1F}
.ata-form{display:flex;gap:8px;padding:10px 14px 6px;background:#fff}
.ata-form input{flex:1;min-width:0;font:inherit;font-size:14px;padding:10px 16px;border:1px solid #E3E5EC;border-radius:12px;background:#fff;color:#1B1B1F;outline:none}
.ata-form input::placeholder{color:#8A8D99}
.ata-form input:focus{border-color:#DA1A2E;box-shadow:0 0 0 3px #FDE8EA}
.ata-form button{width:42px;height:42px;border:1px solid #DA1A2E;border-radius:50%;background:#DA1A2E;color:#fff;display:grid;place-items:center;cursor:pointer}
.ata-form button svg{width:18px;height:18px}
.ata-form button:hover{background:#B8152A;border-color:#B8152A}
.ata-foot{margin:0;padding:4px 14px 12px;font-size:12px;text-align:center;background:#fff}
.ata-foot a{color:#5B5F6E;text-underline-offset:3px}
@media (max-width:640px){
  .ata{right:14px;bottom:14px}
  .ata-launcher-text{display:none}
  .ata-launcher{width:48px;padding:0;justify-content:center}
  .ata-panel{position:fixed;right:10px;left:10px;bottom:10px;width:auto;max-height:78vh}
}
@media (prefers-reduced-motion:reduce){.ata .ata-mark,.ata-panel,.ata-bubble,.ata-text{animation:none!important}}
@media print{.ata{display:none}}
