/* =========================================================
   invitacionesweb.mx · chat de la página
   ========================================================= */
.chat-burbuja { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 60px; height: 60px; border: 0; border-radius: 50%; background: var(--accion, #c94a3b); color: #fff; cursor: pointer; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); transition: transform .2s; }
.chat-burbuja:hover { transform: scale(1.07); }
.chat-burbuja svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-burbuja[aria-expanded="true"] { transform: scale(.9); }
.chat-burbuja__punto { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: #2f8a5b; }
.chat { position: fixed; right: 18px; bottom: 90px; z-index: 41; display: flex; flex-direction: column; width: min(370px, calc(100vw - 24px)); height: min(540px, calc(100vh - 120px)); overflow: hidden; border-radius: 22px; background: #fff; color: #1f1d36; box-shadow: 0 30px 60px -20px rgba(31, 29, 54, .45); font-family: 'Outfit', system-ui, sans-serif; animation: chat-entra .25s ease; }
@keyframes chat-entra { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.chat[hidden] { display: none; }
.chat__cabeza { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: #1f1d36; color: #faf6f0; }
.chat__cabeza div { display: grid; line-height: 1.25; }
.chat__cabeza small { color: rgba(250, 246, 240, .7); font-size: 12px; }
.chat__cabeza small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #3ddc84; }
.chat__avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: #2e2b4f; font-size: 13px; }
.chat__avatar b { position: relative; font: italic 400 1.5em/1 'Fraunces', serif; color: #faf6f0; }
.chat__avatar b span { color: #e7c98f; }
.chat__avatar i { position: absolute; left: .25em; top: -.21em; font: normal .5em/1 sans-serif; color: #e8604c; transform: rotate(15deg); }
.chat__cerrar { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.chat__mensajes { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 16px 14px; background: #faf6f0; }
.chat__msj { max-width: 85%; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: #fff; font-size: 14.5px; line-height: 1.45; box-shadow: 0 1px 0 #ebe4d8; overflow-wrap: anywhere; }
.chat__msj small { display: block; margin-top: 3px; color: #8a8796; font-size: 10.5px; }
.chat__msj--visitante { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #c94a3b; color: #fff; }
.chat__msj--visitante small { color: rgba(255, 255, 255, .7); }
.chat__msj--aviso { background: #e7f5ee; color: #1d5c3c; font-size: 13px; }
.chat__form { display: grid; gap: 8px; padding: 10px 12px; border-top: 1px solid #ebe4d8; }
.chat__datos { display: grid; gap: 6px; }
.chat__datos[hidden] { display: none; }
.chat__form input, .chat__form textarea { width: 100%; padding: 10px 12px; border: 1.5px solid #ebe4d8; border-radius: 12px; background: #faf6f0; color: #1f1d36; font: 15px 'Outfit', system-ui, sans-serif; outline: none; }
.chat__form input:focus, .chat__form textarea:focus { border-color: #c8a46a; }
.chat__escribe { display: flex; align-items: flex-end; gap: 8px; }
.chat__escribe textarea { resize: none; max-height: 110px; }
.chat__escribe button { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #c94a3b; color: #fff; cursor: pointer; }
.chat__escribe button:disabled { opacity: .5; }
.chat__escribe svg { width: 20px; fill: currentColor; }
.chat__trampa { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }
.chat__error { color: #a12a1f; font-size: 13px; }
.chat__correo { display: block; padding: 8px 12px 12px; color: #6c6a80; font-size: 13px; text-align: center; text-decoration: none; }
.chat__correo:hover { color: #1f1d36; }
@media (max-width: 480px) {
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .chat-burbuja[aria-expanded="true"] { display: none; }
}
