/* Estilos generales del contenedor del chat */
#chat-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    border: 1px solid #e0e0e0;
    overflow-y: auto;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    display: none; /* Inicialmente oculto */
}

/* Estilos del encabezado del chat */
#chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

/* Estilos del botón de cierre del chat */
#cerrar-chat {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}

/* Estilos del área de entrada del chat */
#chat-input-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background-color: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    display: none; /* Inicialmente oculto */
}

/* Estilos del campo de entrada de texto */
#chat-input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 16px;
}

/* Estilos del botón de enviar mensaje */
#chat-send {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
}

/* Estilos del botón de alternar visibilidad del chat */
#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-direction: column;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

#chat-toggle i {
    animation: chatIconAnimation 2s infinite ease-in-out;
}
