
    .margen-debajo{
        margin-bottom: 40px;
    } 

    #submitLexi{
        margin: 10px 0px;
        border:none;
    }
    .text-muted{
        color:white !important;
    }
    iframe{
        height:450px !important;
    }
    .card{
        margin-bottom:15px;
    }
    .card-body{
        padding:0px;
    }
    body {
            margin: 0;
            /* Fondo patrón, puedes cambiar la url por tu patrón real */
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .lexi-center-box {
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
            margin: 70px auto;
            padding: 40px 70px 32px 70px;
            color: #ffffff;
            text-align: center;
        }
        .lexi-center-box input[type="email"] {
            border-radius: 4px;
            border: none;
            margin-bottom: 18px;
            padding: 12px 12px;
            width: 100%;
        }
        .lexi-center-box p{
            color:white;
            font-size:12px;
        }
        .lexi-btn {
            position:absolute;
            top:2px;
            right:2px;
            height:44px;
            width: 50px;
            background: #ffffff;
            background-repeat: no-repeat;
            background-position: center;
            color: #222126;
            border: none;
            border-radius: 4px;
            font-weight: bold;
            transition: background .3s;
        }
        .lexi-btn:hover {
            background: #aed136;
            background-repeat: no-repeat;
            background-position: center;
        }
        .lexi-footer {
            background: #000;
            color: #fff;
            text-align: center;
            font-size: 15px;
            padding: 10px 0 2px 0;
            width: 100%;
            position: fixed;
            left: 0;
            bottom: 0;
        }
        .lexi-link {
            color: #aed136;
        }

    .chat-container {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        height: 640px;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        background:white;

    }

    .chat-messages {
        flex: 1;
        padding: 40px 60px;
        overflow-y: auto;
        background: white;
    }
    .chat-messages::-webkit-scrollbar {
        width: 20px;
        margin: 10px 0px;
    }
    .chat-messages::-webkit-scrollbar-track {
        background: #f1f1f1; 
    }

    .chat-messages::-webkit-scrollbar-thumb {
        background-color: #71b84f; /* Verde institucional */
        border: 2px solid #f1f1f1; 
    }

    .chat-messages::-webkit-scrollbar-thumb:hover {
        background-color: #5a9e3e;
    }

    .message {
        margin-bottom:50px;
        max-width: 80%;
        min-width: 120px;
        width: fit-content;
        padding: 30px;
        border-radius: 15px;
        font-size: 17px;
        line-height: 1.4;
        word-break: break-word;
        display: inline-block;
        background-color: #fff; /* por si deseas control uniforme */
    }
    .message.user {
        background: #aed136;
        color:white;
        border-bottom-right-radius: 0;
        text-align: right;
    }
    .message.bot {
        background: #F2EEEE;
        border-bottom-left-radius: 0;
    }

    .chat-input {
        position: relative; /* ✅ Esto permite que el botón se posicione relativo a este contenedor */
        display: flex;
        margin: 0px 60px 40px 60px;
        background: #fff;
    }

    .chat-input textarea {
        flex: 1;
        padding: 20px;
        border: none;
        outline: none;
        font-size: 14px;
        resize: none;
        overflow-y: auto;
        max-height: 60px; /* Aproximadamente 3 líneas */
        line-height: 1.2em;
        background: #F2EEEE;
    }

    .chat-input button {
        padding: 10px 15px;
        margin-left: 10px;
        border: none;
        border-radius: 20px;
        cursor: pointer;
    }

    .message-actions {
                    font-size: 12px;
                    display: flex;
                    gap: 10px;
                    justify-content: flex-end;
                }

                .message-actions button {
                    border: none;
                    background: none;
                    cursor: pointer;
                    padding: 2px 5px;
                }

                #copy-chat-btn {
                    position: absolute;
                    bottom: 70px; /* ajustado para estar encima del input */
                    left: 20px;
                    background-color: #F2EEEE;
                    border: none;
                    padding: 10px 16px;
                    display: none; /* oculto inicialmente */
                    cursor: pointer;
                    z-index: 10;
                    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
                    transition: background-color 0.3s;
                }

                #copy-chat-btn:hover {
                    background-color: #0b806a;
                    color:white;
                }

                .typing-indicator {
                    display: inline-block;
                    font-style: italic;
                }

                .typing-indicator span {
                    display: inline-block;
                    width: 4px;
                    height: 4px;
                    margin: 0 2px;
                    background-color: #333;
                    border-radius: 50%;
                    animation: typing 1.4s infinite ease-in-out both;
                }

                .typing-indicator span:nth-child(1) {
                    animation-delay: -0.32s;
                }
                .typing-indicator span:nth-child(2) {
                    animation-delay: -0.16s;
                }
                .typing-indicator span:nth-child(3) {
                    animation-delay: 0;
                }

                @keyframes typing {
                    0%, 80%, 100% {
                        transform: scale(0);
                    } 
                    40% {
                        transform: scale(1);
                    }
                }