/* ═══════════════════════════════════════════
   BEAST CLEAN BOT — Estilos del chat widget
   Agrega este archivo en:
   public_html/css/bot.css
   Y enlázalo en index.html con:
   <link rel="stylesheet" href="css/bot.css">
   ═══════════════════════════════════════════ */

   #bcl-wrap {
    position: fixed;
    bottom: 15rem;
    right: 2rem;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: system-ui, -apple-system, sans-serif;
  }
  
  #bcl-win {
    width: 340px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #dde3ed;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: bclpop 0.2s ease;
    transform-origin: bottom right;
  }
  
  @keyframes bclpop {
    from { opacity: 0; transform: scale(0.9) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }
  
  /* ── Header ── */
  #bcl-head {
    background: #0a2463;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .bcl-hl {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  
  .bcl-av {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .bcl-av img {
    width: 26px;
    height: 26px;
    object-fit: contain;
  }
  
  .bcl-nm {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
  }
  
  .bcl-st {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    margin: 0;
  }
  
  .bcl-dot-g {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 3px;
  }
  
  .bcl-acts {
    display: flex;
    gap: 4px;
  }
  
  .bcl-ib {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    padding: 6px 7px;
    cursor: pointer;
    color: #fff;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background 0.15s;
  }
  
  .bcl-ib:hover {
    background: rgba(255, 255, 255, 0.25);
  }
  
  .bcl-ib svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  /* ── Mensajes ── */
  #bcl-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px 11px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    max-height: 340px;
    gap: 2px;
  }
  
  #bcl-msgs::-webkit-scrollbar { width: 3px; }
  #bcl-msgs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
  
  .bcl-rb {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
  }
  
  .bcl-ru {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 8px;
  }
  
  .bcl-sn {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  
  .bcl-sn img {
    width: 12px;
    height: 12px;
    object-fit: contain;
  }
  
  .bcl-b {
    max-width: 84%;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
  }
  
  .bcl-bb {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    border-radius: 4px 13px 13px 13px;
  }
  
  .bcl-bu {
    background: #0a2463;
    color: #fff;
    border-radius: 13px 13px 4px 13px;
  }
  
  .bcl-tm {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
  }
  
  /* ── Typing dots ── */
  .bcl-ty {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 3px 0;
  }
  
  .bcl-da {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    animation: bclbn 1.2s infinite;
  }
  
  .bcl-da:nth-child(2) { animation-delay: 0.2s; }
  .bcl-da:nth-child(3) { animation-delay: 0.4s; }
  
  @keyframes bclbn {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
  }
  
  /* ── Quick replies ── */
  #bcl-qr {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 11px 9px;
    background: #f8fafc;
  }
  
  .bcl-q {
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 20px;
    border: 1px solid #0a2463;
    background: #fff;
    color: #0a2463;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
  }
  
  .bcl-q:hover {
    background: #0a2463;
    color: #fff;
  }
  
  /* ── Input ── */
  #bcl-ia {
    padding: 9px 11px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 7px;
    align-items: flex-end;
    background: #fff;
  }
  
  #bcl-inp {
    flex: 1;
    resize: none;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    line-height: 1.5;
    max-height: 80px;
    overflow-y: auto;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.15s;
  }
  
  #bcl-inp:focus {
    border-color: #0a2463;
    background: #fff;
  }
  
  #bcl-inp::placeholder { color: #94a3b8; }
  
  #bcl-sb {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
  }
  
  #bcl-sb:not(:disabled) { background: #0a2463; }
  #bcl-sb:disabled       { background: #e2e8f0; cursor: not-allowed; }
  
  #bcl-sb svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  #bcl-sb:not(:disabled) svg { stroke: #fff; }
  #bcl-sb:disabled svg       { stroke: #94a3b8; }
  
  /* ── Footer ── */
  #bcl-ft {
    padding: 4px 8px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    font-size: 10px;
    color: #94a3b8;
    background: #fff;
  }
  
  /* ── Botón flotante ── */
  #bcl-tog {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #0a2463;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(10, 36, 99, 0.35);
    transition: transform 0.2s;
    position: relative;
  }
  
  #bcl-tog:hover { transform: scale(1.07); }
  
  #bcl-tog svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  #bcl-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    background: #e63946;
    border-radius: 50%;
    border: 2px solid #fff;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
  }