/* ==========================================================================
   PROTOTIPO «Tigo ventas» · carril widget · la burbuja y el chat de Tigo en /compra-en-linea
   Lienzo aprobado (variante A, burbuja): Main (escritorio), 01b (celular), 01c (burbuja), 08 (estados).
   Tokens del lienzo (Aybar Admin, tema claro) con prefijo propio: el chat se ve igual con el tema oscuro de la página.
   Convive con el Tigo 3D (abajo a la izquierda, .tg-vendedor) y con «¿Hablamos?» (barra de arriba): la burbuja va
   abajo a la derecha y sube sola sobre la barra fija de la compra (chat-tigo.js, --tc-abajo). Capas: sobre la maqueta a
   pantalla completa (.tg-3d.is-explorando: 1000) y el holograma (1050), bajo el Tigo 3D (.tg-vendedor: 1100) y los <dialog>.
   ========================================================================== */
.tc {
    --tc-marca: #02424E; --tc-marca-hondo: #02323B; --tc-marca-suave: #dcf1f7; --tc-acento: #FFA726; --tc-acento-suave: #fff4e6;
    --tc-texto: #1d1d1d; --tc-texto-2: #4a4a4a; --tc-texto-3: #606060; --tc-sobre-acento: #00222a;
    --tc-linea: #d4d4d4; --tc-linea-fuerte: #8c8c8c; --tc-hundido: #e8e8e8; --tc-lienzo: #F6F6F6; --tc-halo: rgba(70, 134, 150, .22);
    --tc-calido: #FBF8F4; --tc-calido-linea: #E6E1DA; --tc-calido-sys: #EFEAE3;
    --tc-peligro: #c1453a; --tc-err-fondo: #ffefea; --tc-err-texto: #a13029; --tc-err-borde: #e15a4e;
    --tc-aviso-fondo: #fff5e0; --tc-aviso-texto: #815400; --tc-aviso-borde: #b88100;
    --tc-curva: cubic-bezier(.23, 1, .32, 1);
    --tc-abajo: 24px;
    --tc-derecha: 24px;
    font-family: 'Montserrat Aybar', 'TgMontserrat', Montserrat, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--tc-texto);
    -webkit-font-smoothing: antialiased;
}
.tc *, .tc *::before, .tc *::after { box-sizing: border-box; }
.tc [hidden] { display: none !important; }
.tc p { margin: 0; }
.tc button { font-family: inherit; }
.tc svg { flex: none; }
.tc :focus-visible { outline: 2px solid var(--tc-marca); outline-offset: 2px; }

/* ---------- Burbuja ---------- */
.tc-burbuja {
    position: fixed; z-index: 1060; right: max(var(--tc-derecha), env(safe-area-inset-right)); bottom: max(var(--tc-abajo), env(safe-area-inset-bottom));
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    transition: bottom .24s var(--tc-curva), opacity .18s ease, transform .18s var(--tc-curva);
}
.tc.abierto .tc-burbuja { opacity: 0; transform: scale(.9); pointer-events: none; }
.tc-abrir { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tc-abrir:focus-visible { outline: none; }
.tc-abrir:focus-visible .tc-fab { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--tc-marca); }
.tc-lbl {
    display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
    background: var(--tc-marca); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap;
    box-shadow: 0 2px 4px 0 rgb(11 31 35 / .06), 0 10px 24px -12px rgb(2 50 59 / .45);
    transition: background-color .16s ease;
}
.tc-fab {
    position: relative; display: block; flex: none; width: 64px; height: 64px; border-radius: 999px;
    background: var(--tc-acento-suave); border: 3px solid var(--tc-marca); overflow: visible;
    box-shadow: 0 2px 4px 0 rgb(11 31 35 / .06), 0 12px 28px -12px rgb(2 50 59 / .5);
    transition: transform .16s var(--tc-curva);
}
.tc-fab img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; object-position: 50% 12%; display: block; }
.tc-abrir:active .tc-fab { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
    .tc-abrir:hover .tc-lbl { background: var(--tc-marca-hondo); }
    .tc-abrir:hover .tc-fab { transform: translateY(-2px); }
}
.tc-badge {
    position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center; background: var(--tc-peligro); color: #fff;
    font-size: 12px; font-weight: 700; border: 2px solid #fff;
}
.tc-teaser {
    display: flex; gap: 6px; align-items: flex-start; max-width: 280px; padding: 12px 8px 12px 14px;
    background: #fff; border: 1px solid var(--tc-calido-linea); border-radius: 16px 16px 4px 16px;
    font-size: 14px; line-height: 1.45; box-shadow: 0 2px 4px 0 rgb(11 31 35 / .04), 0 8px 24px -10px rgb(2 50 59 / .22);
    transform-origin: 100% 100%; animation: tc-entra .26s var(--tc-curva) both;
}
.tc-teaser__txt { flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--tc-texto); font-size: 14px; line-height: 1.45; text-align: left; cursor: pointer; }
.tc-teaser .tc-ib { width: 36px; height: 36px; margin: -6px 0 0; color: var(--tc-texto-2); }
.tc-teaser .tc-ib:hover { background: var(--tc-lienzo); }

/* ---------- Panel ---------- */
.tc-panel {
    position: fixed; z-index: 1070; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom));
    width: 420px; max-width: calc(100vw - 32px); height: min(760px, calc(100dvh - 96px));
    display: flex; flex-direction: column; overflow: hidden;
    background: #fff; border: 1px solid var(--tc-linea); border-radius: 20px;
    box-shadow: 0 2px 4px 0 rgb(11 31 35 / .04), 0 18px 40px -16px rgb(2 50 59 / .3);
    transform-origin: 100% 100%; animation: tc-entra .24s var(--tc-curva) both;
}
@keyframes tc-entra { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
.tc-ch { display: flex; align-items: center; gap: 12px; flex: none; padding: 10px 8px 10px 14px; background: var(--tc-marca); color: #fff; }
.tc-av { display: block; flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--tc-acento-suave); overflow: hidden; }
.tc-av img, .tc-av-s img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.tc-ch-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tc-ch-t h2 { margin: 0; font-size: 15px; line-height: 1.2; font-weight: 700; color: #fff; }
.tc-estado { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.3; color: var(--tc-marca-suave); }
.tc-dot { width: 8px; height: 8px; border-radius: 999px; background: #7be08f; display: inline-block; flex: none; }
.tc-estado[data-modo="sin-conexion"] .tc-dot { background: #f0b4ad; }
.tc-estado[data-modo="escribe"] .tc-dot { display: none; }
.tc-ib { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .16s ease; }
.tc-ch .tc-ib:hover { background: rgba(255, 255, 255, .12); }
.tc-ch .tc-ib:focus-visible { outline-color: #fff; outline-offset: -3px; }

.tc-cb { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--tc-calido); padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.tc-cb:focus-visible { outline-offset: -3px; }
.tc-cb > :first-child { margin-top: auto; }
.tc-hola { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 4px; }
.tc-hola img { width: 132px; height: 132px; object-fit: contain; }
.tc-hola h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--tc-marca); }
.tc-rt { display: flex; gap: 8px; align-items: flex-end; align-self: flex-start; max-width: 92%; }
.tc-av-s { display: block; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--tc-acento-suave); overflow: hidden; }
.tc-stack { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tc-mt { background: #fff; border: 1px solid var(--tc-calido-linea); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-size: 14px; line-height: 1.5; color: var(--tc-texto); overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 8px; }
.tc-mt b { font-weight: 700; }
.tc-mt ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.tc-mu { align-self: flex-end; max-width: 80%; background: var(--tc-marca); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.tc-mu.pendiente { opacity: .75; }
.tc-meta { font-size: 11.5px; line-height: 1.3; color: var(--tc-texto-3); }
.tc-meta-r { align-self: flex-end; }
.tc-nuevo { animation: tc-msg .22s var(--tc-curva) both; }
@keyframes tc-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tc-sys { align-self: center; max-width: 92%; padding: 6px 14px; border-radius: 999px; background: var(--tc-calido-sys); color: var(--tc-texto-2); font-size: 12.5px; line-height: 1.4; text-align: center; }
.tc-lane { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; align-self: flex-end; }

.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 36px; }
.tc-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--tc-linea-fuerte); background: #fff; color: var(--tc-marca); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .16s ease, transform .16s var(--tc-curva); }
.tc-chip:hover { background: var(--tc-marca-suave); }
.tc-chip:active { transform: scale(.97); }

.tc-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .16s var(--tc-curva), background-color .16s ease; }
.tc-btn:active { transform: scale(.97); }
.tc-btn-p { background: var(--tc-marca); color: #fff; }
.tc-btn-p:hover { background: var(--tc-marca-hondo); color: #fff; }
.tc-btn-s { background: #fff; color: var(--tc-marca); border-color: var(--tc-linea-fuerte); }
.tc-btn-s:hover { background: var(--tc-lienzo); }
.tc-btn-g { background: transparent; color: var(--tc-marca); padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }
.tc-btn-sm { min-height: 36px; font-size: 13px; padding: 0 12px; }
.tc-w100 { width: 100%; }
.tc-card { background: #fff; border: 1px solid var(--tc-calido-linea); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
.tc-foot { font-size: 12px; line-height: 1.45; color: var(--tc-texto-3); }
.tc-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.tc-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.tc-typing i { width: 8px; height: 8px; border-radius: 999px; background: #8c8c8c; display: block; animation: tc-punto 1.1s ease-in-out infinite; }
.tc-typing i:nth-child(2) { animation-delay: .15s; }
.tc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tc-punto { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.tc-mt.tc-mt--typing { padding: 0; }
.tc-buscando { display: flex; flex-direction: column; gap: 8px; width: 240px; max-width: 100%; }
.tc-skel { background: var(--tc-hundido); border-radius: 6px; height: 12px; }

.tc-bn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid; font-size: 13px; line-height: 1.45; }
.tc-bn b { font-weight: 700; }
.tc-bn.err { background: var(--tc-err-fondo); color: var(--tc-err-texto); border-color: var(--tc-err-borde); }
.tc-bn.warn { background: var(--tc-aviso-fondo); color: var(--tc-aviso-texto); border-color: var(--tc-aviso-borde); align-self: stretch; }

.tc-cmp { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--tc-calido-linea); background: #fff; }
.tc-cmp-r { display: flex; gap: 8px; align-items: center; margin: 0; }
.tc-inp { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--tc-linea-fuerte); background: #fff; color: var(--tc-texto); font-family: inherit; font-size: 16px; outline: none; }
.tc-inp::placeholder { color: var(--tc-texto-3); }
.tc-inp:focus { border-color: var(--tc-marca); box-shadow: 0 0 0 4px var(--tc-halo); }
.tc-inp:disabled { background: var(--tc-lienzo); border-color: var(--tc-linea); }
.tc-send { width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 999px; background: var(--tc-marca); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .16s var(--tc-curva), background-color .16s ease; }
.tc-send:hover { background: var(--tc-marca-hondo); }
.tc-send:active { transform: scale(.95); }
.tc-send:disabled { background: var(--tc-hundido); color: #8c8c8c; cursor: not-allowed; transform: none; }
.tc-trust { font-size: 11.5px; line-height: 1.4; color: var(--tc-texto-3); text-align: center; }
.tc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Adjuntos de conocimiento (lienzo A1–A5, contrato «adjuntos» v1) ---------- */
.tc-rt:has(.tc-adjs) { width: 92%; }
.tc-rt:has(.tc-adjs) .tc-stack { flex: 1; }
.tc-adjs { display: flex; flex-direction: column; gap: 8px; }
.tc-doc { display: flex; gap: 12px; align-items: center; }
.tc-ico {
    width: 40px; height: 44px; border-radius: 8px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    background: var(--tc-marca-suave); color: var(--tc-marca); font-size: 9px; font-weight: 800; letter-spacing: .02em; line-height: 1;
}
.tc-ico.web { background: var(--tc-acento-suave); color: var(--tc-aviso-texto); }
.tc-ico.lock { background: var(--tc-acento-suave); color: var(--tc-aviso-texto); }
.tc-ico.off { background: var(--tc-hundido); color: var(--tc-texto-2); }
.tc-ico.ok { background: #DDF2E7; color: #126641; }
.tc-dtx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.tc-dn { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--tc-texto); overflow-wrap: anywhere; }
.tc-dm { font-size: 12px; line-height: 1.4; color: var(--tc-texto-3); }
.tc-txt { font-size: 14px; line-height: 1.5; }
.tc-ext {
    display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; max-width: 100%; padding: 2px 8px; border-radius: 999px;
    background: var(--tc-aviso-fondo); color: var(--tc-aviso-texto); font-size: 11.5px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere;
}
.tc-dtx .tc-ext { margin-top: 2px; }
.tc-fe { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--tc-err-texto); }
.tc-fe svg { margin-top: 1px; }

/* Lista (2 o más): filas de 64 px; la fila entera es el enlace o el botón. */
.tc-lst { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--tc-calido-linea); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.tc-lst > li + li { border-top: 1px solid var(--tc-calido-sys); }
.tc-it {
    display: flex; gap: 12px; align-items: center; width: 100%; min-height: 64px; padding: 10px 12px; border: 0; background: #fff;
    color: var(--tc-texto); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .16s ease;
}
.tc-it:focus-visible { outline-offset: -3px; }
a.tc-it:hover, button.tc-it:hover { background: var(--tc-calido); }
.tc-it--off { cursor: default; }
.tc-go { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--tc-marca); font-size: 13px; font-weight: 700; }
.tc-mini { width: 40px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; background: #EAF3F1; }
.tc-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Miniatura (1 imagen): toda es el botón «Ampliar»; el hueco es 4:3 desde que empieza a cargar. */
.tc-thumb {
    position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--tc-calido-linea); border-radius: 14px; overflow: hidden;
    background: #fff; color: var(--tc-texto); font: inherit; text-align: left; cursor: zoom-in;
    transition: transform .16s var(--tc-curva), box-shadow .16s ease;
}
button.tc-thumb:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { button.tc-thumb:hover { box-shadow: 0 6px 18px -10px rgb(2 50 59 / .35); } }
.tc-thumb--estado { cursor: default; }
.tc-thumb-img { display: block; aspect-ratio: 4 / 3; background: #EAF3F1; }
.tc-thumb-img img { width: 100%; height: 100%; object-fit: contain; display: block; animation: tc-aparece .2s ease both; }
@keyframes tc-aparece { from { opacity: 0; } to { opacity: 1; } }
.tc-thumb-skel { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--tc-hundido); color: var(--tc-texto-2); font-size: 13px; font-weight: 600; }
.tc-thumb-err { aspect-ratio: 4 / 3; max-height: 180px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; background: var(--tc-lienzo); text-align: center; }
.tc-thumb-err .tc-fe { font-size: 13px; font-weight: 700; }
.tc-zoom {
    position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
    background: rgb(2 50 59 / .86); color: #fff; font-size: 12px; font-weight: 700;
}
.tc-cap { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px 10px; }
.tc-cap .tc-dn { font-size: 13px; }

/* «Solo clientes»: mini-formulario dentro de la burbuja. */
.tc-form { gap: 12px; }
.tc-fld { display: flex; flex-direction: column; gap: 4px; }
.tc-fl { font-size: 13px; font-weight: 600; color: var(--tc-texto); }
.tc-fi {
    width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--tc-linea-fuerte); border-radius: 10px; background: #fff;
    color: var(--tc-texto); font-family: inherit; font-size: 16px; outline: none;
}
.tc-fi::placeholder { color: var(--tc-texto-3); }
.tc-fi:focus { border-color: var(--tc-marca); box-shadow: 0 0 0 4px var(--tc-halo); }
.tc-fi[aria-invalid="true"] { border-color: var(--tc-peligro); border-width: 2px; }
.tc-fh { font-size: 12px; line-height: 1.4; color: var(--tc-texto-3); }
.tc-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--tc-texto-2); cursor: pointer; }
.tc-chk input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--tc-marca); }
.tc-chk.err { color: var(--tc-err-texto); }
.tc-chk a { color: var(--tc-marca); font-weight: 600; text-underline-offset: 3px; }
.tc-cancelar { align-self: center; }
.tc-btn:disabled { opacity: .6; cursor: progress; transform: none; }
@media (min-width: 600px) { .tc-fi { font-size: 14px; } }

/* Visor de imagen (A2 escritorio, A5 celular). Sobre el chat y el Tigo 3D (1100). */
.tc-visor {
    position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: rgb(6 22 26 / .92); color: #fff;
    animation: tc-visor .2s var(--tc-curva) both;
}
@keyframes tc-visor { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
html.tc-visor-abierto, html.tc-visor-abierto body { overflow: hidden; }
.tc-visor :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tc-v-cab { display: flex; align-items: center; gap: 16px; padding: 20px 28px; padding-top: max(20px, env(safe-area-inset-top)); }
.tc-v-tit { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tc-v-t { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.tc-v-m { font-size: 13px; color: #c9dde1; }
.tc-vb {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px;
    border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: background-color .16s ease;
}
.tc-vb:hover { background: rgb(255 255 255 / .16); }
.tc-vb:disabled { opacity: .45; cursor: default; }
.tc-vb-claro { background: #fff; color: var(--tc-marca); border-color: #fff; }
.tc-vb-claro:hover { background: #e9f3f5; }
.tc-vb-r { width: 56px; height: 56px; padding: 0; border-radius: 999px; flex: none; }
.tc-v-centro { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 0 28px; }
.tc-v-fig { margin: 0; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; }
.tc-v-img { max-width: 100%; max-height: calc(100% - 64px); object-fit: contain; border-radius: 8px; background: #fff; touch-action: pinch-zoom; }
.tc-v-pie { max-width: 820px; font-size: 14px; line-height: 1.5; color: #e3eef0; text-align: center; }
.tc-v-fallo { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.tc-v-fallo > span { display: inline-flex; gap: 8px; align-items: center; color: #ffc9c2; }
.tc-v-ayuda { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px; padding: 18px 28px 24px; font-size: 13px; color: #c9dde1; }
.tc-v-ayuda > span { display: inline-flex; align-items: center; gap: 8px; }
.tc-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 6px; background: rgb(255 255 255 / .14); color: #fff; font-size: 12px; font-weight: 700; }
.tc-v-pie-cel { display: none; }
.tc-v-link { color: #fff; font-size: 13px; font-weight: 600; text-align: center; text-underline-offset: 3px; }

@media (min-width: 600px) { .tc-inp { font-size: 14px; } }

/* ---------- Celular: burbuja de 56 px sin etiqueta y chat a pantalla completa ---------- */
@media (max-width: 599.98px) {
    .tc { --tc-derecha: 16px; --tc-abajo: 16px; }
    .tc-lbl { display: none; }
    .tc-fab { width: 56px; height: 56px; }
    .tc-teaser { max-width: min(280px, calc(100vw - 32px)); }
    .tc-panel {
        inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; border: 0; border-radius: 0;
        padding-top: env(safe-area-inset-top); transform-origin: 50% 100%;
    }
    .tc-ib[data-tc="minimizar"] { display: none; }
    .tc-estado-extra { display: none; }
    html.tc-pantalla-completa, html.tc-pantalla-completa body { overflow: hidden; }
    /* Con el chat a pantalla completa, el globo del Tigo 3D (.tg-vendedor, capa 1100) no lo tapa: se oculta mientras
       el chat está abierto (la voz, si la hay, sigue). Vuelve solo al minimizar o cerrar el chat. */
    html.tc-pantalla-completa .tg-vendedor { display: none !important; }
    /* Visor a pantalla completa: Cerrar arriba, la imagen al centro (pellizca para acercar), el texto y Anterior/Siguiente abajo. */
    .tc-visor { background: #06161a; }
    .tc-v-solo-ancho { display: none !important; }
    .tc-v-cab { padding: 10px 8px 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); gap: 8px; }
    .tc-v-t { font-size: 15px; }
    .tc-v-m { font-size: 12px; }
    .tc-vb-claro { border-radius: 999px; padding: 0 14px; }
    .tc-v-centro { padding: 0; gap: 0; }
    .tc-v-img { max-height: calc(100% - 96px); border-radius: 0; }
    .tc-v-pie { font-size: 13px; padding: 0 16px; text-align: left; align-self: stretch; }
    .tc-v-pie-cel { display: flex; flex-direction: column; gap: 14px; padding: 12px 16px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .tc-v-nav { display: flex; gap: 10px; }
    .tc-v-nav .tc-vb { flex: 1; min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .tc-burbuja, .tc-panel, .tc-teaser, .tc-nuevo, .tc-fab, .tc-btn, .tc-chip, .tc-send,
    .tc-visor, .tc-thumb, .tc-thumb-img img, .tc-it, .tc-vb { animation: none !important; transition: none !important; }
    .tc-typing i { animation: none; }
    .tc-cb { scroll-behavior: auto; }
}

/* ---------- En toda la web pública (middleware ChatTigoEnTodaLaWeb) ----------
   template.css pinta de blanco con !important el placeholder de todos los <input> del sitio: el del chat se ve. */
.tc .tc-inp::placeholder { color: var(--tc-texto-3) !important; opacity: 1; }
.tc .tc-inp::-webkit-input-placeholder { color: var(--tc-texto-3) !important; opacity: 1; }
/* Con un modal de Bootstrap abierto (1055: agenda tu visita, formularios), la burbuja no se le sube encima. */
body.modal-open .tc-burbuja { visibility: hidden; }
@media print { .tc { display: none !important; } }
