/* Don Réplica · asistente de Réplicas Atakama */
.dr-activo .ra-wa-float{display:none!important}
#dr-root{--dr-ink:#29314f;--dr-terra:#c8643c;--dr-cream:#f6f1ea;--dr-line:#e4ddd2;font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:15px;line-height:1.45;color:#2b2b2b}
#dr-root *{box-sizing:border-box}
#dr-root .dr-hide{display:none}

/* Botón flotante */
#dr-root .dr-fab{position:fixed;right:18px;bottom:18px;z-index:99998;display:flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;border:0;border-radius:999px;background:var(--dr-ink);color:#fff;font:600 15px/1.2 inherit;font-family:inherit;cursor:pointer;box-shadow:0 10px 30px rgba(41,49,79,.35);transition:transform .2s}
#dr-root .dr-fab:hover{transform:translateY(-2px)}
#dr-root .dr-fab img{width:58px;height:58px;border-radius:50%;display:block;background:#ecf1fa}
#dr-root.dr-open .dr-fab{display:none}

/* Panel */
#dr-root .dr-panel{position:fixed;right:18px;bottom:18px;z-index:99999;width:400px;max-width:calc(100vw - 24px);height:min(680px,calc(100vh - 36px));display:none;flex-direction:column;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.28)}
#dr-root.dr-open .dr-panel{display:flex}
#dr-root .dr-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--dr-ink);color:#fff}
#dr-root .dr-head img{width:46px;height:46px;border-radius:50%;background:#ecf1fa}
#dr-root .dr-head div{flex:1;display:flex;flex-direction:column}
#dr-root .dr-head strong{font-size:17px}
#dr-root .dr-head small{font-size:12px;color:#c9cde0}
#dr-root .dr-x{background:none;border:0;color:#fff;font-size:20px;cursor:pointer;padding:6px 8px}

#dr-root .dr-log{flex:1;overflow-y:auto;padding:14px 12px;background:var(--dr-cream);display:flex;flex-direction:column;gap:8px}
#dr-root .dr-msg{max-width:88%;padding:9px 12px;border-radius:14px;word-wrap:break-word}
#dr-root .dr-bot{align-self:flex-start;background:#fff;border:1px solid var(--dr-line);border-bottom-left-radius:4px}
#dr-root .dr-yo{align-self:flex-end;background:var(--dr-ink);color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}
#dr-root .dr-bot ul{margin:6px 0 0;padding-left:18px}
#dr-root .dr-bot li{margin:3px 0;list-style:disc}
#dr-root .dr-bot a{color:var(--dr-terra);font-weight:600}
#dr-root .dr-gal{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
#dr-root .dr-gal img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}

#dr-root .dr-ui{padding:10px 12px;border-top:1px solid var(--dr-line);max-height:55%;overflow-y:auto;background:#fff}
#dr-root .dr-btns{display:flex;flex-wrap:wrap;gap:6px}
#dr-root .dr-b{display:inline-block;border:1.5px solid var(--dr-ink);background:#fff;color:var(--dr-ink);border-radius:999px;padding:8px 14px;font:600 14px/1.2 inherit;font-family:inherit;cursor:pointer;text-decoration:none}
#dr-root .dr-b:hover{background:var(--dr-ink);color:#fff}
#dr-root .dr-b--ok,#dr-root .dr-form>.dr-b{background:var(--dr-terra);border-color:var(--dr-terra);color:#fff}
#dr-root .dr-b--ok:hover,#dr-root .dr-form>.dr-b:hover{filter:brightness(.92);background:var(--dr-terra)}
#dr-root .dr-b--sec{border-color:#b9bdcc;color:#555}
#dr-root .dr-b--big{width:100%;padding:12px;font-size:16px}
#dr-root .dr-b:disabled{opacity:.45;cursor:default}
#dr-root .dr-form{display:flex;flex-direction:column;gap:8px}
#dr-root .dr-row{display:flex;gap:8px}
#dr-root .dr-row .dr-in{flex:1;min-width:0}
#dr-root .dr-in{width:100%;border:1.5px solid var(--dr-line);border-radius:10px;padding:10px 12px;font:15px/1.3 inherit;font-family:inherit;color:#222;background:#fff}
#dr-root .dr-in:focus{outline:none;border-color:var(--dr-ink)}
#dr-root textarea.dr-in{resize:vertical}
#dr-root .dr-chk{display:flex;gap:8px;align-items:flex-start;font-size:13.5px}
#dr-root .dr-chk input{margin-top:3px}
#dr-root .dr-chk a{color:var(--dr-terra)}
#dr-root .dr-err{margin:0;color:#b3261e;font-size:13.5px;min-height:0}
#dr-root .dr-err:empty{display:none}
#dr-root .dr-link{background:none;border:0;padding:6px 0 0;color:var(--dr-terra);font:600 13.5px inherit;font-family:inherit;cursor:pointer;text-decoration:underline}
#dr-root .dr-up{display:flex;flex-direction:column;gap:8px}
#dr-root .dr-thumbs{display:flex;flex-wrap:wrap;gap:6px}
#dr-root .dr-thumbs img,#dr-root .dr-file{width:56px;height:56px;object-fit:cover;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--dr-cream);font-size:22px}
#dr-root .dr-thumbs:empty{display:none}
#dr-root .dr-res{display:flex;flex-direction:column;gap:8px}
#dr-root .dr-res__b{border:1px solid var(--dr-line);border-radius:10px;padding:8px 10px}
#dr-root .dr-res__b pre{margin:0;white-space:pre-wrap;font:13.5px/1.45 inherit;font-family:inherit}
#dr-root .dr-res__q{margin:4px 0 0;font-weight:600}

#dr-root .dr-foot{display:flex;justify-content:space-between;gap:8px;padding:8px 12px;border-top:1px solid var(--dr-line);background:#fff}
#dr-root .dr-foot button{background:none;border:0;color:var(--dr-ink);font:600 13px inherit;font-family:inherit;cursor:pointer;padding:4px 0}
#dr-root .dr-foot .dr-wa{color:#1a8f4c}

@media (max-width:640px){
#dr-root .dr-fab{right:12px;bottom:12px;padding:5px 14px 5px 5px;font-size:14px}
#dr-root .dr-fab img{width:50px;height:50px}
#dr-root .dr-panel{right:0;bottom:0;width:100vw;max-width:100vw;height:100%;height:100dvh;border-radius:0}
#dr-root .dr-msg{max-width:92%}
#dr-root .dr-in{font-size:16px}
}
#dr-root .dr-fab--seguir{animation:dr-pulso 1.6s ease-in-out 4}
@keyframes dr-pulso{0%,100%{box-shadow:0 10px 30px rgba(41,49,79,.35)}50%{box-shadow:0 0 0 8px rgba(200,100,60,.35),0 10px 30px rgba(41,49,79,.35)}}
