.wah-floating, .wah-chat-root { position: relative; }
.wah-widget { position: fixed; right: 20px; bottom: 20px; width: 340px; max-width: 92vw; height: 520px; max-height: 80vh; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.2); display: flex; flex-direction: column; overflow: hidden; z-index: 999999; }
.wah-header { background: #075E54; color: #fff; padding: 12px 14px; font-weight: 600; display:flex; align-items:center; gap:10px }
.wah-header .wah-dot { width:10px; height:10px; border-radius:50%; background:#25D366; box-shadow:0 0 0 4px rgba(37,211,102,.25); }
.wah-body { flex: 1; background: #ECE5DD; padding: 10px; overflow-y: auto; }
.wah-msg { max-width: 80%; margin: 6px 0; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.3; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wah-user { background: #DCF8C6; margin-left: auto; border-bottom-right-radius: 2px; }
.wah-bot  { color: #111; background: #fff; margin-right: auto; border-bottom-left-radius: 2px; }
.wah-time { display:block; opacity:.6; font-size: 11px; margin-top: 4px; text-align: right; }
.wah-input { display:flex; gap:8px; padding: 10px; background:#f7f7f7; border-top:1px solid #e5e5e5 }
.wah-input input { flex:1; border:1px solid #ddd; border-radius: 20px; padding:10px 14px; outline: none; }
.wah-input button { border:0; background:#25D366; color:#fff; border-radius: 20px; padding:10px 14px; font-weight:600; cursor:pointer; }
.wah-launcher { position: fixed; right:20px; bottom:20px; background:#25D366; color:#fff; width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:24px; box-shadow: 0 12px 40px rgba(0,0,0,.2); cursor:pointer; z-index:999998 }
.wah-close { margin-left:auto; background: transparent; border:0; color:#fff; font-size:18px; cursor:pointer; }


/* WhatsApp Híbrido — Fix contraste de texto en burbujas y campos */
#wah-widget, #wah-widget .wah-body { color: #111; }
#wah-widget .wah-msg { color: #111; }
#wah-widget .wah-user { background: #DCF8C6; color: #111; }
#wah-widget .wah-bot  { background: #FFFFFF; color: #111; border: 1px solid rgba(0,0,0,.05); }
#wah-widget .wah-time { color: rgba(0,0,0,.55); }
#wah-widget .wah-input input { color:#111; background:#fff; }
#wah-widget .wah-input input::placeholder { color:#777; }
#wah-widget .wah-input button { background:#25D366; color:#fff; }
#wah-widget .wah-header { background:#075E54; color:#fff; }
#wah-widget .wah-close { color:#fff; }
#wah-widget .wah-body { background:#ECE5DD; }

.wah-wa-btn {
  display: inline-block;
  padding: 8px 12px;
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.wah-wa-btn:hover { opacity: .92; }

.wah-msg a { text-decoration: underline; word-break: break-all; }
.wah-msg code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: rgba(0,0,0,.06); padding: 0 4px; border-radius: 4px; }
