/* Scars Chat – estilos del front (blindados contra los estilos del tema) */
#sc-fab,#sc-chat,#sc-drawer,#sc-chat *,#sc-drawer *,#sc-fab *{box-sizing:border-box!important;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;letter-spacing:0;text-transform:none;font-style:normal}

/* Botón flotante */
#sc-fab{position:fixed!important;right:24px!important;bottom:24px!important;left:auto!important;top:auto!important;z-index:2147483200!important;width:54px!important;height:48px!important;min-width:0!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;cursor:pointer;background:#000!important;color:#fff!important;display:flex!important;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.25)!important;transition:background-color .25s,color .25s,box-shadow .25s,opacity .2s;line-height:1!important}
#sc-fab svg{width:24px!important;height:24px!important;display:block;fill:none!important;stroke:currentColor!important;stroke-width:1.5;stroke-linejoin:round}
#sc-fab.sc-light{background:#fff!important;color:#000!important;box-shadow:0 2px 10px rgba(0,0,0,.35)!important}
#sc-fab .sc-online{position:absolute;top:5px;right:5px;width:9px;height:9px;border-radius:50%;background:#00a651;display:block}
#sc-fab .sc-badge{position:absolute;top:-8px;left:-8px;min-width:18px;height:18px;border-radius:9px;background:#d0021b;color:#fff!important;font-size:11px;font-weight:700;line-height:18px;text-align:center;padding:0 4px;display:none;font-style:normal}
#sc-fab.sc-has-unread .sc-badge{display:block}
#sc-fab.sc-hidden{opacity:0;pointer-events:none}

/* Ventana de chat */
#sc-chat{position:fixed!important;right:24px!important;bottom:24px!important;left:auto!important;top:auto!important;z-index:2147483100!important;width:400px;max-width:calc(100vw - 16px);height:640px;max-height:calc(100vh - 48px);background:#fff!important;display:none;flex-direction:column;box-shadow:0 6px 30px rgba(0,0,0,.35);color:#000;margin:0;padding:0}
#sc-chat.sc-open{display:flex!important}
#sc-chat .sc-chat-head{background:#000!important;color:#fff!important;height:50px;flex:none;display:flex;align-items:center;gap:14px;padding:0 16px;margin:0}
#sc-chat .sc-chat-head svg{width:22px;height:22px;fill:none!important;stroke:#fff!important;stroke-width:1.5;stroke-linejoin:round;flex:none}
#sc-chat .sc-chat-head span{flex:1;font-size:12px;font-weight:600;letter-spacing:.4px;text-transform:uppercase!important;color:#fff!important}
#sc-chat .sc-min{all:unset!important;box-sizing:border-box!important;cursor:pointer;width:30px!important;height:30px!important;display:flex!important;align-items:center;justify-content:center;background:transparent!important}
#sc-chat .sc-min:before{content:"";width:14px;height:2px;background:#fff;display:block}
#sc-chat .sc-chat-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#fff}
#sc-chat .sc-chat-body:before{content:"";flex:1 1 auto}
#sc-chat .sc-msg{max-width:84%;padding:14px 18px;border-radius:20px;font-size:14px;line-height:1.5;word-wrap:break-word;white-space:pre-wrap;margin:0;flex:none}
#sc-chat .sc-msg.sc-agent{align-self:flex-start;background:#000!important;color:#fff!important}
#sc-chat .sc-msg.sc-visitor{align-self:flex-end;background:#ececec!important;color:#000!important}
#sc-chat .sc-msg *{color:inherit!important}
#sc-chat .sc-msg small{display:block;font-size:12px!important;line-height:1.5;margin:0 0 16px;white-space:normal}
#sc-chat .sc-msg small a{text-decoration:underline}
#sc-chat .sc-msg .sc-big{font-size:16px;display:block;white-space:normal}
#sc-chat .sc-msg img{max-width:100%;border-radius:8px;display:block;margin-top:6px}
#sc-chat .sc-msg a.sc-file{text-decoration:underline}
#sc-chat .sc-msg form{display:flex;gap:6px;margin:10px 0 0;padding:0;background:none;border:0}
#sc-chat .sc-msg input[type=email]{flex:1;min-width:0;border:0!important;border-bottom:1px solid #fff!important;background:transparent!important;color:#fff!important;font-size:13px;padding:6px 2px!important;outline:none;box-shadow:none!important;height:auto!important;border-radius:0!important}
#sc-chat .sc-msg button[type=submit]{border:1px solid #fff!important;background:#fff!important;color:#000!important;font-size:11px;font-weight:700;text-transform:uppercase!important;letter-spacing:.3px;padding:7px 10px!important;cursor:pointer;border-radius:0!important;height:auto!important;width:auto!important;line-height:1.2}
#sc-chat .sc-chat-form{flex:none;padding:14px 16px 16px;margin:0;background:#fff;border:0}
#sc-chat .sc-field{display:flex!important;align-items:center;border:1px solid #999!important;background:#fff!important;height:48px!important;padding:0 12px!important;margin:0}
#sc-chat .sc-field input[type=text]{flex:1 1 auto;width:100%!important;min-width:0;border:0!important;outline:0!important;background:transparent!important;font-size:14px!important;color:#000!important;height:100%!important;padding:0!important;margin:0!important;box-shadow:none!important;border-radius:0!important;line-height:normal}
#sc-chat .sc-field input[type=text]::placeholder{color:#777!important;opacity:1}
#sc-chat .sc-field label{cursor:pointer;display:flex!important;align-items:center;margin:0 0 0 8px!important;padding:0!important;width:auto!important;background:none!important;border:0!important;flex:none}
#sc-chat .sc-field label svg{width:20px;height:20px;fill:none!important;stroke:#000!important;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#sc-chat .sc-field input[type=file]{display:none!important}
#sc-chat .sc-note{font-size:11px;color:#b00!important;padding:6px 0 0;display:none}

/* Panel de contacto (cabecera) */
#sc-drawer{position:fixed!important;inset:0!important;z-index:2147483000!important;visibility:hidden;margin:0;padding:0}
#sc-drawer.sc-open{visibility:visible}
#sc-drawer .sc-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45);opacity:0;transition:opacity .3s}
#sc-drawer.sc-open .sc-backdrop{opacity:1}
#sc-drawer aside{position:absolute!important;top:0;right:0;bottom:0;left:auto!important;width:586px!important;max-width:100%;background:#fff!important;color:#000;padding:80px 75px 40px!important;transform:translateX(100%);transition:transform .35s ease;overflow-y:auto;margin:0;border:0}
#sc-drawer.sc-open aside{transform:none}
#sc-drawer h2{font-size:24px!important;font-weight:300!important;letter-spacing:.3px;text-transform:uppercase!important;margin:0 0 50px!important;line-height:1.2!important;color:#000!important;padding:0}
#sc-drawer .sc-row{margin:0 0 34px}
#sc-drawer .sc-row a{display:inline-flex!important;align-items:center;gap:8px;font-size:13px!important;font-weight:400!important;color:#000!important;text-decoration:none!important;border-bottom:1px solid #000;padding:0 0 1px!important;line-height:1.4;cursor:pointer;background:none!important;text-transform:none!important}
#sc-drawer .sc-row a svg{width:14px;height:14px;fill:none!important;stroke:#000!important;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#sc-drawer .sc-row .sc-dot{width:9px;height:9px;border-radius:50%;background:#00a651;display:inline-block}
#sc-drawer .sc-row p{font-size:12.5px!important;margin:12px 0 0!important;color:#000!important;line-height:1.5!important;font-weight:400!important}
#sc-drawer h3{font-size:17px!important;font-weight:400!important;margin:50px 0 24px!important;color:#000!important;padding:0;text-transform:none!important}
#sc-drawer .sc-big{font-size:17px!important;color:#000!important;text-decoration:none!important;border-bottom:1px solid #000;padding-bottom:2px}
#sc-drawer .sc-x{position:absolute!important;top:12px!important;right:24px!important;width:48px!important;height:48px!important;border-radius:50%!important;background:#000!important;border:0!important;cursor:pointer;padding:0!important;display:flex!important;align-items:center;justify-content:center;margin:0}
#sc-drawer .sc-x svg{width:16px;height:16px;stroke:#fff!important;stroke-width:1.8;fill:none!important;stroke-linecap:round}

/* Ocultar el panel de contacto anterior de la cabecera */
#dwgrx-gh-contact-panel{display:none!important}

@media(max-width:600px){
  #sc-chat{right:0!important;bottom:0!important;width:100vw;max-width:100vw;height:100%;max-height:100%}
  #sc-drawer aside{padding:80px 28px 40px!important}
  #sc-fab{right:14px!important;bottom:14px!important}
}

/* Subir el botón «volver arriba» del tema para que no se solape con el chat */
a.scrollToTop,.scrollToTop{bottom:84px!important;right:26px!important}
