/* Tokens leídos de la web en vivo: Bebas Neue (display), DM Sans (cuerpo), lima rgb(212,255,0), negro #0A0A0A */
#iba-root {
  --iba-accent: #D4FF00;
  --iba-ink: #0A0A0A;
  --iba-bg: #FFFFFF;
  --iba-soft: #F4F4F4;
  --iba-muted: #8A8A8A;
  --iba-line: #E8E8E8;
  --iba-display: 'Bebas Neue', 'Anton', 'Oswald', sans-serif;
  --iba-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

#iba-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--iba-ink); border: 2px solid var(--iba-accent);
  cursor: pointer; z-index: 99998;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: transform .18s ease;
}
#iba-fab:hover { transform: scale(1.07); }
#iba-fab svg { width: 26px; height: 26px; fill: var(--iba-accent); }
#iba-fab .iba-dot {
  position: absolute; top: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--iba-accent); border: 2px solid var(--iba-ink);
}

#iba-panel {
  position: fixed; bottom: 100px; right: 24px;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 140px);
  background: var(--iba-bg); border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3);
  z-index: 99999; display: none; flex-direction: column;
  overflow: hidden; font-family: var(--iba-body);
}
#iba-panel.iba-open { display: flex; }

#iba-head {
  background: var(--iba-ink); color: #fff;
  padding: 18px 20px; display: flex;
  justify-content: space-between; align-items: center;
}
#iba-head b {
  font-family: var(--iba-display);
  font-size: 22px; font-weight: 400; letter-spacing: .05em;
  text-transform: uppercase; display: block; line-height: 1.1;
}
#iba-head small { font-size: 12px; color: var(--iba-accent); font-weight: 500; }
#iba-close {
  background: none; border: none; color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; opacity: .7;
}
#iba-close:hover { opacity: 1; }

#iba-msgs {
  flex: 1; overflow-y: auto; padding: 18px;
  background: var(--iba-soft); display: flex; flex-direction: column; gap: 10px;
}
.iba-m {
  max-width: 84%; padding: 11px 15px;
  font-size: 14.5px; line-height: 1.5;
  white-space: pre-wrap; word-wrap: break-word;
}
.iba-u {
  align-self: flex-end; background: var(--iba-ink); color: #fff;
  border-radius: 14px 14px 3px 14px;
}
.iba-b {
  align-self: flex-start; background: #fff; color: var(--iba-ink);
  border: 1px solid var(--iba-line);
  border-radius: 14px 14px 14px 3px;
}
.iba-b a { color: var(--iba-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--iba-accent); text-decoration-thickness: 2px; }

#iba-typing {
  align-self: flex-start; background: #fff;
  border: 1px solid var(--iba-line);
  padding: 13px 16px; border-radius: 14px 14px 14px 3px; display: none;
}
#iba-typing.iba-on { display: block; }
#iba-typing i {
  display: inline-block; width: 6px; height: 6px;
  background: var(--iba-muted); border-radius: 50%;
  margin: 0 2px; animation: iba-b 1.2s infinite;
}
#iba-typing i:nth-child(2) { animation-delay: .15s; }
#iba-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes iba-b { 0%,60%,100% { opacity: .25 } 30% { opacity: 1 } }

#iba-chips {
  padding: 10px 14px; display: flex; gap: 6px;
  flex-wrap: wrap; background: var(--iba-soft);
  border-top: 1px solid var(--iba-line);
}
.iba-chip {
  background: #fff; border: 1px solid var(--iba-ink);
  color: var(--iba-ink); padding: 6px 12px;
  border-radius: 100px; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; font-family: var(--iba-body);
  transition: background .15s;
}
.iba-chip:hover { background: var(--iba-accent); }

#iba-bar {
  display: flex; padding: 10px; gap: 8px;
  border-top: 1px solid var(--iba-line); background: #fff;
}
#iba-in {
  flex: 1; border: 1px solid var(--iba-line);
  border-radius: 100px; padding: 11px 16px;
  font-size: 14px; outline: none; font-family: var(--iba-body);
}
#iba-in:focus { border-color: var(--iba-ink); }
#iba-send {
  background: var(--iba-ink); border: none; color: var(--iba-accent);
  width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; font-size: 15px; flex-shrink: 0;
}
#iba-send:disabled { opacity: .35; cursor: not-allowed; }

#iba-wa {
  display: block; text-align: center; padding: 9px;
  background: var(--iba-ink); color: var(--iba-accent);
  font-family: var(--iba-display); font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
}
#iba-wa:hover { background: #1a1a1a; }

@media (max-width: 480px) {
  #iba-panel { right: 8px; left: 8px; width: auto; bottom: 90px; height: calc(100vh - 115px); border-radius: 12px; }
  #iba-fab { bottom: 18px; right: 18px; width: 56px; height: 56px; }
}
