/* Formulario de contacto en forma de chat. Toma los colores de la página
   (--cobalt, --acc, --ink, --paper, --mist), así sigue al selector de color. */
.chat { position: relative; display: flex; flex-direction: column; height: 520px; border-radius: 26px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0,0,0,.55); }
.chat__head { display: flex; align-items: center; gap: .75rem; padding: 14px 18px; background: var(--cobalt); color: #fff; transition: background-color .6s; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); flex: none; }
.chat__avatar svg { width: 24px; height: 20px; }
.chat__name { font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.chat__status { display: flex; align-items: center; gap: .4rem; font-size: .8rem; opacity: .85; }
.chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 8px; background:
  radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--cobalt) 7%, transparent), transparent 40%), var(--paper); scroll-behavior: smooth; }
.chat__bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.4; animation: chatIn .35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.chat__bubble--bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.04), inset 0 0 0 1px var(--mist); }
.chat__bubble--me { align-self: flex-end; background: var(--cobalt); color: #fff; border-bottom-right-radius: 6px; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.chat__typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: #9AA6B6; animation: chatDot 1.1s ease-in-out infinite; }
.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; padding: 4px 0 4px 12%; animation: chatIn .4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.chat__chip { border: 0; cursor: pointer; padding: 8px 13px; border-radius: 999px; font: 500 .86rem inherit; font-family: inherit; color: var(--cobalt); background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cobalt) 45%, transparent); transition: background-color .2s, color .2s, transform .2s; }
.chat__chip:hover { background: var(--cobalt); color: #fff; transform: translateY(-1px); }
.chat__summary { align-self: stretch; margin-top: 4px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--mist); display: grid; gap: 10px; animation: chatIn .4s cubic-bezier(0.22, 1, 0.36, 1) both; }
.chat__summary p { font-size: .92rem; line-height: 1.45; padding: 10px 12px; border-radius: 12px; background: var(--paper); border-left: 3px solid var(--acc); }
.chat__wa { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 600; text-decoration: none; }
.chat__wa:hover { background: #1EBE5A; }
.chat__again { border: 0; background: none; cursor: pointer; font: inherit; font-size: .85rem; color: var(--ink-2, #4A5A6E); text-decoration: underline; text-underline-offset: 3px; }
.chat__form { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--mist); }
.chat__input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--paper); font: inherit; font-size: .95rem; color: var(--ink); }
.chat__input:focus { outline: 2px solid color-mix(in srgb, var(--cobalt) 50%, transparent); outline-offset: 0; }
.chat__input:disabled { opacity: .7; }
.chat__send { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: var(--cobalt); color: #fff; transition: transform .2s, opacity .2s; }
.chat__send:disabled { opacity: .35; cursor: default; }
.chat__send:not(:disabled):hover { transform: scale(1.06); }
.chat__send svg { width: 18px; height: 18px; }
.chat__note { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 10px; text-align: center; }
@media (max-width: 640px) { .chat { height: 500px; } }
@media (prefers-reduced-motion: reduce) { .chat__bubble, .chat__chips, .chat__summary { animation: none; } }
