:root{--dsa-ink:#17212b;--dsa-blue:#1677a8;--dsa-blue2:#2ba5d2;--dsa-soft:#f4f8fb;--dsa-line:#dbe5ec;--dsa-red:#d94a57}
#dsa-chat-toggle{position:fixed;right:22px;bottom:22px;z-index:99998;border:0;border-radius:999px;padding:10px 14px 10px 10px;display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,var(--dsa-blue),var(--dsa-blue2));color:#fff;cursor:pointer;box-shadow:0 10px 28px #0b54754a;font:700 13px/1 Arial,sans-serif;transition:.2s transform,.2s box-shadow}#dsa-chat-toggle:hover{transform:translateY(-2px);box-shadow:0 14px 32px #0b547560}#dsa-chat-toggle span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#ffffff26;font-size:20px}#dsa-chat-toggle i{font-style:normal}
#dsa-chat{position:fixed;right:22px;bottom:86px;z-index:99999;width:min(420px,calc(100vw - 24px));max-height:min(760px,calc(100vh - 110px));background:#fff;border:1px solid #d7e1e8;border-radius:20px;box-shadow:0 24px 70px #142b3a38;overflow:auto;font-family:Arial,sans-serif;color:var(--dsa-ink);scrollbar-width:thin}#dsa-chat *{box-sizing:border-box}
.dsa-header{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;padding:16px 17px;background:linear-gradient(135deg,#112b3b,#1677a8);color:#fff;border-radius:19px 19px 0 0;box-shadow:0 5px 16px #112b3b24}.dsa-brand{display:flex;align-items:center;gap:11px}.dsa-brand img,.dsa-logo-fallback{width:44px;height:44px;border-radius:12px;object-fit:cover;background:#fff;box-shadow:0 4px 12px #0002}.dsa-logo-fallback{display:grid;place-items:center;color:var(--dsa-blue);font-weight:900}.dsa-brand strong{display:block;font-size:18px;letter-spacing:.1px}.dsa-brand small{display:block;margin-top:3px;color:#d8f2ff;font-size:12px}#dsa-close{border:0;background:#ffffff1c;color:#fff;width:34px;height:34px;border-radius:50%;font-size:25px;line-height:1;cursor:pointer}#dsa-close:hover{background:#ffffff30}
#dsa-messages{padding:16px 15px 8px;max-height:300px;overflow:auto;background:linear-gradient(#fbfdff,#fff)}#dsa-messages .bot,#dsa-messages .user{display:flex;gap:8px;align-items:flex-end;margin:9px 0}.dsa-avatar{flex:0 0 28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--dsa-blue);color:#fff;font-size:10px;font-weight:800}.bubble{padding:11px 13px;border-radius:15px;line-height:1.45;font-size:14px;box-shadow:0 2px 7px #0000000b}.bot .bubble{background:var(--dsa-soft);border:1px solid #e4edf3;border-bottom-left-radius:5px}.user{justify-content:flex-end}.user .bubble{background:linear-gradient(135deg,var(--dsa-blue),#268dbb);color:#fff;border-bottom-right-radius:5px;max-width:84%}.bubble a{color:#086a99;font-weight:700;text-decoration:none}.bubble a:hover{text-decoration:underline}
.dsa-actions{padding:10px 15px 14px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.dsa-actions button{min-height:66px;padding:10px;border:1px solid var(--dsa-line);background:#fff;border-radius:13px;cursor:pointer;display:flex;align-items:center;gap:9px;text-align:left;color:var(--dsa-ink);box-shadow:0 3px 10px #1c4a640d;transition:.18s}.dsa-actions button:hover{transform:translateY(-2px);border-color:#9dcde2;box-shadow:0 7px 18px #1c4a641c}.dsa-actions button span{font-size:21px}.dsa-actions button b{font-size:13px;line-height:1.2}
.dsa-panel{margin:0 15px 13px;padding:14px;background:#f8fbfd;border:1px solid var(--dsa-line);border-radius:14px;box-shadow:0 5px 16px #18384b10}.dsa-panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.dsa-panel-close{border:0;background:transparent;font-size:22px;cursor:pointer}.dsa-panel p{font-size:14px;line-height:1.45}.dsa-panel form{display:grid;gap:8px}.dsa-panel input,.dsa-panel select,.dsa-panel textarea{width:100%;border:1px solid #cbd9e2;border-radius:10px;padding:10px;background:#fff;font:14px Arial}.dsa-panel textarea{min-height:82px;resize:vertical}.dsa-panel form>button,.dsa-primary-link{border:0;border-radius:10px;padding:10px 13px;background:var(--dsa-blue);color:#fff;font-weight:700;text-align:center;text-decoration:none;cursor:pointer}.dsa-panel small{color:#667680;line-height:1.35}
#dsa-form{display:flex;gap:8px;padding:4px 15px 12px}#dsa-input{flex:1;min-width:0;padding:12px 13px;border:1px solid #cbd9e2;border-radius:12px;outline:none;font-size:14px;background:#fff}#dsa-input:focus{border-color:var(--dsa-blue2);box-shadow:0 0 0 3px #2ba5d21f}#dsa-form button{padding:11px 15px;border:0;border-radius:12px;background:var(--dsa-ink);color:#fff;font-weight:700;cursor:pointer}#dsa-form button:hover{background:var(--dsa-blue)}
.dsa-social{margin:0 15px 12px;padding:11px 12px;border-top:1px solid #edf1f4;display:flex;align-items:center;justify-content:space-between;gap:10px}.dsa-social>span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:#647580}.dsa-social>div{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.dsa-social a{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#edf6fa;color:#116d98;text-decoration:none;font-weight:800;font-size:12px;transition:.18s}.dsa-social a:hover{transform:translateY(-2px);background:var(--dsa-blue);color:#fff}#dsa-chat footer{padding:0 15px 15px;text-align:center;font-size:11px;color:#788791}
@media(max-width:520px){#dsa-chat{right:12px;bottom:78px;max-height:calc(100vh - 96px)}#dsa-chat-toggle{right:12px;bottom:12px}#dsa-chat-toggle i{display:none}.dsa-actions{grid-template-columns:1fr 1fr}.dsa-actions button{min-height:60px;padding:8px}.dsa-brand strong{font-size:17px}}
@media(max-width:360px){.dsa-actions{grid-template-columns:1fr}#dsa-form{flex-wrap:wrap}#dsa-form button{width:100%}}
/* v0.3: identidad más humana e iconos sociales SVG */
#dsa-chat-toggle .dsa-help-icon{font-family:Arial,sans-serif;font-weight:900;font-size:20px}
.dsa-social{background:#f8fbfd;border:1px solid #e5edf2;border-radius:13px;padding:10px 12px;margin-top:2px}
.dsa-social>span{text-transform:none;font-size:12px;letter-spacing:0;color:#3f5563}.dsa-social>span:before{content:"Síguenos en ";font-weight:500}.dsa-social>span{font-weight:800}
.dsa-social a{width:34px;height:34px;background:#fff;border:1px solid #dce7ed;color:#1677a8;box-shadow:0 2px 7px #173c5010}
.dsa-social a svg{width:18px;height:18px;fill:currentColor;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.dsa-social a svg rect,.dsa-social a svg circle{fill:none}.dsa-social a svg .fill{fill:currentColor;stroke:none}.dsa-social a svg .fill-white{fill:#fff;stroke:none}
.dsa-social a:hover{background:#1677a8;color:#fff;border-color:#1677a8}
.dsa-actions button span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#eef7fb}

/* v0.4: avatar de marca y presencia social más visible */
.dsa-avatar{width:34px!important;flex-basis:34px!important;height:34px!important;background:#fff!important;border:2px solid #dbe9f0;box-shadow:0 3px 10px #173c5018;overflow:hidden;color:#1677a8!important}
.dsa-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.dsa-social{display:block!important;text-align:center;padding:12px!important}
.dsa-social>span{display:block;margin-bottom:9px;font-size:13px!important}
.dsa-social>div{justify-content:center!important;gap:8px!important}
.dsa-social a{width:36px!important;height:36px!important}
.dsa-social-empty small{display:block;color:#6d7c86;font-size:11px;line-height:1.35}
#dsa-chat footer{padding:2px 15px 15px!important;color:#405865!important;font-size:11.5px!important}

/* v0.5: acabado editorial y móvil compacto */
.dsa-social>span:before{content:none!important}
.dsa-header{background:linear-gradient(120deg,#0e3449,#126f9c 60%,#1594bd);padding:14px 16px}
.dsa-brand img{width:62px!important;height:44px!important;object-fit:contain!important;padding:4px!important;background:#fff!important;border-radius:10px!important}
.dsa-avatar{width:38px!important;flex-basis:38px!important;height:38px!important;border:0!important;background:linear-gradient(145deg,#fff,#f2f7f9)!important;box-shadow:0 4px 14px #12394d24!important}
.dsa-avatar-mark{width:100%;height:100%;display:flex;align-items:center;justify-content:center;letter-spacing:-1.5px}.dsa-avatar-mark b{font:900 11px/1 Arial;color:#26343b}.dsa-avatar-mark em{font:900 16px/1 Arial;color:#f36b16;font-style:normal;margin-left:1px}
.dsa-social{background:linear-gradient(135deg,#f8fbfd,#f1f8fb)!important}.dsa-social>span{color:#183b4d!important}.dsa-social a{box-shadow:0 4px 12px #173c5014!important}.dsa-social a:hover{transform:translateY(-3px) scale(1.04)!important}
#dsa-form button,.dsa-panel form>button,.dsa-primary-link{background:linear-gradient(135deg,#126f9c,#1598c1)!important;box-shadow:0 5px 13px #126f9c2b}
#dsa-chat-toggle .dsa-help-icon{font-size:20px;line-height:1}
@media(max-width:520px){#dsa-chat-toggle{width:54px;height:54px;padding:0;display:grid;place-items:center;right:14px;bottom:14px;border-radius:50%}#dsa-chat-toggle i{display:none!important}#dsa-chat-toggle .dsa-help-icon{width:54px!important;height:54px!important;background:transparent!important;font-size:23px}#dsa-chat-toggle.is-open{opacity:.15;pointer-events:none}#dsa-chat{right:8px;left:8px;bottom:8px;width:auto;max-height:calc(100dvh - 16px);border-radius:18px;overscroll-behavior:contain}.dsa-header{padding:12px 13px}.dsa-brand img{width:54px!important;height:39px!important}#dsa-messages{max-height:30dvh;padding:12px 12px 6px}.dsa-actions{padding:8px 12px 10px;gap:7px}.dsa-actions button{min-height:55px}#dsa-form{padding:3px 12px 9px}.dsa-social{margin:0 12px 9px!important;padding:9px!important}.dsa-social a{width:32px!important;height:32px!important}#dsa-chat footer{padding:0 12px 11px!important;font-size:10.5px!important}}


/* v0.6: identidad de cabecera y avatar más legibles */
.dsa-header{min-height:76px;padding:13px 16px!important;background:linear-gradient(120deg,#0c3449 0%,#126f9c 58%,#1599c1 100%)!important}
.dsa-brand{gap:12px!important;min-width:0}
.dsa-brand-mark{position:relative;flex:0 0 52px;width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#fff;box-shadow:0 6px 18px #06263838;border:1px solid #ffffff70;letter-spacing:-2px;overflow:hidden}
.dsa-brand-mark:after{content:"";position:absolute;left:7px;right:7px;bottom:6px;height:3px;border-radius:3px;background:#f36b16;opacity:.95}
.dsa-brand-mark b{font:900 19px/1 Arial,sans-serif;color:#1f2e36}
.dsa-brand-mark em{font:900 25px/1 Arial,sans-serif;color:#f36b16;font-style:normal;margin-left:1px}
.dsa-brand-copy{min-width:0}.dsa-brand-copy strong{font:800 20px/1.05 Arial,sans-serif!important;letter-spacing:-.25px!important;text-shadow:0 1px 2px #06263830;white-space:nowrap}.dsa-brand-copy small{font:600 12.5px/1.25 Arial,sans-serif!important;color:#e8f7fd!important;margin-top:5px!important;white-space:nowrap}
#dsa-close{flex:0 0 36px;width:36px;height:36px;background:#ffffff20!important;font-size:24px!important}
.dsa-avatar{flex:0 0 42px!important;width:42px!important;height:42px!important;border-radius:13px!important;background:#fff!important;border:1px solid #dce8ee!important;box-shadow:0 5px 15px #12394d20!important}
.dsa-avatar-mark{letter-spacing:-1px!important}.dsa-avatar-mark b{font:900 13px/1 Arial,sans-serif!important;color:#26343b!important}.dsa-avatar-mark em{font:900 20px/1 Arial,sans-serif!important;color:#f36b16!important;margin-left:1px!important}
#dsa-messages .bot{gap:10px!important;align-items:flex-start!important}.bot .bubble{margin-top:1px}
@media(max-width:520px){.dsa-header{min-height:68px;padding:10px 12px!important}.dsa-brand-mark{flex-basis:46px;width:46px;height:46px;border-radius:12px}.dsa-brand-mark b{font-size:17px}.dsa-brand-mark em{font-size:22px}.dsa-brand-copy strong{font-size:18px!important}.dsa-brand-copy small{font-size:11.5px!important}.dsa-avatar{flex-basis:38px!important;width:38px!important;height:38px!important}.dsa-avatar-mark b{font-size:12px!important}.dsa-avatar-mark em{font-size:18px!important}}
/* v1.0: fechas visibles y conversación con scroll propio */
.dsa-result-date{font-size:11px;font-weight:800;color:#667b87;text-transform:uppercase;letter-spacing:.2px}
#dsa-chat{overflow:hidden;display:flex;flex-direction:column}
#dsa-messages{flex:1 1 auto;min-height:120px;max-height:310px;overflow-y:auto;overscroll-behavior:contain}
.dsa-actions,.dsa-panel,#dsa-form,.dsa-social,#dsa-chat footer{flex:0 0 auto}
@media(max-width:520px){#dsa-chat{height:min(720px,calc(100dvh - 16px));max-height:calc(100dvh - 16px)}#dsa-messages{max-height:none;min-height:100px}.dsa-actions button{min-height:52px}}


/* v1.0.1: identidad gráfica oficial optimizada */
.dsa-brand-image{
  flex:0 0 58px;width:58px;height:52px;display:block;object-fit:contain;
  object-position:center;background:#fff;border-radius:13px;padding:3px;
  box-shadow:0 6px 18px #06263838;border:1px solid #ffffff80;
}
.dsa-avatar-image{
  width:100%;height:100%;display:block;object-fit:contain;object-position:center;
  background:#fff;padding:3px;
}
.dsa-avatar{
  overflow:hidden!important;background:#fff!important;
  border:1px solid #dce8ee!important;
}
@media(max-width:520px){
  .dsa-brand-image{flex-basis:52px;width:52px;height:46px;border-radius:11px;padding:3px}
  .dsa-avatar-image{padding:2px}
}

/* v1.0.2 — icono oficial optimizado */
.dsa-brand-image{
  object-fit:contain!important;
  background:transparent!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
}
.dsa-avatar{
  background:transparent!important;
  border:0!important;
  box-shadow:0 4px 12px rgba(5,48,70,.12)!important;
}
.dsa-avatar-image{
  object-fit:contain!important;
  background:transparent!important;
  padding:0!important;
}
