/* Icono flotante */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #F08418;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.chat-icon img {
    width: 30px;
    height: 30px;
}



/* Contenedor del chat */
.chatbox {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none; /* Ocultar inicialmente */
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
}

/* Encabezado */
.chat-header {
    background-color: #F08418;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
}

/* Cuerpo del chat */
.chat-body {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #f9f9f9;
}







/* Pie del chat */
.chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fff;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#send-button {
    padding: 10px 15px;
    margin-left: 5px;
    background-color: #F08418;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#send-button:hover {
    background-color: #0056b3;
}



.message-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
}

.message-container.user-message {
    align-items: flex-end;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    position: relative;
}

.message.bot-message {
    background-color: #f1f1f1;
    color: #333;
    border-radius: 10px 10px 10px 0;
}

.message.user-message {
    background-color: #007bff;
    color: #fff;
    border-radius: 10px 10px 0 10px;
}

.message-meta {
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 5px;
}

.double-tick {
    color: #00c853;
    margin-right: 5px;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.boton-opcion {
    padding: 10px 15px;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #007bff;
    border-radius: 5px;
    color: #007bff;
    cursor: pointer;
    text-align: center;
}

.boton-opcion:hover {
    background-color: #007bff;
    color: #fff;
}

