/* Tema Wellbeinn para Chatwoot — verde #50F070 sobre la paleta azul original */

/* Escala de color: sustituye los azules base por verdes Wellbeinn (tripletas RGB) */
:root {
  --blue-1: 247 254 249; --blue-2: 240 252 242; --blue-3: 226 249 231;
  --blue-4: 206 244 214; --blue-5: 183 237 195; --blue-6: 152 227 169;
  --blue-7: 110 213 135; --blue-8: 60 195 95;  --blue-9: 47 215 95;
  --blue-10: 36 190 79;  --blue-11: 20 141 56; --blue-12: 8 61 25;
  --text-blue: 6 44 18;
}
.dark, [data-theme="dark"] {
  --blue-1: 8 17 11;   --blue-2: 12 24 15;  --blue-3: 13 39 21;
  --blue-4: 10 49 24;  --blue-5: 15 61 30;  --blue-6: 20 78 39;
  --blue-7: 28 104 52; --blue-8: 38 140 69; --blue-9: 80 240 112;
  --blue-10: 63 219 97; --blue-11: 129 240 158; --blue-12: 205 255 220;
  --text-blue: 213 255 226;
}

/* Clases n-brand con el azul #2781f6 incrustado */
.bg-n-brand, .before\:bg-n-brand:before, .after\:bg-n-brand:after,
.checked\:bg-n-brand:checked, .indeterminate\:bg-n-brand:indeterminate,
.dark\:checked\:bg-n-brand:checked:is(.dark *) {
  background-color: #2FD75F !important;
}
.bg-n-brand\/10, .hover\:bg-n-brand\/10:hover {
  background-color: rgba(80, 240, 112, .13) !important;
}
.dark\:bg-n-brand\/10:is(.dark *) {
  background-color: rgba(80, 240, 112, .16) !important;
}
.text-n-brand, .hover\:text-n-brand:hover,
.group:hover .group-hover\:text-n-brand,
.group:focus-within .group-focus-within\:text-n-brand {
  color: #1B9E48 !important;
}
.dark\:hover\:text-n-brand:hover:is(.dark *) { color: #81F09E !important; }
.border-n-brand, .border-t-n-brand, .checked\:border-n-brand:checked,
.focus\:border-n-brand:focus, .before\:\!border-t-n-brand:before,
.dark\:border-n-brand:is(.dark *) {
  border-color: #2FD75F !important;
}
.focus\:ring-n-brand:focus, .focus-visible\:ring-n-brand:focus-visible,
.focus-within\:ring-n-brand:focus-within {
  --tw-ring-color: #50F070 !important;
}
.focus-within\:outline-n-brand:focus-within,
.dark\:focus-within\:outline-n-brand:focus-within:is(.dark *),
.dark\:has-\[\:focus\]\:outline-n-brand:has(:focus):is(.dark *) {
  outline-color: #50F070 !important;
}

/* Botones del copiloto inyectados en el chat */
#wb-ai-wrap {
  position: absolute; right: 12px; top: -38px; z-index: 40;
  display: flex; gap: 8px;
}
#wb-ai-btn, #wb-audio-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #101010; color: #50F070; border: 1px solid #2FD75F;
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: transform .12s, opacity .12s; font-family: inherit;
}
#wb-ai-btn:hover, #wb-audio-btn:hover, #wb-auto-btn:hover, #wb-translate-btn:hover { transform: translateY(-1px); }
#wb-translate-btn, #wb-tpl-btn { background: #101010; color: #50F070; border: 1px solid #2FD75F;
  border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 700; cursor: pointer; }
#wb-translate-btn:disabled, #wb-tpl-btn:disabled { opacity: .5; cursor: wait; }
#wb-auto-btn { background: #101010; color: #a3a3a3; border: 1px solid #404040 !important;
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
#wb-auto-btn[data-on="1"] { color: #101010 !important; background: #2FD75F !important; border-color: #2FD75F !important; }
#wb-auto-btn[data-on="0"] { color: #f87171 !important; border-color: #7f1d1d !important; }
#wb-ai-btn[data-busy="1"], #wb-audio-btn[data-busy="1"] { opacity: .6; cursor: wait; }

/* Popover de previsualización de la nota de voz */
#wb-audio-pop {
  position: fixed; bottom: 90px; right: 24px; z-index: 9999; width: 340px;
  background: #101010; color: #fff; border: 1px solid #2FD75F; border-radius: 14px;
  padding: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.4);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
#wb-audio-pop .wb-pop-title { font-weight: 800; color: #50F070; margin-bottom: 8px; font-size: 14px; }
#wb-audio-pop .wb-pop-text { font-size: 12px; color: #a3a3a3; margin-bottom: 10px; line-height: 1.4; max-height: 80px; overflow: auto; }
#wb-audio-pop audio { width: 100%; margin-bottom: 12px; }
#wb-audio-pop .wb-pop-row { display: flex; gap: 8px; }
#wb-audio-pop button {
  flex: 1; border: 0; border-radius: 8px; padding: 9px; font-weight: 700; cursor: pointer; font-size: 13px;
}
#wb-audio-pop .wb-send { background: #2FD75F; color: #101010; }
#wb-audio-pop .wb-cancel { background: #262626; color: #fff; }

/* Ficha IA visual sobre la conversación */
#wb-ficha {
  position: fixed; top: 58px; right: 16px; z-index: 800;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif; width: max-content; max-width: 340px;
}
#wb-ficha .wb-f-pill {
  display: flex; align-items: center; gap: 8px; background: #101010; color: #fff;
  border: 1.5px solid; border-radius: 999px; padding: 5px 10px 5px 6px;
  box-shadow: 0 3px 14px rgba(0,0,0,.25); font-size: 12.5px; font-weight: 700;
}
#wb-ficha .wb-f-temp {
  color: #101010; border-radius: 999px; padding: 3px 9px; font-size: 12.5px; font-weight: 800;
}
#wb-ficha .wb-f-int { text-transform: capitalize; }
#wb-ficha button {
  border: 0; background: #262626; color: #fff; border-radius: 999px;
  padding: 3px 9px; cursor: pointer; font-size: 12px; font-weight: 700;
}
#wb-phone { color: #50F070 !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
#wb-phone:hover { background: #1a3a24 !important; }
#wb-ficha .wb-f-detail {
  margin-top: 8px; background: #101010; color: #fff; border: 1px solid #2a2a2a;
  border-radius: 14px; padding: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.35); font-size: 12.5px;
}
#wb-ficha .wb-f-bar { height: 6px; background: #262626; border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
#wb-ficha .wb-f-bar div { height: 100%; border-radius: 99px; }
#wb-ficha .wb-f-row { display: flex; flex-direction: column; gap: 2px; margin-bottom: 9px; }
#wb-ficha .wb-f-row b { color: #a3a3a3; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; }
#wb-ficha .wb-f-row span { line-height: 1.45; }
#wb-ficha .wb-f-detail #wb-f-refresh { width: 100%; margin-top: 4px; padding: 8px; border-radius: 8px; }

/* Lanzador y modal de "Mi voz IA" */
#wb-voice-launch {
  position: fixed; left: 12px; bottom: 74px; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid #2FD75F;
  background: #101010; font-size: 18px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform .12s;
}
#wb-voice-launch:hover { transform: scale(1.08); }
#wb-train-launch {
  position: fixed; left: 12px; bottom: 124px; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid #8B5CF6;
  background: #101010; font-size: 18px; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform .12s;
}
#wb-train-launch:hover { transform: scale(1.08); }
#wb-train-modal {
  position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
}
#wb-train-modal .wb-vm-box {
  width: min(720px, 94vw); height: min(85vh, 900px); background: #0d0d0d;
  border: 1px solid #8B5CF6; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 20px 80px rgba(0,0,0,.5);
}
#wb-train-modal .wb-vm-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; color: #c4b5fd; font-weight: 800; font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif; background: #101010;
}
#wb-train-modal .wb-vm-close {
  border: 0; background: #262626; color: #fff; border-radius: 8px;
  width: 28px; height: 28px; cursor: pointer; font-size: 13px;
}
#wb-train-modal iframe { flex: 1; border: 0; width: 100%; }
#wb-voice-modal {
  position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
}
#wb-voice-modal .wb-vm-box {
  width: min(720px, 94vw); height: min(85vh, 900px); background: #0d0d0d;
  border: 1px solid #2FD75F; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 20px 80px rgba(0,0,0,.5);
}
#wb-voice-modal .wb-vm-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; color: #50F070; font-weight: 800; font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif; background: #101010;
}
#wb-voice-modal .wb-vm-close {
  border: 0; background: #262626; color: #fff; border-radius: 8px;
  width: 28px; height: 28px; cursor: pointer; font-size: 13px;
}
#wb-voice-modal iframe { flex: 1; border: 0; width: 100%; }
#wb-ai-toast {
  position: fixed; bottom: 18px; right: 18px; z-index: 9999;
  background: #101010; color: #fff; border-left: 3px solid #50F070;
  padding: 10px 16px; border-radius: 10px; font-size: 13px; max-width: 340px;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
