:root {
  --ramos-chat-primary: #80bb35;
  --ramos-chat-primary-dark: #5a8a1f;
  --ramos-chat-accent: #a3d15a;
  --ramos-chat-bg: rgba(8, 20, 4, 0.96);
  --ramos-chat-panel: rgba(255, 255, 255, 0.95);
  --ramos-chat-text: #1f2937;
  --ramos-chat-muted: #6b7280;
  --ramos-chat-white: #fff;
  --ramos-chat-shadow: 0 25px 60px rgba(7, 18, 4, 0.24);
}

#ramos-chatbot-root { position: fixed; right: 18px; bottom: 18px; z-index: 2000; font-family: Inter, system-ui, sans-serif; }
.ramos-chatbot-toggle {
  width: 64px; height: 64px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--ramos-chat-primary), var(--ramos-chat-primary-dark));
  color: var(--ramos-chat-white); box-shadow: var(--ramos-chat-shadow); display:flex; align-items:center; justify-content:center;
}
.ramos-chatbot-toggle:hover { transform: translateY(-2px); }
.ramos-chatbot-panel {
  position: absolute; right: 0; bottom: 78px; width: min(420px, calc(100vw - 24px)); height: min(720px, calc(100vh - 110px));
  background: linear-gradient(180deg, rgba(7,18,4,.98), rgba(13,26,6,.98)); color: var(--ramos-chat-white);
  border-radius: 24px; overflow: hidden; box-shadow: var(--ramos-chat-shadow); border: 1px solid rgba(163, 209, 90, 0.22);
  display:flex; flex-direction:column; backdrop-filter: blur(16px);
}
.ramos-chatbot-hidden { display:none !important; }
.ramos-chatbot-header { padding: 18px 18px 14px; background: radial-gradient(circle at top left, rgba(128,187,53,.22), transparent 45%); border-bottom:1px solid rgba(255,255,255,.08); }
.ramos-chatbot-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.ramos-chatbot-title { font-size: 22px; font-weight: 800; margin-top: 6px; }
.ramos-chatbot-subtitle { font-size: 13px; color: rgba(255,255,255,.74); margin-top: 6px; line-height: 1.45; }
.ramos-chatbot-body { flex:1; display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.ramos-chatbot-messages {
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  scroll-behavior:smooth;
}
.ramos-chatbot-messages::-webkit-scrollbar { width: 10px; }
.ramos-chatbot-messages::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 999px; }
.ramos-chatbot-messages::-webkit-scrollbar-thumb { background: rgba(163,209,90,.45); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.ramos-chatbot-messages::-webkit-scrollbar-thumb:hover { background: rgba(163,209,90,.7); border: 2px solid transparent; background-clip: padding-box; }
.ramos-chatbot-bubble { max-width: 88%; padding: 12px 14px; border-radius: 18px; line-height: 1.55; font-size: 14px; white-space: normal; }
.ramos-chatbot-bubble strong { font-weight: 700; }
.ramos-chatbot-bubble ul { margin: 8px 0 0 18px; }
.ramos-chatbot-bubble a { color: inherit; text-decoration: underline; }
.ramos-chatbot-bubble.bot { background: rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.08); color: var(--ramos-chat-white); border-bottom-left-radius: 8px; }
.ramos-chatbot-bubble.user { background: linear-gradient(135deg, var(--ramos-chat-primary), var(--ramos-chat-primary-dark)); color:#fff; margin-left:auto; border-bottom-right-radius: 8px; }
.ramos-chatbot-quick { display:flex; flex-wrap:wrap; gap:8px; padding:0 16px 12px; }
.ramos-chatbot-chip { border:1px solid rgba(163,209,90,.32); background: rgba(128,187,53,.10); color:#fff; border-radius:999px; padding:9px 12px; font-size:12px; cursor:pointer; }
.ramos-chatbot-form, .ramos-chatbot-lead { padding: 14px 16px 16px; border-top:1px solid rgba(255,255,255,.08); }
.ramos-chatbot-input-row { display:flex; gap:10px; }
.ramos-chatbot-input, .ramos-chatbot-select {
  width:100%; border-radius:14px; border:1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08);
  color:#fff; padding: 12px 14px; outline:none; font-size:14px;
}
.ramos-chatbot-input::placeholder { color: rgba(255,255,255,.45); }
.ramos-chatbot-send, .ramos-chatbot-cta {
  border:0; border-radius:14px; padding: 12px 16px; cursor:pointer; font-weight:700;
  background: linear-gradient(135deg, var(--ramos-chat-primary), var(--ramos-chat-primary-dark)); color:#fff;
}
.ramos-chatbot-lead {
  background: rgba(255,255,255,.04);
}
.ramos-chatbot-lead-toggle {
  width: 100%; border: 1px solid rgba(163,209,90,.24); background: rgba(128,187,53,.08); color:#fff;
  border-radius: 14px; padding: 11px 14px; font-size: 13px; text-align:left; cursor:pointer; font-weight:600;
}
.ramos-chatbot-lead-content { margin-top: 10px; }
.ramos-chatbot-lead-collapsed .ramos-chatbot-lead-content { display:none; }
.ramos-chatbot-lead-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.ramos-chatbot-status { font-size:12px; color: rgba(255,255,255,.72); margin-top:8px; min-height:16px; }
@media (max-width: 640px) {
  #ramos-chatbot-root { right: 0; bottom: 0; left: 0; }
  .ramos-chatbot-panel { right: 0; bottom: 0; width: 100vw; height: 100vh; max-width:none; border-radius: 0; max-height: 100dvh; }
  .ramos-chatbot-toggle { position:absolute; right:18px; bottom:18px; }
  .ramos-chatbot-lead-grid { grid-template-columns: 1fr; }
  .ramos-chatbot-form, .ramos-chatbot-lead { padding: 12px 14px 14px; }
}
