:root{
  --bg:#ffffff;
  --panel:#ffffff;
  --fg:#1f2430;
  --muted:#6a7280;
  --line:#e7eaf0;
  --bubble-bot:#f5f7fb;
  --bubble-me:#eaf3ff;

  /* Colores municipales (ajusta a tus hex exactos) */
  --accent:#114fb1;   /* azul */
  --accent-2:#f28b00; /* naranjo */

  --shadow:0 12px 30px rgba(20,30,60,.12);
  --radius:16px;
  --radius-lg:20px;
  --fab-size:52px;
  --z-panel: 999999;
  --z-fab: 1000000;
}

/* FAB */
.gdmcb-fab{
  position:fixed; right:18px; bottom:18px; z-index:var(--z-fab);
  display:flex; align-items:center; gap:10px;
  border:none; cursor:pointer; box-shadow:var(--shadow);
  background:linear-gradient(135deg,var(--accent) 0%, #2a63e0 100%);
  color:#fff; border-radius:999px; padding:10px 16px; height:var(--fab-size);
  font-weight:600;
}
.gdmcb-fab::before{ content:"💬"; display:inline-block; font-size:18px; line-height:1; }
.gdmcb-fab:hover{ filter:brightness(1.05); }

/* Panel (toggle con .open) */
.gdmcb-panel{
  position:fixed; right:18px; bottom:84px; z-index:var(--z-panel);
  width:min(380px, calc(100vw - 28px)); height:560px;
  background:var(--panel); color:var(--fg);
  border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow); display:flex; flex-direction:column; overflow:hidden;
  transform: translateY(16px); opacity: 0; visibility: hidden;
  transition: transform .18s ease, opacity .18s ease, visibility 0s linear .18s;
}
.gdmcb-panel.open{
  transform: translateY(0); opacity: 1; visibility: visible;
  transition: transform .18s ease, opacity .18s ease, visibility 0s linear 0s;
}

/* Header */
.gdmcb-panel-header{ display:flex; justify-content:space-between; align-items:center;
  padding:10px 12px; border-bottom:1px solid var(--line); background:#fff; }
.gdmcb-header-left{ display:flex; align-items:center; gap:10px; }
.gdmcb-title{ font-weight:700; font-size:16px; color:var(--fg); }
.gdmcb-subtitle{ font-size:12px; color:var(--muted); }
.gdmcb-close,.gdmcb-clear{ border:none; background:transparent; font-size:18px; cursor:pointer; line-height:1; color:#6b7280; }
.gdmcb-close:hover,.gdmcb-clear:hover{ color:#111827; }

/* Chat */
.gdmcb-chat{ flex:1; overflow:auto; padding:14px; display:flex; flex-direction:column; gap:10px; background:var(--bg); }
.gdmcb-row{ display:flex; }
.gdmcb-row.me{ justify-content:flex-end; }
.gdmcb-row.bot{ justify-content:flex-start; }
.gdmcb-bubble{
  max-width:78%; padding:10px 12px; border-radius:14px; line-height:1.38; font-size:14px; white-space:pre-wrap;
}
.gdmcb-row.me .gdmcb-bubble{ background:var(--bubble-me); color:#14325b; border:1px solid #d9e7ff; border-bottom-right-radius:6px; }
.gdmcb-row.bot .gdmcb-bubble{ background:var(--bubble-bot); color:#1f2430; border:1px solid #eef1f6; border-bottom-left-radius:6px; }

/* Typing */
.typing .gdmcb-bubble{ display:flex; gap:6px; align-items:center; }
.dot{ width:6px; height:6px; background:#a1b4ff; opacity:.5; border-radius:50%; display:inline-block; animation:blink 1.4s infinite; }
.dot:nth-child(2){ animation-delay:.2s } .dot:nth-child(3){ animation-delay:.4s }
@keyframes blink{ 0%{opacity:.2} 20%{opacity:1} 100%{opacity:.2} }

/* Form */
.gdmcb-form{ display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); background:#fff; }
.gdmcb-input{
  flex:1; border-radius:12px; background:#fff; border:1px solid var(--line);
  color:var(--fg); padding:12px 14px; outline:none;
}
.gdmcb-input::placeholder{ color:#97a1b3; }
.gdmcb-send{
  border:none; border-radius:12px; padding:0 16px; background:var(--accent-2); color:#fff; font-weight:700; cursor:pointer;
}
.gdmcb-send:hover{ filter:brightness(1.05); }

/* Más resultados */
.gdmcb-more{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px 10px; }
.gdmcb-more summary{ cursor:pointer; color:var(--accent); margin-bottom:6px; }
.gdmcb-card{ border-top:1px solid var(--line); padding:8px 4px; }
.gdmcb-card-title{ font-weight:600; margin-bottom:4px; }
.gdmcb-link{ color:var(--accent); text-decoration:underline; }

/* Chips de tags */
.gdmcb-suggestions{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.gdmcb-chip{
  background:#f7f9ff; color:#11315b; border:1px solid #dbe6ff;
  border-radius:999px; padding:6px 10px; font-size:12px; cursor:pointer;
}
.gdmcb-chip:hover{ background:#eef4ff; }
