#jlca-bot-container {
    max-width: 500px;
    width: 100%; 
    margin: 20px auto;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: #fff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 520px;
}

#jlca-bot-header {
    background: #222;
    color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

#jlca-bot-status {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    flex-shrink: 0;
}

#jlca-chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.msg-bot {
    background: #f1f1f1;
    padding: 12px 16px;
    border-radius: 15px 15px 15px 0;
    max-width: 85%;
    align-self: flex-start;
    line-height: 1.4;
    color: #333;
    font-size: 0.95em;
    box-sizing: border-box;
}

.msg-user {
    background: #222;
    color: #fff;
    padding: 12px 16px;
    border-radius: 15px 15px 0 15px;
    max-width: 85%;
    align-self: flex-end;
    line-height: 1.4;
    font-size: 0.95em;
    box-sizing: border-box;
}

#jlca-bot-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    background: #fff;
    align-items: center;
    box-sizing: border-box;
}

#jlca-user-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    min-width: 0;
    box-sizing: border-box;
}

#jlca-bot-input-area button {
    background: #222;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0;
    box-sizing: border-box;
}

.jlca-chat-link {
    font-weight: bold;
    text-decoration: underline;
}

/* Ajuste preventivo para Zoom en móviles */
@media screen and (max-width: 768px) {
    .msg-bot, .msg-user {
        font-size: 15px;
    }
    #jlca-user-input {
        font-size: 16px !important;
    }
}