/* Cuadro de chat */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
.cuadro {
    width: 350px;
    height: 500px;
    border-radius: 15px;
    border: 2px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin: 20px auto;
    overflow: hidden;
}

/* Encabezado */
.header {
    height: 60px;
    background-color: #3B4D23;
    color: white;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 60px;
    border-bottom: 2px solid #ddd;
}

/* Cuerpo del chat */
.body {
    height: calc(100% - 140px);  /* Restamos el header y footer */
    padding: 10px;
    overflow-y: auto;
    font-size: 1em;
    color: #333;
    background-color: #fafafa;
}

/* Área del mensaje y el botón */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 2px solid #ddd;
}

/* Estilo para el input de mensaje */
#mensaje {
    width: 75%;
    padding: 10px;
    margin-bottom: 25px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-size: 1.5em;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Cambiar borde del input cuando está enfocado */
#mensaje:focus {
    border-color: #4CAF50;
}

/* Estilo para el botón de enviar */
.boton {
    width: 20%;
    padding: 10px;
    border: none;
    background-color: #3B4D23;
    color: white;
    font-size: 1em;
    margin-bottom: 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Efecto hover en el botón */
.boton:hover {
    background-color: #718449;
    transform: scale(1.05);
}

/* Párrafos (mensajes) dentro del cuerpo del chat */
.parrafo {
    margin: 5px 0;
    padding: 5px 10px;
    border-radius: 15px;
    background-color: #e0e0e0;
    max-width: 70%;
    font-size: 1.5em;
    word-wrap: break-word;
}

/* Mensajes del bot */
.bot {
    background-color: #718449;
    color: white;
    margin-left: auto;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Mensajes del usuario */
.user {
    background-color: #e0e0e0;
    color: #333;
    margin-left: 10px;
    margin-right: auto;
    font-size: 1.2em;
}

/* ========================================================================Estilo de la ventana flotante del chatbot?==================================================================== */

/* Estilo para el botón flotante */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3B4D23;
    color: white;
    font-size: 1.3em;
    border-radius: 10%;
    padding: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#chatbot-toggle img {
    width: 30px;
    height: 30px;
}

/* Estilo para el chatbot */
#chatbot-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.cerrar{
    background-color: #718449;
    color: white;
    font-size: 1.2em;
    border: none;   
    border-radius: 10px;
}
