#asc-root { --asc-color: #2e7d32; position: fixed; right: 20px; bottom: 20px; z-index: 99999; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; line-height: 1.45; }
#asc-root * { box-sizing: border-box; }
#asc-lanzador { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
#asc-abrir { width: 60px; height: 60px; flex: none; border-radius: 50%; border: 0; background: var(--asc-color); color: #fff; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
#asc-abrir:hover { transform: scale(1.06); }
#asc-abrir svg { width: 30px; height: 30px; }
#asc-abrir .asc-ico-cerrar { display: none; width: 24px; height: 24px; }
#asc-root.abierto #asc-abrir .asc-ico-chat { display: none; }
#asc-root.abierto #asc-abrir .asc-ico-cerrar { display: block; }
#asc-etiqueta { display: flex; align-items: center; gap: 8px; background: #fff; color: #1d1d1d; border: 0; border-radius: 999px; padding: 9px 16px 9px 9px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.18); white-space: nowrap; animation: asc-entrar .4s ease-out .8s both; }
#asc-etiqueta[hidden] { display: none; }
#asc-etiqueta:hover { box-shadow: 0 6px 20px rgba(0,0,0,.24); }
.asc-chispa { width: 28px; height: 28px; border-radius: 50%; background: var(--asc-color); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.asc-chispa svg { width: 17px; height: 17px; }
#asc-root.abierto #asc-etiqueta { display: none; }
@keyframes asc-entrar { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #asc-etiqueta { animation: none; } #asc-abrir { transition: none; } }
.asc-enlace { color: var(--asc-color) !important; text-decoration: underline !important; font-weight: 600; word-break: break-word; }
#asc-panel { position: absolute; right: 0; bottom: 74px; width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 110px); background: #fff; color: #1d1d1d; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.25); display: none; flex-direction: column; overflow: hidden; }
#asc-root.abierto #asc-panel { display: flex; }
#asc-cabecera { background: var(--asc-color); color: #fff; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
#asc-cerrar { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; padding: 0 4px; }
#asc-mensajes { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6f7f6; }
.asc-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; }
.asc-bot { background: #fff; border: 1px solid #e3e5e3; align-self: flex-start; border-bottom-left-radius: 4px; }
.asc-user { background: var(--asc-color); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.asc-reservar { display: inline-block; margin-top: 8px; padding: 8px 14px; background: var(--asc-color); color: #fff !important; border-radius: 8px; text-decoration: none !important; font-weight: 600; }
.asc-escribiendo { color: #777; font-style: italic; }
#asc-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e5e3; background: #fff; }
#asc-input { flex: 1; border: 1px solid #ccd0cc; border-radius: 10px; padding: 9px 11px; font: inherit; resize: none; color: #1d1d1d; background: #fff; }
#asc-enviar { border: 0; background: var(--asc-color); color: #fff; border-radius: 10px; padding: 0 14px; font-weight: 600; cursor: pointer; }
#asc-enviar:disabled { opacity: .5; cursor: default; }
#asc-aviso { font-size: 11px; color: #888; text-align: center; padding: 0 10px 8px; background: #fff; }
@media (max-width: 480px) {
  #asc-root { right: 12px; bottom: 12px; }
  #asc-etiqueta { font-size: 13px; padding: 7px 12px 7px 7px; }
  #asc-root.abierto #asc-lanzador { display: none; }
  #asc-panel { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100%; max-height: none; border-radius: 0; }
}
#asc-aviso a { color: #666; text-decoration: underline; }
