/* Chat de ejemplo estilo WhatsApp de la sección "Nuestra Solución" de /inicio/ */
.ck-chat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 18px 50px rgba(0, 0, 0, .07);
    display: flex;
    flex-direction: column;
    text-align: left;
    font-family: var(--font-b);
}
.ck-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.ck-av {
    width: 38px; height: 38px; border-radius: 50%;
    background: #141414; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-h); font-weight: 700; font-size: .85rem; flex: 0 0 38px;
}
.ck-quien { flex: 1; min-width: 0; line-height: 1.2; }
.ck-quien b { display: block; font-size: .95rem; color: #141414; }
.ck-quien span { font-size: .75rem; color: #6b7280; }
.ck-quien span.escribe { color: #059669; font-weight: 600; }
.ck-re {
    border: 1px solid var(--border-light); background: #fff; color: #141414;
    font: 600 .75rem var(--font-b); padding: 6px 11px; border-radius: 999px; cursor: pointer;
}
.ck-re:hover { background: #f5f5f5; }
.ck-body {
    background: #efeae2;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.ck-body::-webkit-scrollbar { display: none; }
.ck-m {
    max-width: 82%;
    padding: 7px 10px 5px;
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.38;
    color: #111b21;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .07);
    animation: ck-in .28s ease both;
    word-wrap: break-word;
}
.ck-m.in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.ck-m.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.ck-m .ck-ia {
    display: flex; align-items: center; gap: 4px;
    font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: #047857; margin-bottom: 2px;
}
.ck-m .ck-ia::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #059669; }
.ck-m small { display: block; text-align: right; font-size: .66rem; color: #667781; margin-top: 1px; }
.ck-m small i { font-style: normal; color: #53bdeb; }
.ck-sys {
    align-self: center;
    background: #fff;
    color: #54656f;
    font-size: .72rem;
    padding: 4px 11px;
    border-radius: 8px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
    animation: ck-in .28s ease both;
    text-align: center;
}
.ck-sys.ok { background: #141414; color: #fff; font-weight: 600; }
.ck-sys.no { background: #fff1f2; color: #9f1239; }
.ck-file { display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, .05); border-radius: 8px; padding: 8px 10px; margin-bottom: 2px; }
.ck-file i { width: 30px; height: 36px; border-radius: 4px; background: #e11d48; color: #fff; font: 700 .55rem var(--font-b); font-style: normal; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; flex: 0 0 30px; }
.ck-file b { display: block; font-size: .82rem; }
.ck-file span { font-size: .7rem; color: #667781; }
.ck-audio { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.ck-audio .play { width: 0; height: 0; border-left: 11px solid #54656f; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ck-audio .onda { flex: 1; height: 20px; background: repeating-linear-gradient(90deg, #8696a0 0 2px, transparent 2px 5px); -webkit-mask-image: linear-gradient(0deg, transparent 0 20%, #000 20% 80%, transparent 80%), radial-gradient(ellipse 60% 100% at 30% 50%, #000, transparent); mask-image: radial-gradient(ellipse 100% 50% at 50% 50%, #000 55%, transparent 100%); }
.ck-audio span { font-size: .7rem; color: #667781; }
.ck-typing { align-self: flex-end; background: #d9fdd3; border-radius: 12px; padding: 10px 12px; display: flex; gap: 4px; animation: ck-in .2s ease both; }
.ck-typing.in { align-self: flex-start; background: #fff; }
.ck-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: ck-dot 1s infinite; }
.ck-typing i:nth-child(2) { animation-delay: .15s; }
.ck-typing i:nth-child(3) { animation-delay: .3s; }
.ck-ejemplo { font-size: .72rem; color: var(--text-dim); margin-top: .5rem; }
@keyframes ck-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ck-dot { 50% { transform: translateY(-3px); opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
    .ck-m, .ck-sys, .ck-typing { animation: none; }
}

/* ── Modo celular: el chat adentro de un iPhone con WhatsApp ── */
.ck-celu { display: flex; flex-direction: column; align-items: center; gap: .9rem; font-family: var(--font-b); text-align: left; }
.ck-marco { width: 100%; max-width: 348px; border-radius: 54px; padding: 10px; background: #1b1b1d; box-shadow: 0 0 0 1.5px #3a3a3c, 0 2px 4px rgba(0, 0, 0, .06), 0 30px 70px rgba(0, 0, 0, .16); position: relative; }
.ck-marco::before { content: ""; position: absolute; left: -2.5px; top: 120px; width: 2.5px; height: 30px; border-radius: 2px 0 0 2px; background: #2c2c2e; box-shadow: 0 48px 0 #2c2c2e, 0 88px 0 #2c2c2e; }
.ck-marco::after { content: ""; position: absolute; right: -2.5px; top: 160px; width: 2.5px; height: 64px; border-radius: 0 2px 2px 0; background: #2c2c2e; }
.ck-pantalla { position: relative; border-radius: 44px; overflow: hidden; background: #efeae2; display: flex; flex-direction: column; }
.ck-isla { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 104px; height: 31px; border-radius: 20px; background: #000; z-index: 6; display: flex; align-items: center; justify-content: center; transition: width .45s cubic-bezier(.3, 1.3, .5, 1); }
.ck-isla-ia { display: inline-flex; align-items: center; gap: 6px; color: #fff; font: 600 .64rem var(--font-b); white-space: nowrap; opacity: 0; transition: opacity .2s; }
.ck-isla-ia i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: ck-late 1s infinite; }
.ck-isla.ia { width: 146px; }
.ck-isla.ia .ck-isla-ia { opacity: 1; transition-delay: .18s; }
.ck-isla.ping { animation: ck-ping .5s ease; }
@keyframes ck-ping { 40% { transform: translateX(-50%) scale(1.07, 1.12); } }
@keyframes ck-late { 50% { opacity: .35; } }
.ck-status { flex: 0 0 50px; display: flex; align-items: center; justify-content: space-between; padding: 4px 28px 0 34px; background: #f6f6f6; color: #000; font: 600 .95rem -apple-system, var(--font-b); }
.ck-status .ck-ic { display: flex; align-items: center; gap: 5px; }
.ck-status svg { height: 11px; width: auto; }
.ck-wa { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 4px 12px 9px 10px; background: #f6f6f6; border-bottom: 1px solid rgba(0, 0, 0, .08); color: #111; }
.ck-atras { display: flex; align-items: center; gap: 3px; color: #111; }
.ck-atras svg { width: 10px; height: 17px; }
.ck-atras em { font-style: normal; font-size: .78rem; font-weight: 600; background: #e5e5ea; border-radius: 999px; padding: 0 .4rem; line-height: 1.35; }
.ck-celu .ck-av { width: 34px; height: 34px; flex: 0 0 34px; background: #d1d7db; color: #fff; overflow: hidden; align-items: flex-end; }
.ck-celu .ck-av svg { width: 30px; height: 30px; margin-bottom: -4px; }
.ck-celu .ck-quien b { font-size: .92rem; }
.ck-celu .ck-quien span { font-size: .72rem; }
.ck-wa-ic { display: flex; align-items: center; gap: 16px; color: #111; padding-right: 2px; }
.ck-wa-ic svg { width: 21px; height: 17px; }
.ck-celu .ck-body { flex: 1; min-height: 0; padding: 12px 10px 10px; background-color: #efeae2; background-image: radial-gradient(rgba(0, 0, 0, .045) 1.1px, transparent 1.3px), radial-gradient(rgba(0, 0, 0, .03) 1.1px, transparent 1.3px); background-size: 22px 22px, 22px 22px; background-position: 0 0, 11px 11px; }
.ck-celu .ck-m { font-size: .86rem; max-width: 84%; }
.ck-celu .ck-sys { font-size: .68rem; }
.ck-input { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 7px 12px 26px; background: #f6f6f6; border-top: 1px solid rgba(0, 0, 0, .06); color: #111; }
.ck-in-ic { display: flex; color: #111; }
.ck-in-ic svg { width: 21px; height: 19px; }
.ck-in-ic:first-child svg { width: 19px; }
.ck-campo { flex: 1; min-width: 0; height: 34px; border-radius: 18px; background: #fff; border: 1px solid rgba(0, 0, 0, .08); display: flex; align-items: center; padding: 0 12px; font-size: .82rem; overflow: hidden; position: relative; }
.ck-ph { color: #9aa0a6; transition: opacity .2s; }
.ck-ia-escribe { position: absolute; left: 12px; right: 8px; display: flex; align-items: center; gap: 6px; color: #047857; font-weight: 600; white-space: nowrap; overflow: hidden; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.ck-ia-escribe i { width: 6px; height: 6px; border-radius: 50%; background: #059669; flex: 0 0 6px; animation: ck-late 1s infinite; }
.ck-input.ia .ck-ph { opacity: 0; }
.ck-input.ia .ck-ia-escribe { opacity: 1; transform: none; }
.ck-home { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 112px; height: 4px; border-radius: 3px; background: #111; z-index: 5; }
.ck-celu > .ck-re { font-size: .8rem; padding: 7px 14px; }
