/* Chat de la demo (15-oct-2026). Reusa .ew-cel / .ew-pant / .ew-b / .cli de everywhere.css. */
.ew-cel.ew-chat{transform:none;margin-inline:auto}
.ew-chat .ew-pant{min-height:0;height:min(600px,calc(100svh - 120px));min-height:460px}
.ew-chat .cab{position:relative}
.ew-chat-demo{margin-left:auto;font:600 11px/1 var(--disp);letter-spacing:.08em;text-transform:uppercase;padding:5px 8px;border-radius:999px;box-shadow:inset 0 0 0 1px #ffffff40;color:var(--suave)}
.ew-chat-reiniciar{font:500 12.5px/1 var(--texto-f);color:var(--suave);background:none;border:0;padding:0 10px;min-height:44px;min-width:44px;cursor:pointer;border-radius:10px}
.ew-chat-reiniciar:hover{color:var(--texto)}
.ew-chat-cuerpo{overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth}
.ew-chat .ew-b{overflow-wrap:anywhere;animation:ew-chat-entra .26s cubic-bezier(.2,.8,.2,1) both}
.ew-chat-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 10px;background:#101114}
.ew-chat-chips:empty{display:none}
.ew-chat-chip{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;border:0;cursor:pointer;font:500 13.5px/1.2 var(--texto-f);color:var(--texto);background:transparent;box-shadow:inset 0 0 0 1px #ffffff38;text-decoration:none;transition:background-color .16s ease,transform .16s cubic-bezier(.2,.8,.2,1)}
.ew-chat-chip:hover{background:#ffffff14}
.ew-chat-chip:active{transform:scale(.97)}
.ew-chat-chip:first-child{background:var(--rayo);color:var(--rayo-tinta);box-shadow:none;font-weight:600}
.ew-chat-chip:first-child:hover{background:var(--rayo);filter:brightness(1.06)}
.ew-chat-form{display:flex;gap:8px;padding:10px 12px;background:#17181c;border-top:1px solid #ffffff12}
.ew-chat-campo{flex:1;min-width:0;min-height:44px;padding:0 14px;border-radius:999px;border:0;background:#0b0c0e;color:var(--texto);font:16px/1.2 var(--texto-f);box-shadow:inset 0 0 0 1px #ffffff24}
.ew-chat-campo::placeholder{color:var(--tenue)}
.ew-chat-campo:disabled{opacity:.55}
.ew-chat-enviar{flex:none;width:44px;height:44px;border-radius:50%;border:0;display:grid;place-items:center;cursor:pointer;background:var(--rayo);color:var(--rayo-tinta);transition:transform .16s cubic-bezier(.2,.8,.2,1)}
.ew-chat-enviar:active{transform:scale(.94)}
.ew-chat-enviar:disabled{opacity:.45;cursor:default}
.ew-chat-cuenta{margin:0;padding:0 12px 10px;background:#17181c;font-size:12px;color:var(--suave);text-align:center}
.ew-chat-escribiendo{display:flex;align-items:center;gap:4px;color:var(--suave)}
.ew-chat-escribiendo span{font-size:12.5px;margin-right:4px}
.ew-chat-escribiendo i{width:5px;height:5px;border-radius:50%;background:currentColor;animation:ew-chat-punto 1s ease-in-out infinite}
.ew-chat-escribiendo i:nth-of-type(2){animation-delay:.15s}
.ew-chat-escribiendo i:nth-of-type(3){animation-delay:.3s}
.ew-chat button:focus-visible,.ew-chat a:focus-visible,.ew-chat input:focus-visible,.ew-chat-cuerpo:focus-visible{outline:2px solid var(--rayo);outline-offset:2px}
@keyframes ew-chat-entra{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ew-chat-punto{0%,100%{opacity:.3}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .ew-chat .ew-b{animation:none}
  .ew-chat-escribiendo i{animation:none;opacity:.7}
  .ew-chat-cuerpo{scroll-behavior:auto}
  .ew-chat-chip,.ew-chat-enviar{transition:none}
}
.ew-chat .cab>div:nth-child(2){min-width:0}
.ew-chat .cab b,.ew-chat .cab small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ew-chat-cuerpo{min-height:0}
/* En celulares angostos el nombre del negocio necesita el espacio; el pie ya dice «demo» */
@media (max-width:420px){.ew-chat .ew-chat-demo{display:none}.ew-chat .ew-chat-reiniciar{margin-left:auto}}
