/* Dot · componente compartido, aislado del diseño de las páginas React. */
html.dot-ready .paid-chatbot-fab { display: none !important; }
#dot-assistant {
  --dot-ink: #171614;
  --dot-orange: #ff571c;
  --dot-paper: #f4f1e9;
  font: 14px/1.55 Inter, Arial, sans-serif;
  color: var(--dot-ink);
  position: relative;
  z-index: 10010;
  color-scheme: light;
  text-align: left;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}
#dot-assistant *, #dot-assistant *::before, #dot-assistant *::after { box-sizing: border-box; }
#dot-assistant [hidden] { display: none !important; }
#dot-assistant button, #dot-assistant textarea, #dot-assistant a { font: inherit; letter-spacing: normal; text-transform: none; }
#dot-assistant button { cursor: pointer; margin: 0; box-shadow: none; text-shadow: none; }
#dot-assistant p { margin: 0; }
#dot-assistant a { text-decoration: none; }
#dot-assistant button:focus-visible, #dot-assistant a:focus-visible, #dot-assistant textarea:focus-visible, #dot-assistant summary:focus-visible {
  outline: 3px solid #ce3a09; outline-offset: 3px;
}
#dot-assistant svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; }
#dot-assistant .dot-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
#dot-assistant .dot-launcher {
  position: fixed; right: 24px; bottom: max(22px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 6px 20px 6px 6px;
  min-height: 68px; border: 1px solid #ff571c78; border-radius: 40px;
  background: #151412; color: #f7f3ea; box-shadow: 0 8px 28px #0004;
  transition: transform .2s, border-color .2s;
}
#dot-assistant .dot-launcher:hover { transform: translateY(-3px); border-color: var(--dot-orange); }
#dot-assistant .dot-avatar { display: block; object-fit: contain; width: 56px; height: 56px; flex-shrink: 0; }
#dot-assistant .dot-launcher-copy { text-align: left; line-height: 1.4; }
#dot-assistant .dot-launcher-copy strong { display: block; font-size: 13px; font-weight: 700; }
#dot-assistant .dot-launcher-copy small { display: block; font-size: 10px; color: #c4bfb4; margin-top: 2px; }
#dot-assistant .dot-launcher > svg { margin-left: 6px; color: #ff8b5e; }
#dot-assistant .dot-panel {
  position: fixed; right: 24px; bottom: 104px; display: flex; flex-direction: column;
  width: 404px; height: min(690px, calc(100dvh - 128px)); min-height: 340px;
  background: var(--dot-paper); border: 1px solid #474138; border-radius: 19px;
  overflow: hidden; box-shadow: 0 20px 65px #0005, 0 2px 12px #0003;
  animation: dot-enter .2s ease-out;
}
#dot-assistant .dot-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 12px 13px 16px;
  background: #171614; color: #f7f3ea; flex-shrink: 0; border-bottom: 2px solid var(--dot-orange);
}
#dot-assistant .dot-head .dot-avatar { width: 48px; height: 48px; }
#dot-assistant .dot-identity { flex: 1; min-width: 0; }
#dot-assistant .dot-name { font-size: 22px; font-weight: 750; line-height: 1.1; }
#dot-assistant .dot-subtitle { font-size: 10px; line-height: 1.6; color: #c9c3b6; margin-top: 4px; }
#dot-assistant .dot-icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0; padding: 0; border: 1px solid #ffffff25;
  border-radius: 10px; background: transparent; color: #f5efe3;
}
#dot-assistant .dot-icon-button:hover { background: #ffffff14; }
#dot-assistant .dot-progress { padding: 9px 17px; display: flex; align-items: center; gap: 8px; font-size: 10px; color: #665d4f; background: #eae5d9; flex-shrink: 0; }
#dot-assistant .dot-progress::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #d94413; }
#dot-assistant .dot-reset-bar { padding: 12px 17px; background: #ffe3d5; border-bottom: 1px solid #d5b7a7; color: #51301c; font-size: 11px; }
#dot-assistant .dot-reset-actions { display: flex; gap: 8px; margin-top: 9px; }
#dot-assistant .dot-reset-actions button { padding: 7px 11px; min-height: 36px; background: #fff8f2; border: 1px solid #ba927a; border-radius: 7px; color: #382315; font-size: 11px; }
#dot-assistant .dot-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; flex: 1; min-height: 0; padding: 18px 16px 12px; scroll-behavior: smooth; }
#dot-assistant .dot-message { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0 0 15px; }
#dot-assistant .dot-speaker { font-size: 9px; color: #736b5d; font-weight: 650; padding-left: 3px; }
#dot-assistant .dot-bubble { background: #fffdf8; border: 1px solid #e1dacd; padding: 12px 14px; border-radius: 4px 14px 14px 14px; max-width: 96%; color: #312d26; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
#dot-assistant .dot-message-user { align-items: flex-end; }
#dot-assistant .dot-message-user .dot-bubble { border-color: #25221d; background: #25221d; color: #faf5e9; border-radius: 14px 4px 14px 14px; }
#dot-assistant .dot-message-user .dot-speaker { padding-right: 3px; }
#dot-assistant .dot-message-links { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
#dot-assistant .dot-message-links a { display: inline-flex; align-items: center; gap: 6px; color: #a82b05; text-decoration: underline; text-underline-offset: 3px; font-size: 11px; font-weight: 600; white-space: normal; }
#dot-assistant .dot-choices { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 16px; }
#dot-assistant .dot-choice { background: #fffaf2; color: #6d2b12; border: 1px solid #d7a88e; border-radius: 10px; padding: 9px 12px; min-height: 40px; text-align: left; font-size: 11px; line-height: 1.5; transition: background .15s; }
#dot-assistant .dot-choice:hover { background: #ffe5d6; border-color: #c94213; }
#dot-assistant .dot-review { background: #fffdf8; border: 1px solid #d2cbbd; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
#dot-assistant .dot-review-title { font-weight: 750; font-size: 13px; margin-bottom: 4px; }
#dot-assistant .dot-review-help { color: #746b5d; font-size: 10px; line-height: 1.7; margin-bottom: 11px; }
#dot-assistant .dot-draft { display: block; resize: vertical; width: 100%; min-height: 148px; max-height: 290px; padding: 11px; background: #f7f3eb; color: #383127; border: 1px solid #d9d0c0; border-radius: 7px; font-size: 11px; line-height: 1.7; }
#dot-assistant .dot-draft-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0 12px; font-size: 9px; color: #726757; }
#dot-assistant .dot-copy { min-height: 34px; padding: 5px 7px; border: 0; border-radius: 5px; background: transparent; color: #5b3926; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
#dot-assistant .dot-whatsapp { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 12px; min-height: 48px; background: #126c46; color: #fff; border-radius: 8px; font-size: 11px; font-weight: 700; border: 1px solid #126c46; }
#dot-assistant .dot-whatsapp:hover { background: #095235; }
#dot-assistant .dot-whatsapp[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
#dot-assistant .dot-draft-error { font-size: 11px; color: #9e2609; margin-bottom: 8px; }
#dot-assistant .dot-draft-error:empty, #dot-assistant .dot-error:empty { display: none; }
#dot-assistant .dot-whatsapp-note { margin-top: 9px; font-size: 9px; color: #6c6253; line-height: 1.65; text-align: center; }
#dot-assistant .dot-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0 4px; }
#dot-assistant .dot-tools button { min-height: 34px; padding: 5px 0; border: 0; background: none; color: #765039; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
#dot-assistant .dot-tools button + button { margin-left: auto; }
#dot-assistant .dot-compose { border-top: 1px solid #ddd6c9; background: #fffcf6; padding: 11px 14px 10px; flex-shrink: 0; }
#dot-assistant .dot-input-label { display: block; font-size: 10px; color: #716656; margin-bottom: 7px; }
#dot-assistant .dot-input-row { display: flex; align-items: flex-end; gap: 7px; }
#dot-assistant .dot-input { display: block; flex: 1; min-width: 0; resize: none; border: 1px solid #d2c6b4; border-radius: 9px; padding: 10px 11px; background: #fffdf9; color: #1d1a16; font-size: 12px; line-height: 1.5; height: 58px; max-height: 100px; }
#dot-assistant .dot-input::placeholder { color: #847868; }
#dot-assistant .dot-send { flex-shrink: 0; width: 44px; min-height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--dot-orange); color: #17110b; margin-bottom: 1px; }
#dot-assistant .dot-send:hover { background: #ff804e; }
#dot-assistant .dot-send:disabled { background: #e9dfd0; color: #a99c89; cursor: not-allowed; }
#dot-assistant .dot-input-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; gap: 8px; color: #817362; font-size: 9px; }
#dot-assistant .dot-error { font-size: 10px; color: #9e2609; padding-top: 6px; }
#dot-assistant .dot-privacy { padding: 9px 14px 11px; background: #eee8dc; font-size: 9px; line-height: 1.5; color: #746856; flex-shrink: 0; text-align: center; }
#dot-assistant .dot-privacy a { color: #5c4130; text-decoration: underline; text-underline-offset: 2px; }
@keyframes dot-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) {
  #dot-assistant .dot-launcher { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); min-height: 60px; padding: 3px 14px 3px 3px; gap: 6px; }
  #dot-assistant .dot-launcher .dot-avatar { width: 50px; height: 50px; }
  #dot-assistant .dot-launcher-copy strong { font-size: 11px; }
  #dot-assistant .dot-launcher-copy small { display: none; }
  #dot-assistant .dot-launcher > svg { display: none; }
  #dot-assistant .dot-panel { right: 10px; left: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: auto; height: min(740px, calc(100dvh - 20px)); min-height: 0; border-radius: 17px; }
  #dot-assistant.dot-is-open .dot-launcher { display: none; }
  #dot-assistant .dot-head { padding: 10px 10px 10px 13px; gap: 8px; }
  #dot-assistant .dot-head .dot-avatar { width: 44px; height: 44px; }
  #dot-assistant .dot-icon-button { width: 40px; height: 40px; }
  #dot-assistant .dot-scroll { padding: 14px 12px 9px; }
  #dot-assistant .dot-bubble { font-size: 12px; padding: 11px 12px; }
  #dot-assistant .dot-choice { min-height: 42px; padding: 9px 11px; }
  #dot-assistant .dot-input, #dot-assistant .dot-draft { font-size: 16px; }
  #dot-assistant .dot-input { height: 61px; }
  #dot-assistant .dot-draft { min-height: 170px; }
  #dot-assistant .dot-compose { padding: 10px 12px 9px; }
  #dot-assistant .dot-privacy { font-size: 8px; }
}
@media (max-height: 560px) and (min-width: 601px) {
  #dot-assistant .dot-panel { bottom: 12px; height: calc(100dvh - 24px); min-height: 0; }
  #dot-assistant.dot-is-open .dot-launcher { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #dot-assistant *, #dot-assistant *::before, #dot-assistant *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
