:root{--druyd-blue:#17365D;--druyd-light:#E8EFF7;--druyd-border:#D7DFEA}
#druyd-launch{position:fixed;right:20px;bottom:20px;z-index:20000;width:76px;height:76px;border:2px solid var(--druyd-blue);background:#fff;border-radius:50%;padding:3px;box-shadow:0 4px 18px #0003;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s ease,box-shadow .15s ease}
#druyd-launch:hover{transform:scale(1.04);box-shadow:0 6px 22px #0004}#druyd-launch img{width:100%;height:100%;object-fit:contain}
#druyd-chat{position:fixed;right:20px;bottom:108px;z-index:20001;width:min(390px,calc(100vw - 24px));height:min(540px,calc(100dvh - 125px));background:#fff;border:1px solid var(--druyd-border);border-radius:15px;box-shadow:0 8px 32px #0004;overflow:hidden;display:flex;flex-direction:column;font-family:Arial,sans-serif;color:#172b42}
#druyd-chat[hidden]{display:none!important}.druyd-head{display:flex;align-items:center;gap:12px;min-height:92px;box-sizing:border-box;padding:8px 12px;background:var(--druyd-blue);color:#fff}
.druyd-head img{width:76px;height:76px;flex:0 0 76px;object-fit:contain;background:#fff;border-radius:12px;padding:3px;box-sizing:border-box}.druyd-head strong{font-size:18px}.druyd-head small{display:block;color:#e3edf8;margin-top:4px}
.druyd-head #druyd-close{margin-left:auto;align-self:flex-start;border:0;background:transparent;color:#fff;font-size:29px;line-height:1;cursor:pointer;padding:3px 5px}
#druyd-messages{flex:1;overflow-y:auto;padding:15px;background:#fff}.druyd-msg{padding:10px 12px;border-radius:12px;margin:8px 0;max-width:90%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.45}.druyd-bot{background:var(--druyd-light);color:#172b42;margin-right:auto}.druyd-user{background:var(--druyd-blue);color:#fff;margin-left:auto}
#druyd-form{display:flex;gap:7px;padding:10px;border-top:1px solid var(--druyd-border);background:#fff}#druyd-input{min-width:0;flex:1;border:1px solid #aebdce;border-radius:8px;padding:9px;font-size:14px}#druyd-input:focus{outline:2px solid #527da8;outline-offset:1px}#druyd-send{border:0;border-radius:8px;background:var(--druyd-blue);color:#fff;padding:8px 13px;cursor:pointer;font-weight:600}#druyd-send:disabled{opacity:.55;cursor:wait}
@media(max-width:500px){#druyd-launch{right:12px;bottom:12px}#druyd-chat{right:12px;bottom:100px;height:min(520px,calc(100dvh - 115px))}}
@media(prefers-reduced-motion:reduce){#druyd-launch{transition:none}}


/* Version 4: white unified header, faithful to approved reference */
#druyd-chat { background:#fff !important; border:2px solid #17365D; }
#druyd-chat .druyd-head {
  background:#fff !important; color:#00245a !important;
  border:4px solid #17365D; border-radius:22px;
  min-height:112px; padding:6px 12px; gap:12px;
  display:flex; align-items:center; box-shadow:0 4px 0 #17365D;
}
#druyd-chat .druyd-head > img:first-child {
  display:block; width:142px !important; height:100px !important;
  flex:0 0 142px !important; max-width:none !important;
  object-fit:contain; background:transparent !important;
  border:0 !important; border-radius:0 !important; padding:0 !important;
}
#druyd-chat .druyd-head img.druyd-wordmark {
  display:block; width:170px !important; height:auto !important;
  max-height:86px !important; flex:0 1 170px !important;
  min-width:0; object-fit:contain; background:transparent !important;
  border:0 !important; border-radius:0 !important; padding:0 !important;
}
#druyd-chat .druyd-head #druyd-close {
  margin-left:auto; align-self:flex-start; color:#00245a !important;
  font-size:30px; line-height:1; background:transparent !important;
}
#druyd-chat #druyd-messages, #druyd-chat #druyd-form {background:#fff !important;}
@media(max-width:420px) {
 #druyd-chat .druyd-head {gap:6px;padding:5px 7px;min-height:96px;}
 #druyd-chat .druyd-head > img:first-child {width:112px !important;height:84px !important;flex-basis:112px !important;}
 #druyd-chat .druyd-head img.druyd-wordmark {width:145px !important;flex-basis:145px !important;}
}

/* Druyd: encabezado limpio, sin doble borde */

#druyd-chat {
    border: 1px solid #17365D;
    border-radius: 16px;
}

#druyd-chat .druyd-head {
    background: #FFFFFF;
    border: none;
    border-bottom: 1px solid #D8E0EA;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

/* Separador inferior del dialogo */
#druyd-chat #druyd-form {
    border-top: 1px solid #D8E0EA;
}