.chatbot {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    max-height: 420px;
}

.chatbot-conversacion {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 4px;
}

.chatbot-composer {
    border-top: 1px solid var(--gray-80, #ebebeb);
    padding-top: 12px;
    margin-top: 8px;
}

.chatbot-burbuja {
    max-width: 80%;
    word-break: break-word;
}

.chatbot-burbuja-bot {
    border: 1px solid var(--gray-80, #ebebeb);
}

.chatbot-punto {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    border-radius: 50%;
    background-color: var(--gray-40, #999999);
    animation: chatbot-parpadeo-punto 1.2s infinite ease-in-out;
}

.chatbot-punto:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-punto:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chatbot-parpadeo-punto {
    0%, 80%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
}

.chatbot-opciones .chatbot-chip-opcion {
    border-radius: 20px;
}

.chatbot-adjuntos-barra .file-container {
    border: 1px solid var(--gray-80, #ebebeb);
    border-radius: 20px;
    padding: 4px 10px;
    align-items: center;
}

.chatbot-adjuntos-barra .elegir-archivo {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0 4px 0 0;
}

.chatbot-adjuntos-barra .nombre-archivo {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
}

.chatbot-adjuntos-barra .eliminar-archivo {
    cursor: pointer;
    display: none;
}

.chatbot-boton-grabar.grabando {
    background-color: var(--state-red, #e53935) !important;
    border-color: var(--state-red, #e53935) !important;
    color: #ffffff !important;
}

.chatbot-punto-grabacion {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--state-red, #e53935);
    animation: chatbot-parpadeo-grabacion 1s ease-in-out infinite;
    display: inline-block;
}

@keyframes chatbot-parpadeo-grabacion {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.chatbot-audio-previa {
    width: 100%;
    height: 40px;
}

/* Dentro de una burbuja de chat (ancho por contenido) el 100% colapsa a 0 */
.mensaje .chatbot-audio-previa {
    width: 280px;
    max-width: 100%;
}

.chatbot-faq-tarjeta {
    border: 1px solid var(--gray-80, #ebebeb);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.chatbot-faq-tarjeta:hover {
    background-color: var(--gray-90, #f5f5f5);
}
