/* Simulador de WhatsApp: se ve como el chat real para que el dueño reconozca su día a día.
   Es una simulación (lo dice el aviso amarillo del chat); no usa el logo ni el nombre de WhatsApp como marca. */
.tel {
  --wa-barra: #008069; --wa-fondo: #efeae2; --wa-sale: #d9fdd3; --wa-entra: #fff; --wa-texto: #111b21; --wa-gris: #667781; --wa-azul: #53bdeb; --wa-verde: #00a884;
  position: relative; width: min(100%, 372px); aspect-ratio: 372 / 760; margin: 0 auto;
  border-radius: 52px; padding: 9px; background: linear-gradient(145deg, #3b3b40, #1a1a1c 38%, #2c2c30);
  box-shadow: var(--sombra-3), inset 0 0 0 1px #5a5a60, inset 0 0 0 2.5px #0b0b0c;
}
.tel::before { content: ""; position: absolute; z-index: 3; top: 20px; left: 50%; width: 92px; height: 26px; translate: -50% 0; border-radius: 20px; background: #050505; }
.tel.suelto { aspect-ratio: auto; height: 100%; width: 100%; border-radius: 0; padding: 0; box-shadow: none; background: none; }
.tel.suelto::before { display: none; }
.tel.suelto .wa { border-radius: 0; }
.tel.suelto .wa-estado { display: none; }

.wa { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 43px; background: var(--wa-fondo); color: var(--wa-texto); font: 400 14.2px/1.36 var(--texto); }
.wa-estado { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 8px 26px 0; background: var(--wa-barra); color: #fff; font-size: 13.5px; font-weight: 600; flex: none; }
.wa-estado span:last-child { display: flex; gap: 5px; align-items: center; }
.wa-estado i { display: block; width: 16px; height: 10px; border-radius: 2px; background: currentColor; opacity: .95; }
.wa-estado i.red { width: 15px; clip-path: polygon(0 100%, 0 70%, 22% 70%, 22% 100%, 26% 100%, 26% 45%, 48% 45%, 48% 100%, 52% 100%, 52% 22%, 74% 22%, 74% 100%, 78% 100%, 78% 0, 100% 0, 100% 100%); border-radius: 0; }
.wa-cab { display: flex; align-items: center; gap: 8px; padding: 6px 12px 9px 6px; background: var(--wa-barra); color: #fff; flex: none; }
.wa-cab svg { width: 22px; height: 22px; }
.wa-cab .wa-ret { display: grid; place-items: center; width: 26px; height: 36px; opacity: .95; }
.wa-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; overflow: hidden; background: var(--neg, #1f6f5c); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; box-shadow: 0 0 0 1.5px rgb(255 255 255 / .25); transition: background .4s; }
.wa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wa-quien { min-width: 0; flex: 1; line-height: 1.2; }
.wa-quien b { display: block; font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-quien small { display: block; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-cab .wa-acc { display: flex; gap: 14px; opacity: .95; }

.wa-chat {
  flex: 1; overflow-y: auto; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: none; overscroll-behavior: contain;
  background-color: var(--wa-fondo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23c9bfae' stroke-width='1.1' stroke-linecap='round' opacity='.38'%3E%3Cpath d='M14 18c4-6 12-6 14 1s-8 9-12 5M70 12l6 10 6-10M98 30a7 7 0 1 0 .1 0M20 70h14M27 63v14M60 58c6 0 6 9 0 9s-6-9 0-9M92 80l10 6-10 6zM44 100c5-5 13-5 16 0M12 104l6-6 6 6-6 6zM52 30l8 3-3 8-8-3z'/%3E%3C/svg%3E");
}
.wa-chat::-webkit-scrollbar { display: none; }
.wa-dia { align-self: center; margin: 6px 0 8px; padding: 5px 12px; border-radius: 8px; background: #fff; color: #54656f; font-size: 12px; box-shadow: 0 1px .5px rgb(11 20 26 / .13); }
.wa-nota { align-self: center; max-width: 88%; margin: 2px 0 8px; padding: 6px 12px; border-radius: 8px; background: #ffeecd; color: #54656f; font-size: 12px; line-height: 1.35; text-align: center; box-shadow: 0 1px .5px rgb(11 20 26 / .13); }
.wa-nota.gris { background: #fff; }

.wa-b { position: relative; max-width: 84%; padding: 6px 9px 8px; border-radius: 8px; box-shadow: 0 1px .5px rgb(11 20 26 / .13); white-space: pre-wrap; overflow-wrap: anywhere; animation: wa-entra .28s var(--sale) both; }
.wa-b.entra { align-self: flex-start; background: var(--wa-entra); border-top-left-radius: 0; transform-origin: 0 0; }
.wa-b.sale { align-self: flex-end; background: var(--wa-sale); border-top-right-radius: 0; transform-origin: 100% 0; }
.wa-b.entra.cola::before, .wa-b.sale.cola::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.wa-b.entra.cola::before { left: -8px; background: var(--wa-entra); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wa-b.sale.cola::before { right: -8px; background: var(--wa-sale); clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-b + .wa-b.cola { margin-top: 6px; }
.wa-b .wa-h { float: right; margin: 6px 0 -5px 10px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--wa-gris); line-height: 1; white-space: nowrap; }
.wa-b .wa-h svg { width: 16px; height: 11px; color: var(--wa-azul); }
.wa-b b { font-weight: 700; }
.wa-b i { font-style: italic; color: #54656f; }
.wa-b a { color: #027eb5; }
.wa-b.dueno { background: #fff7d6; }
.wa-b.dueno::before { background: #fff7d6 !important; }
.wa-b .wa-de { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: #b25f00; }
@keyframes wa-entra { from { opacity: 0; transform: scale(.92) translateY(6px); } to { opacity: 1; transform: none; } }

.wa-escribe { display: inline-flex; gap: 4px; padding: 13px 14px; }
.wa-escribe span { width: 7px; height: 7px; border-radius: 50%; background: #9aa6ac; animation: wa-punto 1.1s infinite ease-in-out; }
.wa-escribe span:nth-child(2) { animation-delay: .16s; }
.wa-escribe span:nth-child(3) { animation-delay: .32s; }
@keyframes wa-punto { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.wa-mapa { display: block; margin: -2px -5px 6px; border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; background: #e8eadf; }
.wa-mapa svg { width: 100%; height: auto; }
.wa-mapa + b { display: block; }

.wa-barra { display: flex; align-items: flex-end; gap: 6px; padding: 5px 6px 8px; flex: none; }
.wa-caja { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 22px; background: #fff; color: #54656f; box-shadow: 0 1px .5px rgb(11 20 26 / .1); }
.wa-caja svg { width: 22px; height: 22px; flex: none; opacity: .8; }
.wa-caja input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--wa-texto); padding: 10px 0; }
.wa-caja input::placeholder { color: #8696a0; }
.wa-manda { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--wa-verde); color: #fff; flex: none; transition: transform .15s var(--sale), filter .15s; }
.wa-manda:active { transform: scale(.9); }
.wa-manda[disabled] { filter: grayscale(.4) opacity(.7); }
.wa-manda svg { width: 20px; height: 20px; translate: 1px 0; }

.wa-sug { display: flex; gap: 6px; padding: 0 8px 6px; overflow-x: auto; scrollbar-width: none; flex: none; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.wa-sug::-webkit-scrollbar { display: none; }
.wa-sug button { flex: none; height: 30px; padding: 0 12px; border: 1px solid #c9d8d2; border-radius: 16px; background: #fff; color: #008069; font: 600 12.5px/1 var(--texto); white-space: nowrap; transition: background .15s, transform .15s var(--sale); }
.wa-sug button:hover { background: #e7f6f1; }
.wa-sug button:active { transform: scale(.96); }

/* Pantalla de inicio del chat: qué preguntar */
.wa-inicio { display: grid; gap: 8px; justify-items: center; margin-block: auto; padding: 8px 10px 18px; }
.wa-inicio p { margin-bottom: 4px; font-size: 12.5px; color: #54656f; }
.wa-inicio button { max-width: 100%; padding: 10px 16px; border: 0; border-radius: 18px; background: #fff; color: #008069; font: 500 14.5px/1.3 var(--texto); box-shadow: 0 1px .5px rgb(11 20 26 / .13), 0 4px 14px rgb(11 20 26 / .06); animation: wa-entra .5s var(--sale) both; transition: transform .18s var(--sale), background .18s; }
.wa-inicio button:nth-of-type(2) { animation-delay: .08s; }
.wa-inicio button:nth-of-type(3) { animation-delay: .16s; }
.wa-inicio button:hover { background: #f3fbf8; }
.wa-inicio button:active { transform: scale(.96); }

/* Fotos: las que manda el cliente (clip o cámara) y las que manda el asistente (lista de precios, carta). */
.wa-adj { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 -4px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; transition: background .15s, transform .15s var(--sale); }
.wa-adj:hover { background: rgb(11 20 26 / .06); }
.wa-adj:active { transform: scale(.88); }
.wa-b.con-foto { padding: 4px 4px 8px; max-width: 78%; }
.wa-b.con-foto .wa-h { margin-right: 5px; }
.wa-foto { display: block; margin-bottom: 5px; border-radius: 6px; overflow: hidden; background: #dfe5e7; cursor: zoom-in; }
.wa-foto img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; }
.wa-b.con-foto { white-space: normal; }
.wa-b.con-foto > :not(.wa-foto):not(.wa-h) { padding-inline: 5px; }
.wa-b.sale .wa-h svg { color: #8696a0; transition: color .35s; }
.wa-b.sale.leido .wa-h svg { color: var(--wa-azul); }
.wa-visor { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 54px 10px 20px; background: rgb(11 20 26 / .94); animation: wa-visor .22s var(--sale) both; overflow: auto; }
.wa-visor[hidden] { display: none; }
.wa-visor img { max-width: 100%; height: auto; border-radius: 10px; animation: wa-visor-img .32s var(--sale) both; }
.wa-visor button { position: absolute; top: 12px; left: 10px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; }
.wa-visor button svg { width: 22px; height: 22px; }
@keyframes wa-visor { from { opacity: 0; } to { opacity: 1; } }
@keyframes wa-visor-img { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
